feat: redirects screen

- golem15.seo.redirects list and form (UI-SPEC C8): chain rows marked,
  status, match, origin and chain filters, the navigation item lands here
- a field-less extension on the controller refuses a loop with
  redirects.loop on target, answers the chain notice and records history
- the status dropdown posts text, read through RedirectStatus
This commit is contained in:
2026-10-27 11:30:56 +01:00
parent 34a65b846e
commit 163b0aaf98
15 changed files with 677 additions and 24 deletions

View File

@@ -0,0 +1,22 @@
# Redirects filters (UI-SPEC C8): status, match, origin and chains.
scopes:
status:
label: golem15.seo::lang.redirects.status
modelClass: Golem15\SEO\Models\Redirect
nameFrom: status
scope: FilterRedirectStatus
match:
label: golem15.seo::lang.redirects.match
modelClass: Golem15\SEO\Models\Redirect
nameFrom: match
scope: FilterRedirectMatch
origin:
label: golem15.seo::lang.redirects.origin
modelClass: Golem15\SEO\Models\Redirect
nameFrom: origin
scope: FilterRedirectOrigin
chain:
label: golem15.seo::lang.redirects.filter_chain
modelClass: Golem15\SEO\Models\Redirect
nameFrom: target
scope: FilterRedirectChain

View File

@@ -0,0 +1,18 @@
# Redirect form (UI-SPEC C8).
name: golem15.seo::lang.redirects.name
form: ~/plugins/golem15/seo/models/redirect/fields.yaml
modelClass: Golem15\SEO\Models\Redirect
defaultRedirect: golem15/seo/redirects
create:
redirect: golem15/seo/redirects/update/:id
redirectClose: golem15/seo/redirects
update:
redirect: golem15/seo/redirects
redirectClose: golem15/seo/redirects
messages:
create: golem15.seo::lang.redirects.new
update: golem15.seo::lang.redirects.name
deleteConfirm: golem15.seo::lang.redirects.delete_confirm

View File

@@ -0,0 +1,25 @@
# Redirects list (UI-SPEC C8): newest change first, chains marked.
list: ~/plugins/golem15/seo/models/redirect/columns.yaml
modelClass: Golem15\SEO\Models\Redirect
title: golem15.seo::lang.redirects.list_title
recordUrl: golem15/seo/redirects/update/:id
noRecordsMessage: golem15.seo::lang.redirects.list_empty
recordsPerPage: 20
showCheckboxes: true
showSetup: true
filter: config_filter.yaml
defaultSort:
column: updated_at
direction: desc
toolbar:
buttons: [create, delete]
search:
prompt: backend::lang.list.search_prompt
messages:
create: golem15.seo::lang.redirects.new
empty: golem15.seo::lang.redirects.list_empty
deleteConfirm: golem15.seo::lang.redirects.delete_selected_confirm
rowStateNegative: golem15.seo::lang.redirects.state_chain