mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 03:02:12 +02:00
feat(shared-stores): add createViewStore factory for view/filter/sort
Generic factory that eliminates ~110 LOC boilerplate per module for view mode, sort, filters, and saved filter presets with localStorage persistence. Includes 23 tests covering all store operations. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
de8335277a
commit
934f3337e3
7 changed files with 548 additions and 3 deletions
5
packages/shared-stores/src/test/mock-environment.ts
Normal file
5
packages/shared-stores/src/test/mock-environment.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/** Mock for $app/environment — always acts as browser in tests */
|
||||
export const browser = true;
|
||||
export const building = false;
|
||||
export const dev = true;
|
||||
export const version = 'test';
|
||||
Loading…
Add table
Add a link
Reference in a new issue