Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/37406-ui-skill-select-option-colour.md
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 10 additions & 1 deletion scripts/check-skills-token-ratchet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,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
Expand Down
4 changes: 4 additions & 0 deletions skills/objectstack-ui/rules/list-views.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading