From 767eae7f19426cecb1cee33ca52fb48fbc050f2d Mon Sep 17 00:00:00 2001 From: Addison Emig Date: Fri, 17 Oct 2025 14:16:22 -0400 Subject: [PATCH 1/4] feat: history --- app/specs/63-experimental-daily-count-ui.md | 12 +- app/src/lib/utils.ts | 2 +- app/src/views/DailyCountsHistoryView.vue | 206 +++++++++++++++++++- 3 files changed, 210 insertions(+), 10 deletions(-) diff --git a/app/specs/63-experimental-daily-count-ui.md b/app/specs/63-experimental-daily-count-ui.md index c0105c1..c4f3571 100644 --- a/app/specs/63-experimental-daily-count-ui.md +++ b/app/specs/63-experimental-daily-count-ui.md @@ -36,9 +36,9 @@ Instead of inputting each individual bin, allow the user to input the daily coun - [x] Picker - [x] Daily count - [x] Weekly count -- [ ] `DailyCountsHistoryView` should be the same as `BinsHistoryView`, but instead should: - - [ ] Display the list of send daily count messages, with: - - [ ] Picker - - [ ] Count - - [ ] Timestamp - - [ ] Send status +- [x] `DailyCountsHistoryView` should be the same as `BinsHistoryView`, but instead should: + - [x] Display the list of send daily count messages, with: + - [x] Picker + - [x] Count + - [x] Timestamp + - [x] Send status diff --git a/app/src/lib/utils.ts b/app/src/lib/utils.ts index 4b5c182..6434b09 100644 --- a/app/src/lib/utils.ts +++ b/app/src/lib/utils.ts @@ -5,7 +5,7 @@ import type { Picker } from '@/models/picker' // Second number is month // Third number is day // Fourth number is release index for that day (starts at 0) -export const appVersion = '2025.10.17.4' +export const appVersion = '2025.10.17.5' export const getUserProfile = async () => { const { diff --git a/app/src/views/DailyCountsHistoryView.vue b/app/src/views/DailyCountsHistoryView.vue index bec1dc8..1b5a53a 100644 --- a/app/src/views/DailyCountsHistoryView.vue +++ b/app/src/views/DailyCountsHistoryView.vue @@ -1,7 +1,207 @@ \ No newline at end of file +
+
+ + +
+
+
+ Weekly Counts + {{ weeklyCounts }} +
+
+
+ {{ dayData.day }} + {{ dayData.count }} +
+
+
+ +
+ + + From 118e6e8c6464bf7b34bfec8b03a73c309ecdcf33 Mon Sep 17 00:00:00 2001 From: Addison Emig Date: Fri, 17 Oct 2025 14:23:13 -0400 Subject: [PATCH 2/4] refactor: rename --- app/src/views/DailyCountsHistoryView.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/views/DailyCountsHistoryView.vue b/app/src/views/DailyCountsHistoryView.vue index 1b5a53a..8a0bdf6 100644 --- a/app/src/views/DailyCountsHistoryView.vue +++ b/app/src/views/DailyCountsHistoryView.vue @@ -57,7 +57,7 @@ async function loadPickers() { pickers.value = await getPickers(); } -const weeklyCounts = computed(() => { +const weeklyCount = computed(() => { const today = new Date(); const dayOfWeek = today.getDay(); // 0 for Sunday, 1 for Monday, etc. const diff = dayOfWeek; // Days since Sunday @@ -123,16 +123,16 @@ onMounted(() => {
- Weekly Counts - {{ weeklyCounts }} + Weekly Count + {{ weeklyCount }}
{{ dayData.day }} {{ dayData.count }} From 4a4e001793dc6634500ed04ce8bc57ad59fb6e80 Mon Sep 17 00:00:00 2001 From: Addison Emig Date: Fri, 17 Oct 2025 14:26:24 -0400 Subject: [PATCH 3/4] refactor: use tailwind --- app/src/views/DailyCountsHistoryView.vue | 41 ++++++------------------ 1 file changed, 10 insertions(+), 31 deletions(-) diff --git a/app/src/views/DailyCountsHistoryView.vue b/app/src/views/DailyCountsHistoryView.vue index 8a0bdf6..6a0bcb1 100644 --- a/app/src/views/DailyCountsHistoryView.vue +++ b/app/src/views/DailyCountsHistoryView.vue @@ -139,10 +139,14 @@ onMounted(() => {
-