Skip to content

Preserve Survey groups and make photo removal reliably clickable - #1639

Open
SarimSyed wants to merge 1 commit into
storytold:mainfrom
SarimSyed:codex/survey-selection
Open

SarimSyed wants to merge 1 commit into
storytold:mainfrom
SarimSyed:codex/survey-selection

Conversation

@SarimSyed

Copy link
Copy Markdown
Contributor

Plain filmstrip clicks in Survey replaced the selection, collapsing the group to one photo. The close button also disappeared from hit-testing when the pointer moved onto it, so clicking it could leave the photo selected.

Use additive selection for plain Survey thumbnail clicks; revisiting a selected photo only activates it. Preserve Cmd/Ctrl-toggle and Shift-range behavior. Keep the close control present while the pointer is anywhere in its tile, and give that existing control an accessibility label and control-channel ID.

Two public headless UI regressions reproduced the failures before their respective fixes and now pass. They verify the displayed group, activation, modifier clicks and removal using actual pointer events. This does not duplicate #747/#1454's Compare-specific behavior or #818's touch-layout work.

Validation:

Only three UI code/test files; no documentation, translations, branding or unrelated fork features.

@Yeetjof

Yeetjof commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

I ran into the Survey × bug independently and can confirm it still happens on current main (2987aee, Windows 11): hovering a tile shows the ×, but clicking it leaves the photo selected. I traced it to the same cause (the tile stops being hovered() once the pointer is on the ×), and checking whether the pointer is inside the cell fixed it for me too, so +1 for this change.

The conflicts look mechanical (the tests moved to headless/tests.rs, the filmstrip code was reworked); happy to help rebase it if you don't have time.

@FredApps FredApps left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReviewerA — source-read COMMENT (not an approval)

I read the head of the diff: a headless UI test, survey_thumbnail_clicks_add_and_activate_without_losing_the_group, selects a photo through the engine, clicks the Survey icon through ui.clickWidget and checks that thumbnails in Survey can be added and activated without the group being lost (the PR title also says that photo removal is made reliably clickable). The test uses the same control commands as an agent would, which is a good way to test the UI. The code change that makes it pass is in files I did not see, so I could read only the proof. Lightroom's Survey mode is the oracle for the behaviour. A test with a 10-second request timeout can be flaky on a slow runner. I have not run it, and no exact-head CI result exists for this head. Nothing was run.

I ran nothing and have no exact-head CI result for this PR, so this is not an approval. Where a diff was long I read its code hunks rather than every generated or documentation line.

Status: waiting_author.

@Yeetjof

Yeetjof commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Hi @SarimSyed. Since this has been waiting a few weeks and #3614 reports the × bug again, I opened #3715 with only the × hit-test fix, rebased on current main and with a regression test. The commit credits you for the root cause. I left the filmstrip selection change out, so it stays here for you to decide on. If you'd rather land the whole thing here first, I'm happy to close mine.

FredApps pushed a commit that referenced this pull request Nov 5, 2026
…ter is on it

The × was drawn only while the tile was hovered; the pointer on the × took that hover,
so the × vanished before the click landed. It now shows while the pointer is in the tile.
Root cause and fix idea from #1639.

Co-Authored-By: SarimSyed <a.sarimsyed@gmail.com>
emmertex referenced this pull request in AudiFormer/chromaforge-plugins Nov 8, 2026
Sources: upstream PR emmertex#1639 read as a reference; the close-button half is already in the fork.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
emmertex referenced this pull request in AudiFormer/chromaforge-plugins Nov 8, 2026
…#3332

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@wanikhawar wanikhawar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicts with main, please rebase. The change itself reads correctly.

@wanikhawar

Copy link
Copy Markdown
Contributor

The × fix and its test landed separately in #3715 (and #3563), so please drop the compare.rs changes and the remove-click test. What remains is the filmstrip change: a plain click in Survey adds to the selection instead of replacing it. It now belongs in panels/detail/filmstrip.rs (the code moved from detail.rs). Please rebase onto main with only that hunk and its test. Please also say how this should behave when the selection is already larger than SURVEY_MAX, since plain clicks would now grow it without limit.

This branch has not been deployed

No deployments
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.

4 participants