docs(35): UI-SPEC copy for the unsafe site name refusal

This commit is contained in:
Jakub Zych
2026-11-14 15:20:45 +01:00
parent 3a725469c6
commit 701ce8979d

View File

@@ -424,6 +424,7 @@ The source value of a file-backed record is the owning plugin's ID as text (for
|-------|-----|----|----|------------------|
| `logo` (mailimage) label / comment | `mail.brand.logo` / `mail.brand.logo_comment` | Logo / The built-in layouts show the logo in their header. Your own layouts show it where they use {{ .logoUrl }}. | Logo / Wbudowane układy pokazują logo w nagłówku. Własne układy pokazują je tam, gdzie używają {{ .logoUrl }}. | none |
| `site_name` (text) label / comment | `mail.brand.site_name` / `mail.brand.site_name_comment` | Site name / Shown in the header and footer of the built-in layouts. Leave it empty to use the sender name from mail.from. | Nazwa witryny / Wyświetlana w nagłówku i stopce wbudowanych układów. Zostaw puste, aby użyć nazwy nadawcy z mail.from. | empty (the display name of `mail.from`) |
| `site_name` refusal (422 field line, 35-08) | `mail.brand.site_name_unsafe` | This name cannot be shown in mail. Remove addresses that start with javascript:, vbscript: or data: and text such as onclick=. | Tej nazwy nie można pokazać w wiadomościach. Usuń adresy zaczynające się od javascript:, vbscript: lub data: oraz tekst w rodzaju onclick=. | — |
| `body_bg` | `mail.brand.body_bg` | Body background | Główne tło | #f5f8fa |
| `content_bg` | `mail.brand.content_bg` | Content background | Tło treści | #ffffff |
| `header_color` | `mail.brand.header_color` | Header colour | Kolor górnego nagłówka | #bbbfc3 |
@@ -876,6 +877,7 @@ Five `pact.SettingsItem` entries in category `backend::lang.settings.category_ma
| D-13 parse / render / unsafe / subject line / layout / partial / {{ .Content }} | save (template, layout, partial) | 422, `Details.<field>` | Field line under the named field, count banner, the first invalid field's tab activated with its count badge (existing) | `mail.invalid_*` |
| Custom layout code taken / format | create | 422, `Details.code` | Field line | `mail.layout.code_taken`, `mail.layout.code_format` |
| Invalid colour | Branding save | 422, `Details.<colour>` | Field line | `colorpicker.invalid` |
| Unsafe site name | Branding save | 422, `Details.site_name` | Field line | `mail.brand.site_name_unsafe` |
| D-08 delete a layout still assigned | form delete | 403, `Message` | Danger toast; the record stays | `mail.layout.delete_in_use` with `:name`, `:count` |
| Delete or reset where not offered (stale tab) | delete / record action | 409 | Existing stale toast + reload | existing |
| D-03 missing permission | any route | 403 | Existing forbidden banner (save) or danger toast (actions); tiles hidden beforehand | existing `form.forbidden` |
@@ -964,6 +966,7 @@ Applicable state considerations resolved: 48 rows (42 covered, 6 backstop, 0 unr
| populated | Test send success | ✅ covered | Toast `mail.preview.test_sent` with the admin's email |
| populated | Branding page first open | ✅ covered | Winter defaults prefilled; the preview comment explains the `mail.brandCss` precedence (D-11) |
| error | Branding invalid colour | ✅ covered | `colorpicker.invalid` field line; the swatch keeps its last valid value |
| error | Branding unsafe site name | ✅ covered | `mail.brand.site_name_unsafe` field line, nothing stored; the preview shows the mail without the name |
| partial | Branding logo removed from library | ✅ covered | `mailimage.missing` danger line and the empty thumbnail; Save with the missing id is refused by the server, or cleared (planner's choice), with the field line |
| populated | Layouts and partials lists | ✅ covered | Code/name column first with badges after it; file and custom layouts mixed, custom ones without a Customized badge (C9) |
| partial | Layouts and partials lists (mixed states) | ✅ covered | Same badge rules as the templates list: no badge, "Customized", or "Customized" + "File changed" (C9) |