From 15b903f1af178ed529b7f9c72f52be92aac0b676 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Fri, 16 Jan 2026 16:28:06 -0700 Subject: [PATCH] Adding manual entries + UI cleanup --- src/components/Avatar.astro | 15 ++ src/components/ManualEntry.vue | 369 +++++++++++++++++++++++++++ src/components/Timer.vue | 26 +- src/db/schema.ts | 1 + src/layouts/DashboardLayout.astro | 61 +++-- src/layouts/Layout.astro | 2 + src/pages/admin/index.astro | 17 +- src/pages/api/time-entries/manual.ts | 195 ++++++++++++++ src/pages/api/time-entries/start.ts | 64 +++-- src/pages/dashboard/team.astro | 7 +- src/pages/dashboard/tracker.astro | 193 +++++++++----- src/styles/theme.ts | 2 +- 12 files changed, 817 insertions(+), 135 deletions(-) create mode 100644 src/components/Avatar.astro create mode 100644 src/components/ManualEntry.vue create mode 100644 src/pages/api/time-entries/manual.ts diff --git a/src/components/Avatar.astro b/src/components/Avatar.astro new file mode 100644 index 0000000..e8c90d2 --- /dev/null +++ b/src/components/Avatar.astro @@ -0,0 +1,15 @@ +--- +interface Props { + name: string; + class?: string; +} + +const { name, class: className } = Astro.props; +const initial = name ? name.charAt(0).toUpperCase() : '?'; +--- + +
+
+ {initial} +
+
diff --git a/src/components/ManualEntry.vue b/src/components/ManualEntry.vue new file mode 100644 index 0000000..219db6c --- /dev/null +++ b/src/components/ManualEntry.vue @@ -0,0 +1,369 @@ + + + diff --git a/src/components/Timer.vue b/src/components/Timer.vue index fece54d..8b46b48 100644 --- a/src/components/Timer.vue +++ b/src/components/Timer.vue @@ -127,7 +127,9 @@ async function stopTimer() {