local-items-in-storage #5

Merged
joexo merged 4 commits from local-items-in-storage into main 2026-11-12 15:15:35 +00:00
Owner
No description provided.
app.model.items now parses localStorage on every read and stores on
every assignment, with the demo list when nothing is kept yet; main.js
reads and writes it only through the model. A read makes new objects,
so local items get ids, to be found by across reads as online ones are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
commit() and showList() take the list they already have, each change
passes the one it read as it began, and the tick hands its list to
resort(). Online, a change still ends on the database's list once it
has answered. A reload now reads the list twice to draw the page, and
once per tick.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every app on the pages host shares one localStorage, and app:items is
the name any triad app would pick. A list kept under it moves over on
the first read, and the old key goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joexo merged commit 3402f9d5c8 into main 2026-11-12 15:15:35 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
joexo/myday!5
No description provided.