kovakmedya 8a7742af1b feat(dashboard): personalized header + reuse dashboard-2 components
- /dashboard now a server component:
  * fetches active user + active tenant settings via getActiveContext()
  * redirects to /onboarding if user has no tenant yet
  * header shows companyName + 'Hoş geldiniz, {firstName}' + Turkish description
- Body reuses dashboard-2 components (Metrics/Sales/Revenue/Transactions/
  TopProducts/CustomerInsights/QuickActions). Mock data for now; will be
  swapped for live Appwrite queries as modules ship.
- New lib/appwrite/active-context.ts: getActiveContext() returns
  { user, tenantId, settings } for any server component / action.
- Made schema.ts SDK-agnostic by replacing Models.Document import with a
  local SystemRow type ({ $id, $createdAt, $updatedAt, $permissions, ... }).
  Avoids type clashes between appwrite (browser) and node-appwrite (server).
2026-04-30 03:33:53 +03:00
S
Description
No description provided
5.2 MiB
Languages
TypeScript 99.5%
CSS 0.5%