GeezerVison is showing github.com — fix(web): preserve ODT list marker styles by StiensWout · Pull Request #44514 · pingdotgg/t3code
Conversation
The Files panel displayed Roman-numbered ODT lists with decimal markers. The preview now preserves Roman and alphabetic marker styles, and a browser test checks the list item’s computed style inside the actual ODT preview iframe.
Related: #44451
Reproduction on main
Commit b9c1337a84 (main), in the running web app:
- In a word processor, write a text document with one list set to uppercase Roman numerals and a period after each marker, whose first two items are Prepare the site and Inspect the result, and save it as an ODT file in a project folder.
- Start the web app and open that project.
- Open the file search, type the document's name, and open the file.
- Read the markers beside those two items in the document preview.
The preview marks them 1. and 2. Expected: The first item is marked I. and the second is marked II.
The cause is at apps/web/src/components/files/extendedDocumentPreview.ts:141. Ran pnpm scenarios:prove scripts/scenarios/odt-preview-keeps-roman-list-markers.e2e.ts --target web with the repro scenario added: it failed in 2 of 2 runs on a clean checkout, with expect.toHaveCount failed in the output.
Evidence
Environment: The web app in Chromium on Linux x64, a fresh checkout.
Proven: the repro fails at the test commit bfa398cf90 and passes on the head 84c4ffc09c, both on main ce56dfe956.
|
Before |
After |
| Commit |
bfa398cf90 |
84c4ffc09c |
| Result |
ASSERTION_FAILED: expect.toHaveCount failed |
passed |
| procedure list |
 |
 |
| failure |
 |
|
Before the fix, recorded:
https://pub-b182a4071edc4521829926b34990540b.r2.dev/files/424153a3-98cc-425e-838f-4e6d5515aa01/before-recording.webm
After the fix, recorded:
https://pub-b182a4071edc4521829926b34990540b.r2.dev/files/51452d63-e34f-461e-8eaf-77d0f6746489/after-recording.webm
Outside view: a person sees it in the running web app by following the steps under Reproduction on main.
Tests
- bfa398cf90 adds the failing test, alone, before the fix.
pnpm exec vp run check:changed ce56dfe956d1ed1220059bf0069223c245c0ec43 passed on head.
Not in this change
- Custom marker prefixes, suffixes, and numbering formats beyond native HTML list types are outside this fix.
Who did the work
- Repro written by GPT 6.2 Sol, in Codex
- Outside view by Grok 4.7, in Grok
- Duplicate check judged by Claude Opus 5.5, in Claude Code
- Written by GPT 6.2 Sol, in Codex
- Trimmed by Claude Opus 5.5, in Claude Code
- Reviewed by Claude Opus 5.5, in Claude Code, and by GPT 6.2 Sol, in Codex, and by Gemini 4 Neon, in Antigravity
- Reproduction, checks and proof run by a program on base and head, not by an agent
Made in T3 Code by GPT 6.2 Sol, Claude Opus 5.5, Grok 4.7 and Gemini 4 Neon
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
ODT previews now retain supported ODF list numbering formats, including uppercase Roman numerals. Tests cover list conversion, sanitization, and preview output.
Changes: ODT list marker rendering
| Layer / File(s) |
Summary |
Emit and preserve ordered-list types apps/web/src/components/files/extendedDocumentPreview.ts, apps/web/src/components/files/DocumentPages.tsx |
ODF list rendering sets the HTML type attribute for a, A, i, and I formats. Sanitization allows this attribute on ordered lists. |
Verify ordered-list types apps/web/src/components/files/FilePreviewPanel.test.ts, apps/web/src/components/files/AttachmentFilePreview.browser.test.tsx, scripts/scenarios/odt-preview-keeps-roman-list-markers.e2e.ts |
Tests cover alphabetic and Roman list formats, sanitized HTML, and an ODT preview containing an ordered list with type="I". |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related PRs
- pingdotgg/t3code#44451: Changes ODT list conversion to honor list start numbers. It edits the same conversion and tests the same preview flow.
Suggested labels: bugfix
Suggested reviewers: only21mil, saphid
Merge Risk: Minimal · up to 88da9
-
ODT previews should now keep Roman and alphabetic list markers instead of showing decimal numbers. The change is small and covered by unit, browser and end-to-end tests, so merge risk looks minimal.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(web): preserve ODT list marker styles" matches the main change: the summary shows ODT ordered lists now get an HTML type attribute for a, A, i, and I numbering formats, plus tests for t… |
| Description check |
 |
The description follows the template. It has a problem statement (Roman-numbered ODT lists shown with decimal markers, with reproduction steps and expected behavior), a change explanation (the preview… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title "fix(web): preserve ODT list marker styles" matches the main change: the summary shows ODT ordered lists now get an HTML type attribute for a, A, i, and I numbering formats, plus tests for those formats and the sanitizer allowing the type attribute on ol. It is a concise conventional-commit title that names the fixed component and behavior.
Full details: Description check
-
Explanation
The description follows the template. It has a problem statement (Roman-numbered ODT lists shown with decimal markers, with reproduction steps and expected behavior), a change explanation (the preview now keeps Roman and alphabetic marker styles), a scope note (a related issue number is given, and the fix is a bug fix), and a verification section with test runs, before/after results, and screenshots. Minor gaps: the Scope section links issue #44451 but does not state that the bug is an obvious one or name a maintainer request, and the description says a browser test checks computed style while the PR objectives say the test instead asserts markup. The author should correct that inconsistency. The template's agent attribution line is present in the form of a model list. Overall the description is mostly complete.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 84c4ffc and 88da971.
Files selected for processing: 4
-
apps/web/src/components/files/AttachmentFilePreview.browser.test.tsx
apps/web/src/components/files/FilePreviewPanel.test.ts
apps/web/src/components/files/extendedDocumentPreview.ts
scripts/scenarios/odt-preview-keeps-roman-list-markers.e2e.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…y tested
Assert the converted ODT markup and the sanitizer's ol type in the existing list-start and sanitization tests instead of reading computed styles through CDP.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Evidence
Opened the same generated procedure.odt through Control+P on both commits, using fresh databases, Chromium at 1280×800, and light theme. Base visibly renders decimal markers for all four lists; head preserves uppercase/lowercase Roman and alphabetic markers. The scenario runner exited 0: fails on base, passes on head.
Scenario and ODT seed generator
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|