60 Commits

Author SHA1 Message Date
Avery Felts
c518ad9f34 Fix mood tracker affirmation bug and add dynamic background 2026-01-27 17:59:05 -07:00
Avery Felts
39c8e92f92 Fix duplicate notifications and improve push titles 2026-01-27 17:43:34 -07:00
Avery Felts
c438e4f552 Add iOS PWA Push Notifications technical guide 2026-01-27 17:36:48 -07:00
Avery Felts
cec4096e1f Fix push notifications: Edge runtime compatibility, minute-precision hourly reminders, and timezone sync 2026-01-27 16:47:51 -07:00
Avery Felts
9f0eb9a5bd Add hourly time picker range and update notification logic 2026-01-27 14:26:24 -07:00
Avery Felts
9967399145 Update UserHeader with dropdown time picker and fix imports 2026-01-27 14:23:21 -07:00
Avery Felts
197364e11d Add synthesized bubble pop sound to notifications 2026-01-27 14:18:00 -07:00
Avery Felts
20872c9cc8 Update reminder settings to use dropdown time picker 2026-01-27 14:14:17 -07:00
Avery Felts
1556cf69c6 Fix variable scope error in Dashboard.tsx 2026-01-27 14:09:26 -07:00
Avery Felts
60affa9a77 Fix immediate achievement celebration and reliable notification delivery 2026-01-27 14:05:40 -07:00
Avery Felts
431966a634 feat: add daily/hourly notification frequency and cloudy header effect 2026-01-27 09:31:01 -07:00
Avery Felts
630d88e4bd style: remove solid background to reveal global gradient 2026-01-27 09:19:56 -07:00
Avery Felts
ee59d0088e fix: SmokingAidsPage missing header and navigation 2026-01-27 09:16:03 -07:00
Avery Felts
b28d5a3c98 style: fix herbal tea image not respecting bubble shape by enforcing inner containment 2026-01-27 09:09:56 -07:00
Avery Felts
ba9989b877 style: update product images to use circular (bubble) validation 2026-01-27 09:07:01 -07:00
Avery Felts
f769a79d91 style: update category badges to white background and larger size 2026-01-27 09:04:10 -07:00
Avery Felts
211d388017 style: fix hover state to use full-card gradient instead of clipped corner 2026-01-27 09:00:53 -07:00
Avery Felts
9ed0bfb81d feat: add ui badge component 2026-01-27 08:54:07 -07:00
Avery Felts
14126837df style: modernize smoking aids page with better mobile layout and card design 2026-01-27 08:51:44 -07:00
Avery Felts
876da1c80b fix: remove prisma.config.ts causing build error 2026-01-27 08:44:32 -07:00
Avery Felts
68898cb8cd feat: Add Smoking Aids page with Amazon affiliate products and update navigation 2026-01-27 08:41:14 -07:00
Avery Felts
4028700268 Optimize calendar: remove header text, style nav buttons 2026-01-25 19:35:11 -07:00
Avery Felts
fee5c91958 Optimize usage calendar for mobile: fluid width, remove borders, adjust padding 2026-01-25 19:23:42 -07:00
Avery Felts
10dd95be60 style: Refine mobile calendar fit and padding 2026-01-25 19:12:24 -07:00
Avery Felts
b78640bffb style: Maximize usage calendar on mobile (full bleed) 2026-01-25 18:57:29 -07:00
Avery Felts
71c241b7c1 style: Fix desktop calendar layout and add clean mobile border 2026-01-25 18:53:03 -07:00
Avery Felts
632ccd2cc4 style: Improve usage calendar sizing on mobile devices 2026-01-25 18:40:38 -07:00
Avery Felts
29c11fcaa5 feat: Add PWA auto-prompt and header edge blur effect
- Usage prompt auto-shows when app accessed as home screen shortcut (PWA mode)
- Added blur gradient overlay below header for smooth scroll fade effect
2026-01-25 18:27:02 -07:00
Avery Felts
7dd5e6359a feat: Remove Muslim and Jewish options, keep only Christian (KJV) and Secular quotes 2026-01-25 18:18:35 -07:00
Avery Felts
bf9da84553 fix: Replace Prisma with native D1 and fix timezone issues
- Created native D1 database layer (src/lib/d1.ts) to bypass Prisma fs.readdir issues
- Updated all API routes to use direct D1 queries
- Added date-utils.ts with local date helpers to fix UTC timezone mismatch
- Calendar now correctly colors today's usage
- Data persists correctly across page refreshes
2026-01-25 18:10:04 -07:00
Avery Felts
14c45eeb24 feat: Add D1 database integration with proper Cloudflare Workers support
- Update prisma.ts to use getPrismaWithD1() with getCloudflareContext()
- Update all API routes to use async D1 connection
- Add open-next.config.ts for Cloudflare Workers deployment
- Add wrangler.jsonc with D1 binding and custom domain routes
- Fix TypeScript type errors in API routes and storage
- Add @workos-inc/authkit-nextjs dependency
- Remove incompatible prisma.config.ts
2026-01-25 17:21:36 -07:00
Avery Felts
92c710287b chore: update .gitignore to prevent .next duplicates 2026-01-25 16:04:37 -07:00
Avery Felts
9cb176d5a4 Update quit smoking website 2026-01-25 12:30:09 -07:00
Avery Felts
f13bd09bd4 fix: precise timestamp tracking for health timeline 2026-01-25 11:16:32 -07:00
Avery Felts
4ad4bd0884 feat: add daily religious verse placard with user preference support 2026-01-25 10:31:27 -07:00
Avery Felts
8d79f63232 Cleanup header navigation: remove redundant dashboard link from profile menu 2026-01-24 13:20:52 -07:00
Avery Felts
4d65ac0360 Refactor header navigation to hamburger menu 2026-01-24 13:17:23 -07:00
Avery Felts
edfc978217 Optimize performance, fix theme consistency, and improve notification UX 2026-01-24 13:11:43 -07:00
Avery Felts
359908caf5 Style savings dialog with dark green theme and empty default values 2026-01-24 12:29:35 -07:00
Avery Felts
94a4f3adfd Change savings tracking from daily to weekly units for more accurate calculations 2026-01-24 12:11:08 -07:00
Avery Felts
2491c79b0a Improve achievements, move reminders to header, and reset health timeline on usage 2026-01-24 12:00:22 -07:00
Avery Felts
54b7a294f5 Add achievements, health timeline, savings tracker, and reminders features
- Achievements system with 6 badges and confetti celebration animation
- Health recovery timeline showing 9 milestones from 20min to 1 year
- Money savings tracker with cost configuration and goal progress
- Daily reminder notifications with browser permission handling
- New Prisma models: Achievement, ReminderSettings, SavingsConfig
- API routes for all new features
- Full dashboard integration with staggered animations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 11:38:46 -07:00
Avery Felts
45bcad9788 Add UI polish: animations, mobile responsiveness, and visual enhancements
- Update daily quotes to 36 curated motivational quotes from notable figures
- Add entrance animations (fade-in, slide-in, scale-in) with staggered delays
- Add hover effects on cards and buttons with smooth transitions
- Improve mobile responsiveness: stacking layouts, responsive text, touch targets
- Enhance glassmorphism with stronger blur and gradient orbs on cards
- Add gradient logo for QuitTraq branding
- Improve quote section with decorative elements and inner glow
- Refine streak celebrations and weekly target indicators
- Update background with multiple color gradient spots

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 11:18:38 -07:00
Avery Felts
fac443c281 Add dark/light theme toggle with adaptive styling
Implement theme context provider with localStorage persistence and add
toggle button to header. Update Dashboard, StatsCard, QuitPlanCard,
SubstanceTrackingPage, and UsageCalendar components with theme-aware
gradients and colors. Also add daily inspirational quotes to calendar
and fix usage prompt to only show once per day.
2026-01-24 03:17:09 -07:00
Avery Felts
ec0d83586d Add QuitPlanCard with 7-day tracking and personalized quit plan
- Restore QuitPlanCard component under calendar on dashboard
- Yellow gradient during tracking phase (before 7 days of data)
- Pink gradient when quit plan is active
- Track unique days with logged data for countdown
- Generate 4-week plan with 25% weekly reduction
- White text throughout for readability

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 01:45:59 -07:00
Avery Felts
26e64ac572 Brighten stats card background gradients
- Increased gradient opacity from 5% to 20%
- Added secondary gradient color for depth
- Slightly increased border opacity

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 01:39:51 -07:00
Avery Felts
f82c88f892 Change header banner to black/dark blue gradient
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 01:38:42 -07:00
Avery Felts
85cdf95174 Add dynamic status messages and improve UI styling
- Add today's status message on tracking pages:
  - "Great job, nothing yet!" when no usage logged
  - "{count} recorded, you got this!" when usage exists
- Increase Log Usage button size (h-16, px-8, text-lg)
- Add drop shadows to:
  - Log Usage floating button
  - Calendar card
  - Stats cards
  - Trend graph card
  - Substance header on tracking pages

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 01:36:50 -07:00
Avery Felts
6f887fbcda Update calendar colors: light blue for no usage, gold for today
- Days with no tracking now show light blue gradient
- Current day (today) shows light gold gradient when no usage
- Gold ring around today for visibility
- Today shows substance colors if usage is logged
- Updated legend to include Today indicator

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 01:28:41 -07:00
Avery Felts
d07e1bc8fb Fix stats boxes to use dark transparent background with white text
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 01:26:37 -07:00