Document the banner removal in AGENTS.md

This commit is contained in:
raucao committed 2026-11-24 15:44:16 +04:00
1 parent 3c196afa0c
commit 3ee2d7a999
1 file changed
+7 -7
+7 -7
View File
@@ -41,7 +41,7 @@ src/ui/approval.rs approval dialogs
src/ui/apps_view.rs the apps page (permission table + revoke)
src/ui/activity_view.rs the activity page
src/ui/kind.rs human names for the common event kinds
src/ui/plain.rs plain-text rows/banners/dialogs (markup off)
src/ui/plain.rs plain-text rows/dialogs (markup off)
src/ui/keys_view.rs the keys page (identity list + management)
src/ui/signer_view.rs the signer page (pairing string, QR, state)
src/ui/switcher.rs the header identity switcher
@@ -430,13 +430,13 @@ UI lives in `data/resources/ui/*.blp` (Blueprint) and is compiled to `.ui` by
6. Requests arrive NIP‑44 encrypted; fall back to NIP‑04 for legacy clients.
Respond NIP‑44.
7. Several **Adwaita** widgets render text as **Pango markup by default**:
`AdwAlertDialog` heading/body (`heading-use-markup`/`body-use-markup`),
`AdwActionRow` title/subtitle (`AdwPreferencesRow:use-markup`) and
`AdwBanner` title. `gtk::Label` does **not** (it defaults to plain). Feeding
`AdwAlertDialog` heading/body (`heading-use-markup`/`body-use-markup`) and
`AdwActionRow` title/subtitle (`AdwPreferencesRow:use-markup`).
`gtk::Label` does **not** (it defaults to plain). Feeding
markup-rendered widgets dynamic text breaks rendering on the first `&` (a
`bunker://…&secret=…` connection string shows nothing) and lets a client
inject formatting. Build them through `crate::ui::plain`
(`plain::row`, `plain::expander`, `plain::banner`, `plain::dialog`), which
(`plain::row`, `plain::expander`, `plain::dialog`), which
turns markup off; put untrusted text in an `extra-child` of plain, selectable
labels. **Order matters:** a builder that sets `title`/`subtitle` before
`use_markup(false)` parses them as markup while it is still on, so an `&`
@@ -468,8 +468,8 @@ UI lives in `data/resources/ui/*.blp` (Blueprint) and is compiled to `.ui` by
## Blueprint / Meson traps
1. In Blueprint, **property assignments end with `;`, child objects do not**. A
widget inside a slot (e.g. `[bottom] Adw.Banner { … }`) must *not* have a
trailing semicolon, or you get `error: Unexpected tokens`.
widget inside a slot (e.g. `[top] Adw.HeaderBar header_bar {}`) must *not* have
a trailing semicolon, or you get `error: Unexpected tokens`.
2. `blueprint-compiler batch-compile OUTPUT SOURCEDIR FILES…` preserves paths
relative to `SOURCEDIR`, so the custom_target must use `output: '.'`. A named
output dir silently produces `ui/ui/window.ui` and then