diff --git a/web/src/editor/Canvas.tsx b/web/src/editor/Canvas.tsx index 133d23d..1525af0 100644 --- a/web/src/editor/Canvas.tsx +++ b/web/src/editor/Canvas.tsx @@ -177,9 +177,7 @@ export const Canvas = forwardRef< st.setSel(m ? null : { type: 'object', id: o.id }) st.setArmedKind(null) st.setGhost(null) - // Focusing a bed is planting intent: the rail shows the plant palette - // (the toolkit's focused mode), not the inspector. A single click still - // selects into the Plot tab. + // Focusing is planting intent: the rail shows the toolkit's plant palette. st.setTab('toolkit') if (!el) return const bw = o.rotationDeg % 180 ? o.heightCm : o.widthCm diff --git a/web/src/editor/Toolkit.tsx b/web/src/editor/Toolkit.tsx index 37a6135..87bfcd7 100644 --- a/web/src/editor/Toolkit.tsx +++ b/web/src/editor/Toolkit.tsx @@ -14,18 +14,18 @@ import { useEditorStore } from './store' import type { EditorObject } from './types' /** - * The desktop editor's toolkit. Out of focus: the seven object kinds as pill - * rows — click to arm (then click the plan), or drag one straight onto it. In a - * focused bed it swaps to the plant list with a search, same arm/drag behavior, - * plus the bed's bulk tools (fill, clear, scan a packet). + * The desktop editor's toolkit, the rail's first tab. Out of focus: the seven + * object kinds as pill rows — click to arm (then click the plan), or drag one + * straight onto it. In a focused bed it swaps to the plant list with a search, + * same arm/drag behavior, plus the bed's bulk tools (fill, clear, scan a + * packet). * - * It started life as the workspace's left card (the handoff's layout) and now - * lives as the first tab of the rail, so the plan and the rail get the width - * the card took. `embedded` is that mode: no card chrome of its own, and no - * "Toolkit" heading — the tab is the heading. + * It started life as the workspace's left card (the handoff's layout) and + * moved into the rail so the plan and the rail get the width the card took; + * the rail's tab body provides the card chrome and the scrolling, and the tab + * is the heading. */ export function Toolkit({ - embedded = false, unit, plants, plantings, @@ -40,7 +40,6 @@ export function Toolkit({ onClear, onScan, }: { - embedded?: boolean unit: UnitPref plants: Plant[] plantings: EditorPlanting[] @@ -62,10 +61,9 @@ export function Toolkit({ const [query, setQuery] = useState('') return ( -
+
{!focused ? ( <> - {!embedded &&
Toolkit
} {OBJECT_KINDS.map((k) => { const armed = armedKind === k.kind return ( diff --git a/web/src/editor/store.ts b/web/src/editor/store.ts index c45808f..c18806d 100644 --- a/web/src/editor/store.ts +++ b/web/src/editor/store.ts @@ -85,7 +85,7 @@ const TRANSIENT = { armedLotId: null, ghost: null, seasonYear: null, - tab: 'plot' as RailTab, + tab: 'plot' as RailTab, // the garden summary, not the first tab: a fresh editor shows what is there before how to add to it mode: 'build' as PhoneMode, journalScope: null, liveObject: null, diff --git a/web/src/pages/GardenEditorPage.tsx b/web/src/pages/GardenEditorPage.tsx index f27d0ae..116efa0 100644 --- a/web/src/pages/GardenEditorPage.tsx +++ b/web/src/pages/GardenEditorPage.tsx @@ -585,7 +585,6 @@ function Editor({ const plot = inspector ?? const toolkit = (