Repository navigation
GitHub Actions: a one-dimension matrix lies across again, so compact workflows fit a short stage - #289
Merged
Conversation
…and compact scenarios must open whole in a short stage Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The regression test measures the same diff view in both iterations, leaving Before/After endpoint overflow undetected.
1 open issue
What changed in this PR
Restores horizontal layout for single non-runner GitHub Actions matrix dimensions, helping compact workflows fit short stages after the regression introduced in #284.
Changes:
- Adds
MatrixGrid.acrossand integrates it into the GitHub Actions renderer. - Adds a delivery scenario, extraction fixtures, and short-stage overflow checks.
- Updates documentation and the changelog.
| File | Description |
|---|---|
| packages/renderers/kit/test/matrix-grid.test.mjs | Tests horizontal single-axis markup. |
| packages/renderers/kit/src/react/matrix-grid.tsx | Adds the across layout option. |
| packages/renderers/harness/README.md | Documents short-stage checks. |
| packages/renderers/harness/browser/short-stage.spec.ts | Adds compact-stage overflow checks. |
| packages/renderers/github-actions/src/matrix.tsx | Uses horizontal layout for lone non-runner axes. |
| packages/renderers/github-actions/scenarios.json | Registers the delivery scenario. |
| packages/renderers/github-actions/README.md | Documents layout and scenario changes. |
| packages/extractors/github-actions-jobs/tests/fixtures/delivery/inputs.json | Selects the delivery workflow. |
| packages/extractors/github-actions-jobs/tests/fixtures/delivery/before/.github/workflows/delivery.yml | Adds the original delivery workflow. |
| packages/extractors/github-actions-jobs/tests/fixtures/delivery/before.expected.json | Adds the original extraction golden. |
| packages/extractors/github-actions-jobs/tests/fixtures/delivery/after/.github/workflows/delivery.yml | Adds updated versions and worker deployment. |
| packages/extractors/github-actions-jobs/tests/fixtures/delivery/after.expected.json | Adds the updated extraction golden. |
| packages/extractors/github-actions-jobs/tests/extractions.rs | Tests delivery versions and dependencies. |
| packages/extractors/github-actions-jobs/README.md | Documents the delivery fixture pair. |
| docs/reference/renderer-kit.md | Updates the MatrixGrid API reference. |
| docs/guides/renderer-kit-type.md | Explains horizontal single-axis usage. |
| changelog.d/gha-single-axis.md | Records the layout fix. |
Review effort: Balanced
…tation draws them; renderers reference lists the delivery scenario Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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:
11ad1706fe902179ca289044115fcd631135c615short-stagespec fails on main forgithub-actions/delivery(div.gha-scroll 526>520) and passes with the fix, in the diff and at Before and After; it also passes forgithub-actions/buildanddependency-injection/orders.↑ Built-in checks pass on all four GitHub Actions scenarios (spread over chromium-desktop, webkit-desktop and chromium-mobile); the renderer's browser suite (Chromium and WebKit desktop), the kit tests (195) and the extractor goldens pass.
↑ Fit scale in the 520 px stage is 0.72 against a 0.67 text floor, about 55 px of natural height to spare.
↓ The private hosted suite isn't run here; the re-bumped pin will confirm the carousel at 1280×800 on Linux fonts.
axes.ts) puts a lone non-runner axis across, as the renderer drew it before; in the diffnode: [20, 22] → [22, 24]became four rows instead of two.↑ Reproduced in the public harness at the carousel's size with the same overflowing element.
div.gha-scroll.pk-dot-grid 536>521) and the same scenario content, copied into the new public fixture.What
projections.private's homepage carousel shows the delivery-pipeline example (a
testjob onnode: [22, 24]) in a 1056 × ~520 stage. Since #284, the GitHub Actions renderer drew a one-dimension matrix as one row per value, which in the diff (20, 22, 24) made the card tall enough that the view scrolled by about 15 px.axes.tsintends and as the renderer drew it before Agentic workflows and GitHub Actions on the kit's quiet text #284. A runner dimension still goes down the side, where its long labels fit.MatrixGridgainsacrossfor a single axis laid out in one row. The row's heading is the grid's name, for screen readers only.github-actions-jobs/tests/fixtures/delivery(the same workflow) with goldens and an extraction test, and the scenariogithub-actions/delivery.browser/short-stage.spec.tsopens compact scenarios in a 1056 × 520 stage, in the diff and at Before and After, and fails if anything in the renderer's document scrolls vertically.opens-fittedaccepts opening at the text floor and scrolling, so it couldn't catch this.changelog.d/gha-single-axis.md.Before / after
github-actions/deliveryin the diff, in a 1056 × 520 stage. Before, the view scrolls (526 > 520). After, it fits with room to spare.