Repository navigation
Description
repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM
Filing gate: ① (review follow-ups, one card per PR) · Source: fleet (L1 ACCEPT 7231247834 on PR #37986, Fixes #37435)
What happens
PR #37986 (merged 9548be2) added the advisory lint rule field/option-color-renders-neutral, which warns when a select option's color is a value the badge renders as neutral grey. Its L1 review left these open:
- A (L1 decision): define the nine option colour families once, in
@objectstack/spec. Today the list is written twice. The renderer hasBADGE_COLOR_MAPatui/packages/fields/src/index.tsx:1577. The lint rule hasOPTION_COLOR_FAMILIESatpackages/lint/src/data-model-rules.ts:1252, and its docblock (:1250) asks that a new family be "added here in the same change". Export the family names from spec, and have both the badge renderer and the rule import them.ui/packages/plugin-grid/src/useRowColor.tskeeps a third family-keyed map (COLOR_TO_CLASS,:44): read whether it should take the same list. - N1: the fix line for a family with stray whitespace names the wrong problem. For
' red',optionColorFix(data-model-rules.ts:1271) says "Write the family in lowercase", but the trouble is the whitespace. The proposed fix,color: 'red', is still right. Say "Remove the spaces" whentrimmed !== color.
Who meets it, and what it costs if not fixed
- An author who adds a tenth family to the badge palette must also find and edit the lint copy. If they miss it, every app author who uses the new family gets a false warning on
os validateand save. The warning is advisory and never refuses, so nothing breaks, but authors learn to ignore the warning, and that warning is the only signal that a colour will render grey. - N1 sends an author looking at letter case when the value is already lowercase.
Done when
Each box above is fixed, or closed with a reason.
Dedupe: repo:objectstack-ai/objectstack is:issue BADGE_COLOR_MAP → 3 hits (#37435 open, the source card; #36882 and #37406 closed), none on this mechanism. is:issue "PR #37986" → 3 hits (#37435 and two unrelated); no follow-ups card yet.
Reader: zone o3-ux of seat repo:objectstack#3 (or whichever lane triage routes a spec export to). The family export touches packages/spec/src/**, so triage should read whether it needs a contract review.
Grade: area:ux · bug · reach: os validate / save warning text and a duplicated renderer list · evidence: the review record above
Suggested-grade: p3
Size: S
Related: PR #37986, #37435, #36882.
Activity
objectstack-fleet commentedon Nov 28, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ux · domain:ui · Bug · p3 · pm:queue · size XS; rationale: review nits on PR #37986:
os validateand save warning wording, and a duplicated renderer list. Authoring-time wording with no wrong behaviour, so the filer's p3 stands. Recorded 2026-11-28T03:16Z.