Gallery card has TWO dead "Open in Editor" buttons — onClick is empty () => {} or missing (DesignCard.tsx:226, :363) #111
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#111
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?
Bug: Gallery card has TWO "Open in Editor" buttons that do nothing —
onClickis empty or missingReproduction
cd ~/Projects/Kimi_Agent_Brother_10_Digitizing_App && npm run devhttp://localhost:3000/gallery(any design exists after the first Workspace save).Expected
Clicking either "Open in Editor" button loads the design into
/editor(or shows "Editor coming soon" disabled state with a tooltip).Actual
Nothing happens. No navigation, no toast, no error. The click is silently swallowed.
Source
src/components/gallery/DesignCard.tsx:Line 226 (context menu via DropdownMenuItem):
onClickis an empty arrow function — explicit no-op.Line 355-364 (hover overlay):
No
onClickattribute at all.For comparison, the adjacent "Open in Workspace" button on the same card (line 341-354) DOES have:
So the pattern exists for "Open in Workspace" — just missing for "Open in Editor".
Why this matters
The user-story path "Gallery → Edit stitches" is incomplete. A user who saves a design, returns to it via Gallery, wants to refine stitches — the obvious affordance is "Open in Editor". They click it. Nothing happens. The user assumes the feature doesn't exist or the click missed.
Per the visible UI copy (which I'm screenshotting as evidence), the dev intended "Open in Editor" to work. It's not marked disabled or "coming soon". It looks identical to "Open in Workspace" except for styling. The omission of
onClickis a shipping bug, not a deliberate stub.Suggested fix scope
Minimum viable: Wire
onClickto a navigation that loads the design snapshot into the editor. Pattern to follow:Better: Mark the buttons as
disabledand add a tooltip "Editor coming soon" if the team isn't ready to wire it. At least the user gets a signal.Best: Same as above plus an Editor page bug that the
loadInitialPaths()already supportstc_workspace_snapshotandLOAD_DESIGN_STORAGE_KEY, so the wiring is essentially free.Related
tc_workspace_snapshoton mount, so the Editor side already supports loading from sessionStorage. Only the Gallery-sideonClickwiring is missing.Labels
Severity
Medium. Visible broken affordance on the primary design-management page. No workaround visible to the user (they don't know "Open in Editor" needs to come from a different path). The user can still navigate manually to
/editor, but they need to have first saved the design via Workspace AND the Workspace → Editor bridge (#69) only works for designs that were freshly auto-digitized — not for designs loaded from Gallery via "Open in Workspace".Filed 2026-09-25 by user-driven bughunt session.
Closed by triage-runner via fix commit
58687edon main.Fix scope: All three "Open in Editor" buttons in the Gallery now wire to a sessionStorage bridge that hands
design.snapshotto the Editor via the existingtc_workspace_snapshotkey (Editor.tsx already consumes it vialoadInitialPaths()on mount).Files changed (267 net lines):
onLoadInEditor; wired the emptyonClick={() => {}}DropdownMenuItem at line 226 and the missing-onClick hover overlay button at line 355).onLoadInEditorprop; wired the bare<MenuItem label="Open in Editor" />at line 139 with onClick that closes the menu after navigation).handleLoadInEditorcallback that mirrorshandleLoadbut writes totc_workspace_snapshotand navigates to/editor; passed to all 4 DesignCard/RightClickMenu prop sites).Verification:
Lint, test, buildjob (the relevant gate for code changes): Successful in 2m9sDocker image buildandWorkspace screenshotfailed with the same pattern as commitce57a37/ run #96 — pre-existing infrastructure issue not caused by this fix.User story now complete: click any "Open in Editor" → Editor opens with the design hydrating from sessionStorage.