16 Commits
Author SHA1 Message Date
waozi f1cc5be451 Update Arcade and complete pending Breeze integrations
Pin the latest pushed Arcade source and bundle its complete painted library artwork. Keep games as optional downloads and verify the embedded catalog plus a private launch smoke test.

Include pending profile sync, Telegram settings, Android push reconnection and breathing-control fixes with their tests and translations. Preserve saved design studies, storing their media in Git LFS.
2026-11-03 18:17:04 -03:00
waozi 0e921a0f78 Save custom level collections in shared account records 2026-10-26 01:44:16 -03:00
waozi 6cf048cfee Fix stale sync test baselines and missing test targets 2026-10-24 15:50:01 -03:00
waozi 509f3b58a8 Cover photo entity records in the account restore check
Since 14c57367 an account restore also queues each photo kept in the
account's entity data, an eighteenth kind of record, so CI failed on
the old count. The check now expects it, queues a photo stored under its
64-hex digest, and leaves out other names, unreadable values and another
account's photos.
2026-10-24 03:49:05 -03:00
waozi 061772b8ea Finish Shop sync, app navigation and browser rendering fixes 2026-10-22 08:23:53 -03:00
waozi 7078d432a3 Earn habit coins and spend them in a shop of your own rewards
- Each habit has a difficulty: medium, hard or very hard. A done day earns
  1, 2 or 3 coins from today on; a changed difficulty applies from the day
  it changed. A deleted habit's coins stay.
- The coins and the shop sit on the line with today's count. The shop
  lists rewards with prices you set, and Buy asks first. It stays open
  while sync brings new data.
- Rewards and purchases sync as private records; habits carry their
  difficulty and first coin day, the earliest any device gave.
- Lumi's guide introduces the coins and the shop, narrated in every
  language.
- An installed practice whose pack an update changed stays installed and
  downloads its new pack, instead of leaving Practice. Sun Salutation's
  download and that update are tested.
- Lumi's update message shows a few changelog entries and no link.
2026-10-19 01:30:51 -03:00
waozi 5aaa33eef1 Host verified nested apps and preserve installed leaf metadata 2026-10-18 17:58:13 -03:00
waozi 2d40562dc3 Split the storage core by responsibility
storage_core.zi keeps what every storage module shares: the delegate hooks,
meta values, the sync keys and record-field version, new IDs and change
times. The rest moved unchanged into focused modules:

- storage_settings.zi: settings and cached social snapshots
- storage_json_sql.zi: JSON reads through SQLite
- sync_outbox.zi: queueing local records for the node
- sync_state.zi: the sync account, status, clearing and purging
- sync_migrations.zi: Lumi's collection and the connected-server flag
- sync_record_codec.zi: local rows as record payloads
- sync_collections.zi: collections and record IDs per entity
- sync_record_crypto.zi: record keys, sealing, opening and kept copies
- sync_apply.zi: applying received records
- sync_exchange.zi: the request payload and applying the response
- storage_profile_stats.zi and storage_export_csv.zi

Names, the protocol and the SQL are unchanged. Importing the core still
links every part, as one module did; importers import the parts whose
names they use. StorageSyncStatus moved beside storage_sync_status, so its
generated header no longer depends on an import cycle. The restore SQL test
and its law mutation read sync_outbox.zi, and the sync recovery link test
leaves out the parts it stubs, as it left out the core.
2026-10-17 21:01:19 -03:00
waozi 73142a5c07 Add Photos and the account's media library, copied to every photo node
Photos is a beta app the node offers (inbe.photos, host interface 13): a
gallery of the library's photos newest first under the day each was taken,
a viewer with previous, next and Move to Trash, and Trash, where a photo can
be restored. Add photo opens the desktop file dialog or Android's photo
picker.

The library belongs to the account, so its photos stay when Photos is
removed. The host keeps each photo once by its SHA-256 with an upright JPEG
preview (Kryon ImagePreview), its capture day from Exif, and syncs the
records in their own collection, private.inbe.v1.media, which released
versions skip. Only Photos is granted the media calls (MediaQueryHost,
MediaItemHost, MediaAssetHost, MediaPickHost, MediaStatusHost,
MediaUpdateHost), and hosted apps may draw only this account's library.

