Files
taskplaner/src/lib/stores/preferences.svelte.ts
Thomas Richter ed6659f266 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>
2026-01-29 11:06:19 +01:00

7 lines
193 B
TypeScript

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