Repository navigation
fix(web): an ODS sheet with values beyond the preview columns is no longer called empty - #48160
Conversation
…lled empty Co-authored-by: Claude Opus 5.5 <[email protected]>
…onger called empty Co-authored-by: Claude Opus 5.5 <[email protected]>
…thout claiming they are its only values Co-authored-by: Claude Opus 5.5 <[email protected]>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This updates spreadsheet preview messaging so truncated sheets are not labeled empty, with corresponding translations. It changes presentation only, leaving preview limits and underlying data unchanged. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…88e16b31e24 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The automated pipeline stopped on this pull request and will not merge it: the proof could not be captured: the agent's turn was cut short: failed It stays open for a person to finish or close. |
An OpenDocument spreadsheet whose shown values all sit beyond the 50 columns the preview displays was described as “This sheet is empty.”, next to the notice that the preview is limited to 50 columns, so people could mistake omitted data for missing data. When the parsed sheet has no shown rows but was truncated, the preview now says the sheet has values beyond the previewed columns; truly empty sheets keep the empty message.
Related: #45119, #48130
Reproduction on main
Commit e0661db2c8 (main). The preview says “This sheet is empty” alongside its 50-column limit notice. Expected: The preview explains that the sheet has data outside the displayed columns.
The cause is at
apps/web/src/components/files/OfficeViewer.tsx:386. Ranpnpm scenarios:prove scripts/scenarios/ods-omitted-columns-do-not-make-sheet-empty.e2e.ts --target webwith the repro scenario added: it failed in 2 of 2 runs on a clean boat.dev VM, withexpected true to be falsein the output.Evidence
Environment: Linux x64 on a boat.dev VM reset before each run, the repository's own tests.
Proven: the replacement test
apps/web/src/components/files/AttachmentFilePreview.browser.test.tsxfails at the test commit 0ff8e486ef and passes on the head 663672a18c, both on main e0661db2c8.The preview says “This sheet is empty” alongside its 50-column limit notice.
The preview explains that the sheet has data outside the displayed columns.
Tests
pnpm exec vp run check:changed e0661db2c851d1c8c2f126d37c40dc3e665e5ec6passed on head.Not in this change
Who did the work
Made in T3 Code by Claude Opus 5.5 and GPT 6.2 Sol