diff --git a/Provider/frontend/src/App.svelte b/Provider/frontend/src/App.svelte index c287fa9..366bf2f 100644 --- a/Provider/frontend/src/App.svelte +++ b/Provider/frontend/src/App.svelte @@ -144,7 +144,7 @@
-

Calendink Provider 🚀🚀👑

+

Calendink Provider 🚀👑🥸

ESP32-S3 System Dashboard v{__APP_VERSION__}

@@ -175,6 +175,39 @@ {#if currentView === 'dashboard'} + + + {#if upcomingData.users.length > 0} +
+
+

+ 📋 Upcoming Tasks +

+
+
+ {#each upcomingData.users as user} +
+

{user.name}

+ {#if user.tasks.length === 0} +

No pending tasks

+ {:else} +
+ {#each user.tasks as task} +
+ + {formatRelativeDate(task.due_date)} + + {task.title} +
+ {/each} +
+ {/if} +
+ {/each} +
+
+ {/if} +
@@ -285,38 +318,6 @@
- - {#if upcomingData.users.length > 0} -
-
-

- 📋 Upcoming Tasks -

-
-
- {#each upcomingData.users as user} -
-

{user.name}

- {#if user.tasks.length === 0} -

No pending tasks

- {:else} -
- {#each user.tasks as task} -
- - {formatRelativeDate(task.due_date)} - - {task.title} -
- {/each} -
- {/if} -
- {/each} -
-
- {/if} - {:else if currentView === 'tasks'}
diff --git a/Provider/frontend/src/lib/Sidebar.svelte b/Provider/frontend/src/lib/Sidebar.svelte index b2f402b..07e63ee 100644 --- a/Provider/frontend/src/lib/Sidebar.svelte +++ b/Provider/frontend/src/lib/Sidebar.svelte @@ -1,6 +1,6 @@