Repository navigation
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Your organization has run out of review credits. Add credits to resume code reviews. |
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.
One plugin:
plugins/google-sheets-print-fix(Page rung, docs.google.com).What it fixes. In Yab, pressing Cmd+P in Google Sheets, choosing the print settings and pressing Next prints a picture of the screen instead of the formatted pages.
Why. When a print starts, Sheets appends
<style class="offline-printing-css">and<div class="printing-canvas-container">(one canvas per page) to<body>, and removes both as soon aswindow.print()returns. In Yabwindow.print()returns straight away and the page is rendered a moment later, after Sheets has cleaned up. The plugin watches<body>for those two nodes and puts the same nodes back when Sheets removes them, keeps them off the screen with@media screenCSS, and removes them afterafterprintand the next click or key (or after five minutes, or when a new print starts).It reads nothing, stores nothing and makes no network calls. It only runs on
/spreadsheets/paths.Checked.
npm run validate: valid.node scripts/try-plugin.mjs google-sheets-print-fix: works live on the preview page (a public sheet, no sign-in needed). Printing cannot be driven from the checker, soscripts/trials/google-sheets-print-fix.mjsplays Sheets' part: adds the two nodes, removes them, and expects them back, hidden on screen, and gone after the print.No
review.json, since that is the reviewer's to add. If you would rather fix this in Yab'swindow.print()itself, that would make the plugin unnecessary, and I am glad to close this.🤖 Generated with Claude Code