Block create-list flow when no stores exist
Tapping "+ New list" with zero stores now shows a warning toast with an "Add a store" action linking to /stores, instead of opening a form whose required store dropdown would be empty. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -194,12 +194,6 @@ Replace the single free-form instructions textarea with an ordered list of discr
|
||||
- Keep `Instructions` as a migration fallback column, or do a single-step cutover migration?
|
||||
- Should steps support rich text (bold ingredient names, timers) or stay plain text for v1?
|
||||
|
||||
## Lists
|
||||
|
||||
### Block create-list flow when no stores exist
|
||||
- A shopping list requires a `Store` (see `ListSummary.store` and the `newStoreId` state in `lists/+page.svelte`), so the create-list flow shouldn't be available until at least one store exists.
|
||||
- Behavior: if user tries to open the create-list UI (or hits the create-list page directly via URL) with zero stores, surface a `toast.warning()` (or modal) that says "You need to create a store first" with a CTA linking to `/stores`. Don't render the empty/broken create form.
|
||||
|
||||
## Stores
|
||||
|
||||
### Store types / categorization
|
||||
|
||||
Reference in New Issue
Block a user