Skip to content

fix(cg-actions): HTML by-workflow action names + readable mixed note#7

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

fix(cg-actions): HTML by-workflow action names + readable mixed note#7
tylerpaxton wants to merge 1 commit into
mainfrom
cg-actions-html-fixes

Conversation

@tylerpaxton

Copy link
Copy Markdown
Contributor

Two display bugs in the HTML report, both in the multi-version view.

A — by-workflow rows dropped the action name. The detail cards keyed rows on a.get("action", ""), but the inventory stores the name under "name". So every "Current" cell rendered @v6 (no action name), and all actions in a workflow collapsed under one empty key. Fixed to a.get("action") or a.get("name", "") — matching what the main inventory table already does. (Per-version status/target were correct; only the labeling was broken.)

B — mixed note showed a raw value. The mixed row's note printed v6 → True instead of v6 → available. Now maps the status to a label.

Verified against tylerpaxton/cg-actions-test

  • By-workflow: actions/setup-node@v6 → … available, actions/setup-node@v4 → … version-gap (name present).
  • Mixed note: varies by version: v6 → available; v4 → version gap.

🤖 Generated with Claude Code

A) The by-workflow detail cards keyed rows on a.get("action", ""), but the
   inventory stores the name under "name". Result: every "Current" cell rendered
   "@v6" with no action name, and all actions in a workflow collapsed under one
   empty key. Use a.get("action") or a.get("name", "") (matches the main table).

B) The mixed-version note printed the raw status ("v6 → True"); map it to a label
   so it reads "v6 → available; v4 → version gap".

Verified against tylerpaxton/cg-actions-test: by-workflow rows now show
"actions/setup-node@v4 → … version-gap" with the name present, and the mixed note
is human-readable.

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