8 Commits
Author SHA1 Message Date
waozi 434c99f697 Rename bundled app sources and build targets from cells to apps 2026-10-24 23:17:45 -03:00
waozi 74c4a6d935 Build and run apps in the ZX format
Ziran 0.3.1 writes portable bundles as .zx with a ZX header and rejects
.zib. Pin Ziran 620c407, Kryon 935d5fc1, Apps 12e52c0 and Entity 86e72720,
and build, embed, download, verify and store every bundle as .zx: the root
and cell bundles, node apps (the node is asked for format=zx releases),
practice packs and the shared Apps controller, now the only trusted one.

Practice packs stored by older versions count as installed and update
themselves to ZX; a node app's unusable .zib payload is removed so its ZX
release installs. Bundle staging starts empty, so no stale bundle is
embedded, and Android reads asset names by their length.
The generated app codec matches the pinned generator again.
2026-10-23 22:05:05 -03:00
waozi 044a5a8373 Find, press and type in UI tests through the widget tree, not OCR
Seventeen UI tests found controls by reading screenshots with tesseract and
clicked hard-coded points, so they failed on slow CI runners (OCR timeouts,
"Allow" read before "Don't allow", dropped keystrokes) and read stale
layouts. They now use the Kryon test driver: they wait for widgets by
label, role or key, press them through the app's own pointer path, type
without losing keys, drag with a held pointer, and check what a screen
says in its widget tree. One pixel check per screen remains only where
pixels are what is tested (a scrollbar drawn, a piece's colour, bold text,
a scannable QR code). Tests that had gone stale against the app were
brought up to date. The Lumi selection, harness, guide and emphasis tests
and the navigation customizing test join the visual gate; the device link
test gets its own target. tests/rendered_word.py is gone.
2026-10-17 18:58:43 -03:00
waozi 8d911de54e Let Lumi guide Lists, Diary, Leaderboard, Settings, Profile and Statistics
The first time you open each of these screens, Lumi flies in and shows
what it is for in two or three short steps, typed and spoken like the
other guides: switching and editing lists and adding items; the diary's
days, Today and the calendar, and its page and tools; the leaderboard's
practices and ranking; the sections of Settings, and Cue volume and
Appearance in them; your picture, account, week and pages in Profile;
and a habit's figures and charts in Statistics. Each guide waits until
its screen shows everything it explains, and shows once.

The size budgets grew by 6 MB each for Lumi's added narration (192 clips,
3.89 MB): the Linux binary to 52 MB, the app package to 48 MB, the
single-ABI APK to 47 MB, and the universal APK and bundle to 55 MB.
2026-10-13 20:24:33 -03:00
waozi 5a3f7b5388 Ask in Apps before app packages update themselves; ship an F-Droid APK
Packages come from waozi.xyz, not the app store, so automatic updates now
wait for an answer. Apps asks once with two equal buttons and says the store
does not check these updates; Settings > About changes the answer. The new
key replaces cells_auto_update, which was saved as on without asking.

F-Droid rebuilds Inbe and compares it with our signed APK. Release builds
now also sign the universal APK built with -PfDroidBuild (self-update off)
and publish it as inbe-VERSION-fdroid.apk for F-Droid's Binaries field.
2026-10-13 15:20:29 -03:00
waozi c9d474d71b Keep a QR connection waiting through a node restart, and scan upright
A phone showing its code gave up on the first poll that met a restarting
node: a deploy answered 502 and the phone said it could not connect while
the computer had already sent the account. Polls now retry on no answer,
429 and 5xx until the link expires, and a failed link logs which step
failed. The local mailbox test answers three polls with 502 and the
receiving device must still connect.

The QR scanner follows how the phone is held instead of ZXing's landscape
lock.
2026-10-10 20:53:36 -03:00
waozi f462343dad Keep account, data and Telegram in Profile, and device preferences in Settings
Profile gains a Telegram card beside Friends, Data and Account & sync,
opening the same Telegram panel Settings had; without an account its button
opens Account & sync. Settings drops its Telegram tab and the Data row on
phones, so it lists only this device's preferences. A saved Telegram tab
opens Device.

The Data Back test checks that Settings no longer lists Data; the QR test
finds Apps by its label wherever the rail puts it; the Telegram panel test
gets the qrcode package path its imports now need.
2026-10-10 19:21:20 -03:00
waozi 9dbc7b4792 Connect a device to the account by QR code
Profile's account view gains Connect a device. A device shows a QR code that
carries a one-time link ID and a fresh X25519 key; a phone scans it with the
camera (ZXing). When the showing device holds the account, the scanner sends
its key, both screens show the same six digits, and the account is sealed to
the scanner after confirming. When it has none, the scanner confirms and
seals its account to the key from the code. Daochi's link mailbox relays the
sealed messages without reading them, and the receiving device imports the
account as a key file import would.

The QR code comes from the new qrcode package; Kryon moves to the release
with text area hidden ranges. Tests cover the protocol with Monocypher and
both directions on owned Xvfb windows against a local mailbox, reading each
code back from a screenshot.
2026-10-10 19:11:50 -03:00