veza/apps/web/src/components
senke 8e9ee2f3a5 fix: stabilize builds, tests, and lint across all stacks
Complete stabilization pass bringing all 3 stacks to green:

Frontend (apps/web/):
- Fix TypeScript nullability in useSeason.ts, useTimeOfDay.ts hooks
- Disable no-undef in ESLint config (TypeScript handles it; JSX misidentified)
- Rename 306 story imports from @storybook/react to @storybook/react-vite
- Fix conditional hook call in useMediaQuery.ts useIsTablet
- Move useQuery to top of LoginPage.tsx component
- Remove useless try/catch in GearFormModal.tsx
- Fix stale closure in ResetPasswordPage.tsx handleChange
- Make Storybook decorators (withRouter, withQueryClient, withToast, withAudio)
  no-ops since global StorybookDecorator already provides these — prevents
  nested Router / duplicate provider crashes in vitest-browser
- Fix nested MemoryRouter in 3 page stories (TrackDetail, PlaylistDetail, UserProfile)
- Update i18n initialization in test setup (await init before changeLanguage)
- Update ~30 test assertions from English to French to match i18n translations
- Update test assertions to match SUMI V3 design changes (shadow vs border)
- Fix remaining story type errors (PlayerError, PlaylistBatchActions,
  TrackFilters, VirtualizedChatMessages)

Backend (veza-backend-api/):
- Fix response_test.go RespondWithAppError signature (2 args, not 3)
- Fix TestErrorContractAuthEndpoints expected error codes
  (ErrCodeUnauthorized vs ErrCodeInvalidCredentials)
- Fix TestTrackHandler_GetTrackLikes_Success missing auth middleware setup
- Fix TestPlaybackAnalyticsService_GetTrackStats k-anonymity threshold
  (needs 5 unique users, not 1)
- Replace NOW() PostgreSQL function with time.Now() parameter in marketplace
  service for SQLite test compatibility
- Add missing AutoMigrate entries in marketplace_test.go
  (ProductImage, ProductPreview, ProductLicense, ProductReview)

Results:
- Frontend TypeCheck: 617 errors -> 0 errors
- Frontend ESLint: 349 errors -> 0 errors
- Frontend Vitest: 196 failing tests -> 1 skipped (3396/3397 passing)
- Backend go vet: 1 error -> 0 errors
- Backend tests: 5 failing -> all 13 packages passing
- Rust: 150/150 tests passing (unchanged)
- Storybook audit: 0 errors across 1244 stories

Triage report: docs/TRIAGE_REPORT.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 16:48:07 +02:00
..
admin fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
analytics fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
auth fix(security): protect admin routes with role check 2026-04-05 16:19:16 +02:00
base refactor: Phase 1 — SUMI token foundation 2026-02-12 01:48:01 +01:00
charts chore: enable noUncheckedIndexedAccess, isolate ghost MSW handlers, document go-clamd tech debt 2026-02-12 23:12:35 +01:00
commerce fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
dashboard fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
data fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
demo feat(ui): add SUMI design system components, seasonal hooks, and i18n updates 2026-03-31 19:15:54 +02:00
developer fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
feedback fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
filters fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
forms fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
icons fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
inventory fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
keyboard refactor: Phase 3a — Global color class migration to SUMI semantics 2026-02-12 01:51:49 +01:00
layout fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
library fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
live fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
marketplace fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
modals fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
monitoring fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
navigation fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
notifications fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
player fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
pwa fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
search fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
seller fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
settings fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
share fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
social fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
sumi fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
theme fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
ui fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
upload fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
user fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
AdvancedFilters.tsx fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
BulkModeBanner.tsx fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
COMPONENT_USAGE.md docs: update Welcome.mdx and deprecate Kodo references in docs 2026-02-17 17:05:33 +01:00
ErrorBoundary.stories.tsx fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
ErrorBoundary.test.tsx fix(a11y): fix heading hierarchy h1→h3 gaps on 8 pages 2026-03-25 10:14:18 +01:00
ErrorBoundary.tsx improving UI: adding API doc to Developer Page 2026-01-26 14:12:17 +01:00
index.ts incus deployement fully implemented, Makefile updated and make fmt ran 2026-01-13 19:47:57 +01:00
OfflineIndicator.stories.tsx fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
OfflineIndicator.tsx fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
OfflineQueueManager.tsx fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
Onboarding.tsx chore: enable noUncheckedIndexedAccess, isolate ghost MSW handlers, document go-clamd tech debt 2026-02-12 23:12:35 +01:00
RateLimitIndicator.tsx refactor(tokens): complete design token migration to semantic system 2026-02-09 23:05:09 +01:00
types.ts incus deployement fully implemented, Makefile updated and make fmt ran 2026-01-13 19:47:57 +01:00