From 5cb13862ef0cf908e37808bfbcda5722a6686757 Mon Sep 17 00:00:00 2001 From: mohamad Date: Sun, 1 Jun 2025 22:00:11 +0200 Subject: [PATCH] Enhance ChoresPage accessibility and functionality - Added ARIA roles and attributes to buttons and modals for improved accessibility. - Updated chore types and properties in the Chore interface to allow for null values. - Refactored chore loading and filtering logic to handle edge cases and improve performance. - Enhanced calendar and list views with better user feedback for empty states and loading indicators. - Improved styling for mobile responsiveness and dark mode support. These changes aim to enhance user experience, accessibility, and maintainability of the ChoresPage component. --- fe/src/pages/ChoresPage.vue | 1513 +++++++++++++++++++++++++---------- fe/src/types/chore.ts | 37 +- 2 files changed, 1085 insertions(+), 465 deletions(-) diff --git a/fe/src/pages/ChoresPage.vue b/fe/src/pages/ChoresPage.vue index c4603db..8019483 100644 --- a/fe/src/pages/ChoresPage.vue +++ b/fe/src/pages/ChoresPage.vue @@ -3,31 +3,31 @@

Chores

-
+
@@ -36,19 +36,20 @@
-
@@ -62,43 +63,56 @@
-

{{ currentMonthYear }}

-
-
-
-
{{ day }}
-
-
-
-
- {{ day.date.getDate() }} -
+
-
-
-
-
- {{ chore.name }} +
+
+
+
{{ day }}
+
+
+
+
+ {{ day.date.getDate() }} + +
+
+
+
+ {{ chore.name }} +
+
+ +
+
+ calendar_today +

No chores to display for this period.

+
-
+
@@ -139,24 +153,35 @@ title="Mark as Not Done"> undo Undo - -
+
+ Rtask_alt +

No chores in this view. Well done!

+ +
-