Add "Scan a packet" to the editor's Plants mode #120

Merged
steve merged 2 commits from feat/scan-in-editor-plants-mode into main 2026-07-22 17:25:39 +00:00
2 Commits
Author SHA1 Message Date
steveandClaude Opus 4.8 df6200d858 Hoist the vision-capability flag to one canScan local
Build image / build-and-push (push) Successful in 11s
Review nit: capabilities.data?.vision was read inline at all three Plants-mode
scan entry points. Read it once into `canScan` so the gating is consistent.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01H3zbym8Doka2d7D48maSgZ
2026-07-22 13:24:37 -04:00
steveandClaude Opus 4.8 f5d4e9cb19 Add "Scan a packet" to the editor's Plants mode
Build image / build-and-push (push) Successful in 10s
Gadfly review (reusable) / review (pull_request) Successful in 4m54s
Adversarial Review (Gadfly) / review (pull_request) Successful in 4m55s
#102 shipped the seed-packet scan UI in the Plants catalog; Steve's call was to
also surface it in the editor's Plants mode, so you can add a variety mid-planting
without leaving the garden.

Adds a capability-gated "📷 Scan packet" entry:
- in the shared PlantPlacementTools cluster (so it appears in both the desktop
  focus toolbar and the mobile Plants strip when a plantable bed is focused), and
- in the mobile Plants-mode hint shown before a bed is focused,

both opening the same ScanPacketModal (gated on `capabilities.vision`, so it's
never a dead button). Vite hoists the now-two-importer modal into its own shared
chunk, so nothing is duplicated.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01H3zbym8Doka2d7D48maSgZ
2026-07-22 13:13:17 -04:00