Gallery's design card has no 'duplicate' button on hover — user wanting to fork a design has to open the per-card dropdown menu and click 'Duplicate', no one-click affordance for the most common action #277
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#277
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/components/gallery/DesignCard.tsx's grid view (per the snippet at line 281-289) has a per-card "Open" button and a DropdownMenu trigger. The DropdownMenu has the Duplicate option, but it requires two clicks (open menu, click Duplicate).A user who wants to duplicate a design:
The polish move is to expose Duplicate (and maybe other common actions) as hover-revealed icon buttons on the card itself.
Where
src/components/gallery/DesignCard.tsx:280-330Suggested fix shape
Add hover-revealed icon buttons for the 3 most common actions:
The buttons are revealed on hover (with framer-motion's
initial/animate). The icons are the same ones used in the dropdown.isHoveredis the existing hover state (used by the dropdown trigger's background).Severity
Low. The user can use the dropdown. Power users notice the friction.
Discovered by
Gap analysis (2026-10-02) of gallery card affordances.
Related
RightClickMenu.tsx) has 8+ actions; the hover-revealed buttons are the most-common 3.Shipped fix(#277) at
6706ef3on origin/main.Grid-view cards now expose Duplicate, Export, and Favorite as hover-revealed icon buttons inside the card's info area — one-click access to the most common actions instead of the existing right-click → menu → action path (3 clicks). The row:
isHovered(or always-visible inselectablemode)onExportDesignoptional-prop contract — Export is silently a no-op if the parent hasn't wired itThe thumbnail favorite star (which the existing #112 aria tests pin to) gains a
data-testid=favorite-card-thumbnailso #112 stays scoped to the original star while the new hover-row favorite is independently testable viadata-testid=favorite-card. New regression tests inissue-277-hover-actions.test.tsxcover all four contracts: button rendering with accessible names, click handlers fire with correct args, click propagation is stopped, and Export works withoutonExportDesign.Verified: 106/106 gallery tests pass, 1407 total vitest pass, 0 new TS errors, ESLint clean on all touched files.
Closes #277