refactor(auth): consolidate AuthContext to authStore, update Storybook

This commit is contained in:
senke 2026-02-14 22:06:22 +01:00
parent 92f432fb9e
commit 7c7580be4d
4 changed files with 17 additions and 3 deletions

View file

@ -37,6 +37,20 @@ Veza est une **plateforme audio collaborative** de type SaaS (streaming, marketp
| 1.6 | Gitleaks CI | Fait | ci: add gitleaks secret scanning |
| 1.7 | Rapports couverture | Fait | ci(backend): add coverage... |
### Phase 2 — Stabilisation
| # | Action | Statut | Commit |
|---|--------|--------|--------|
| 2.1 | Migration views → features | À faire | - |
| 2.2 | Auth consolidation | Fait | refactor(auth): consolidate... |
| 2.3 | i18n | À faire | - |
| 2.4 | Tests Dashboard, Library, Analytics, Admin | À faire | - |
| 2.5 | Découper handlers.ts MSW | À faire | - |
| 2.6 | Payment provider | Fait | Hyperswitch |
| 2.7 | Network Policies K8s | À faire | - |
| 2.8 | Resource limits HAProxy | À faire | - |
| 2.9 | Nettoyage audit/remediation | À faire | - |
---
## 1. CARTOGRAPHIE GLOBALE

View file

@ -5,7 +5,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { MemoryRouter } from 'react-router-dom';
import { ToastProvider } from '../src/components/feedback/ToastProvider';
import { AudioProvider } from '../src/context/AudioContext';
import { AuthProvider } from '../src/context/AuthContext';
import { AuthProvider } from '../src/providers/AuthProvider';
// Create a singleton query client for Storybook to share cache if needed,
// or one per story. Since decorators run per story, creating it here might

View file

@ -14,7 +14,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { MemoryRouter } from 'react-router-dom';
import { LazyToaster } from '../src/components/feedback/LazyToaster';
import { AudioProvider } from '../src/context/AudioContext';
import { AuthProvider } from '../src/context/AuthContext';
import { AuthProvider } from '../src/providers/AuthProvider';
import { I18nextProvider } from 'react-i18next';
import i18n from '../src/lib/i18n';

View file

@ -53,7 +53,7 @@ Never import application-level providers directly in stories:
```tsx
// BAD — do not do this
import { AuthProvider } from '@/context/AuthContext';
import { AuthProvider } from '@/providers/AuthProvider';
export const MyStory = () => (
<AuthProvider>
<MyComponent />