Gallery has no 'Clear all favorites' or bulk-unfavorite action — a user who starred 30 designs and changed their mind has to unfavorite one card at a time #192
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#192
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
src/pages/Gallery.tsxhas a per-card favorite toggle (DesignCard.tsx:482aria-label="Add to favorites"/ "Remove from favorites"). The bulk action toolbar (SelectionToolbar.tsx) added in #179 has bulk delete, bulk move, and bulk favorite (add) — but no bulk "remove from favorites."A user with 30 favorited designs who decides to clean up has to:
grep -n 'clearFavorites\|unfavoriteAll\|bulkUnfavorite' src/returns 0 hits.Where
src/components/gallery/SelectionToolbar.tsx:18(onBulkFavorite)src/components/gallery/SelectionToolbar.tsx(noonBulkUnfavoriteprop)src/pages/Gallery.tsx(no toolbar button for "clear all favorites")Suggested fix shape
Two options:
Replace the "Favorite" bulk button with a toggle: when the selected designs are all favorited, the button is "Remove from favorites"; when some are, it's "Mixed"; when none are, it's "Add to favorites." Click applies the correct action.
Two bulk buttons: "+ Favorite" and "− Favorite" in the SelectionToolbar. The "−" is enabled only if at least one selected design is favorited.
Both options need a new
onBulkUnfavorite: (ids: string[]) => voidprop onSelectionToolbarand a corresponding handler inGallery.tsxthat callstoggleFavoritefor each selected id (the existinghandleToggleFavoritedoes this per-id).Severity
Low. The user can un-favorite per-card. Power users with many favorites notice.
Discovered by
Gap analysis (2026-10-02) of gallery bulk actions.
Related
Shipped in
4eb52e3(origin/main). Added a bulk-Unfavorite button to SelectionToolbar next to the existing Favorite button — disabled when no selected design is currently favorited so the toolbar can never offer a no-op. Fires a "N designs removed from favorites" summary toast mirroring the bulk-add shape. 2 new tests in issue-179.test.tsx + the empty-selection assertion was extended to cover the new button. Local vitest green (11 passed).