Skip to content

Commit 1d4eda2

Browse files
committed
chore(changeset): notification topic and channel pickers
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzyvUbUU6pC3x3Amrx
1 parent 740e353 commit 1d4eda2

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@object-ui/fields': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(fields): Setup's notification topic and channel fields offer the served list and still take any typed value
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
A notification preference's `topic` and `channel`, and a notification template's `topic`, already declare `widget: 'notification-topic'` / `'notification-channel'`. The record form now resolves both: `@object-ui/fields` registers `field:notification-topic` and `field:notification-channel`, a fillable arm of the registry-name picker (`RegistryRefField`).
12+
13+
- **The list.** Read from `GET /api/v1/messaging/preference-options` through the host's authenticated fetch (`SchemaRendererContext.apiFetch`), once per page for every field that draws from it, and listed in the order the server sends: `*` first, shown as "All topics (*)" / "All channels (*)".
14+
- **A typed value.** Typing in the picker's search box offers a row that commits the text exactly as typed. A stored value the list does not hold stays on screen as its own option, marked "not in the list". Nothing is refused or rewritten; the server stores what it is given, as before.
15+
- **A channel that is not configured** is listed, labelled "(not configured)", and can be picked.
16+
- **No list.** When the request fails, or answers an empty list, the field is the plain text box it was before, with no notice.
17+
- **Strings.** Five new `fields.preferenceOption.*` keys in every built-in language pack (`zh-Hant` regenerated from `zh-Hans`).
18+
19+
The template's `channel` field declares no widget and stays a text box.

0 commit comments

Comments
 (0)