feat(02-02): add preferences store with svelte-persisted-store

- Install svelte-persisted-store for localStorage persistence
- Create preferences store with lastEntryType and showCompleted
- Sticky type preference across sessions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Richter
2026-01-29 11:06:19 +01:00
parent e28ee2caf5
commit ed6659f266
3 changed files with 20 additions and 12 deletions

View File

@@ -0,0 +1,6 @@
import { persisted } from 'svelte-persisted-store';
export const preferences = persisted('taskplaner-preferences', {
lastEntryType: 'thought' as 'task' | 'thought',
showCompleted: false
});