fix(thread): open attached images in the zoomable preview modal #769

Open
dries wants to merge 1 commit from fix/image-preview-modal into main
Owner

Summary

  • Clicking an attached conversation image opened it inline at conversation width. It now opens the same zoomable preview modal already used for markdown images and Mermaid diagrams (wheel/pinch zoom, toolbar, close).
  • Exports ZoomableGraphicModal from MarkdownText for reuse; drops the inline-expand CSS.

Testing

  • AssistantThread.test.tsx: Enter on the image opens the dialog with zoom controls; "Close image" closes it.
  • tsc -b, pnpm lint, full vitest: green except SessionTerminalDock.test.tsx (missing act import), already failing on main since 6c0856fec.
## Summary - Clicking an attached conversation image opened it inline at conversation width. It now opens the same zoomable preview modal already used for markdown images and Mermaid diagrams (wheel/pinch zoom, toolbar, close). - Exports `ZoomableGraphicModal` from `MarkdownText` for reuse; drops the inline-expand CSS. ## Testing - `AssistantThread.test.tsx`: Enter on the image opens the dialog with zoom controls; "Close image" closes it. - `tsc -b`, `pnpm lint`, full vitest: green except `SessionTerminalDock.test.tsx` (missing `act` import), already failing on `main` since 6c0856fec.
fix(thread): open attached images in the zoomable preview modal
Some checks failed
CI / Frontend (pull_request) Failing after 2m58s
CI / Playwright E2E (pull_request) Failing after 3m17s
CI / Backend (pull_request) Successful in 10m27s
CI / Semantic Tag (pull_request) Has been skipped
CI / Coverage Results (pull_request) Failing after 15s
ee44829e0d
dries force-pushed fix/image-preview-modal from ee44829e0d
Some checks failed
CI / Frontend (pull_request) Failing after 2m58s
CI / Playwright E2E (pull_request) Failing after 3m17s
CI / Backend (pull_request) Successful in 10m27s
CI / Semantic Tag (pull_request) Has been skipped
CI / Coverage Results (pull_request) Failing after 15s
to 1879adb2b9
Some checks are pending
CI / Frontend (pull_request) Successful in 14m2s
CI / Playwright E2E (pull_request) Successful in 11m51s
CI / Backend (pull_request) Successful in 15m45s
CI / Coverage Results (pull_request) Waiting to run
CI / Semantic Tag (pull_request) Waiting to run
2026-09-29 10:53:30 +02:00
Compare
Some checks are pending
CI / Frontend (pull_request) Successful in 14m2s
Required
Details
CI / Playwright E2E (pull_request) Successful in 11m51s
Required
Details
CI / Backend (pull_request) Successful in 15m45s
Required
Details
CI / Coverage Results (pull_request) Waiting to run
Required
Details
CI / Semantic Tag (pull_request) Waiting to run
Required
Details
Some required checks are missing.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/image-preview-modal:fix/image-preview-modal
git switch fix/image-preview-modal
Sign in to join this conversation.
No description provided.