Skip to content

fix(platform): make document preview responsive on mobile - #4318

Merged
yannickmonney merged 1 commit into
mainfrom
fix/document-preview-mobile
Oct 4, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/document-preview-mobile

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What changed

  • Stack the stored-document header below md: a full-width wrapping filename above Download and Close, instead of reserving 260px beside the title.
  • Stack metadata below a full-width reading pane in a scrollable mobile body. Preserve the existing desktop 260px sidebar and independent preview/metadata scrolling.
  • Add EN/DE/FR rendered component/class, accessible-name, keyboard and axe regressions. Add manual regression RESP-B8 for real viewport QA.

Verification

  • Rechecked origin/main 9e8f87f6832cf352eb70a0ad666bbec6fd9d1a57: defect remains; no open PR references Bug: Document preview reserves most of the mobile screen for its fixed metadata sidebar #3628.
  • The initial English regression fails on unchanged main's unconditional header column (1 failed, 3 existing tests passed).
  • Installed Node 24, one Vitest worker: 9 focused component/caller suites, 91/91 passed, including the EN/DE/FR layout/keyboard/axe cases.
  • Changed-file Oxlint and Oxfmt checks: exit 0. Scoped TypeScript syntactic/semantic diagnostics for the two changed TSX files: zero diagnostics, with imports resolved and UI setup types loaded; not a whole-workspace typecheck.
  • Manual guide check: passed. Manual-layer lint: 5 trees / 1449 boxes passed. git diff --check: passed.
  • Sweep: no new UI strings or locale changes; no API, permission, fetch, database or migration changes. Product document guide remains accurate; manual viewport coverage added.
  • Local SAST skipped, pinned Opengrep binary not cached; CI owns the full security gate.

Required QA / unrun proof

This light-only dispatch did not run a browser or native stack. Real Chrome reading widths, title/actions and metadata scrolling at 320×844, 390×844 and desktop remain unobserved. Screenshots mobile-document-preview-320.png, mobile-document-preview-390.png and desktop-document-preview.png are unrun, not produced. The visual-aspect-analyzer gate is also unrun; no score of 100 is claimed. RESP-B8 documents the QA steps, including a long filename and loading state. No production testing. Independent review and authorized later browser QA are required; no merge/self-acceptance.

Closes #3628

@yannickmonney

yannickmonney commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Independent review — ACCEPT (source and focused tests)

PR: #4318
Exact reviewed head: 9b48435486fb83d112c9a1aa6338ac4bc82487aa.
Reviewer: Codex #4 dce9fe1e-9749-4181-8df8-464a4176ed56, TALE-698 / run eb1b1f3c-dec3-4e8e-a469-8f71f4be12b9; distinct from author Codex #13 7155f7ae / implementation run 51db5ce2.

No blocking source/test finding identified. This verdict binds only to this exact head. It is not browser acceptance, a native approval, permission to merge, or a claim that CI is green. No merge, push, card move, CI rerun or cancellation.

Evidence against TALE-173 / #3628

  • Below md, the header uses one column and the body uses a vertically scrolling flex column. The preview has a full-width 60vh pane; metadata follows it instead of taking 260px of mobile reading width. At md and above both grids retain minmax(0,1fr) 260px, the preview returns to auto height, and metadata retains independent scrolling. Source: document-preview-dialog.tsx:115, :287, :395, :401.
  • Title wrapping replaces unconditional truncation below md; Download and Close occupy their own full-width header row. Desktop truncation and action placement remain. Class contracts pass; actual pixel fit is deferred, not inferred from jsdom.
  • EN/DE/FR component cases verify existing localized dialog/action/sidebar names, Tab from Download to Close to the metadata indexing-status control, axe checks, and Close requesting dismissal. There is no new user-visible copy requiring translations.
  • Installed Node 24.21.0, one Vitest worker, no file parallelism: 9 focused preview/caller suites, 98/98 tests passed. After the negative control, the restored exact-head component suite also passes 6/6.
  • Negative control: run the PR's unchanged component test against the fetched origin/main component at dcfca98191803add59081567ea3eb9af807e0f42: 3 responsive EN/DE/FR cases fail, all at the unconditional header-column class assertion; 3 existing tests pass. Main's component blob equals the PR merge-base blob (9489012878105f01dc6f8f296ba4f597485401c3). Restored head blob: ba9449608e26250a256403082c890a1ffddd5191.
  • Tailwind 4.2.2 compilation confirms the responsive grid, flex, height, scrolling and truncation utilities emit CSS, including break-words and the md 48rem media query. This is a CSS/class proof, not rendered layout proof.
  • Changed-TSX Oxlint and Oxfmt pass. Scoped syntactic/semantic TypeScript diagnostics are zero for both changed TSX files, with imports resolved and UI setup types included; not a whole-workspace or all-imports typecheck. Responsive manual-guide reference check passes; manual-layer lint passes 5 trees / 1449 boxes; diff whitespace check passes. RESP-B8 records the deferred viewport QA.

Explicitly UNRUN / later QA

No browser/native slot is granted. Real Chrome at 320×844, 390×844, and desktop 1280×900 is UNRUN. Screenshots mobile-document-preview-320.png, mobile-document-preview-390.png, and desktop-document-preview.png are UNRUN / not produced. Real text reading width, title/actions pixel fit, horizontal overflow, long filenames, loading state, actual focus-triggered metadata scrolling, and Escape behavior at those viewports remain for authorized QA. The visual-aspect-analyzer is UNRUN; no score is claimed. No local browser/E2E, native stack, full suite, full-workspace tsc, local SAST, or production tests.

Passive CI observation at 15:45Z: 5 source-resolution checks succeeded, 16 checks queued; CI is not green. No CI was rerun or cancelled. TALE-359 retains reconciliation and the distinct merge lane only after exact-head CI and required admitted QA; this receipt does not move TALE-173 or bypass its pending review.

Evidence retained in TALE-698's delivery box: reviewed.patch, targeted-head-fixed.log, regression-main.log, component-restored-head.log, css-proof.log, typecheck.log, lint.log, format.log, manual-guide.log, manual-lint.log, and passive PR/CI snapshots.

@yannickmonney
yannickmonney merged commit ee3d817 into main Oct 4, 2026
@yannickmonney
yannickmonney deleted the fix/document-preview-mobile branch October 4, 2026 20:07
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.

Bug: Document preview reserves most of the mobile screen for its fixed metadata sidebar

1 participant