From 790d10b44668a9a8c712bf794c5629aaba84474f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 13:40:18 +0000 Subject: [PATCH] docs(skills): objectstack-ui teaches that a select badge is coloured only when its option declares color One sentence under Column Features in rules/list-views.md, the token ratchet row raised by the sentence's measured delta, and the patch changeset. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01L9qibzJAZWQUrXJCVTtzB7 --- .changeset/37406-ui-skill-select-option-colour.md | 10 ++++++++++ scripts/check-skills-token-ratchet.mjs | 11 ++++++++++- skills/objectstack-ui/rules/list-views.md | 4 ++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .changeset/37406-ui-skill-select-option-colour.md diff --git a/.changeset/37406-ui-skill-select-option-colour.md b/.changeset/37406-ui-skill-select-option-colour.md new file mode 100644 index 00000000000..9a96f624745 --- /dev/null +++ b/.changeset/37406-ui-skill-select-option-colour.md @@ -0,0 +1,10 @@ +--- +'@objectstack/skills': patch +--- + +docs(skills): objectstack-ui says a select badge is coloured only when its option declares `color` + +Clause-②: no +Metadata-protocol: none + +`skills/objectstack-ui/rules/list-views.md` gains one sentence under Column Features: a `select` badge is coloured only when its option declares `color`, as one of `gray`, `red`, `orange`, `yellow`, `green`, `blue`, `indigo`, `purple`, `pink` or a `#` hex, and any other option renders neutral. It teaches the renderer behaviour that landed with #36882: no colour is derived from an option's value, so an agent that wants a coloured status or priority badge declares the colour on the option. diff --git a/scripts/check-skills-token-ratchet.mjs b/scripts/check-skills-token-ratchet.mjs index ad5205a8f82..0374a9966f5 100644 --- a/scripts/check-skills-token-ratchet.mjs +++ b/scripts/check-skills-token-ratchet.mjs @@ -1732,7 +1732,16 @@ export const CEILINGS = new Map([ // (+4014) -> 4448 tokens, the row's 7 tokens of headroom absorbed, ceiling +997, pinned // AT the measurement. Authority as the `rules/actions.md` row above. // ceil($(wc -c < skills/objectstack-ui/rules/list-views.md) / 4) == ceil(17790 / 4) - ['skills/objectstack-ui/rules/list-views.md', 4448], + // 4448 -> 4510 (#37406): one sentence under Column Features — a `select` badge is coloured + // only when its option declares `color` (the nine palette families the renderer's + // `BADGE_COLOR_MAP` keys, or a `#` hex), any other option renders neutral. Colour on a + // select option was untaught in this skill (0 hits), so no text here restates it and + // nothing was cut to fund it. Authority: the ruling of record on #36882 (record + // 7178358629, maintainer verbatim 「A 全部去掉,没配就灰」), whose term (5) orders this + // line into `skills/objectstack-ui`; it authorises its own measured delta and no more. + // 17790 -> 18039 bytes (+249) -> 4510 tokens, ceiling +62, pinned AT the measurement. + // ceil($(wc -c < skills/objectstack-ui/rules/list-views.md) / 4) == ceil(18039 / 4) + ['skills/objectstack-ui/rules/list-views.md', 4510], // 2273 -> 2196 (#27059): LOWERED. The Surface bullet points at `rules/record-page.md`, // says create / edit is a modal or the `editMode: 'page'` route, and the Overlay-width // bullet moved there whole (the `size` bucket, the deprecated pixel keys); the ceiling diff --git a/skills/objectstack-ui/rules/list-views.md b/skills/objectstack-ui/rules/list-views.md index d96abe10e92..68552819aab 100644 --- a/skills/objectstack-ui/rules/list-views.md +++ b/skills/objectstack-ui/rules/list-views.md @@ -87,6 +87,10 @@ columns: [ 6–8 visible columns is plenty (`hidden` the rest); the name/subject column carries `link: true`. +A `select` badge is coloured only when its option declares `color` (`{ value: 'won', label: 'Won', +color: 'green' }`): `gray`, `red`, `orange`, `yellow`, `green`, `blue`, `indigo`, `purple`, `pink` +or a `#` hex. Any other option renders neutral. + **Inline editing is on by default**, under the permission gate: a user who may `update` the object edits a cell in place. A list whose records are read-only by nature — a log, an audit trail, a history, a report roll-up — declares