GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(web): image preview no longer closes when a press is dragged across its edge by iamshadmantaqi · Pull Request #45051 · pingdotgg/t3code Conversation
Contributor
ProblemThe expanded image preview closes when a mouse drag starts or ends on the image. Steps (web app, no sign-in):
Expected: it stays open in both cases. A plain click on the dark area still closes it. CauseThe popup in ChangeThis applies the #45032 fix to the image preview. The popup remembers whether the press began on its empty area ( ScopeSmall fix of an obvious bug, steps reproduce it, so it needs no issue. VerificationNew cases in Test commit alone, on main eec21fa: The backdrop to backdrop case passes. With the fix: 10 of 11 tests in the file pass, including the three new ones. The one failure is the existing "scrolling pans the image while Ctrl+wheel zooms around the pointer" (
Not verified: I did not drag the mouse in the running app by hand, and the existing Ctrl+wheel test fails on unmodified main on my macOS headless Chromium, so I did not see it pass here; CI on Linux should show it. Touch input on mobile web keeps the press-start target, as in #45032. Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Track backdrop pointer presses apps/web/src/components/chat/ExpandedImageDialog.tsx, apps/web/src/components/chat/ExpandedImageDialog.browser.test.tsx |
The dialog tracks whether a press began on its empty area and closes only when the release also ends there while drawing is inactive. Browser tests check a backdrop-to-backdrop drag and drags crossing between the backdrop and image. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: maria-rcks
1e81dThis change keeps the expanded image preview open when a drag starts or ends on the image and still closes it on a plain backdrop click. Impact is limited to this dialog's dismissal behavior, and no concrete merge-blocking risk was identified.
Explanation
The title "fix(web): image preview no longer closes when a press is dragged across its edge" matches the main change. The PR stops the expanded image preview from closing when a press starts on one area and ends on the other. The title is specific, uses a conventional commit prefix, and names the affected component area (web image preview).
Explanation
The description covers the required template sections. Problem: it explains the bug and gives reproduction steps. Change: it describes the press and release tracking fix in ExpandedImageDialog.tsx and its reference to #45032. Scope: it explains why no issue is needed for a small obvious bug, and it cites the steps as the reproduction. Verification: it lists the new CDP browser tests with before and after results, the check:changed outcome, and what was not verified. The template asks for before/after screenshots for UI changes, and the description has none. It also does not include a link to a bug issue. These gaps are minor because the description gives a clear reason for the omission and a recording is not strictly required for this fix.
53a4e66d-f3cd-4a06-904c-94747186e270apps/web/src/components/chat/ExpandedImageDialog.browser.test.tsxapps/web/src/components/chat/ExpandedImageDialog.tsxIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…g-release Co-Authored-By: Claude Opus 5.5 <[email protected]>
baa5ce1 to
e850006
Compare
EvidenceReal web app, Chromium, 1280×800, light theme, fresh isolated databases and identical synthetic attachment. Open composer thumbnail; drag image centre to empty popup area and release; repeat in reverse; check plain empty-area and image clicks. Both drags dismiss on base and remain open on head. Both ordinary click controls behave correctly on both commits.
Scenario and synthetic image seed The base assertion recorded both drag results as false; head passed with both true. Combined proof was assembled using the runner's exported buildProof function from its saved completed side results after the parent command terminated. Not shown:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.