Commit Graph
7 Commits
Author SHA1 Message Date
waozi f34eb4d072 Show shop activity, borrowing, and calmer shared lists 2026-10-21 00:10:48 -03:00
waozi 495f107cf4 Group Leaderboard by installed app and individual practice 2026-10-20 19:46:23 -03:00
waozi 8974aa1279 Draw the habit shop in the Habits app
The shop was compiled into Inner Breeze, so every change to it needed a
new APK. Habits now draws the page and its buy dialog (shop_view.zi) from
a frame the host gives it, and asks the host to save, delete or buy a
reward. The host checks each request against what is stored: a reward is
bought only at its stored price and only when the coins cover it. Kryon's
new SvgIcon and TextHeight draw the coin and symbols and size the
paragraphs. Host interface 22; Habits 1.2.0.
2026-10-19 16:29:13 -03:00
waozi 2ecc4c645b Make Diary independent and run shared app bundles in Inbe 2026-10-18 14:55:13 -03:00
waozi 48ca9f3805 Draw the Habits count dialog in its package
A counting habit's count dialog is the first Habits screen the package
draws (apps/habits/habits_view.zi), as Lists, Diary and Leaderboard draw
theirs with hosted Kryon widgets. The host fills a HabitsUiFrame with the
habit's name, the day, its count, target and linked sessions, whether it
asks questions and the theme's text colour, runs HABITS_COUNT_DIALOG and
applies the step, the opened day or the closing the frame asks for. The
dialog looks and steps as before: the same sizes, keys and button IDs, the
minus disabled at the linked sessions' floor, and the step bars drawn as
Boxes of the same size, colour and radius.

The package reaches the host through ReadHabitsUiHost, WriteHabitsUiHost
and HabitsLocaleHost, allowed for Habits beside Kryon's hosted widgets.
These belong to host interface 14, which 2.1.35 brings, so Habits 1.1.0
declares host_api 14; the root package 2.1.34 brings it. If the package
cannot draw the dialog, the host closes it instead of leaving an invisible
modal. The table, editor, entries, history and statistics stay compiled.

Tests: habits-count-ui-test drives the dialog with Kryon's test driver on
a private Xvfb display (steps down and up, Close, Done, and Entries opening
the day of a habit that asks questions), and joins the visual gate.
2026-10-17 21:14:28 -03:00
waozi 221e10e30a Use standard list tabs and add accepted friend sharing 2026-10-15 01:24:56 -03:00
waozi 07ccce94b3 Draw hosted apps with Kryon's widget host
Inner Breeze kept its own host for the widgets its apps draw: a generated
codec for Kryon's widget records, the dispatcher and the helpers for
bundle values. Kryon now owns them, so the codec shrinks to the frames and
rows the apps exchange with their screens (src/cells/app_codec.zi, from
Kryon's generator via scripts/generate-app-codec.py; make test checks it is
current). The record codec uses Kryon's helpers instead of a private copy.

Inner Breeze keeps its policy: hosted_assets.zi decides which images an app
may draw, and module_host asks Kryon's WidgetHostSupports which widget calls
exist, which now includes Toggle. Lumi can delete a selected chat row.
2026-10-11 00:52:36 -03:00