Repository navigation
refactor: drop leftover png writes and share now-label gutter placement - #5161
Merged
Merged
Conversation
Stop writing a null reflection PNG field after the PDF switch, derive the Life PDF link from the SVG URL line, hide colliding hour labels with opacity-0 instead of a test-only data attribute, and compare pending shell toasts by identity instead of leftover JSON. Co-authored-by: tyler <tyler@switchback.tech>
tyler-dane
marked this pull request as ready for review
November 6, 2026 01:20
tyler-dane
enabled auto-merge
November 6, 2026 01:20
Contributor
|
Boot bundle: 572.5 KB gzip (+0.0 KB vs main) |
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.
What and why
Nightly simplification of merges after #5146: #5147 (inline spinner), #5148 (now-time label collision), #5150/#5152 (certified archives), #5154/#5156/#5158 (weekly review email), #5142 (macOS CI), and #5092 (CodeQL).
Behavior-preserving cleanup only:
pngBase64after the PDF switch. Old prepared rows still parse and still attach PNG if that is all they have.opacity-0instead of a test-onlydata-hour-label-hiddenhook, and shareweekNowTimeLabelUsesGutterbetween TimedGrid and the week now line.Left open Dependabot, #5160 (meeting type delete focus), #5114 (desktop go-to-date), #5111 (form icon rows), #5109 (macos evidence), #5103 (month picker), #5098 (relative-time copy), and #5094 (spinner exploration) alone. Left certified-archive write sites and macOS CI alone.
Verify
VERDICT: PASSChecks run:
test:web,test:backend:fast,type-check,lint,knip,test:a11y,test:e2eChecks skipped: (none)
Note
Low Risk
Mostly refactors and test assertion updates; email send still prefers PDF with PNG fallback for legacy prepared payloads.
Overview
Behavior-preserving cleanup across the calendar grid, shell toasts, and reflection email pipeline.
Calendar grid: Colliding hour labels are hidden via Tailwind
opacity-0instead ofdata-hour-label-hiddenplus inline opacity. Week “now” gutter vs column placement is centralized inweekNowTimeLabelUsesGutter, anddata-now-label-variantis dropped in favor of existing layout classes in tests.nowTimeLabelPlacementuses a daySet, and hour-label overlap math shares a smallminutesCoveredByPxhelper.Shell toasts: Pending toast clearing compares the queued object by reference instead of
JSON.stringify, and the redundantreadPendingShellToastwrapper is removed.Reflection email: Preparation no longer stores
pngBase64: nullafter the PDF path; the schema keepspngBase64optional for older prepared rows, and dispatch builds attachments through alifeImagehelper (PDF first, then legacy PNG). The Life-in-weeks PDF link rectangle is derived from the same constants as the SVG URL line instead of hard-coded coordinates.Reviewed by Cursor Bugbot for commit a82a209. Bugbot is set up for automated code reviews on this repo. Configure here.