Repository navigation
Runtime policies: an Unchanged rows control that folds what didn't change - #218
Open
agorischek wants to merge 4 commits into
Open
agorischek wants to merge 4 commits into
agorischek wants to merge 4 commits into
Conversation
…ange A host control, Unchanged rows (show, the default, or fold), folds the All scope's unchanged rows in a comparison: each run of two or more unchanged agents, kernels, policies or workloads becomes one row, and each run of unchanged hooks one line, since a hook's lane is far taller than its fold. A row counts as changed when it or a chip inside it is. The folds are the kit's Fold, as the database renderer's unchanged columns are, and open in place. A definition presets it with presentation.rendererOptions where a change is small beside its unchanged surroundings, as on a stage too short to list both. The Changes scope already leaves unchanged rows out, so it never folds. The deployment-review-folded scenario presets it; browser/fold.spec.ts checks the folds, that every change stays drawn, that a fold opens and closes in place, and that the Changes scope doesn't fold. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
A critical folding bug hides relationship-only changes in side-by-side mode because eligibility relies on chips marked unchanged, requiring revision-aware relationship checks and a regression test.
1 open issue
What changed in this PR
Adds an Unchanged rows control to the runtime-policy renderer, reducing comparison height by folding unchanged content while preserving access through expandable rows.
Changes:
- Adds folding for unchanged row groups and hook lanes in the All scope.
- Adds a preset scenario and documents the control.
- Adds browser checks for fold layout, expansion, change visibility, and Changes-scope behavior.
| File | Description |
|---|---|
packages/renderers/runtime-policy/src/view.tsx |
Registers the control and renders expandable folds. |
packages/renderers/runtime-policy/src/styles.css |
Aligns fold rows with table grids and lane borders. |
packages/renderers/runtime-policy/src/fold.ts |
Defines the control, change detection, and folding logic. |
packages/renderers/runtime-policy/scenarios.json |
Adds a deployment scenario with folding enabled. |
packages/renderers/runtime-policy/README.md |
Documents folding behavior and configuration. |
packages/renderers/runtime-policy/browser/fold.spec.ts |
Tests fold presentation, interaction, and scope behavior. |
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The kit's fold button brings an inset fill and dashed rules above and below; in a runtime-policy table the rows' own rules are its borders, so those doubled them and left the sign column a different color. As the kit's table folds do, the button draws neither, and the whole row, sign column too, takes the hover. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…wn revision's A side-by-side pane draws one revision, with no chip arriving or leaving, so folding by the pane's own model folded workloads whose coverage changed (the deployment review's three, in both panes). What changes is now read from the diff's model whatever the frame shows (changedRows), and a side-by-side regression test checks both panes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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:
f5e672b83ccb566ad4ae2e71e80bc3564daa1af9↑ Unit tests and
tools check --fastpass; screenshots reviewed.↓ Rules inside a changed lane don't fold, by design; CI pending.
A new host control, Unchanged rows (
unchanged:showby default, orfold), folds the All scope's unchanged rows in a comparison:The folds use the kit's
Fold, as the database renderer's unchanged columns do. A fold opens in place and stays above what it lists as "Hide 3 unchanged hooks". A fold row is a row of its table's grid, raised like the rows, with its glyph and label at the names' inset.A definition presets the control with
presentation.rendererOptions: {"unchanged": "fold"}where a change is small beside its unchanged surroundings. The case behind this is the hosted homepage's runtime-policy slide: its 6-change story is about twice the stage's height when every unchanged lane is listed. The Changes scope already leaves unchanged rows out, so it never folds.deployment-review-foldedpresets the control. Folded, it draws 1,940px against 2,656 listed, with every change still drawn.browser/fold.spec.tschecks that: