Skip to content

refactor: drop leftover png writes and share now-label gutter placement - #5161

Merged
tyler-dane merged 1 commit into
mainfrom
cursor/recent-changes-simplification-fda1
Nov 6, 2026
Merged

tyler-dane merged 1 commit into
mainfrom
cursor/recent-changes-simplification-fda1

Conversation

@cursor

@cursor cursor Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • Stop writing a null pngBase64 after the PDF switch. Old prepared rows still parse and still attach PNG if that is all they have.
  • Derive the Life PDF click target from the SVG URL line instead of magic coordinates.
  • Hide colliding hour labels with opacity-0 instead of a test-only data-hour-label-hidden hook, and share weekNowTimeLabelUsesGutter between TimedGrid and the week now line.
  • Compare pending shell toasts by object identity. The JSON stringify leftover was from the old sessionStorage queue.

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: PASS

Checks run: test:web, test:backend:fast, type-check, lint, knip, test:a11y, test:e2e

Checks skipped: (none)

Open in Web View Automation 

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-0 instead of data-hour-label-hidden plus inline opacity. Week “now” gutter vs column placement is centralized in weekNowTimeLabelUsesGutter, and data-now-label-variant is dropped in favor of existing layout classes in tests. nowTimeLabelPlacement uses a day Set, and hour-label overlap math shares a small minutesCoveredByPx helper.

Shell toasts: Pending toast clearing compares the queued object by reference instead of JSON.stringify, and the redundant readPendingShellToast wrapper is removed.

Reflection email: Preparation no longer stores pngBase64: null after the PDF path; the schema keeps pngBase64 optional for older prepared rows, and dispatch builds attachments through a lifeImage helper (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.

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
tyler-dane marked this pull request as ready for review November 6, 2026 01:20
@tyler-dane
tyler-dane enabled auto-merge November 6, 2026 01:20
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Boot bundle: 572.5 KB gzip (+0.0 KB vs main)

@tyler-dane
tyler-dane added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 1cd7041 Nov 6, 2026
35 checks passed
@tyler-dane
tyler-dane deleted the cursor/recent-changes-simplification-fda1 branch November 6, 2026 01:34
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.

2 participants