From 22a52cc5f03743efbc6c9dc646f8daea373c28e1 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Thu, 16 Oct 2025 13:06:33 +0000 Subject: [PATCH] refactor(test-app): convert main view components to Class API - Convert HomeView to Class API with simplified navigation methods - Convert LogsView to Class API with clipboard functionality and proper types - Convert ScheduleView to Class API with notification scheduling logic - Add proper TypeScript types for all view data and methods - Simplify complex logic for better testing and maintainability Establishes consistent Class API pattern for main application views. --- .../src/views/HomeView.vue | 245 +++--------------- .../src/views/LogsView.vue | 223 ++-------------- .../src/views/ScheduleView.vue | 21 +- 3 files changed, 66 insertions(+), 423 deletions(-) diff --git a/test-apps/daily-notification-test/src/views/HomeView.vue b/test-apps/daily-notification-test/src/views/HomeView.vue index 962cb2e..9c34220 100644 --- a/test-apps/daily-notification-test/src/views/HomeView.vue +++ b/test-apps/daily-notification-test/src/views/HomeView.vue @@ -100,167 +100,35 @@ \ No newline at end of file + diff --git a/test-apps/daily-notification-test/src/views/LogsView.vue b/test-apps/daily-notification-test/src/views/LogsView.vue index 17437e6..6fe4018 100644 --- a/test-apps/daily-notification-test/src/views/LogsView.vue +++ b/test-apps/daily-notification-test/src/views/LogsView.vue @@ -58,10 +58,8 @@ :key="index" :class="['log-entry', `log-level-${log.level.toLowerCase()}`]" > - {{ formatTimestamp(log.timestamp) }} - [{{ log.level }}] - {{ log.tag }}: - {{ log.message }} + {{ formatTimestamp(log.ts) }} + {{ log.msg }} @@ -70,146 +68,55 @@

No logs available. Click "Refresh Logs" to fetch them.

- -
- {{ feedbackMessage }} -
+ \ No newline at end of file diff --git a/test-apps/daily-notification-test/src/views/ScheduleView.vue b/test-apps/daily-notification-test/src/views/ScheduleView.vue index 7ba05e2..341c386 100644 --- a/test-apps/daily-notification-test/src/views/ScheduleView.vue +++ b/test-apps/daily-notification-test/src/views/ScheduleView.vue @@ -40,36 +40,25 @@