Skip to content

feat(cg-actions): expandable action rows with per-version breakdown#8

Closed
tylerpaxton wants to merge 1 commit into
mainfrom
cg-actions-html-expand
Closed

feat(cg-actions): expandable action rows with per-version breakdown#8
tylerpaxton wants to merge 1 commit into
mainfrom
cg-actions-html-expand

Conversation

@tylerpaxton

Copy link
Copy Markdown
Contributor

What

Each row in the HTML inventory table is now clickable to expand an inline per-version breakdown — granular detail without leaving the table. For each distinct version an action is used at, the expansion shows:

Version Status → Hardened Used in (workflow:line)
v4 version gap chainguard-actions/actions-setup-node@v6.4.0 version-gaps.yml:10
v6 available chainguard-actions/actions-setup-node@v6.4.0 available.yml:10, edge-cases.yml:15

Why

The summary row shows one status and (for mixed actions) for the ref, since it varies. Expanding gives the per-version status, the exact hardened target for each, and where each version is pinned — the detail that previously required scrolling to the separate "By workflow" section.

Details

  • A caret (▸) marks expandable rows; clicking toggles the breakdown. Clicking a copy button doesn't toggle.
  • Changing a status filter collapses expansions, so an open detail row can't outlive a filtered-out parent.
  • Applies to every actions_table (main inventory + per-repo cards).

Verified against tylerpaxton/cg-actions-test: 23 rows, each expands to its per-version subtable; mixed actions show v4→gap and v6→available separately.

🤖 Generated with Claude Code

Each row in the HTML inventory table is now clickable (caret) to expand an inline
per-version breakdown: for each distinct version in use, its own status and
hardened target, plus the exact workflow:line locations that pin it. This is
especially useful for mixed actions (e.g. checkout@v4 gap vs @v6 available), whose
summary row shows "—" for the ref — the detail now shows each version's target.

- New _action_detail() renders the nested per-version subtable.
- Rows toggle open/closed; clicking a copy button doesn't toggle.
- Changing a status filter collapses expansions so an open detail row can't
  outlive a filtered-out parent.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tylerpaxton

Copy link
Copy Markdown
Contributor Author

Superseded by #9, which consolidates this into a single reviewable PR (one commit per change, single VERSION bump).

@tylerpaxton tylerpaxton closed this Jul 1, 2026
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.

1 participant