Move business logic out of App Router into module packages, add boundary validation scripts, and keep all routes as thin re-exports without changing URLs or API behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
689 B
Markdown
28 lines
689 B
Markdown
# `shared/providers/`
|
|
|
|
## Purpose
|
|
|
|
Top-level React providers composed in the root layout.
|
|
|
|
## Legacy source (not moved)
|
|
|
|
- `components/providers/AppProviders.tsx` — TanStack Query + Sonner
|
|
- `components/providers/ColorModeProvider.tsx` — light/dark context
|
|
- `components/ThemeProvider.tsx` — white-label loader
|
|
|
|
## Provider stack (current)
|
|
|
|
```
|
|
ThemeProvider → ColorModeProvider → AppProviders → app content
|
|
```
|
|
|
|
## Planned contents
|
|
|
|
- `AppProviders` — query client, toasts
|
|
- `ColorModeProvider` — theme mode
|
|
- Future: optional `FeatureFlagProvider`, `I18nProvider`
|
|
|
|
## Status
|
|
|
|
📁 Scaffold only — providers remain in `components/providers/`.
|