Repository navigation
PNG sits with the other ways to keep a capture, and says how many files it writes - #66
Open
vhladiienko wants to merge 1 commit into
Open
vhladiienko wants to merge 1 commit into
vhladiienko wants to merge 1 commit into
Conversation
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
The popup's action row only had PDF / Copy / Annotate. Save-as-PNG existed, but only inside the format-choice panel that appears for captures too long to keep whole and editable — so on an ordinary page PNG was nowhere to be found. This adds it to the row permanently and labels the count in the two places a user looks for it:
The button reuses the format panel's existing
{action: "savePngs"}path — no new save code. Count comes fromreport.output_image_count, already on the persisted last-capture record.Evidence
Before: after any ordinary capture the row offered PDF / Copy / Annotate only; PNG was reachable solely via the too-long capture panel (
e2e/too-long.spec.tswas the only spec exercising a PNG save from the popup).After: same spec now also asserts, right after watching 2 files download (
opencapture-page-1-of-2.png,opencapture-page-2-of-2.png):And
capture.spec.ts"restores report/preview/enabled buttons" asserts the button comes back enabled from persisted state and saves a.pngfrom a real popup click.Full runs on this branch: typecheck ✓, i18n suite ✓ (new key present in all 7 catalogues, none left at its English source), locale caps ✓, too-long + popup e2e ✓.
Merge Danger
Door: two-way — additive UI; reverting the single commit restores the old row exactly.
Blast Radius: small — popup.html/popup.ts only; editor, background, and content scripts untouched. The new i18n key ships translated in de/es/ja/ko/pt/zh-Hans/zh-Hant. Merges cleanly with #65 (both touch popup.ts, verified with merge-tree; regions are disjoint).