Skip to content

kit: Facts and ValueList, an item's facts as quiet text with changes marked inline - #278

Merged
agorischek merged 2 commits into
mainfrom
kit-facts-value-list
Dec 2, 2026
Merged

agorischek merged 2 commits into
mainfrom
kit-facts-value-list

Conversation

@agorischek

@agorischek agorischek commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 1e813643c68b2f1d8d78804d082556e487fd0da6

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ Kit unit tests pass (184), including markup tests for Facts, Fact, ValueList, ValueMark and ValueChange variant="text"; CI is green on this revision.
↑ All four Copilot review points (className forwarding, chips keeping their options, the meta gap, selected tint) are fixed and resolved.
↑ Kit typecheck and lint pass; components are additive, and ChangePills/pill ValueChange are unchanged.
↓ Fields now also takes pk-facts (baseline alignment); no built-in uses Fields, the starter does.
↓ No renderer adopts these in this PR; the migration PR (#284) runs the renderer checks on agentic-workflows and github-actions built on them, and they pass.

Step 2 of the kit typography rollout (after #277). In a comparison renderer every list can change, and the only kit list that marks per-item changes was ChangePills, which draws every item in a bordered pill. The kit's key-value list, Fields, set its labels in monospace, so human labels like "Runs on" couldn't use it. Renderers either became walls of pills (#268's first version, agentic-workflows) or hand-rolled their own lists (github-actions, language-server).

  • Facts and Fact: a key-value list with human labels in the UI font, muted, in a column of their own so values line up. meta puts a note beside a value ("and 8 run steps") instead of on a line of its own, and change marks a row that arrives or leaves. labelFont="code" is for data keys; Fields is now exactly that.
  • ValueList: values as text, separated by commas (or separator="dot") on a line that breaks between items, or one per line (layout="stack"). An added item is in the added hue after +; a removed one is struck through in the removed hue after −; a modified one shows was → now. All of it fades with emphasis (or follows the item around it) and is said in words. display="chips" keeps today's chips for a few selectable items.
  • ValueChange variant="text": the same text treatment for one value, without pills.

Composes with the change runs helper in progress on language-server-renderer (regionRuns), which is for full-width rows; these items are inline, so they don't need runs.

Light and dark, the same diff drawn both ways (rendered statically from the built kit with the default theme tokens):

Before and after, light: pills in a hand-built list beside Facts and ValueList

Before and after, dark

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved UI regressions drop chip options and previous values, discard text styling, break metadata spacing, and leave selected values without highlighting.

4 open issues
What changed in this PR

Continues the renderer-kit typography rollout with plain-text facts and value lists, reducing reliance on bordered pills.

Changes:

  • Adds Facts, Fact, and ValueList with inline change marks.
  • Adds ValueChange variant="text" and shares fact styling with Fields.
  • Adds markup tests, documentation, authoring guidance, and a changelog entry.
File Description
packages/​renderers/​kit/​test/​facts.test.mjs Tests new component markup and selection attributes.
packages/​renderers/​kit/​styles/​facts.css Styles fact rows and inline value changes.
packages/​renderers/​kit/​src/​react/​layout-components.tsx Applies shared fact classes to Fields.
packages/​renderers/​kit/​src/​react/​facts.tsx Implements facts and change-aware value lists.
packages/​renderers/​kit/​src/​react/​diff-components.tsx Adds text-only value changes.
packages/​renderers/​kit/​src/​react.ts Exports the new components.
packages/​renderers/​kit/​react.css Includes fact styles.
packages/​cli/​templates/​SKILL.md Updates renderer authoring guidance.
docs/​reference/​renderer-kit.md Documents the expanded component API.
docs/​guides/​renderer-kit-components.md Explains component usage and presentation options.
docs/​agents/​create-projection.md Updates generated authoring guidance.
changelog.d/​facts-value-list.md Announces the new kit components.

Review effort: Balanced

Comment thread packages/renderers/kit/styles/facts.css Resolved
Comment thread packages/renderers/kit/styles/facts.css Resolved
agorischek and others added 2 commits December 2, 2026 13:34
…marked inline

Facts and Fact are a key-value list with human labels in the UI font, muted,
in a column of their own, with a meta note beside a value and a change for a
row that arrives or leaves. ValueList draws a list of values as text, each
changed item marked inline in its hue with its sign, struck through when it
leaves, rather than every item in a pill. ValueChange takes variant="text".
Fields is Facts with code labels.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
ValueChange variant="text" forwards className. ValueList display="chips"
keeps each item's change, sign, previous value, code font and emphasis. A
Fact's meta note keeps its gap after a plain-text value. A selected value
takes the part tint. ValueMark marks one value inline as ValueList does.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@agorischek
agorischek force-pushed the kit-facts-value-list branch from 7fa1fd0 to 1e81364 Compare December 2, 2026 21:35
@agorischek
agorischek merged commit 13ad04f into main Dec 2, 2026
94 of 96 checks passed
@agorischek
agorischek deleted the kit-facts-value-list branch December 2, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants