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:
2026-11-13 12:33:20 +01:00
parent 7efb9ed7ad
commit 83f76cc3f7
35 changed files with 1868 additions and 18 deletions

View File

@@ -114,6 +114,11 @@ type RecordMeta struct {
// and save responses carry it; it is omitted when no record lock applies
// and is never part of the form schema.
PermissionLocks map[string][]PermissionRecordLock `json:"permissionLocks,omitempty"`
// Deletable tells the admin whether the record's form offers Delete. Only
// the show response of a controller that decides it per record (the mail
// screens: a custom layout can be deleted, a file-backed row cannot)
// carries it; it is omitted otherwise, and Delete then shows as before.
Deletable *bool `json:"deletable,omitempty"`
}
// FieldNotice is one save notice: the field it is about, the content locale