Skip to content

Renamed Report tab to Full Analysis and moved it out of tab row - #17

Merged
CodyCBakerPhD merged 5 commits into
mainfrom
claude/report-button-redesign-p6pwbh
Aug 13, 2026
Merged

CodyCBakerPhD merged 5 commits into
mainfrom
claude/report-button-redesign-p6pwbh

Conversation

@CodyCBakerPhD

Copy link
Copy Markdown
Member

The Report tab has been renamed to Full Analysis and repositioned as a standalone button aligned to the right of the content column, rather than as a seventh tab in the row. This better reflects its purpose as a document-generation action rather than a view of the file.

Key changes:

  • Created new analysisTab.ts module that gathers analysis state and builds sections for the document
  • Created new analysisDoc.ts module that renders sections to HTML, Markdown, and self-contained HTML files
  • Extracted shared explainer copy into new explainers.ts module, used by both the Inspect tab and Full Analysis document
  • Updated inspectTab.ts to import explainers from the new shared module instead of defining them locally
  • Moved Full Analysis button out of the tab row in index.html and styled it as a distinct action with a document-with-download icon
  • Updated tab switching logic in tabs.ts to handle the new button alongside the tab panels
  • Removed the old reportTab.ts module and its print-only styling
  • Updated ReencodeResult type to track engine type and both original/encoded sizes for document reporting
  • Updated integration tests to reference the new Full Analysis button and iframe-based preview
  • Bumped version to 0.3.0

The Full Analysis document is rendered three ways from the same sections: as a preview in an iframe, as a downloadable self-contained HTML file, and as a printable PDF via the browser's print dialog. A separate Markdown export is also available for pasting into issues or lab notebooks.

https://claude.ai/code/session_01WvGm4XZ6b5v5cYujoCaLVE

The Report tab shared the tab row with the six views of the file, though it
was not a seventh place to look but the one control that produces something,
and "report" is the word the footer already uses for filing a bug. It is now
a button aligned to the right of the content column, with a document/download
icon, labelled Full Analysis.

What it produces is a document rather than a page of cards: a title block
naming the file and its headline facts, a linked contents list, every section
in reading order, the ⓘ explainers written out inline (nobody can hover a
saved file), and a closing section naming the runs that were not started. It
now carries the analyses the report used to leave behind — the container
explainer, the bitrate plot, the GOP histogram, the seeking scatter plot, the
chroma and faststart notes, and in-browser reencode results.

The panel shows that exact document, rendered in an iframe from the same
self-contained HTML the new Download HTML button writes and Save as PDF
prints, so no preview can disagree with the file. That replaces the old
@media print trick of hiding every other element on the page.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WvGm4XZ6b5v5cYujoCaLVE
@chromatic-com

chromatic-com Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Tip

All tests passed and all changes approved!

🟢 UI Tests: encoding-helper-playwright: 1 change accepted as baseline
🟢 UI Review: encoding-helper-playwright: Approved by Cody Baker
Storybook icon Test suite publish: encoding-helper-playwright: 2 tests published

@chromatic-com

chromatic-com Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Tip

All tests passed and all changes approved!

🟢 UI Tests: encoding-helper-storybook: 4 changes accepted as baselines
🟢 UI Review: encoding-helper-storybook: Approved by Cody Baker
Storybook icon Storybook Publish: encoding-helper-storybook: 7 stories published

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://brain-bbqs.github.io/encoding-helper/pr-preview/pr-17/

Built to branch gh-pages at 2026-08-13 15:42 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov-commenter

codecov-commenter commented Aug 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.45455% with 246 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/ui/analysisTab.ts 0.00% 168 Missing ⚠️
src/ui/atomsTab.ts 0.00% 38 Missing ⚠️
src/ui/seekTab.ts 0.00% 16 Missing ⚠️
src/lib/explainers.ts 55.55% 12 Missing ⚠️
src/ui/inspectTab.ts 0.00% 5 Missing ⚠️
src/lib/analysisDoc.ts 97.14% 0 Missing and 2 partials ⚠️
src/ui/reencodeTab.ts 0.00% 2 Missing ⚠️
src/ui/tabs.ts 0.00% 2 Missing ⚠️
src/ui/cliControls.ts 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/lib/appUrl.ts 95.45% <100.00%> (ø)
src/lib/mediabunnyMeta.ts 0.00% <ø> (ø)
src/ui/elements.ts 0.00% <ø> (ø)
src/ui/cliControls.ts 0.00% <0.00%> (ø)
src/lib/analysisDoc.ts 97.14% <97.14%> (ø)
src/ui/reencodeTab.ts 0.00% <0.00%> (ø)
src/ui/tabs.ts 0.00% <0.00%> (ø)
src/ui/inspectTab.ts 17.60% <0.00%> (-4.08%) ⬇️
src/lib/explainers.ts 55.55% <55.55%> (ø)
src/ui/seekTab.ts 0.00% <0.00%> (ø)
... and 2 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CodyCBakerPhD CodyCBakerPhD self-assigned this Aug 13, 2026
claude added 4 commits August 13, 2026 15:03
The document had only the indented text listing the old report used, not the
map the Atom Map tab draws. It now carries the map itself: the same lanes,
blocks, colors and legend, minus the parts that need a hand (no zoom, no
breadcrumb, no hover readout). Each block keeps its offset and size as a
title, which still works on hover in the exported HTML, and the label sizing
that a ResizeObserver decides on the page is settled while the document is
built, since nothing runs inside it later.

The text listing stays underneath, because a printed page has no hover to
reveal a number with, but it is now capped at 400 boxes with a line saying
how many were left out; a fragmented recording has tens of thousands, and the
map draws all of them regardless.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WvGm4XZ6b5v5cYujoCaLVE
The map draws every box in the file; the indented listing under it only
restated that in words, at one line per box, which on a fragmented recording
ran to tens of thousands of them. The map is now the whole of what the atom
section says, with each block carrying its own offset and size as a title.

The listing was also the oracle the atom-map test compared against, so that
test now measures the drawn blocks against the breadcrumb's own count of the
boxes the layout covers, which is what catches one going missing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WvGm4XZ6b5v5cYujoCaLVE
Sections whose runs were never started are simply absent now, rather than the
document closing with a list of what it does not contain. The panel above the
preview still says which runs have to be started by hand for their results to
appear.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WvGm4XZ6b5v5cYujoCaLVE
Also fixed a flake the geometry assertions in the new smoke test introduced:
the tab bar lives inside #app, which is display:none until a file loads, and
an unrendered element has no box, so boundingBox() came back null whenever the
measurement won the race against the reveal. It now waits for the bar to be on
screen before asking where it is.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WvGm4XZ6b5v5cYujoCaLVE
@CodyCBakerPhD
CodyCBakerPhD merged commit cfaf80f into main Aug 13, 2026
16 checks passed
@CodyCBakerPhD
CodyCBakerPhD deleted the claude/report-button-redesign-p6pwbh branch August 13, 2026 15:56
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.

3 participants