From d6c7fde40cdb2d82eec343a31c6b1b326e53cb5e Mon Sep 17 00:00:00 2001 From: mohamad Date: Sat, 7 Jun 2025 16:50:39 +0200 Subject: [PATCH] Refactor ChoresPage and GroupDetailPage for improved UI and functionality - Enhanced the ChoresPage by refining button attributes for accessibility and improving layout consistency. - Updated the GroupDetailPage to include a more interactive member avatar list and streamlined invite member functionality. - Introduced new styles for better visual hierarchy and user experience across both pages. - Implemented click-outside functionality for member menus and invite UI to enhance usability. --- fe/src/pages/ChoresPage.vue | 76 ++++++----- fe/src/pages/GroupDetailPage.vue | 217 ++++++++++++++++++++++++++----- 2 files changed, 227 insertions(+), 66 deletions(-) diff --git a/fe/src/pages/ChoresPage.vue b/fe/src/pages/ChoresPage.vue index f984162..5a35f83 100644 --- a/fe/src/pages/ChoresPage.vue +++ b/fe/src/pages/ChoresPage.vue @@ -36,12 +36,14 @@
@@ -86,7 +88,8 @@
{{ day.date.getDate() }}
@@ -123,7 +126,8 @@

{{ chore.name }}

- {{ chore.type === 'personal' ? t('choresPage.listView.choreTypePersonal') : getGroupName(chore.group_id) || t('choresPage.listView.choreTypeGroupFallback') }} + {{ chore.type === 'personal' ? t('choresPage.listView.choreTypePersonal') : + getGroupName(chore.group_id) || t('choresPage.listView.choreTypeGroupFallback') }} {{ formatFrequency(chore.frequency) }} @@ -137,7 +141,8 @@
check_circle_outline - {{ t('choresPage.listView.completedDatePrefix') }} {{ formatDate(chore.completed_at || chore.next_due_date) }} + {{ t('choresPage.listView.completedDatePrefix') }} {{ formatDate(chore.completed_at || + chore.next_due_date) }}
{{ chore.description }} @@ -153,11 +158,14 @@ :title="t('choresPage.listView.actions.undoTitle')"> undo {{ t('choresPage.listView.actions.undoText') }} - - +
@@ -178,17 +187,19 @@ aria-modal="true" :aria-labelledby="isEditing ? 'editChoreModalTitle' : 'newChoreModalTitle'">