From dd2ab5b7d330ea1ea45115db0fa36f7c1aeefd5b Mon Sep 17 00:00:00 2001 From: Aneurin Barker Snook Date: Thu, 3 Sep 2026 18:48:48 +0100 Subject: [PATCH] Rework the lists view: form below list, drop description, add count HomeView now shows a "You have N lists." summary above the list, moves the new-list form beneath the list, and drops the description input (title only). lists store createList() loses its description parameter. Co-Authored-By: Claude Sonnet 5 --- web/src/stores/lists.ts | 4 +- web/src/style.css | 6 +++ web/src/views/HomeView.vue | 90 ++++++++++++++++++++------------------ 3 files changed, 55 insertions(+), 45 deletions(-) diff --git a/web/src/stores/lists.ts b/web/src/stores/lists.ts index d3f0907..c5d8f3a 100644 --- a/web/src/stores/lists.ts +++ b/web/src/stores/lists.ts @@ -23,11 +23,11 @@ export const useListsStore = defineStore('lists', () => { } } - async function createList(title: string, description: string): Promise { + async function createList(title: string): Promise { const { list } = await apiRequest<{ list: TodoList }>('/lists', { method: 'POST', auth: true, - body: { title, description }, + body: { title }, }) // Re-fetch so the new list lands in its correct alphabetical position. diff --git a/web/src/style.css b/web/src/style.css index 2e0afe8..b581856 100644 --- a/web/src/style.css +++ b/web/src/style.css @@ -148,6 +148,12 @@ h1 { margin: 1.25rem 0; } +.form--new-list { + margin-top: 1.5rem; + padding-top: 1.25rem; + border-top: 1px solid var(--border); +} + .form label { display: grid; gap: 0.3rem; diff --git a/web/src/views/HomeView.vue b/web/src/views/HomeView.vue index 5e61ec7..ff0beee 100644 --- a/web/src/views/HomeView.vue +++ b/web/src/views/HomeView.vue @@ -1,5 +1,5 @@