Commit graph

11 commits

Author SHA1 Message Date
senke
e296e8a88b [FE-TYPE-011] fe-type: Add type safety for stores 2025-12-25 14:54:40 +01:00
senke
db56db5d71 [FE-STATE-010] fe-state: Add state middleware
- Created comprehensive state middleware (stateMiddleware.ts) with:
  * Logging: State change logging with configurable filters
  * Analytics: Event tracking for state changes, actions, errors, performance
  * Error handling: Automatic error capture and reporting
  * Sanitization: Remove sensitive data from logs
  * Performance tracking: Monitor async action durations
- Applied middleware to LibraryStore as example
- Added comprehensive test suite (7 tests, all passing)
- Configurable options for all features
- Global handlers for analytics and errors
2025-12-25 14:14:54 +01:00
senke
7c11f838ad [FE-STATE-009] fe-state: Add state normalization
- Created state normalization utility (stateNormalization.ts) with functions:
  * normalize/denormalize for converting arrays to normalized state
  * addToNormalized, updateInNormalized, removeFromNormalized
  * Helper functions for working with normalized state
- Applied normalization to LibraryStore (items and favorites)
- Updated storeSelectors to convert normalized state to arrays
- Updated DashboardPage components to use new selectors
- Updated tests to work with normalized state structure
- Improved performance with O(1) lookups instead of O(n) array searches
2025-12-25 14:10:14 +01:00
senke
69bfbb26f2 [FE-STATE-007] fe-state: Add state debugging tools 2025-12-25 13:56:53 +01:00
senke
45a090743d [FE-STATE-006] fe-state: Add state undo/redo 2025-12-25 13:51:14 +01:00
senke
2a94e2cab4 [FE-STATE-005] fe-state: Add optimistic state updates 2025-12-25 13:48:32 +01:00
senke
9679b22441 [FE-STATE-001] fe-state: Add state persistence 2025-12-25 13:38:49 +01:00
senke
34f3468c89 fix(MVP-006): Standardize environment variable names (VITE_API_BASE_URL → VITE_API_URL) 2025-12-22 22:56:37 +01:00
senke
eff37efb57 stabilizing apps/web: FIRST BATCH 2025-12-17 08:07:35 -05:00
senke
de191cf0fc refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
okinrev
9fae6aeebc BASE: completing the initial repo state 2025-12-03 22:56:50 +01:00