Repository navigation
Runtime policy: draw chips with the kit's Chip - #224
Open
agorischek wants to merge 1 commit into
Open
agorischek wants to merge 1 commit into
agorischek wants to merge 1 commit into
Conversation
The binaries, workloads and policies a rule or policy applies to are kit chips: painted in the diff when they arrive or leave on their own, signed only when they move with their row, struck when removed. The renderer keeps its hover tint and drops its own chip styles. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
agorischek
force-pushed
the
agorischek/rp-chips
branch
from
December 1, 2026 05:54
e226f79 to
9b77a5e
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
The wrapped-label layout and removal-styling changes require real-host visual validation at intermediate emphasis and desktop/mobile widths, which could not be performed in this review environment.
No open issues 🎉
What changed in this PR
Migrates runtime-policy’s “applies to” chips to the renderer kit’s shared Chip component, following #223. Database tags remain unchanged.
Changes:
- Uses kit chips for change indicators, removed labels, and selection, preserving the renderer’s hover tint.
- Removes redundant chip styling; wrapped labels now place the sign beside the first line.
- Updates unit and browser assertions for the kit’s markup and change attributes.
| File | Description |
|---|---|
packages/renderers/runtime-policy/test/runtime-policy.test.mjs |
Updates the removed-chip markup assertion. |
packages/renderers/runtime-policy/src/styles.css |
Removes chip styles now supplied by the kit. |
packages/renderers/runtime-policy/src/chips.tsx |
Replaces custom chip buttons with the kit’s Chip. |
packages/renderers/runtime-policy/browser/runtime-policy.spec.ts |
Updates selectors to use kit change attributes. |
Review effort: Balanced
This branch has not been deployed
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:
9b77a5e5ed73a1dd5659923356d9f39ffe257bde↑ Before/after screenshots differ only where a chip's label wraps.
↓ Only the credentials fixture was screenshotted.
Superego feedback item 15, migration. Stacked on #223 (kit
Chip).runtime-policy's "applies to" chips (binaries, workloads, policies) are now the kit's
Chip:paint), signed only when they move with their row;The renderer drops its own chip styles (pill metrics, fill, sign and removed rules). It keeps
.rp-chipsand the hover rule.Visual result: identical to main, except a chip whose label wraps now has its sign by the first line, like a list marker, instead of centred.
Before (main) and after, light and dark (the Policies panel's wrapped chips):
Not migrated: database tags. They're canvas-placed slots, measured once with every name a tag has, wrapped with
balancedWrapand crossfading a renamed tag's name, at the card radius with wider padding. They already use the kit'sStatusTab. Moving them ontoChipwould change their look and keep their own measuring and placement, so they stay as they are.