Skip to content

feat: add table value to comment-report-format - #225

Closed
caffeinum wants to merge 1 commit into
reg-viz:mainfrom
firegoat-ai:comment-report-format-table
Closed

caffeinum wants to merge 1 commit into
reg-viz:mainfrom
firegoat-ai:comment-report-format-table

Conversation

@caffeinum

Copy link
Copy Markdown

Thanks for reg-actions!

Motivation

When a PR changes many screenshots, the raw and summarized formats render each item as its own vertical actual / expected / diff block, and the whole report is collapsed. Reviewing means expanding the report and then each item one by one. A single side-by-side table makes it much quicker to scan many changes.

What it does

Adds a third value, comment-report-format: table. It renders one table, not collapsed, with one row per item:

name before after diff
changed.png expected image actual image diff image
new.png actual image
deleted.png expected image
  • Changed, new and deleted items are in the same table; cells where an image does not exist are empty. Passed items are not listed.
  • Images use the same URLs and plain markdown as the existing formats.
  • The header, badge, artifact link and count table above the report are unchanged.
  • The default stays raw; raw and summarized output is unchanged.

Changes

  • src/comment.ts: the table renderer.
  • src/config.ts: accept table in the input validation.
  • dist/action.yml and README.md: document the new value.
  • src/comment.test.ts plus a test script (esbuild bundle + node --test, no new dependencies) covering the table output for changed, new and deleted items, and that raw / summarized keep the collapsed report.

pnpm package output differs from the current v3 build only in the new code.

🤖 Generated with Claude Code

Renders changed, new and deleted items as rows of one expanded table
with before / after / diff columns, so many screenshots can be reviewed
side by side without opening each item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@caffeinum caffeinum closed this Dec 1, 2026
@caffeinum

Copy link
Copy Markdown
Author

Thanks for maintaining reg-actions! We've decided to keep this change in our fork for now, so this PR stays closed. Sorry for the noise.

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