Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: select and deselect all button for infinite mode #450

Merged

Conversation

diivi
Copy link
Member

@diivi diivi commented Jan 3, 2023

What

  • Added a button to select/deselect all the entries in infinite mode to annotate them

Screenshot

image
image

Fixes bug(s)

Fix #422

@diivi diivi requested a review from a team as a code owner January 3, 2023 18:50
@diivi diivi requested a review from alexfauquette January 4, 2023 14:39
Copy link
Member

@alexfauquette alexfauquette left a comment

Choose a reason for hiding this comment

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

Sounds pretty good, just added a last comment :)

src/pages/logos/LogoDeepSearch.jsx Outdated Show resolved Hide resolved
select only only selects current page's images

Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
@diivi diivi requested a review from alexfauquette January 4, 2023 17:54
@alexfauquette
Copy link
Member

I just tried it, and their is few UX that are disturbing.

First, when you load the page, the button allows you to "Unselec all" even if nothing is currently selected. If you do select all and go to the next page, it unselects the previous page.

selectall.mp4

Maybe the management with a state+effect is not the best. What about two buttons with "select all" and "unselect all"?

@github-actions github-actions bot added the GitHub Actions Pull requests that update GitHub Actions code label Jan 4, 2023
Copy link
Member

@alexfauquette alexfauquette left a comment

Choose a reason for hiding this comment

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

Works supper well 👍🎉

Congrats for your first contribution :)

@alexfauquette alexfauquette merged commit e6b8536 into openfoodfacts:master Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GitHub Actions Pull requests that update GitHub Actions code 🖼️ Logo game
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a "Select All" button in Infinite mode
3 participants