You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 90fefc3
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(ui): the related tab's condition row comes through a host slot
The repository keeps every registered node type authorable, so the list
page's condition row is no longer registered as list-conditions. plugin-list
exports ListConditionsBlock, plugin-detail reads it from
RelatedListConditionsSlotContext, and the record page fills that slot with
the block, loaded with the first tab that draws it.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW
Copy file name to clipboardExpand all lines: .changeset/35892-related-tab-full-list.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,11 @@
4
4
'@object-ui/plugin-list': patch
5
5
'@object-ui/plugin-detail': patch
6
6
'@object-ui/app-shell': patch
7
-
'@object-ui/cli': patch
8
7
---
9
8
10
9
feat(ui): a record page's related tab is the child object's full list
11
10
12
-
Clause-②: yes (widening) — a new registry component `list-conditions` (`@object-ui/plugin-list`, host props only, no node keys) and its exported `ListConditionsHostProps`; new exports `ConditionDiscardButton` (`@object-ui/plugin-list`) and `withHeaderSortPick` (`@object-ui/core`); new i18n keys in every `@object-ui/i18n` locale pack (`listConditions.chips.discard`, `listConditions.chips.discardHint`, `detail.relatedNoMatches`, `detail.deleteRowsTitle`, `detail.deleteRowsConfirmation_*`, a count family); nothing removed or renamed
11
+
Clause-②: yes (widening) — a new export `ListConditionsBlock` (`@object-ui/plugin-list`, the condition row as a host element, not a registered node type) and its `ListConditionsHostProps`; a new slot `RelatedListConditionsSlotContext` and its `RelatedListConditionsProps` (`@object-ui/plugin-detail`), which the record page fills (`@object-ui/app-shell`); new exports `ConditionDiscardButton` (`@object-ui/plugin-list`) and `withHeaderSortPick` (`@object-ui/core`); new i18n keys in every `@object-ui/i18n` locale pack (`listConditions.chips.discard`, `listConditions.chips.discardHint`, `detail.relatedNoMatches`, `detail.deleteRowsTitle`, `detail.deleteRowsConfirmation_*`, a count family); nothing removed or renamed
13
12
Metadata-protocol: none
14
13
15
14
On a record page, a related list opened as its own tab now works like the object's list page:
@@ -24,5 +23,3 @@ On a record page, a related list opened as its own tab now works like the object
24
23
Upgrade note: the header sort and the column widths and order that an earlier version remembered for a related tab in a reader's record-page preference (`sys_user_preference`) no longer apply: the tab opens in its declared order, and its column widths and order are now kept in the reader's browser, as the list page's are, so they start from the default once. Nothing stored is deleted. The default sort and columns of every related list are unchanged.
25
24
26
25
`@object-ui/core` adds `withHeaderSortPick`, the list page's rule for how a header sort joins an existing multi-level sort, now shared with the related tab. `@object-ui/app-shell`'s list Discard is drawn by `ConditionDiscardButton`; it looks and behaves as before.
27
-
28
-
`@object-ui/cli`'s known node types gain `list-conditions` (regenerated from the registry), so `objectui validate` knows the new block.
0 commit comments