GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): preserve ODT list marker styles by StiensWout · Pull Request #44514 · pingdotgg/t3code

Conversation

@StiensWout

@StiensWout StiensWout commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

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:

  1. 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.
  2. Start the web app and open that project.
  3. Open the file search, type the document's name, and open the file.
  4. 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 Before: procedure list After: procedure list
failure Before: 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.

All reactions
StiensWout and others added 6 commits November 28, 2026 00:06
@StiensWout @codex
test(web): reproduce decimal markers in Roman ODT lists
bfa398c
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(web): preserve ODT list marker styles
89ec9bc
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @claude
refactor(web): match ODT marker formats with a regex instead of an id…
14b0dad
…entity map

Co-authored-by: Claude Opus 5.5 <[email protected]>
@StiensWout @codex
test(web): check the rendered Roman list marker style
e81a0e2
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
test(web): inspect markers through the readable document iframe
8279303
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
test(web): check computed markers in the ODT preview iframe
84c4ffc
Co-authored-by: GPT 6.2 Sol <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 531af2d
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0a6a3b83-8fd3-4ab1-bcca-7aca50b91d8f
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 27, 2026
juliusmarminge and others added 2 commits November 27, 2026 23:30
@juliusmarminge @claude
Merge remote-tracking branch 'origin/main' into wf/find-17f3cf51e5afb…
873434e
…4fe24f4a13d

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
test(web): cover ODT list marker types where list numbering is alread…
88da971
…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]>
@juliusmarminge

juliusmarminge commented Nov 27, 2026

Copy link
Copy Markdown
Member

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.

Before After
Before: decimal markers After: preserved Roman and alphabetic markers
531af2d027 88da971016

Scenario and ODT seed generator

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 27, 2026
@juliusmarminge
juliusmarminge merged commit 93955ac into pingdotgg:main Nov 27, 2026
61 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 27, 2026
@StiensWout
StiensWout deleted the wf/find-17f3cf51e5afb4fe24f4a13d branch November 28, 2026 07:31
@omegent-app omegent-app Bot mentioned this pull request Nov 28, 2026
Merge upstream main through 0f78747290a1 patroza/t3code#688
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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.

Projects

None yet

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.

2 participants

@StiensWout @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.