feat(cabana): mail layouts and partials screens with reset, drift and custom layouts
- Layouts and partials controllers with catalog scoping, reset action and File version diff - Custom layout create/delete with in-use refusal; meta.deletable and customized/outdated row states - List schema golden fixtures updated for the two new row-state message keys Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -93,7 +93,10 @@ func compileExtension(pluginID string, cc *CompiledController, fsys fs.FS) error
|
||||
formFile = "config_form.yaml"
|
||||
}
|
||||
// Record actions are offered on the preview screen only (D-10, D-11).
|
||||
if len(cc.Form.recordActions) > 0 && cc.Form.preview == nil {
|
||||
// The admin's own mail screens have no preview screen and offer them in
|
||||
// the update form's footer instead (formFooterActions).
|
||||
_, footer := cc.Controller.(formFooterActions)
|
||||
if len(cc.Form.recordActions) > 0 && cc.Form.preview == nil && !footer {
|
||||
return bootErr(pluginID, id, formFile, fmt.Errorf("recordActions needs a preview block (record actions are offered on the preview screen)"))
|
||||
}
|
||||
for _, name := range cc.Form.recordActions {
|
||||
|
||||
Reference in New Issue
Block a user