From 94dbd18946f86285b6ddacf93c11160f7bad7eb8 Mon Sep 17 00:00:00 2001 From: masongga Date: Sat, 23 May 2026 16:47:42 -0600 Subject: [PATCH] setting up test functionality --- app/(app)/avatar/page.tsx | 108 +------ app/(app)/daily/quiz/page.tsx | 56 ---- app/(app)/layout.tsx | 2 +- app/(app)/profile/page.tsx | 62 +--- app/daily/quiz/page.tsx | 13 + app/habits/page.tsx | 13 + app/layout.tsx | 5 +- app/page.tsx | 2 +- components/avatar/avatar-status-card.tsx | 78 +++++ components/avatar/pixel-avatar.tsx | 3 +- components/daily-quiz/daily-quiz-form.tsx | 185 ++++++++++++ .../daily-quiz/daily-quiz-link-button.tsx | 32 +++ components/daily-quiz/wellness-slider.tsx | 51 ++++ components/habits/habit-tracker.tsx | 272 ++++++++++++++++++ components/layout/app-auth-gate.tsx | 5 +- components/layout/app-nav.tsx | 40 ++- components/layout/app-shell.tsx | 5 +- components/layout/global-bottom-nav.tsx | 7 + .../profile/profile-preferences-form.tsx | 166 +++++++++++ lib/app-events.ts | 9 + lib/avatar-state.ts | 97 +++++++ lib/daily-quiz-storage.ts | 74 +++++ lib/daily-tasks.ts | 111 +++++++ lib/habit-catalog.ts | 77 +++++ lib/habits-storage.ts | 135 +++++++++ lib/profile-preferences-storage.ts | 52 ++++ lib/routes.ts | 21 +- 27 files changed, 1451 insertions(+), 230 deletions(-) delete mode 100644 app/(app)/daily/quiz/page.tsx create mode 100644 app/daily/quiz/page.tsx create mode 100644 app/habits/page.tsx create mode 100644 components/avatar/avatar-status-card.tsx create mode 100644 components/daily-quiz/daily-quiz-form.tsx create mode 100644 components/daily-quiz/daily-quiz-link-button.tsx create mode 100644 components/daily-quiz/wellness-slider.tsx create mode 100644 components/habits/habit-tracker.tsx create mode 100644 components/layout/global-bottom-nav.tsx create mode 100644 components/profile/profile-preferences-form.tsx create mode 100644 lib/app-events.ts create mode 100644 lib/avatar-state.ts create mode 100644 lib/daily-quiz-storage.ts create mode 100644 lib/daily-tasks.ts create mode 100644 lib/habit-catalog.ts create mode 100644 lib/habits-storage.ts create mode 100644 lib/profile-preferences-storage.ts diff --git a/app/(app)/avatar/page.tsx b/app/(app)/avatar/page.tsx index 06f95a6..da2310a 100644 --- a/app/(app)/avatar/page.tsx +++ b/app/(app)/avatar/page.tsx @@ -1,112 +1,18 @@ -import Link from "next/link"; - -import { PixelAvatar } from "@/components/avatar/pixel-avatar"; +import { AvatarStatusCard } from "@/components/avatar/avatar-status-card"; +import { DailyQuizLinkButton } from "@/components/daily-quiz/daily-quiz-link-button"; +import { HabitTracker } from "@/components/habits/habit-tracker"; import { AppShell } from "@/components/layout/app-shell"; -import { Badge } from "@/components/ui/badge"; -import { Button } from "@/components/ui/button"; -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from "@/components/ui/card"; -import { Checkbox } from "@/components/ui/checkbox"; -import { Label } from "@/components/ui/label"; -import { routes } from "@/lib/routes"; - -const placeholderHabits = [ - { id: "water", label: "Drink water", streak: 3 }, - { id: "walk", label: "Take a walk", streak: 5 }, - { id: "sleep", label: "Sleep 7+ hours", streak: 2 }, -]; export default function AvatarPage() { return (
- - - -

- Your pet reacts to habits, wellness check-ins, and journal entries. -

-
-
- - - - Today's habits - - Custom checkmarks and streak tracking live here. - - - - {placeholderHabits.map((habit) => ( -
-
- - -
- {habit.streak} day streak -
- ))} -
-
- - - - Wellness check-in - Rate how you feel today. - - - {[ - { id: "energy", label: "Energy" }, - { id: "mood", label: "Mood" }, - { id: "stress", label: "Stress" }, - ].map((metric) => ( -
-
- - 5/10 -
- -
- ))} -
-
- - - - Daily journal - - One entry per day to reflect and help your pet grow. - - - -