feat: visual redesign of CI summary and PR comment reports#31
Merged
Conversation
Replace flat metric tables with status-first hero header, Unicode progress bar, and single-line metrics strip. Consolidate per-test failure tables into one HTML table with bold test names. Wrap slowest tests in a collapsible <details> block. Add emoji section headers throughout. Move API failure warning above metrics. Extract shared formatting utilities (renderProgressBar, statusEmoji, renderMetricsStrip) to src/output/format.ts. PR comment omits zero failed count on passing runs and only shows the stats/details divider when content is present.
Contributor
Each failure now renders as its own table + stack trace block instead of all failures in one table followed by all traces.
Replace per-failure HTML tables with a compact block layout: test name in inline code + suite + blockquote error message. Stack trace stays directly below its failure.
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.
Summary
Redesigns the CI job summary and PR comment outputs from flat markdown tables to visually polished, scannable reports. Adds a status-first hero header, Unicode progress bar, compact metrics strip, consolidated failed tests table, and emoji section headers.
Changes
src/output/format.ts— shared utilities:renderProgressBar,statusEmoji,renderMetricsStrip, plus movedescapeHtml,formatDuration,truncatesummary.ts— hero header with 🔴/✅ + pass rate; progress bar; single-line metrics strip replacing 7-row table; API warning moved above metrics; consolidated failed tests into one HTML table with bold test names; slowest tests in<details>collapsible; emoji prefixes on all section headers; removed duplicate pass rate line from no-changes deltapr-comment.ts— header now includes pass rate; progress bar added; stats line uses zero-suppression (omits❌ 0 failed); section divider only shown when detail content exists; main header shortened to## 🔬 TestGlanceformat.test.ts(new) — 28 unit tests for all shared utilitiessummary.test.ts,pr-comment.test.ts,post-pr-comment.test.ts— updated assertions for new output formatTest plan
pnpm test— 582 tests pass, 0 failurespnpm build— dist builds cleanly