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:
@@ -40,6 +40,10 @@ type listMessageKeys struct {
|
||||
RowStateDeleted string `yaml:"rowStateDeleted"`
|
||||
RowStateNegative string `yaml:"rowStateNegative"`
|
||||
RowStateDisabled string `yaml:"rowStateDisabled"`
|
||||
// customized and outdated mark an override of a file and an override
|
||||
// whose file changed since (the mail screens).
|
||||
RowStateCustomized string `yaml:"rowStateCustomized"`
|
||||
RowStateOutdated string `yaml:"rowStateOutdated"`
|
||||
}
|
||||
|
||||
// ListMessages is a list schema's copy, every key resolved (same field order
|
||||
@@ -59,6 +63,9 @@ type ListMessages struct {
|
||||
RowStateDeleted MessageForms `json:"rowStateDeleted"`
|
||||
RowStateNegative MessageForms `json:"rowStateNegative"`
|
||||
RowStateDisabled MessageForms `json:"rowStateDisabled"`
|
||||
// The customized and outdated row-state labels.
|
||||
RowStateCustomized MessageForms `json:"rowStateCustomized"`
|
||||
RowStateOutdated MessageForms `json:"rowStateOutdated"`
|
||||
}
|
||||
|
||||
// formMessageKeys is the config_form.yaml messages block: phrase keys.
|
||||
@@ -161,6 +168,9 @@ var (
|
||||
RowStateDeleted: "backend::lang.messages.list.row_state_deleted",
|
||||
RowStateNegative: "backend::lang.messages.list.row_state_negative",
|
||||
RowStateDisabled: "backend::lang.messages.list.row_state_disabled",
|
||||
|
||||
RowStateCustomized: "backend::lang.messages.list.row_state_customized",
|
||||
RowStateOutdated: "backend::lang.messages.list.row_state_outdated",
|
||||
}
|
||||
formMessageDefaults = formMessageKeys{
|
||||
Create: "backend::lang.messages.form.create",
|
||||
|
||||
Reference in New Issue
Block a user