Repository navigation
kit: Facts and ValueList, an item's facts as quiet text with changes marked inline - #278
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 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, andValueListwith inline change marks. - Adds
ValueChange variant="text"and shares fact styling withFields. - 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
…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
force-pushed
the
kit-facts-value-list
branch
from
December 2, 2026 21:35
7fa1fd0 to
1e81364
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
1e813643c68b2f1d8d78804d082556e487fd0da6Facts,Fact,ValueList,ValueMarkandValueChange 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/pillValueChangeare unchanged.↓
Fieldsnow also takespk-facts(baseline alignment); no built-in usesFields, the starter does.↓ No renderer adopts these in this PR; the migration PR (#284) runs the renderer checks on
agentic-workflowsandgithub-actionsbuilt 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).FactsandFact: a key-value list with human labels in the UI font, muted, in a column of their own so values line up.metaputs a note beside a value ("and 8 run steps") instead of on a line of its own, andchangemarks a row that arrives or leaves.labelFont="code"is for data keys;Fieldsis now exactly that.ValueList: values as text, separated by commas (orseparator="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 showswas→ now. All of it fades withemphasis(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):