Photo bytes travel as the Diary's sealed copies, so the same picture is one
copy per node. The media pass now moves Diary photos and library originals
and previews to every node in the account's list whose photo upload is on,
each on its own media session with the device registered there, and fetches
a copy from the sync node first, then the others. Originals download where
they are opened; previews everywhere. Removing a node forgets its session and
the copies it held. JPEG photos stored sideways now draw upright.

Tests: media library, Exif reader, Photos through the real node-app host,
storage sync of the library and per-node sessions, two clients and two real
Daochi nodes, and a private-display check that adds a camera photo through
the desktop picker.
2026-10-17 07:35:10 -03:00
waozi ca10b83379 Start new installs with Lumi, Habits and Practice and sync apps and pins
A new profile now comes with Lumi, Habits and Practice installed and
pinned in that order on every device; Lists, Diary and Leaderboard wait
in More apps. Existing profiles keep their apps.

A choice nobody made, such as a new profile's apps, is stored at time 1
and never uploaded, so a newly signed-in device takes the account's apps
instead of removing them. The owner's install and remove choices keep
syncing per app in private.inbe.v1.app-preferences.

The pinned apps and their order sync as one record, app_order, in a new
collection private.inbe.v1.app-order that older versions skip. It is sent
only when the owner pins, moves or unpins an app; the newest order wins,
a pending local order wins a tie, and a record this version can't read
changes nothing without stopping the sync. An arriving order sets
app_order_received and the pins take it once, also after a restart. An
app removed on another device is unpinned here too.

Tests: storage sync round trips for app choices and order (defaults
never sent, stale and same-time records, unreadable records), the order
SQL, restore SQL, launcher policy encoding, and updated onboarding,
launcher, startup and Leaderboard UI expectations for the new defaults.
The Data screenshot scene installs Lists, which it opens from. The
Telegram flow fake gains HttpTransferPollLength, which sync_async has
called since c4babc97.
2026-10-17 03:15:51 -03:00
waozi 4e983b3614 Check that a restored account queues its habit changes 2026-10-13 17:14:23 -03:00
waozi 56a5b52c24 Keep habit days as entries: spans, good ranges and Lumi setup
A habit's days now hold entries, several a day. An entry has its time,
or a span's start and end, and its answers. Tapping a day that is done
opens the day's screen, the same screen as a practice's sessions, which
lists its entries to change or delete, ends a running span, and adds
another entry. A habit with questions asks them in the entry dialog;
counting habits open the day's entries from their count dialog.

A habit can measure spans instead of counting, such as a fasting window:
a tap starts the span and the day shows half filled, the next tap ends
it. Number and time questions, yes or no questions and spans can say
what is good: at least, at most or between two values, after, before or
between two times, a yes or a no, or a good length. The habit's
statistics colour each value by its goal, count how many were on target,
draw the goal on the chart, and show spans' average and longest length
and when they started and ended.

Entries sync to the other devices as their own encrypted records, with
deletions; older versions of the app keep a habit's questions and span.
Answers from the build before entries become entries of their days.

Lumi sets a habit's tracking with set_habit_tracking (check, count to a
target, or spans with good lengths) and its questions and good answers
with set_habit_questions; a question that keeps its words keeps its
answers. Her context lists both for each habit.
2026-10-13 14:38:38 -03:00
waozi 4c66473e07 Move Telegram sync into Settings and load Lumi history on scroll 2026-10-07 20:13:18 -03:00
waozi 69e0da10eb Add Lumi app tools and unify cell navigation and sidebar settings 2026-10-06 22:47:06 -03:00
waozi 396a8f917b Add modular apps, signed package updates and synced app choices 2026-10-06 14:37:10 -03:00
waozi 5d99473cad Prove that restoring an account queues every local change
Restore clears the upload queue and queues all local data again. Four laws
state that no local entity is left unqueued and none is invented, and a test
runs the real restore SQL on every subset of already-queued entities.
2026-09-28 19:42:58 -03:00