From 371c1e46182d8f04012401baad0e9105bc897c8a Mon Sep 17 00:00:00 2001 From: Avery Felts Date: Sun, 1 Feb 2026 22:41:33 -0700 Subject: [PATCH] Restructure desktop dashboard layout - Separate desktop and mobile layouts completely - Desktop: Mood+Plan, Calendar, Achievements+Health, Savings+Stats - Mobile: Keep original 4-slide swipe layout unchanged --- src/components/Dashboard.tsx | 86 +++++++++++++++++++++++++++++++----- 1 file changed, 75 insertions(+), 11 deletions(-) diff --git a/src/components/Dashboard.tsx b/src/components/Dashboard.tsx index ecaa87e..a99f089 100644 --- a/src/components/Dashboard.tsx +++ b/src/components/Dashboard.tsx @@ -365,21 +365,85 @@ export function Dashboard({ user }: DashboardProps) { )} - {/* SECTION: Mobile Swipe Ecosystem */} + {/* DESKTOP LAYOUT - Hidden on mobile */} +
+ {/* Row 1: Mood + Quit Plan */} +
+ + +
+ + {/* Row 2: Calendar/Quote */} +
+ { + const updatedPrefs = { ...preferences, religion }; + setPreferences(updatedPrefs); + await savePreferencesAsync(updatedPrefs); + }} + preferences={preferences} + onPreferencesUpdate={async (updatedPrefs: UserPreferences) => { + await savePreferencesAsync(updatedPrefs); + setPreferences(updatedPrefs); + }} + /> +
+ + {/* Row 3: Achievements + Health Recovery */} +
+ + +
+ + {/* Row 4: Savings + Stats */} +
+ +
+ + +
+
+
+ + {/* MOBILE SWIPE LAYOUT - Hidden on desktop */}
{/* SLIDE 1: Mindset (Mood & Personalized Plan) */}
-
+

Daily Mindset

-
+
- {/* Unified Quit Plan Placard */} -
+

Usage & Recovery

-
+
@@ -409,10 +473,10 @@ export function Dashboard({ user }: DashboardProps) { {/* SLIDE 3: Achievements & Money (Insights) */}
-
+

Achievements & Savings

-
+
{/* SLIDE 4: Calendar */} -
-
+
+

Usage Calendar