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 f76bbfb
Browse filesBrowse the repository at this point in the historyBrowse files
fix(lint): field-group-shadowed judges the six highlights the record page hoists
The record page draws the first six highlightFields in its header strip and
leaves them out of the Details body; the lint judged four, so a group emptied
by the fifth or sixth highlight passed. The count is now one constant,
RECORD_HIGHLIGHTS_MAX in @objectstack/spec/ui, read by the lint and by the
record page synthesizer in @object-ui/plugin-detail.
Claude-Session: https://claude.ai/code/session_01L6bhgUZrkMKgGrXXe8zPGq
Co-authored-by: Claude <noreply@anthropic.com>
fix(lint): `field-group-shadowed` judges the six highlights the record page draws, from one shared constant
8
+
9
+
Clause-②: yes (widening)
10
+
Metadata-protocol: narrowed
11
+
12
+
The default record page draws the first six of an object's `highlightFields` (after the title field leaves the list) in its header strip and leaves those fields out of the Details body. The `field-group-shadowed` warning judged only the first four, so a field group whose only member sat fifth or sixth in `highlightFields` was empty on the record page and passed `os lint --strict`. It now judges the same six, and its hint says "first 6 highlightFields".
13
+
14
+
What was accepted before and is warned now: an object whose field group is emptied by its fifth or sixth highlight. Fix it as the hint says: keep a member of that group out of the first six highlights, or drop the group. A list the old count warned is still warned: six hoisted fields include the first four, so no list that passed only under six is refused.
15
+
16
+
New export: `@objectstack/spec/ui` adds `RECORD_HIGHLIGHTS_MAX` (6), the count both the lint and `@object-ui/plugin-detail`'s record page synthesizer read. `@object-ui/plugin-detail` now takes its own `RECORD_HIGHLIGHTS_MAX` from there; the value and the page are unchanged.
0 commit comments