Editor has no way to load a design back to the workspace for re-digitization — user edits a design, must navigate Gallery → Workspace → Re-Digitize to fix issues #207

Open
opened 2026-10-03 23:59:32 +00:00 by Mark · 0 comments
Owner

Finding

src/pages/Editor.tsx is reachable from the Gallery's "Open in Editor" action (per Gallery.handleLoadInEditor). Once in the Editor, the user can:

  • Edit paths
  • Save back to the Gallery (per #150)
  • Export to PES (per #142)

There's no "Back to Workspace" affordance that loads the current design's geometry into the Workspace for re-digitization. The only "Back to Workspace" is a Link to /workspace (line 188 of EditorHeader.tsx), which navigates to a fresh empty workspace state.

A user who:

  • Loads a design from the Gallery into the Editor
  • Edits some paths
  • Realizes the design needs to be re-digitized (e.g., the user wants to bump the color simplification threshold and re-run)
  • Must click "Back to Workspace" (which lands them on an empty workspace)
  • Navigate to Gallery
  • Click "Open in Workspace" on the same design
  • Workspace re-loads the design
  • Now the user can re-digitize

Four navigation hops for a common flow. The Editor → Workspace bridge doesn't carry the design state.

Where

  • Editor header: src/components/editor/EditorHeader.tsx:188 (Link to /workspace)
  • Gallery → Workspace: src/pages/Gallery.tsx:140-180 (handleLoad)
  • Gallery → Editor: src/pages/Gallery.tsx:200-220 (handleLoadInEditor)
  • Editor → Workspace bridge: doesn't exist

Suggested fix shape

Add a "Send to Workspace" button in the Editor's header (next to "Save"):

<button
  onClick={onSendToWorkspace}
  title="Open this design in the Workspace for re-digitization"
>
  <FileSearch size={14} />
  Open in Workspace
</button>

onSendToWorkspace does the same thing as the Gallery's handleLoad:

  • Serializes the current paths to a WorkspaceDesign snapshot
  • Writes to LOAD_DESIGN_STORAGE_KEY in sessionStorage
  • Navigates to /workspace
  • The workspace's useWorkspace mount effect reads the key and loads the design

This reuses the existing bridge (the same one #111, #152, #186 already use for Gallery → Editor). The Editor's paths are already a valid WorkspaceDesign snapshot.

Severity

Medium. The user can navigate Gallery → Workspace manually; the bridge just isn't in the Editor.

Discovered by

Gap analysis (2026-10-02) of editor → workspace navigation.

  • #111 (closed) — Gallery → Editor bridge via sessionStorage. The Editor → Workspace bridge is the reverse direction.
  • #152 (closed) — Gallery → Editor with loadedDesignIdRef for save round-trip. Same pattern, different direction.
  • #150 (closed) — Editor Save-to-Gallery. Same direction (Editor → Gallery); this issue is Editor → Workspace.
## Finding `src/pages/Editor.tsx` is reachable from the Gallery's "Open in Editor" action (per `Gallery.handleLoadInEditor`). Once in the Editor, the user can: - Edit paths - Save back to the Gallery (per #150) - Export to PES (per #142) There's no "Back to Workspace" affordance that loads the current design's geometry into the Workspace for re-digitization. The only "Back to Workspace" is a Link to `/workspace` (line 188 of EditorHeader.tsx), which navigates to a fresh empty workspace state. A user who: - Loads a design from the Gallery into the Editor - Edits some paths - Realizes the design needs to be re-digitized (e.g., the user wants to bump the color simplification threshold and re-run) - Must click "Back to Workspace" (which lands them on an empty workspace) - Navigate to Gallery - Click "Open in Workspace" on the same design - Workspace re-loads the design - Now the user can re-digitize Four navigation hops for a common flow. The Editor → Workspace bridge doesn't carry the design state. ## Where - Editor header: `src/components/editor/EditorHeader.tsx:188` (Link to /workspace) - Gallery → Workspace: `src/pages/Gallery.tsx:140-180` (`handleLoad`) - Gallery → Editor: `src/pages/Gallery.tsx:200-220` (`handleLoadInEditor`) - Editor → Workspace bridge: doesn't exist ## Suggested fix shape Add a "Send to Workspace" button in the Editor's header (next to "Save"): ```tsx <button onClick={onSendToWorkspace} title="Open this design in the Workspace for re-digitization" > <FileSearch size={14} /> Open in Workspace </button> ``` `onSendToWorkspace` does the same thing as the Gallery's `handleLoad`: - Serializes the current `paths` to a `WorkspaceDesign` snapshot - Writes to `LOAD_DESIGN_STORAGE_KEY` in sessionStorage - Navigates to `/workspace` - The workspace's `useWorkspace` mount effect reads the key and loads the design This reuses the existing bridge (the same one #111, #152, #186 already use for Gallery → Editor). The Editor's `paths` are already a valid `WorkspaceDesign` snapshot. ## Severity Medium. The user can navigate Gallery → Workspace manually; the bridge just isn't in the Editor. ## Discovered by Gap analysis (2026-10-02) of editor → workspace navigation. ## Related - #111 (closed) — Gallery → Editor bridge via sessionStorage. The Editor → Workspace bridge is the reverse direction. - #152 (closed) — Gallery → Editor with `loadedDesignIdRef` for save round-trip. Same pattern, different direction. - #150 (closed) — Editor Save-to-Gallery. Same direction (Editor → Gallery); this issue is Editor → Workspace.
Sign in to join this conversation.
No description provided.