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:
Till JS 2026-04-02 14:25:31 +02:00
parent de8335277a
commit 934f3337e3
7 changed files with 548 additions and 3 deletions

View 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';