diff --git a/src/App.tsx b/src/App.tsx index f50912e..fcfc88c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,11 +3,9 @@ import { Activity, AlertTriangle, CalendarDays, - CheckCircle2, ChevronRight, Cloud, Command, - Database, Edit3, FileJson, FileSpreadsheet, @@ -26,7 +24,6 @@ import { RotateCcw, Search, Settings2, - ShieldCheck, Sparkles, TimerReset, Trash2, @@ -693,17 +690,9 @@ function App() { void exportExcel()} - onImportExcel={() => excelFileInputRef.current?.click()} - onOpenSettings={() => setActiveView("settings")} - onRefresh={() => void refreshEntries(user.$id)} /> @@ -929,93 +918,83 @@ function AuthView({ return (
-
-
-
-
-

- Red Bull Tracker App -

-

- Soft Material You intake tracking with Appwrite authentication, device sync, and polished Excel exports. -

-
- - - -
- {setupStatus.state !== "ok" && ( -
- {setupStatus.message} -
- )} -
- -
-
- - +
+
+
+

Red Bull Tracker

+

Track intake, sync across devices.

-
- {mode === "signup" && ( - - )} - - - - {authError && ( -
- {authError} +
+ {setupStatus.state !== "ok" && ( +
+ {setupStatus.message}
)} - - +
+ + +
-
- - OAuth - -
+
+ {mode === "signup" && ( + + )} + + -
- - + {authError && ( +
+ {authError} +
+ )} + + + + +
+ + or + +
+ +
+ + +
-
+
); @@ -1193,29 +1172,13 @@ function MobileNav({ activeView, onChange }: { activeView: AppView; onChange: (v } function TopBar({ - activeTheme, activeView, actionLoading, - dataLoading, - entries, - user, onAdd, - onExportExcel, - onImportExcel, - onOpenSettings, - onRefresh, }: { - activeTheme: AppTheme; activeView: AppView; actionLoading: string | null; - dataLoading: boolean; - entries: RedBullEntry[]; - user: AuthUser; onAdd: () => void; - onExportExcel: () => void; - onImportExcel: () => void; - onOpenSettings: () => void; - onRefresh: () => void; }) { const activeItem = NAV_ITEMS.find((item) => item.id === activeView) ?? NAV_ITEMS[0]; const title = activeItem.label; @@ -1226,8 +1189,6 @@ function TopBar({ month: "long", }).format(new Date()); - const [showActions, setShowActions] = useState(false); - return (
@@ -1240,86 +1201,13 @@ function TopBar({

{title}

- -
- {user.email || "Synced user"} - -
-
- - - -
- - {/* Desktop actions (shown on md and up) */} -
- - - -
- - {/* Mobile actions tray (collapsible dropdown style) */} - - {showActions && ( - - - - - - )} - +
); @@ -2144,6 +2032,10 @@ function SettingsView({
+