notes and lists
pockist docs todo.md
20 kB · 227 lines
Markdown
at main

Pockist Project TODO #

Active (Max 3) #

[x] Fix showError() alert-modal missing — error display is unreliable #

[ ] Add coordinate validation to weather_handler.go (invalid lat/lon cached 20min) #

[ ] Fix ShareView passing 3 args to DialogService.confirm (3rd arg ignored) #

Next Up #

Backlog - Bugs #

Backlog - Security #

Backlog - Auth Project (On Hold, finish in the next month) #

All auth-related work is consolidated here pending a decision to either wire up auth or remove dead code.

Backlog - Tech Debt #

Backlog - Features #

Future - Features #

Won't Do #

Recently Completed #

    1. Option B (root cause): Removed child ref from listItem.items in _archiveItem, added legacy cleanup in _loadCurrentList. Broke restore — archived items became orphans.
    2. Option A (workaround): Reverted to keeping refs in listItem.items. Added _pruneArchivedRefs() helper to strip dead refs before every reorder/move/sort/add/duplicate/archive operation. Fixed immediate reordering but stale _currentListItem caused issues after archive without refresh.
    3. Path 2 (proper fix): Added parentListId tracking. DBManager.archiveItem(id, parentListId) stores item.meta.parentListId. ArchivePage restore reads it and re-adds the ref to the parent list. Works even if the ref was pruned from the DB by later mutations.
    • See docs/parent-list-tracking.md for full documentation.

v11 Schema Migration — parentId + Compound Index Breakdown #

Goal #

Eliminate N+1 queries and list.items[] by moving child relationships to a top-level parentId + order on item records, queried via a compound IndexedDB index ['parentId', 'order'].

Phase 1: Schema & Migration (~2 hrs) #

Phase 2: DBManager Core Rewrite (~4-6 hrs) #

Phase 3: Component Updates (~4-6 hrs) #

Phase 4: Import, Export & Sharing (~3-4 hrs) #

Phase 5: Cleanup & Docs (~2 hrs) #