feat(lists): drag tasks and list entries onto another list; remember open list and view; live pill in lists
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 2m3s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sandrodachandClaude Opus 5.5 committed 2026-10-31 10:01:41 +01:00
1 parent 6abcfa655b
commit 25bb787a8e
13 files changed
+298 -52

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
// View state for this browser tab that survives switching between the app's tabs (the views
// remount), like the workspace's open note: which list was open, list or Kanban view
const PREFIX = 'mindsift_view:';
export function readViewSession<T extends object>(view: string): Partial<T> {
try {
const raw = JSON.parse(sessionStorage.getItem(PREFIX + view) || '{}');
return raw && typeof raw === 'object' ? raw : {};
} catch {
return {};
}
}
export function writeViewSession<T extends object>(view: string, state: T) {
try {
sessionStorage.setItem(PREFIX + view, JSON.stringify(state));
} catch {
// storage blocked: the view simply starts fresh
}
}