From 9d08b7fcfe64b2ca75335f570171dc4bb590aa84 Mon Sep 17 00:00:00 2001 From: Mohamad Date: Tue, 24 Jun 2025 16:35:32 +0200 Subject: [PATCH] feat: Enhance ListsPage with action menu for list management This commit introduces a new action menu for managing lists on the ListsPage, allowing users to archive, unarchive, or delete lists directly from the UI. Key updates include: - Implementation of a dropdown menu for list actions, triggered by a button in the list header. - Addition of functions to handle archiving, unarchiving, and deleting lists, with confirmation prompts for deletion. - Refactoring of the layout to improve responsiveness and user experience, including updates to CSS grid properties. These changes aim to streamline list management and enhance user interaction within the application. --- fe/src/pages/ListsPage.vue | 152 ++++++++++++++++++++++++++++++++----- 1 file changed, 135 insertions(+), 17 deletions(-) diff --git a/fe/src/pages/ListsPage.vue b/fe/src/pages/ListsPage.vue index 087af35..b223eb6 100644 --- a/fe/src/pages/ListsPage.vue +++ b/fe/src/pages/ListsPage.vue @@ -29,14 +29,25 @@
+ @touchend.passive="handleTouchEnd" @touchcancel.passive="handleTouchEnd" :data-list-id="list.id" + :ref="el => setListCardRef(el, list.id)">
{{ list.name }} - +
+ ... +
+
    +
  • + + {{ list.archived_at ? 'Unarchive' : 'Archive' }} +
  • +
  • + + Delete +
  • +
+
+
{{ list.description || t('listsPage.noDescription') }}