EditorHeader "Export PES" and "Settings" buttons have no onClick handlers #71
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#71
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?
Where:
src/components/editor/EditorHeader.tsx:92-108(Export PES),:148-162(Settings icon).Bug: Both buttons render with no
onClickprop. Clicks do nothing.Fix consistent with existing patterns:
Export PES: extend
EditorHeaderPropswithonExport?: () => void. InEditor.tsx, build a minimalWorkspaceState-shaped object from the currentpaths(reusesrc/lib/stitch-adapters.tsif it fits, otherwise convertStitchPath[]→StitchObject[]inline) and open the existingExportDialogfromsrc/components/workspace/ExportDialog.tsx. The pattern lives atuseWorkspace.ts:173-175(handleExport) andWorkspace.tsx:272-280(the overlay mount).Settings icon: there is no
/settingsroute (App.tsx:12-18confirms). Either:disabled+cursor: not-allowedstyling consistent with the disabled Undo/Redo buttons at:112-113, 131-132, orRecommended: disable-and-tooltip (
title="Settings — coming soon") until #67 (Group) and friends are tracked, then bundle them under a real Settings page.stitch_objects:[]and swallows API 422 — export is a no-op from the UI #103