aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-10-18 21:47:21 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-10-18 21:47:21 +0200
commitc3c61894d2b119ae424bac605d4b3099e0b674e5 (patch)
treec525ebf4d33cbdfac22fc8702367f20d8f7ba344 /README.md
parentc2722b62832afe2d028f1bcb6954116f7eec9cde (diff)
fix: report a duplicate name instead of failing the page
Adding a category or project whose name exists, or renaming an item onto an existing name, hit the unique constraint and rendered SvelteKit's 500 page. Translate SQLITE_CONSTRAINT_UNIQUE into a form error on the three forms.
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/README.md b/README.md
index 936453a..f3f1321 100644
--- a/README.md
+++ b/README.md
@@ -81,8 +81,6 @@ mise run deploy
## TODO
-- Duplicate-name forms return a 500 (catch the unique constraint on
- groceries, categories and projects)
- Purchase history (`checked_at` → "acheté il y a 3 jours", catalog ordered by
last bought)
- Automated database backup (cron + retention + a restore drill)
@@ -94,3 +92,4 @@ mise run deploy
- Auto-categorize new items (LLM-assisted)
- https://automerge.org/docs/tutorial/
- Shared > Modal actions
+- Result type over throws