From fb329bf6931a124c315c428fbfef696b467fa487 Mon Sep 17 00:00:00 2001 From: Aneurin Barker Snook Date: Fri, 4 Sep 2026 23:51:06 +0100 Subject: [PATCH] Add a dedicated card view; make card text no longer inline-editable Clicking a card -- in the "all tasks" list, a kanban column, or the inbox -- now opens /cards/:id instead of editing the text in place: - CardRow's text is now plain (its RouterLink wraps the text + status badge; the delete button stays a sibling so it isn't nested inside the link). KanbanCard is now itself a RouterLink. - New CardView.vue: header follows the project view's layout, but the back link sits inline inside the title (before the card's text) rather than off in the actions corner, since it isn't paired with a manage menu here. Inbox cards have no project to link back to, so they go to the dashboard instead. Below the header, an "Edit text" section (styled like the project rename form) replaces the inline editing that used to live in the list row, and a delete button in the header actions replaces CardRow's per-row delete for cards reached via kanban/inbox (which never had one). - No backend changes: GET/PATCH/DELETE /cards/{id} already existed. - Renamed .card-row__status to the more general .status-badge, now shared by the list row and the card view. - cards store: dropped setText, now unused now that editing goes through a direct PATCH + store refresh in CardView instead. Co-Authored-By: Claude Sonnet 5 --- web/src/components/CardRow.vue | 44 ++------- web/src/components/KanbanCard.vue | 2 +- web/src/router/index.ts | 6 ++ web/src/stores/cards.ts | 2 - web/src/style.css | 76 ++++++++++------ web/src/views/CardView.vue | 146 ++++++++++++++++++++++++++++++ web/src/views/ProjectView.vue | 1 - 7 files changed, 211 insertions(+), 66 deletions(-) create mode 100644 web/src/views/CardView.vue diff --git a/web/src/components/CardRow.vue b/web/src/components/CardRow.vue index 24dcc39..a276292 100644 --- a/web/src/components/CardRow.vue +++ b/web/src/components/CardRow.vue @@ -1,46 +1,18 @@