Compare commits

..
316 Commits
Author SHA1 Message Date
waoziandClaude Opus 5.5 6ef450d90d Wait for the seeded habits before checking their order
The screenshot scene seeds habits after its window and database appear.
On a slower CI runner a fixed one-second wait read an empty list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 03:35:13 -03:00
waoziandClaude Opus 5.5 edcb5f8302 Read the selected phone navigation label without its icons
CI's tesseract 5.3.4 could not read Practice when the dock crop included
the icons and the new selection outline; the label row alone reads every
label on both tesseract versions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 02:58:30 -03:00
waoziandClaude Opus 5.5 99c819fa88 Keep the release visual tests in step with the compact Apps dock and cards
The phone dock is 56 units tall since the compact navigation, app cards
show their size just below the name, and the first-use Apps guide covers
cards in the startup check, so the visual tests read the dock and card
names where they are now and the startup check opens Diary from its card.
The navigation slide also keeps frames coming until it settles, and the
first frame shows the navigation in place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 02:30:51 -03:00
waoziandClaude Opus 5.5 c54c90edcb Keep release visual tests in step with Profile Back and older Pillow
Profile's Back now returns to Apps, so the Data test expects the hub Back
to leave Profile once and finds the Settings Data row by its text instead
of a fixed offset. The sync review test reads pixels with tobytes(), which
every Pillow release supports.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 02:07:12 -03:00
waozi 00b27d9804 Use native Android rotation geometry and scoped debug verification 2026-10-09 01:40:28 -03:00
waozi d7b92a5aaf Keep Telegram as input while retaining complete Lumi history 2026-10-09 01:34:04 -03:00
waozi 890eb99381 Resolve protocol modules in preference test harnesses 2026-10-09 01:30:58 -03:00
waozi c4cc79a107 Test shared account activity against the current sync server 2026-10-09 01:24:02 -03:00
waozi dd3895b2a0 Add live KSS appearance editing and Lumi style tools 2026-10-09 01:12:24 -03:00
waozi 87ac93168b Include account activity in production app builds 2026-10-09 01:09:51 -03:00
waozi 7827f0cda4 Use shell input for the physical Gboard glide check 2026-10-09 01:06:42 -03:00
waozi b45cab3719 Keep Telegram access and share active practices across account devices 2026-10-09 01:06:01 -03:00
waoziandClaude Opus 5.5 56354be0f2 Keep the unreleased 2.1.23 notes out of the 2.1.22 changelog
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 00:54:05 -03:00
waoziandClaude Opus 5.5 37f85b8b4f List the practice window in 2.1.22 within the store limit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 00:52:12 -03:00
waoziandClaude Opus 5.5 6483eeff03 Fit app card actions within the style rule table
The install and remove symbols added two hover rules that took the
classic style pack plus Inbe's sheet past the KSS rule table, so the
style failed to install and the 2.1.22 release test stopped. Hover now
uses the style pack default; the selected card keeps readable icons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 00:52:12 -03:00
waozi f9d2b03579 Include additional translated labels in bundled fonts 2026-10-09 00:48:46 -03:00
waozi 0e724f6484 Avoid repeat uploads when old Lumi history is replayed 2026-10-09 00:37:40 -03:00
waoziandClaude Opus 5.5 2b05b9e41d Keep a running practice in a small window with a minimize button
Every practice's title bar has a minimize button beside its close button.
It opens the first pinned app, or Lumi when the practice was started from
Lumi, and the practice keeps running in a small window above the app:
tap it to return, drag it anywhere, or use its X to end the practice with
the practice's own confirmation. Opening Practice returns to it. The
navigation slides away when a practice starts and back when it ends.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 00:34:34 -03:00
waozi 89d5735e06 Support approved YouTube previews in Play listing publishing 2026-10-09 00:33:48 -03:00
waozi 912109b58c Keep promo screens still and sharpen Lumi wing animation 2026-10-09 00:15:26 -03:00
waozi d47ea26fed Turn Lumi toward the app after each flight 2026-10-09 00:09:48 -03:00
waozi 0fd81dff0d Include newly translated characters in bundled fonts 2026-10-09 00:07:33 -03:00
waozi f394a4c6d4 Animate Lumi wing strokes and narrate the promo through OpenRouter 2026-10-09 00:01:11 -03:00
waoziandClaude Opus 5.5 5ae1079708 List the Lumi Telegram changes in 2.1.22 within the store limit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:59:53 -03:00
waozi 5dca47fd0e Exclude the obsolete background migration marker from imports 2026-10-08 23:59:32 -03:00
waoziandClaude Opus 5.5 9eac5812be Answer Lumi Telegram lists quickly with one connect action
Telegram messages now reach Inbe within two seconds while it is open, and
acknowledgements, replies and queued messages follow each other without
the five-second wait that made every message take ten seconds or more. A
message from Telegram no longer moves this device to the Lumi screen.
/lists and /habits answer in Telegram with the open items and today's
habits instead of opening a screen on another device. Settings shows one
line and one button for Telegram, with a quiet Disconnect; Mini App
approval appears only while a request waits for this device.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:59:25 -03:00
waozi dc91713e77 Support Android keyboard composition and glide typing 2026-10-08 23:58:20 -03:00
waoziandClaude Opus 5.5 2955e44e05 Keep quick taps and swipes on slow Android frames
Use Kryon's Android touch replay for Inbe's pointer, so a tap or swipe that
starts and lifts within one slow frame, or lifts before its next movement
arrives, reaches the app where the finger actually lifted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:54:15 -03:00
waoziandClaude Opus 5.5 8564441d2d Fit the 2.1.22 release notes within the store limit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:48:44 -03:00
waoziandClaude Opus 5.5 b44b78c2d4 List the background practice fix in 2.1.22
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:48:17 -03:00
waoziandClaude Opus 5.5 22b4e3e4a3 Keep practices playing when Inbe goes to the background
Background play is on by default again. An older release switched it off
for every install, so each install is moved back on once; after that the
Settings toggle stays the user's choice. A practice also no longer pauses
when the session notification is hidden, dismissed or not allowed: the
foreground service always starts and the two-second notification check
that paused running sessions is gone. The lifecycle laws now state that
background play never depends on the notification.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:47:42 -03:00
waozi 5188d17398 Check locked sources afresh before Play screenshot publishing 2026-10-08 23:44:55 -03:00
waozi 16742b4670 Retain the registry protocol when updating signed app releases 2026-10-08 23:36:46 -03:00
waozi 878b4638e7 Verify app screenshots before Play updates and add Lumi promo 2026-10-08 23:36:36 -03:00
waozi 96a7312a81 Keep Diary package updates bound to their permanent app runtime 2026-10-08 23:34:19 -03:00
waozi b05e5314e4 Keep practice navigation visible and reuse app runtimes 2026-10-08 23:25:00 -03:00
waozi 576ac323c5 Keep Diary dates in the past and migrate entries into the synced account 2026-10-08 23:19:34 -03:00
waozi d8e0209494 Resume sync on startup and honor explicit retries after saved failures 2026-10-08 23:03:39 -03:00
waoziandClaude Opus 5.5 5b0482ce08 Scroll Lumi and other lists with quick swipes on slow phone frames
Update Kryon to the release-frame swipe fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:00:04 -03:00
waoziandClaude Opus 5.5 221e3090a4 Show app install and remove symbols inside their cards
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 22:50:52 -03:00
waozi 0707f7f530 Simplify app management, compact navigation, and support saved sync nodes 2026-10-08 22:40:33 -03:00
waozi 4b6fb732ce Reduce Lumi input work and preserve focused drafts during sync 2026-10-08 22:40:22 -03:00
waozi a2f5802933 Make tab switching immediate and keep rapid navigation responsive 2026-10-08 22:20:55 -03:00
waozi fbf3e1ed72 Wait efficiently for Android startup and remove Apps search X 2026-10-08 21:19:39 -03:00
waozi e27ceb65c8 Keep Lumi responsive and resize its composer above the keyboard 2026-10-08 20:50:13 -03:00
waozi a92f9c8c6b Keep every pinned app visible in the navigation dock 2026-10-08 19:06:02 -03:00
waozi 7b6028b86c Prepare 2.1.21 with a complete visual release gate 2026-10-08 18:43:02 -03:00
waozi 90a951c7aa Make the selected navigation app clearly visible 2026-10-08 16:06:48 -03:00
waozi 7aedf02555 Keep native text crisp and stable throughout the zoom range 2026-10-08 15:15:00 -03:00
waozi c3d3441f02 Use crisp native text rendering at fractional zoom 2026-10-08 14:23:41 -03:00
waozi d049726f05 Open Apps as a full content screen 2026-10-08 13:27:19 -03:00
waozi 6a5d9e11a4 Fix blank desktop pages when the GTK tray changes locale 2026-10-08 10:58:42 -03:00
waozi 0af6d263d9 Group desktop navigation and move Profile into Apps 2026-10-08 10:24:46 -03:00
waozi 59de0d5b2e Optimize web animation rendering for slower devices 2026-10-08 08:32:08 -03:00
waozi 662a0b1063 Use the Windows-safe Kryon font loader 2026-10-08 07:47:27 -03:00
waozi 291e287178 Use the Windows-capable Ziran toolchain for releases 2026-10-08 06:32:58 -03:00
waozi 92130510d8 Provide font checks in isolated Linux package builders 2026-10-08 06:12:19 -03:00
waozi 71700229a3 Retain failed Pages web output for diagnosis 2026-10-08 05:57:49 -03:00
waozi e4e42f4880 Prepare dependencies for clean CI test runners 2026-10-08 05:24:38 -03:00
waozi 14a5383b34 Keep owner authorization IDs stable across storage reads 2026-10-08 04:37:57 -03:00
waozi 31c38e8b93 Show complete Telegram consent identities in Settings 2026-10-08 04:26:28 -03:00
waozi 5d2bbdadc6 Keep Telegram consent content within the scrollbar clip 2026-10-08 04:08:48 -03:00
waozi 49d94d7430 Prevent Telegram startup from saving owner app preferences 2026-10-08 03:47:24 -03:00
waozi adf7431ad4 Fix generated Telegram Mini App bootstrap quoting 2026-10-08 03:26:58 -03:00
waozi 28562a0a36 Link published Android downloads with a universal APK fallback 2026-10-08 03:17:48 -03:00
waozi 9874794062 Show Telegram recovery labels and complete approval fingerprints 2026-10-08 03:05:11 -03:00
waozi 9ac1270bb5 Package embedded web assets without requiring an external data file 2026-10-08 02:56:03 -03:00
waozi 664095e190 Release 2.1.19 with secure Telegram account setup 2026-10-08 02:46:54 -03:00
waozi 1d127c6503 Fix desktop window icon channel masks 2026-10-08 02:41:34 -03:00
waozi f250bcb0c8 Connect Telegram through verified scoped account authorization 2026-10-08 02:29:51 -03:00
waozi 0e8b5e4725 Unify the default palette and simplify app navigation and onboarding 2026-10-08 02:15:36 -03:00
waozi cb3d4c9079 Isolate Lumi private data and preserve legacy storage safely 2026-10-08 01:19:19 -03:00
waozi 87059a67bf Keep app behavior harnesses linked to current host capabilities 2026-10-08 01:18:07 -03:00
waozi 77016527bc Exercise Apps navigation in browser checks 2026-10-08 00:43:35 -03:00
waozi 803d5266f0 Start in Apps with ready bundles and default favorites 2026-10-08 00:22:40 -03:00
waozi aaed0c2d14 Show each app bundle size in the Apps library 2026-10-08 00:20:02 -03:00
waozi 081495a671 Arrange app favorites by dragging tiles in the launcher 2026-10-07 23:43:53 -03:00
waozi b0e3a807fa Use the toolchain fix for web directory reads 2026-10-07 23:01:52 -03:00
waozi 3302c98e32 Pin every app with a hold gesture in the launcher 2026-10-07 22:47:50 -03:00
waozi 989271d3e1 Add searchable app launcher and saved favorites dock 2026-10-07 21:31:20 -03:00
waozi 4200187a00 Design four Inbe app launcher concepts 2026-10-07 20:54:01 -03:00
waozi f7fc3ff223 Reduce Android startup work and show progress until the first frame 2026-10-07 20:42:28 -03:00
waozi 804d86f09d Open Lumi Telegram links directly in the Android app 2026-10-07 20:26:31 -03:00
waozi 2df0197470 Move Telegram sync into Settings and load Lumi history on scroll 2026-10-07 20:13:18 -03:00
waozi 0627f7dd37 Apply sync review choices directly below colored changes 2026-10-07 15:40:56 -03:00
waozi 06de5b2721 Ship compatible app bundles for Lumi text emphasis 2026-10-07 02:41:39 -03:00
waozi 59ed4e766b Format Lumi replies and save feature suggestions as feedback 2026-10-07 02:35:43 -03:00
waozi 8e12645767 Show Lumi progress charts and donation cards
Render account-scoped daily session, meditation, WHM retention and habit progress from saved data, with bounded chart snapshots and selectable values. Provide canonical Bitcoin and Monero donation actions in typed chat cards through the shared Lumi app tools. Preserve text history and translate the new UI in every locale.

Validation: native build and build laws; engine, chart, SQL and cell persistence checks; proof, sync recovery, version and locale gates; complete private-display UI suite including narrow cards, clipboard and URI routing; full-history performance and memory stability. Android, web runtime and live online-model invocation were not exercised. Changes are local and are not deployed.
2026-10-07 02:24:34 -03:00
waozi 1f67f8df52 Enable Lumi online conversation and shared app tools
Save the existing Lumi harness foundation separately from the progress-chart and donation-card extension. It provides account-scoped online conversation, validated app actions, offline feedback delivery, and the same tools for standalone and Harmony-hosted use.

Validation of the combined final working checkout: native build and build laws, cell and storage tests, proof mutations, sync recovery, version and locale checks, private-display Lumi UI checks, and full-history performance.
2026-10-07 02:21:28 -03:00
waozi 579ebeb531 Accept whitespace in Lumi server responses and tighten UI verification 2026-10-07 02:01:50 -03:00
waozi f060ec3988 Store Android artwork once and shrink offline practice packages 2026-10-07 02:00:52 -03:00
waozi bd4bbd4f73 Keep Lumi chat responsive and restore offline app navigation 2026-10-06 23:39:20 -03:00
waozi 69f83c616a Write timestamped Diary entries from multiline Lumi chat 2026-10-06 23:05:23 -03:00
waozi d828c0817b Add Lumi app tools and unify cell navigation and sidebar settings 2026-10-06 22:47:06 -03:00
waozi f82cf222ed Preserve all cell navigation slots and desktop choices at startup 2026-10-06 20:18:24 -03:00
waozi e9e93b609e Keep scale slider geometry fixed until release 2026-10-06 18:09:46 -03:00
waozi e5d2a49b45 Fix translation catalog lifetime and complete font coverage 2026-10-06 17:25:00 -03:00
waozi bde0598680 Add modular apps, signed package updates and synced app choices 2026-10-06 14:37:10 -03:00
waozi 8d86507d82 [skip ci] Build signed Moto APKs from verified release sources 2026-10-06 13:50:58 -03:00
waozi 56a269ff74 Verify complete embedded style payloads independently of selector order 2026-10-06 12:50:58 -03:00
waozi 61c6bab406 Complete release checks for current bundles, styles and translated fonts 2026-10-06 12:45:56 -03:00
waozi 8050af9df6 Run habit form regression checks through the packaged app bundles 2026-10-06 12:31:44 -03:00
waozi bd4b7b107e Build the algorithms exported by the pinned Oqs package 2026-10-06 12:24:43 -03:00
waozi 88a2f31385 Release 2.0.12 with Android graphics recovery and regression checks 2026-10-06 12:01:56 -03:00
waozi 016cb75c18 Restore Android images and retained frames when graphics resume 2026-10-06 09:23:30 -03:00
waozi fafa785611 Restore the original practice screen with padded centered headings 2026-10-06 00:37:17 -03:00
waozi d9f960ee26 Improve profile header typography and flower avatar detail 2026-10-06 00:14:23 -03:00
waozi eef1c98a1a Unify practice artwork, heading and Start in a responsive card 2026-10-05 23:55:15 -03:00
waozi 4cdb0394b7 Consume navigation clicks and return Data to its entry screen 2026-10-05 23:55:10 -03:00
waozi 9f8fc5bd48 Give practice headings room and frame artwork without cropping 2026-10-05 23:37:09 -03:00
waozi ca8e50bb12 Skip sync reviews when the merge preview has no changes 2026-10-05 23:26:11 -03:00
waozi d2dd96cf32 Explain sync changes without raw JSON or empty habit days 2026-10-05 21:07:19 -03:00
waozi 79688b9f4c Use the Ziran organization for Daochi Client 2026-10-05 20:55:14 -03:00
waozi 0e73811320 Start hosted practices and keep feature routes stable 2026-10-05 14:35:04 -03:00
waoziandClaude Opus 5.5 df0112dcf5 Stop flooding the log with DPI warnings on the SDL desktop
Inner Breeze asked raylib for the window's DPI scale every frame. raylib's
SDL2 backend has no such value: it returns 1.0 and logs "GetWindowScaleDPI()
not implemented" each time, 30 lines a second into the owner's log while the
app runs inside Harmony. SDL2 desktop builds now keep the 1.0 scale without
asking; their display density still comes from the SDL device host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-05 12:16:11 -03:00
waoziandClaude Opus 5.5 ab8a354038 Keep background sync from freezing Inner Breeze inside Harmony
The owner saw Inner Breeze stop rendering inside Harmony. Its frame loop and
live-update worker were both waiting forever for the database connection,
held by a social-refresh worker that had already exited.

Settings write batches shared one depth counter across threads. When two
workers saved their sync session together, the second joined the first's
batch without its own BEGIN, so the first returned without COMMIT and exited
while its open transaction still held the connection. Each batch now holds
the connection for its own thread until it commits, a failed COMMIT rolls
back, and a failed sync savepoint release is rolled back too, so no worker
can leave the connection held.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-05 11:58:26 -03:00
waoziandClaude Opus 5.5 a19f1ee6ff Keep a waiting sync review from restarting sync every few seconds
When the server asked for a full snapshot that waits for the person's
review, the app kept its applied version behind the server's. Every
live-update greeting then looked newer, so an open desktop app synced again
every two or three seconds. The app now remembers the newest server version
it has received, also while a review waits, and only a newer version starts
a sync. Changes from other devices still arrive.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-04 21:19:25 -03:00
waozi cbdec667c6 Load Inner Breeze feature bundles from its portable root 2026-10-04 21:00:15 -03:00
waoziandClaude Opus 5.5 c58d4e602e Stop desktop Inner Breeze from syncing again every few seconds
The server greets each live-update connection with its current version.
The app treated that greeting as a change, synced, reconnected and was
greeted again, so an open desktop app downloaded all of its records every two
or three seconds. A greeting or event no newer than the last sync is now not
a change: the app waits and checks again, so changes from other devices still
arrive within seconds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-04 20:53:20 -03:00
waoziandClaude Opus 5.5 1266c5378e Expect a rejected sign-in to retry in the sync recovery test
The recovery test still expected sync and social refresh to stop after a
rejected sign-in, which a9744124 changed to an automatic retry. It now checks
that a rejected sign-in retries on the usual schedule and still shows why,
and that a failure the person must fix, such as a signing error, still stops.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-04 20:53:20 -03:00
waoziandClaude Opus 5.5 a974412497 Keep syncing automatically after a rejected sign-in
When two sign-ins of one account overlapped right after an account was
attached, the server rejected one, and Inner Breeze stopped syncing until the
person reconnected by hand: the username and new sessions stayed on the
device. A rejected sign-in is now retried with a fresh challenge on the usual
schedule while the account key exists, and the sync status still shows the
failure until a sync succeeds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-04 20:33:10 -03:00
waozi af112e4d25 Verify sync review inside the Harmony app host 2026-10-04 19:33:00 -03:00
waozi 2d78b1ac7c Keep expanded habit cards within their own column 2026-10-04 19:32:51 -03:00
waozi 13bbb79cf0 Reject incomplete sync review previews 2026-10-04 18:53:55 -03:00
waozi 63ba83aca6 Show exact sync review outcomes and preserve local edits 2026-10-04 18:44:39 -03:00
waozi 5cf7366861 Use the verified modal input fix from Kryon 2026-10-04 18:17:57 -03:00
waozi 51a93a19d9 Own persistent UI messages during portable app checking 2026-10-04 01:54:54 -03:00
waozi 621b181f34 Correct Sun Salutation necks and clean clothing edges 2026-10-02 18:20:42 -03:00
waoziandClaude Opus 5.5 747472ecb2 Upload store listing text with the Play screenshots
The Play upload script now also sends each Fastlane locale's short and
full description, keeping titles as they are on Play.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 18:15:06 -03:00
waoziandClaude Opus 5.5 f49e072148 Refresh store listing text and screenshots for the current app
Store screenshots now render at real phone and tablet density
(--screenshot-ui-scale), show the painted Wim Hof, Sun Salutation and
Meditation cards, an Upward salute pose and showcase habits instead of
test fixtures. Descriptions in all five store locales name the actual
practices, patterns and habit features. TODO.md tracks the marketing plan.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 18:10:41 -03:00
waozi 36d6f99de9 Stream large web assets within the website file size limit 2026-10-02 17:40:25 -03:00
waozi 28b5ab04ca Include all translated character glyphs and artwork test dependencies 2026-10-02 17:10:37 -03:00
waoziandClaude Opus 5.5 d125ce4f2d Ignore the local Wrangler deploy cache
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 16:57:43 -03:00
waozi 0e1f20e298 Add four selectable Sun Salutation characters with distinct outfits 2026-10-02 16:56:12 -03:00
waozi 53add1473d Use the standard native clock without portable symbol collisions 2026-10-02 14:59:31 -03:00
waoziandClaude Opus 5.5 53bf4f2eb2 Keep 1.8 themes and count 32-bit Android profile weeks
Settings last saved before 1.8.5 hold the picked theme without a theme
source, and the upgrade defaulted the source to System, which replaced
the user's theme. A theme picked there now stays the app theme.

Profile week stats declared mktime and difftime with a 64-bit time_t,
which is 32-bit on 32-bit Android, so every day fell outside the week
and active days and sessions read 0. Day offsets now use civil day
arithmetic. Verified by upgrading real Inbe 1.8.0 data to this build on
an armeabi-v7a Moto: theme, language, habits, counts, sessions and
settings carry over, and the week shows 6 active days and 1 session.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 14:23:52 -03:00
waozi 11bcaf4ee0 Describe verified Wim Hof customization fixes 2026-10-02 13:57:20 -03:00
waoziandClaude Opus 5.5 19d5411a24 Hold the Customize breathing preview under any covering modal
The preview paused only for the start-speed editor. Any modal other than
Customize itself now covers the page, and the preview holds still
behind it, as it does behind the music network-error dialog.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 13:56:48 -03:00
waoziandClaude Opus 5.5 843bd6fe66 Draw modal content inside Kryon modal panels again
Kryon paints overlays above page content, and the ModalPanel wrapper
dropped the panel node, so the start-speed editor, habit counter, theme
picker and app icon dialogs drew their content under the opaque panel
and looked empty. Kryon's ModalFrame now opens the panel scope itself;
those dialogs call it directly with Kryon's close glyph, and the other
modals stop pushing the scope a second time.

The breathing preview paints into the current widget scope, so the
start-speed editor shows its circle, and the Customize preview holds
still while that editor is open. Wim Hof sliders show their values,
Start Practice uses the large button size, and screenshot scenes cover
the start-speed editor and theme picker.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 13:49:15 -03:00
waozi b8efa68601 Pin validated safety fixes and wait for browser guide layout 2026-10-02 13:15:20 -03:00
waozi e1989a20aa Prepare 2.0.8 with Android startup recovery and upgrade regressions 2026-10-02 04:54:56 -03:00
waozi 0377b9181b Wait for decoded audio before clicking browser music controls 2026-10-01 18:38:13 -03:00
waozi 00fabf1981 Wait for app transitions before querying music controls 2026-10-01 18:26:27 -03:00
waozi f992a9180b Restore web audio and verify music across internal tabs 2026-10-01 18:13:11 -03:00
waozi 41df5d5dba Keep music playing across internal app tabs 2026-10-01 17:45:20 -03:00
waozi 7a1bf94ceb Measure web animation only during active playback 2026-10-01 15:34:22 -03:00
waozi 9ae46c627e Release Inner Breeze 2.0.7 with FreeBSD packages paused 2026-10-01 14:56:40 -03:00
waozi f5390d85a5 Simplify the Inbe landing page and practice flow 2026-10-01 13:48:29 -03:00
waoziandClaude Opus 5.5 a1260b624f Tuck the women's necks inside their round collars
In the half lift, both planks and upward dog the head tilts back up to 42°
from the spine, which swung Sunrise ponytail's and Sage bun's throats out
below the collar. Their necks now attach 11% down the torso, like the male
proposals' joined necks, so the neck stays inside the collar in every pose
while the standing neck keeps its length. Both women and the first male
are rerendered with the current sun salutation motion, so the paired loops
match again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-01 11:51:34 -03:00
waoziandClaude Opus 5.5 50f3a8ed6d Slim the second male proposal's seat
His painted leg is about a fifth thicker for its length than the first
man's, with a pronounced rear curve, and the rig widened it further behind
the hip. Draw his leg at the first man's thickness without the seat
fullness, and re-render his loop, GIF, sequence and the review montage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-01 11:11:59 -03:00
waoziandClaude Opus 5.5 3599bad770 Sweep sun salutation arms clear of the face and step without kicking
From prayer the hands open forward into straight arms that rise in front
of her, instead of sliding up across her face, and come down the same way.
The half lift keeps straight legs and a long back. Planting the hands now
uses long arms and soft knees with her head up, instead of folding her
face to the floor. A stepping foot skims the floor and travels while her
hips are high, leading hips that lower and following hips that rise, so
the leg reaches long instead of kicking up behind her.

Both renderers share the change; the app's frames are regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-01 11:09:46 -03:00
waozi 328b5aff3f Add paired male sun salutation proposals with joined necks 2026-10-01 10:53:09 -03:00
waozi 46a175fa34 Measure salutation timing after the resume gesture completes 2026-09-30 23:56:37 -03:00
waozi 550e00de88 Keep skipped release refreshes from cancelling site deployments 2026-09-30 23:47:05 -03:00
waozi 9dcecd6a50 Deploy the website independently with published download links 2026-09-30 23:43:43 -03:00
waozi f33b8a191d Add four banner-inspired animated character proposals 2026-09-30 23:13:42 -03:00
waozi 7e7f0329d4 Replace landing preview with the real mini app 2026-09-30 23:02:01 -03:00
waozi f11cbc80fb Deliver oversized web asset packages within the Pages limit 2026-09-30 22:34:16 -03:00
waozi f107b2a0df Use Waozi colors in opt-in mini previews 2026-09-30 22:05:30 -03:00
waozi 82ac24d32f Smooth Sun Salutation timing and foot transitions 2026-09-30 21:52:19 -03:00
waozi 573b632c41 Align Kryon and Game2D package names in the application lock 2026-09-30 17:48:33 -03:00
waozi 6339dab94c Tuck sun salutation neck beneath the shirt collar
Paint the face and neck before the shirt so the collar covers the neck base as the head turns. Keep the front hair above the shirt and regenerate all app animation frames.
2026-09-30 17:38:01 -03:00
waozi 85cd06159f Replace pixel sun salutation with smooth painted animation
Use 30 fps transparent frames across all twelve poses, fuller hips, and solid hand and foot contact drawings. Make practice Customize pages fill the view and simplify the session timer.

Verify frame timing, storage settings, native navigation, and session playback controls.
2026-09-30 17:10:34 -03:00
waoziandClaude Opus 5.5 305053dec5 Keep the sun salutation girl's top over her leggings
In plank, low plank and upward dog the leggings' waistband stuck out above
the back of her top, and in the fold, down dog and the lunges the seat ran
flush into the hem, so the top looked tucked into the leggings.

Above the hem the leggings are now clipped away behind her back, and the
lower top flares out over them, more at the back while she is upside down,
where it hangs away from her. Each leg's painted seat follows the pelvis
and bends round into the thigh, with extra rows across the joint and a
turn that stays round even when the hip folds all the way; the separate
hips piece and the sliding of the top are gone, since the bent seat forms
a smooth bottom in every pose. The Ziran renderer does the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 14:56:53 -03:00
waoziandClaude Opus 5.5 ecde810b97 Update Kryon: habit day dots and other rounded shapes are anti-aliased
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 13:07:47 -03:00
waoziandClaude Opus 5.5 45d118b733 Declare local flags as bool
`ziran check --lint` found three s32 locals that only ever hold 0 or 1
and are only compared with them: handled_screen, the desktop loop's quit,
and has_prev. They are bools now, set with true and tested directly.
The other quit, passed to the tray by pointer as an s32, stays.

Inbe checks with both the pinned 8bc31e8 and the current Ziran.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 08:00:44 -03:00
waoziandClaude Opus 5.5 bbf4f16b02 Write constant dispatch chains as if-cases
Seventeen if/else-if chains that compare one variable with three or more
constants now read as Jai's `if value == { case A; ... case; ... }`,
which Ziran checks as the same chain and compiles to a switch where it
can. Chains in procedures that also use opened enum members, or over an
enum with a plain else, stay as they are until the pinned Ziran includes
the fixes for those (008874f, 9fb3d30).

Inbe checks with both the pinned 8bc31e8 and the current Ziran, and the
app navigation, bottom navigation, text input, and sync review tests pass
with both. route_navigation_test.sh and settings_shell_test.sh fail as
they did before this change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 07:47:36 -03:00
waoziandClaude Opus 5.5 bd2bb39f29 Let Ziran widen values without explicit casts
The pinned Ziran (8bc31e8) converts narrower numbers implicitly where no
value can change. `ziran check --lint` found seven casts that only widen
a whole initializer, argument, or result (s32 or u8 to s64, u32 to u64);
they are removed, with the parentheses they no longer need. Arithmetic
still happens in the narrower type first, as before. The two casts in
range headers stay for readability.

Inbe checks, and the settings cache, statistics date, and sync crypto
tests pass, with both the pinned and the current Ziran.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 07:30:16 -03:00
waoziandClaude Opus 5.5 5eef3ea535 Write compared characters as #char literals
The locale parser and settings cache compared bytes with character codes
written as numbers (45, 91, 48..57). `ziran check --lint` found 42 such
comparisons; they now read #char "-", #char "[", #char "0" and so on.
Control characters such as 9 and 10 stay numbers.

Inbe checks, and the locale parser, locale policy, and settings cache
tests pass, with both the current Ziran tree and the pinned 8bc31e8.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 07:24:07 -03:00
waoziandClaude Opus 5.5 a587b06673 Drop casts to a value's own type
`ziran check --lint` found 42 casts that convert a value to the type it
already has, such as cast(u8) on a []u8 element or cast(s64) on a count.
They are removed; nothing else changes. Casts that only widen are left
for when the pinned Ziran widens implicitly.

Inbe still checks with both the current Ziran tree and the pinned
package checkout (8bc31e8).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 07:19:11 -03:00
waoziandClaude Opus 5.5 85905afe96 Render the sun salutation girl from Ziran too
scripts/sun_salutation_girl.zi is the Ziran version of the Python girl
renderer: it reads the same rig JSON and painted parts, draws with Cairo,
and pipes frames to FFmpeg. scripts/render-sun-salutation-girl-zi.sh
builds it to Python with the pinned toolchain's zi2py and runs it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 06:11:19 -03:00
waoziandClaude Opus 5.5 997a9163f1 Keep mini mode temporary and without a tray icon
Mini mode is a quick practice, so it no longer opens a tray icon and its
extra window, and it keeps nothing: finished practices, mood check-ins,
and changed settings stay in memory, and nothing is synced or counted
toward habits. The results page drops the save status and the mood
picker, which had nothing to record. Opening the full app from mini mode
saves as usual from then on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 06:08:40 -03:00
waoziandClaude Opus 5.5 fb5134114d Open the practice Customize page again
The Customize page closed itself on its first frame because it treated
any drawn title bar as a press of Back. It now closes only when Back is
pressed, and its title bar shows the Back button again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 06:08:40 -03:00
waoziandClaude Opus 5.5 6122de4296 Keep widgets drawn on animated screens
Since the previous frame could be reused, every screen that animates with
direct draws, such as the Wim Hof session and its Customize preview, lost
its text and controls: Kryon dropped the unchanged widget paint while Inbe
repainted for the animation. Inbe now tells Kryon whether it will reuse the
previous frame, and Kryon 001a2a20 emits the paint when it will not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 06:08:40 -03:00
waoziandClaude Opus 5.5 ad7095ec7c Pass the Oqs package path to the title bar and navigation tests
Both compile sync_crypto_random.zi, which imports oqs/Oqs by its package
name since decfee42.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:54:51 -03:00
waoziandClaude Opus 5.5 685eb4e143 Build Windows again, for 64-bit Windows only
The Windows link failed on code that ELF links drop unused: MinGW's PE
linker reports undefined symbols even in dead functions. Ziran's file,
mapping, and curl modules now build for Windows (ziran 1a4bd23), and here:

- the CRT's _time64, _localtime64_s, and _gmtime64_s replace MinGW's
  inline-only localtime_s and gmtime_s;
- the density lock needs SDL, which the Windows build does not use;
- the pthread-based Android mutex compiles only for Android;
- the dead whm_session.session and its stale C names are gone;
- the native host declines net_http's blocking Send, which inbe never
  uses (native requests go through SendCurl);
- the link takes zlib from Ubuntu's MinGW zlib package.

The 32-bit build is dropped: Win32 APIs are stdcall there, and Ziran's C
output has no calling-convention support. The installer refuses 32-bit
Windows, and winget lists x64 only.

Tested under Wine: the screenshot scenes render, the data directory and
database are created, and the installer installs, runs, and uninstalls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:54:51 -03:00
waoziandClaude Opus 5.5 333ba2f875 Animate the painted girl through the sun salutation
A new renderer draws the Codex-painted girl through Inbe's twelve steps
from a tracked rig: docs/sun-salutation-girl.json holds the poses, timing,
bones, camera and part key points. The upward salute folds as a swan dive,
the half lift steps back through a low lunge, lifted feet point along the
shin, the shirt always covers the leggings, and the layered head lets the
long hair fall behind a fully painted neck. Output is deterministic and
goes under build/.

Also track the first person-rig renderer and the tool that cut the
generated reference video into poses, and move the Ziran toolchain pin to
8bc31e8 so Python builds load LDLIBS libraries and pass C strings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:53:35 -03:00
waoziandClaude Opus 5.5 decfee4212 Import Oqs by its package-qualified name
Oqs names its module file after its export, so Inbe imports it as
oqs/Oqs through a named module path, as project builds of other apps
do. The lock moves Oqs to that commit and keeps liboqs where it was.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:21:16 -03:00
waoziandClaude Opus 5.5 2fbebbec05 Sign accounts and draw random bytes through the Oqs package
Account key pairs, signatures, secure random bytes, and wiping secrets
now go through ziranlang/oqs, the Ziran binding for liboqs, instead of
Inbe's own OQS_* declarations and size_t shim. Inbe still builds the
same ML-DSA-44 liboqs from its locked source, which Oqs shares.

Every build and test that compiles the account modules finds the
package, and the account, device key, and Daochi tests stub liboqs by
its own names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:10:36 -03:00
waoziandClaude Opus 5.5 7198ebc587 Build snap, flatpak, and FreeBSD packages from the fetched packages
- Kryon's library is built alone (libkryon.a), without its C++ and Go
  backend checks, so snap and flatpak builds no longer need Go.
- The flatpak keeps its fetched packages in the build directory; each build
  command runs in a fresh sandbox, so links into $HOME/.cache dangled.
- packages.sh builds the Ziran toolchain with GNU make, gmake on FreeBSD,
  where make is BSD make.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:06:03 -03:00
waoziandClaude Opus 5.5 a2fd6b63c8 Pin Ziran d4489a3, which proves the guide laws
The guide and pager laws are outside the pinned 18d60d0's compile-time
evaluator, so every build stopped at the proofs gate. d4489a3 proves all
eight law modules, and the desktop and web sources check with it. The
version test also copies mk/package-freebsd.mk, which the Makefile now
includes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 22:20:58 -03:00
waoziandClaude Opus 5.5 e13d77aaaf Let snap and flatpak builds fetch their own packages
A snap or flatpak build starts from a copy of the tree without the host's
package links, which point into the host's cache anyway. Make checked the
build environment while first reading the Makefile, before it fetched the
packages, so it stopped on "libcurl >= 7.86.0 is required" by reading a
curl header that was not there yet. The checks now wait for the fetch. The
snap installs git for the fetch; the flatpak leaves the host build tree out
and may use the network while building.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 22:19:13 -03:00
waoziandClaude Opus 5.5 e228b1acc8 Build Windows raylib and FreeBSD packages without Kryon's old make files
Kryon deleted its legacy make fragments on 09-24, and Inbe still relied on
two of them: the MinGW raylib rule, so Windows builds found no rule for
libraylib.a, and package-freebsd.mk, which also provided install, stage,
and uninstall. Inbe now builds Windows raylib like the native library and
keeps the FreeBSD packaging rules itself. The FreeBSD VM also installs
git, which fetching the pinned packages needs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 22:15:49 -03:00
waoziandClaude Opus 5.5 6f692b7e32 State guide and guide pager laws
The guide and guide pager laws that were Bend models on Kryon's old
.kry runtime are now Ziran laws on Inbe's guide code: which keys go
forward, back, and close, that a swipe blocks a keyboard finish, that
steps and pages stay in range, and how closing, finishing, and moving
between steps and pages decide. The proofs gate checks them on native
builds and Android builds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 22:14:52 -03:00
waoziandClaude Opus 5.5 8a528a6e47 Keep CI toolchains per runner image and detect glibc without ripgrep
The Ziran compiler cache was keyed by OS family and CPU only, so jobs on
ubuntu-22.04 restored a compiler built on ubuntu-latest and failed with
"GLIBC_2.38 not found". The key now includes the runner image and its C
library. The build also detected glibc with rg, which runners lack, so it
silently dropped the __GLIBC__ define there; it uses grep now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 22:11:51 -03:00
waoziandClaude Opus 5.5 493ad25947 Drop paths into the removed vendor trees
Kryon no longer vendors utf8proc, Monocypher, liboqs, or raylib; each is
its own Ziran package. The native build stops passing include paths and
a sync crypto list that point into Kryon's old vendor tree, the
secondary window test reads raylib's headers from its package, and the
Firefox add-on source zip leaves out liboqs's and raylib's docs, tests,
and examples from their package folders.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:44:41 -03:00
waoziandClaude Opus 5.5 5de8e26024 Center the Week and Calendar tab labels
Kryon 58c83781 centers segment labels that style sheets pad, so the
habit page's Week and Calendar tabs no longer sit right of center.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:37:33 -03:00
waoziandClaude Opus 5.5 8c2f07ae66 Show counts in the habit calendar and name its month
A counting habit's calendar day now shows its date above a dot with the
day's count, filled once the day reaches its target, like the week
markers. The calendar names its month in the app's language, such as
"September 2026" or "2026年9月", centered between the arrows, and a
habit's title sits level with the Back button.

The minus and plus steps beside Today and in the count dialog are drawn
as bars sized to their buttons instead of small "-" and "+" glyphs, and
the digits in a day's dot grow with the dot.

The month names that are the same in German and Indonesian as in
English are allowed to match it, and the CJK fonts now carry 年 and 년
for the month names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:26:12 -03:00
waoziandClaude Opus 5.5 fc0729181e Pass the Ziran std path to every route catalog test step
Kryon's geometry module now imports math, so the bundle and native
steps failed to find it in source mode.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:20:06 -03:00
waoziandClaude Opus 5.5 d0613da5c4 Add a mini mode with only the practices
Inbe started with --mini, or opened with ?mini in the page address, shows
the practice start page, the practices, and their results: no navigation,
habits, lists, profile, settings, language picker, first-run guide,
donation reminder, breaks, reminders, update check, or sync. It opens on
Wim Hof. An expand button in the top-right corner (or next to a practice's
close button) opens the full app: a page opens it in a new tab without
?mini, and the desktop window grows into it in place. The desktop mini
window is phone-sized and quits on close.

Launch commands (?launch=...) are now removed from the address once run,
since route changes keep the page query and a reload would repeat them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:14:33 -03:00
waoziandClaude Opus 5.5 ac944513cd Build KSS and the style packs from the KSS package
KSS moved out of Kryon into kryonlabs/kss. Inbe depends on it, compiles
it from build/packages/kss/src with --module-path kryon=... for its
Kryon imports, and embeds the style packs from build/packages/kss/styles
as styles/NAME.kss. The Android build, the source check, and the tests
use the same paths, and the lock moves Kryon and Ziran to the commits
that carry the move.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:09:07 -03:00
waoziandClaude Opus 5.5 6cd29b096c Add screenshot scenes for habit counts and the count dialog
habit_counts shows the counter habit expanded with a full day, a
partial day, and a two-digit count; habit_count_dialog opens the count
dialog over it for today.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:04:43 -03:00
waoziandClaude Opus 5.5 b19f3c4c4c Count habit days in a dialog and show counts without a check
A counted day's circle now shows only its count, centered in the circle
and drawn in a color that reads on the filled circle, instead of a check
with the number on top.

Tapping a counting habit's day opens a dialog with the day's count, its
daily target, and large minus and plus steps, instead of adding one per
tap. Days with linked practice sessions count up from those sessions,
never below them, and open the sessions from the dialog. For today the
habit card also has minus and plus buttons beside the Today count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 20:55:49 -03:00
waoziandClaude Opus 5.5 28e90d8747 Reuse the previous frame when nothing drawn has changed
Direct draw calls are recorded into a per-frame plan. When both the
widget paint and the plan match the previous frame, the native host
presents the retained frame instead of repainting it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 20:48:51 -03:00
waoziandClaude Opus 5.5 53b70d16d5 Keep CI toolchain caches complete and readably keyed
Jobs that only fetch packages saved the toolchain cache first, before
any job had built the compiler, so later runs restored a cache without
it. They now restore it without saving. Cache keys use runner.os, since
ImageOS is empty inside composite actions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:36:06 -03:00
waoziandClaude Opus 5.5 9a243a8019 Speed up CI: shard the tests, build the web app once, cache toolchains
- make test runs as three parallel shards (scripts/test-shard.sh), so
  the test job takes about a third as long.
- One job builds the web app, packages it for Chrome and Firefox, and
  runs the smoke test in both, instead of two jobs building it twice.
- Emscripten is pinned to the version CI already used (6.0.10) and
  cached, including the libraries it builds on first use.
- The built Ziran compiler is cached by the toolchain commit instead of
  the whole lock, so a Kryon bump no longer rebuilds it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:20:12 -03:00
waozi feab1a9350 Add sun salutation previews with fixed character proportions 2026-09-29 19:19:18 -03:00
waoziandClaude Opus 5.5 b193a2e726 Stop reading sync settings from SQLite every frame
The sync pump prepared SQL statements on every frame to read whether
sync is on, the server URL, and whether a sync review waits: about a
tenth of each frame on a phone. They are now cached until stored data
changes, using a revision that advances on every row change on the
app's connection (storage_data_revision, which session caches use too).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:16:59 -03:00
waoziandClaude Opus 5.5 70bedd0473 Build the browser add-ons beside the tests and run their smoke test once
The Chrome and Firefox jobs waited for the whole test job before
starting, so a CI run took the two back to back. They now start with it.
The Chrome job also rebuilt the web app through make web-canvas and ran
the same canvas smoke test twice more.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:09:24 -03:00
waoziandClaude Opus 5.5 7bf57c56d5 Update Kryon: quick taps during slow frames are no longer dropped
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:02:43 -03:00
waoziandClaude Opus 5.5 6c47e79b09 Give a habit separate view, statistics, and edit pages
Opening a habit showed a tab-like row of Week, Calendar, and Current
streak buttons with New habit and Edit habit under it, so switching the
view, reading statistics, and editing were mixed on one screen.

The habit view now has only Back, the habit's name, and one Week or
Calendar switch. Statistics is its own page with Back and its own title,
and editing stays on the edit page reached from the habit card. New
habit lives only on the habits overview.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:00:48 -03:00
waozi 28759c07e3 Add selected cartoon-pixel sun salutation animation drafts 2026-09-29 18:42:58 -03:00
waoziandClaude Opus 5.5 9ea2e00696 Make Inbe fast and correctly sized on phones, on Kryon's Material theme
On a Moto e6 Play, Habits scrolled at about 4 fps and buttons were drawn
three times their size. The phone's density was applied twice (by the
render scale and again by app metrics), the whole stylesheet was parsed
every frame, and each habit marker reloaded every session from SQLite
while checking a change clock that ran a query.

- App metrics no longer rescale by the density; the render scale does it.
- The style is installed only when the theme, dark mode, or style pack
  changes, and body text follows the theme's Text size.
- Session records are cached once per database change, and the change
  clock counts row changes on the connection instead of querying
  MAX(updated_at), which missed writes within the same second.
- Route fades run at the active frame rate, so tab switches are smooth
  and taps are not dropped while the fade holds input.
- The bottom bar takes its height from Kryon's Material 3 navigation bar.
- Android clears the system bar strips black through Kryon.
- Generic styling moved into Kryon's default material theme; inbe.kss
  keeps only Inbe's own classes.
- Kryon and the Ziran toolchain are updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 18:16:17 -03:00
waoziandClaude Opus 5.5 910902d5cc Count a pending route fade as running in the web test hook
A route change starts its fade on the next frame and ignores input while
it runs. The smoke test waited only for a running fade, so a click sent
between the request and the first fade frame was dropped. Also update
Kryon, which no longer flashes a blank frame when a screen awaits an
image.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 17:18:09 -03:00
waozi 779413138e Explore clean cartoon and pixel sun salutation characters 2026-09-29 16:46:34 -03:00
waozi 009263e870 Explore ten generated styles for the first sun salutation frame 2026-09-29 16:34:20 -03:00
waozi 28ece54b9f Add complete sun salutation videos in separate light and dark themes 2026-09-29 16:23:30 -03:00
waoziandClaude Opus 5.5 a9f3646f8c Drop the removed scroll input tests from make test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 16:13:39 -03:00
waoziandClaude Opus 5.5 6605d396dd Use Kryon's scroll device: momentum, wheel glide, full canvas text
Scrolling now comes from Kryon, which observes the pointer for every
list by itself. Flicked lists keep coasting, wheel steps glide instead
of jumping, and dragging a list no longer presses the button under the
finger. On the web, arrows, ellipses, and non-Latin text such as the
profile cards' chevrons draw as themselves instead of ?.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 16:08:03 -03:00
waoziandClaude Opus 5.5 90c36f55d5 Trim unused library resources and metadata from the Android APK
Keep Firebase and AndroidX resources only in the app's own languages
(Play build: 88 resource locales down to the app's 12) and leave out
protobuf schema sources and Kotlin reflection metadata files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 15:44:11 -03:00
waoziandClaude Opus 5.5 d1a6db792a Fix the Android release build and use Kryon's Android CMake helpers
The Android release step called a Kryon embed script that no longer
exists, so 2.0.x Android builds (and F-Droid's prebuild) failed. The
prepare script now fetches the locked packages the CMake build needs.

The native build uses Kryon's kryon_android_raylib and kryon_android_app
instead of its own copy of those settings, and no longer embeds the
unused banner.png copies of banner-light.png (~0.5 MB per ABI).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 15:36:31 -03:00
waoziandClaude Opus 5.5 12fb43d300 Update Kryon: canvas text no longer clipped or missing
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 15:25:47 -03:00
waoziandClaude Opus 5.5 dbe11dffbb Make practice carousel swipes work and fix web screen hooks
The practice home carousel passed an empty pointer frame to Swipe and
dropped the gesture state, so swiping between practices never worked.
It now uses the app's pointer frame, as the manual screen does.

Web hooks that change the screen between frames now tell the router, so
the next frame's URL sync no longer switches the screen back. The habits
click target reads the first habit's today marker again instead of a
guide anchor the overview never sets.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 14:46:18 -03:00
waoziandClaude Sonnet 5.5 61d7d0dbb0 Have the web smoke test wait on the app's route transition state
The app now reports whether a route fade is running, and the smoke test's click
helper waits until it is not, instead of guessing with fixed frame counts.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 11:16:12 -03:00
waoziandClaude Sonnet 5.5 fe43032ccc Let the route fade finish before the smoke test's next guide click
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 10:55:31 -03:00
waoziandClaude Sonnet 5.5 d3b5cb815b Port the sync recovery test to Ziran and put it back in make test
The legacy C test included a generated app_sync.c that no longer exists. The
Ziran test runs the same retry, backoff, social retry and status-line checks
against app_sync with the storage layer replaced by in-memory settings.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 10:33:41 -03:00
waoziandClaude Sonnet 5.5 e2ff252eec Build the web extensions on Kryon's canvas backend
The web link takes Kryon's canvas window, draw, input, texture, audio, raster
and route modules instead of the deleted JS hosts, builds liboqs for
WebAssembly, and no longer pulls the native raylib runtime into the page.
Foreign declarations that shared a name with a canvas function are renamed to
the same C symbol under a different Ziran name, main takes no arguments on web,
and the Ziran and Kryon pins move to the commits that add the missing pieces.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 10:29:24 -03:00
waozi ea24cd0e6f Fix Android build law check and raylib package path 2026-09-29 10:05:45 -03:00
waoziandClaude Sonnet 5.5 b83d2a35cd Start moving the web build onto Kryon's canvas backend
Allocator sizes use usize so the generated C matches wasm32's size_t, the web
link uses Ziran's web runtime instead of the deleted Kryon JS hosts (and exports
FS), and the native-only screenshot declarations are left out on web.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 01:36:47 -03:00
waoziandClaude Sonnet 5.5 e7bf8829ec Use Kryon's canvas backend modules for the web build
src/main.zi and the raylib host imported a canvas_runtime.zi that no Kryon
release has. On web they now import the canvas window, draw, input, texture and
host modules, and the native raylib runtime is left out.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 01:15:33 -03:00
waoziandClaude Sonnet 5.5 c83b05f1ac Take the unbuildable sync recovery C test out of make test
It includes the generated app_sync.c, which the Ziran port stopped producing.
The retry decisions it exercised are covered by sync-retry-zi-test; the target
stays until the rest is ported to a Ziran test.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 23:37:00 -03:00
waoziandClaude Sonnet 5.5 3077f00966 Take raylib from its Ziran package and move Kryon to the release that ships it
The app source imports Kryon's frame transitions, which only exist in Kryon
releases where raylib is a locked package instead of a submodule. Link that
package and point the raylib build and includes at it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 23:24:11 -03:00
waoziandClaude Sonnet 5.5 e8dfd3db3d Keep inbe.kss starting with its first rule; declare panel tokens where they are first used
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 23:12:28 -03:00
waoziandClaude Sonnet 5.5 1f5a2a6c6d Define the panel tokens the title bars use so Classic and Lightfield install
The refined title bars use panel, panel-hover and panel-pressed, which only the
Material pack defines, so choosing Classic or Lightfield failed to parse and left
the previous style installed. The fallback values are replaced by the theme's own
colors like every other token.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 23:03:27 -03:00
waoziandClaude Sonnet 5.5 4175783d93 Pin Kryon to the commit with DPI zoom and the opaque Lightfield popup
The app's DPI zoom and Lightfield style overrides need ZoomDPI, RaylibSetZoom and
the popup token, which the previously locked Kryon does not have.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:53:13 -03:00
waoziandClaude Sonnet 5.5 d527f78a8d Fix tests that only passed on stale local build directories
The export filename test linked the renamed layout.c, and the DPI test linked a
raylib_game.c that no longer exists and needed a RaylibSetZoom stub.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:45:11 -03:00
waoziandClaude Sonnet 5.5 39a2c2e1b0 Link storage_layout.c in the archive file test
The generated layout module was renamed; a stale build directory hid it locally.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:36:58 -03:00
waoziandClaude Sonnet 5.5 529e8aac90 Link the locale lookup into the music library test
The custom audio title now comes from the locale catalog, so the test needs
LocaleText and stubs for the embedded asset table.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:28:58 -03:00
waoziandClaude Sonnet 5.5 f17fed4326 Install fontTools for the glyph coverage test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:22:26 -03:00
waoziandClaude Sonnet 5.5 da62a1a546 Add a promo_habits screenshot scene with a realistic habit set
The existing habits fixtures stay untouched because tests rely on them;
promo_habits renames the extra habits and seeds a natural mix of completed
days for store and promotional captures.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:19:31 -03:00
waoziandClaude Sonnet 5.5 d6801e3316 Install SDL2 and GL headers for the tests that build raylib
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:18:37 -03:00
waoziandClaude Sonnet 5.5 85813b4c1f Cache the second Ziran build the tests make
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:12:16 -03:00
waoziandClaude Sonnet 5.5 c0dc855f77 Build raylib before the Ziran behavior tests that link it
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:12:08 -03:00
waoziandClaude Sonnet 5.5 871ea723bb Cache the Ziran toolchain and package sources; run tests beside the secret scan
Every job rebuilt Ziran and re-cloned Kryon, curl, sqlite, and liboqs, about three
minutes each. A shared step now caches both by the hash of ziran.lock. In CI the
tests no longer wait for the secret scan, since CI publishes nothing.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:11:46 -03:00
waozi 529512c48d Fade route changes over retained frames 2026-09-28 21:21:17 -03:00
waoziandClaude Sonnet 5.5 cf270ba04b Track the Ziran master ref again so ziran.toml matches ziran.lock
The lock pins a commit newer than v0.2.0 (forall laws), so the manifest must
name master or the locked fetch fails with 'dependencies differ from ziran.lock'.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 20:34:28 -03:00
waoziandClaude Sonnet 5.5 e366faee1f Remove breath sound generator; keep the original breathing sounds
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 20:24:13 -03:00
waoziandClaude Sonnet 5.5 bab3db1c26 Prove dialog placement rules and pin a Ziran with sequence laws
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:44:27 -03:00
waoziandClaude Sonnet 5.5 11867cf71c 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.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:42:58 -03:00
waoziandClaude Sonnet 5.5 3ac1f58405 Prove the habit merge rule and check the real SQL against it
The merge takes the larger value for every day, so it keeps both sides,
invents nothing, and gives the same result in any order or grouping. Seven
laws prove this for every three-day sequence, and a test runs the real merge
SQL on all 729 pairs and requires the same behavior.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:40:50 -03:00
waoziandClaude Sonnet 5.5 8128a83c4c Replace legacy C tests with Ziran/Python tests
Port the practice pager test behind recording widget doubles, wire the
new behaviour tests into the Makefile and delete the C tests they replace.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:40:14 -03:00
waoziandClaude Sonnet 5.5 4ce7121044 Port habit form, session results and sync server tests to Ziran
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:35:02 -03:00
waoziandClaude Sonnet 5.5 842543c6cb Update the build laws plan for lifecycle and recovery laws
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:33:32 -03:00
waoziandClaude Sonnet 5.5 0a25f04da5 Decide sync recovery in a checked pure policy
A response for a switched account or server is never applied, and a partial
social refresh ends on a failed required stage instead of replacing known
friends, dropping only the optional statistic that failed. Thirteen laws
prove this for every stage and flag combination.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:33:18 -03:00
waoziandClaude Sonnet 5.5 f8c4513d2c Decide practice lifecycle behavior in a checked pure policy
Desktop focus loss cannot pause a practice, a user pause is never resumed by
the lifecycle, and mobile background transitions keep the timer only with
permission and a visible indicator. Android applies the decision and twelve
laws prove it for every input combination.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:29:45 -03:00
waoziandClaude Sonnet 5.5 838fbd3ea6 Pin a Ziran toolchain that checks forall laws
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:25:32 -03:00
waoziandClaude Sonnet 5.5 2797478457 Check build laws with Ziran instead of Bend
Sync retry and the private-data layout are ordinary Ziran modules with
#law obligations checked by ziran check. The Bend proofs, Node generators,
pinned Bend dependency and Node build tool are removed, and a mutation test
shows each law rejects a deliberately broken implementation.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:23:19 -03:00
waoziandClaude Sonnet 5.5 a1ef965a0a Port the break engine and settings key tests to Ziran and Python
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:21:56 -03:00
waoziandClaude Sonnet 5.5 83733697ab Regenerate font subsets for the current locales; port font, locale and storage path tests
The Chinese profile picture string used a character (U+50CF) that no shipped font contained. New glyph coverage and locale key tests replace the old C ones; storage path scenarios run as Ziran processes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:19:47 -03:00
waoziandClaude Sonnet 5.5 2a9cf6dc16 Fix habit day-save dirty flag and date/duration padding; port the habit model test
The dirty flag was set when a day save succeeded instead of when it failed, and dates and durations lost their zero padding.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:16:48 -03:00
waoziandClaude Sonnet 5.5 17a8c616a8 Port more storage, habit and breathing tests to Ziran; fix habit record merging and the legacy path list
Habit records from a sync response are now applied together, so habits sharing a name merge with their days instead of orphaning them. LegacyPaths now matches raylib's FilePathList so the legacy scan reads the real count.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:15:10 -03:00
waoziandClaude Sonnet 5.5 3cba691a49 Pin the Ziran toolchain to release v0.2.0
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:12:22 -03:00
waoziandClaude Sonnet 5.5 108e4775b6 Translate the custom audio title in every language
An untitled custom sound or track now takes its name from the current language
instead of a fixed English default. The default is no longer saved as text, and
saves that stored the English default are read the same way.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:04:14 -03:00
waoziandClaude Sonnet 5.5 02b90adeb8 Fix deleted sync records and long ciphertexts; add sync deletion and counter tests
Deleted encrypted records were serialised with a stray comma (invalid JSON), so deletions could not sync, and ciphertext hex was cut at 4096 characters.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:04:01 -03:00
waoziandClaude Sonnet 5.5 6c84ebe030 Fix sync and import regressions from the Ziran port; port storage tests to Ziran
Found by running the old storage tests as Ziran behaviour tests against real SQLite: encrypted habit/habit-day/session/list records were serialised without most fields (malformed JSON, so habits could not sync between devices); the remote habit apply SQL was truncated to 2048 bytes; check-in import queries lacked their SELECT prefix. Adds sync round-trip, payload, habit and import tests.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:02:49 -03:00
waoziandClaude Sonnet 5.5 c8efea2e2f Translate the profile picture dialog title in every language
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:02:45 -03:00
waoziandClaude Sonnet 5.5 058afcf19b Document the untranslated-string test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:00:55 -03:00
waoziandClaude Sonnet 5.5 72c7ca0286 Pin the Ziran toolchain to the commit whose clean build links
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:57:02 -03:00
waoziandClaude Sonnet 5.5 6758780183 Stop tracking the leftover vendor/kryon gitlink
Dependencies are Ziran packages; a gitlink without a .gitmodules entry breaks
fresh checkouts.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:55:35 -03:00
waoziandClaude Sonnet 5.5 d7eb388daf Translate remaining English strings, enforce it with a test, and fix CI
Every locale string that matched English by accident is now translated in French,
Italian, Portuguese, Indonesian, and German. tests/locale_translated_test.py
fails on any new untranslated string, and on allowlist entries that have since
been translated. The stale submodule entries are removed, since dependencies are
Ziran packages, and the toolchain pin moves to a Ziran commit whose clean
parallel build links.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:55:19 -03:00
waoziandClaude Sonnet 5.5 78bf4f81e0 Keep dropdown menus opaque in the Lightfield style
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:55:17 -03:00
waozi ff68e1b8b3 Refine shared title bars and session controls 2026-09-28 18:52:43 -03:00
waoziandClaude Sonnet 5.5 f3e3f55cbe Replace legacy sync_account and activity_monitor C tests; fix three storage regressions they exposed
The Ziran sync_account test runs account import/export, migration, payload and account-switch behaviour against a real SQLite database pinned to a temp APP_DATA_ROOT. It found regressions from the Ziran port: the meta text buffer aliased the 64-byte user id buffer (corrupting the current user id on any meta read), the sync record key used only 32 bytes of the account private key instead of all 2560, and storage_init no longer ran the sync-enabled flag migration. The activity_monitor C test tested a Kryon C monitor that no longer exists; tests/activity_host_zi_test.sh covers the Ziran host.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:48:19 -03:00
waoziandClaude Sonnet 5.5 f9913eddb7 Update Kryon for wrapping Japanese and Chinese text
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:47:24 -03:00
waoziandClaude Sonnet 5.5 ba07c4d563 Translate the strings that were still English in every language
About 100 strings added with recent features were English placeholders in
all eleven other languages: the audio sounds and import buttons, desktop
startup and close options, breathing patterns, sync alias, the tray menu,
weekday names, export, and the donation reminder. Each is now translated in
Czech, German, Spanish, French, Indonesian, Italian, Japanese, Korean,
Portuguese, Russian, and Chinese, reusing the app's existing wording where
the same text was already translated. Brand names stay as they are. The CJK
subset fonts are regenerated for the new characters.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:47:22 -03:00
waozi f99157cc3e Refresh Profile, Lists, Habits, and Practice pages 2026-09-28 18:41:38 -03:00
waoziandClaude Sonnet 5.5 c88f9eed06 Update Kryon for measuring buttons by label
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:34:35 -03:00
waoziandClaude Sonnet 5.5 fb80f5e0d4 Size Settings buttons from their labels so translations are not cut off
The Play, Import sound, and Remove buttons had fixed widths, so a longer
translation was clipped (Russian "Воспроизвести" showed as "Воспроизвест").
Each now takes the larger of the width the layout reserved and the width
Kryon measures for its label, and the picker or title beside it gives up
the room.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:34:33 -03:00
waozi b12a05f2f1 Keep Profile header above scrolling content 2026-09-28 18:27:42 -03:00
waoziandClaude Sonnet 5.5 1cd6a4c1f7 Update Kryon for zoom and the Ziran-only sources
Kryon now provides the zoom module the app uses for Ctrl and the mouse
wheel, the DPI zoom that scales everything drawn, and font rebaking at the
scaled size.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:19:40 -03:00
waoziandClaude Sonnet 5.5 5ffd6f861a Zoom the whole app with Ctrl and the mouse wheel
Ctrl with the wheel, or Ctrl with plus, minus, or zero, now steps the UI
scale setting the Appearance slider edits, so the wheel moves the slider,
persists, and scales the entire app like a browser page zoom. Kryon's zoom
decides when the wheel means zoom and takes the wheel away from scrolling;
the frame stores the result in ui_scale_tenths (50% to 250%) and hands it to
the DPI state, where the zoom multiplies the display density: everything
drawn scales, including widget text, and the layout is the window divided by
the result, so the navigation switches between rail and bottom bar as it
does when the window gets narrower or wider. The raylib runtime rebakes
fonts at the scaled size so text stays sharp.

The Appearance scale slider only moved the navigation breakpoint since the
Ziran port; it scales the app again.

app_zoom_behavior covers the policy on source, saved IR, C, C++, and Go;
native_zoom_test drives the real binary on a private display with the wheel
and keys, checks the layout scale, and reads the saved setting.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:19:08 -03:00
waozi 59ee3d24b1 Improve Settings and profile visuals and Customize navigation 2026-09-28 18:00:59 -03:00
waoziandClaude Sonnet 5.5 e5d94569d0 Include the generated timer host header in the timer host test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:17:21 -03:00
waoziandClaude Sonnet 5.5 dbf802f809 Update the audio runtime test to the native type names
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:17:14 -03:00
waoziandClaude Sonnet 5.5 a91426bd90 Update the legacy session test for current Ziran output
Foreign imports keep their C names as asm labels now, so the test takes
the time function from the module that defines it, declares zlibVersion
itself, and links Ziran's file module that its zip code uses.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:16:58 -03:00
waoziandClaude Sonnet 5.5 bf2b3ec0e3 Let the break stats link test use the vendor SQLite constants
The generated SQLite module and the vendor header define the same
constants with different spellings, which the test's -Werror rejects.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:16:34 -03:00
waoziandClaude Sonnet 5.5 400a8e516d Drop the hand-written Android timer header
The Ziran timer host generates the same declarations, and the old C
header shadowed the generated one so the timer test could not compile.
The test includes the generated host header instead.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:15:46 -03:00
waoziandClaude Sonnet 5.5 108b3af91c Link Ziran's math module in the scroll link test and clear stale Android output
Kryon geometry calls Ziran's math module, which the scroll input link
test neither put on the module path nor linked. The Android JNI test
reused its output directory, so files from an earlier naming layout were
compiled again and failed; it now starts from an empty directory.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:11:59 -03:00
waoziandClaude Opus 5.5 e1d856c79a Bring route, settings, and language tests up to date
The route host test checks web routing but built the host without the
web define, so every route query came back empty; it also links Ziran's
byte text module now. Settings and language tests put Kryon's style
sheet modules on the module path, expect the current switch width, and
give the settings mutation test the line host its section dividers use.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 13:07:56 -03:00
waoziandClaude Opus 5.5 b07e8810ea Link Ziran's byte text module into text link tests
AppTextFromCString now reads the buffer in Ziran through byte_text_linux,
so the text, list screen, and raylib text input link tests build that
generated module instead of stubbing the old C host function.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 13:05:37 -03:00
waoziandClaude Opus 5.5 4f13f01ccb Read bounded C text in Ziran and bring Ziran tests up to date
AppTextFromCString reached a C host for work the app's own Ziran code
already does, so every test that touched text had to stub it in C. It
now reads the bounded buffer directly and the C export forwards to it.

Tests failed on current Kryon and Ziran: Kryon geometry imports Ziran's
math module, which several test scripts did not put on the module path,
enum members now need their using declaration, and the device policy
test lacked the font metric host its text measurement reaches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:57:10 -03:00
waoziandClaude Opus 5.5 0beb8868d9 Match the sessions tile icon to the other profile tiles
The sessions tile tinted its icon with the link color, a dark navy in
the app themes, so it showed as a black circle beside the light accent
icons of the neighbouring tiles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:50:21 -03:00
waoziandClaude Opus 5.5 934366bf76 Fill in counts in sync and data messages
Three messages used %lld, which the app's formatters do not substitute:
clearing data announced Deleted %lld sessions, upload progress appended
the count after the raw placeholder, and sync status showed a bare
number with no label. They use %d now, the queued count and deleted
count are formatted into their messages, and Italian round labels get
back the round number and time they had lost. The locale test now also
checks that each translation keeps its English placeholders.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:49:19 -03:00
waoziandClaude Opus 5.5 8ea8894f07 Tidy the break overlay layout
Practice shortcuts measured their labels at one size and drew them at
another, so the labels spilled out of their chips. The title, countdown,
and notes were centred by widths measured with the wrong font, and each
action button treated the start of its slot as its centre, leaving them
misaligned and uneven. Text now centres in the panel, the actions share
one width, and the shortcuts are rounded chips with fitting labels.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:46:39 -03:00
waoziandClaude Opus 5.5 888c57e216 Show the mood faces on the results check-in buttons
The faces were drawn immediately while their buttons were queued, so
every button painted over its face and the How did you feel? choices
were blank. The faces now use queued paint and land on top.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:43:45 -03:00
waoziandClaude Opus 5.5 446d7ba73e Stop habit statistics from crashing and add missing labels
Opening a habit's statistics aborted the app when checked-in sessions
had no before-mood, energy, or stress rating, because the averages
divided by a zero count. Averages now skip empty groups and keep their
fraction instead of truncating to whole numbers.

The habit edit button and the sync review dialog showed raw locale keys;
they are now translated in every locale, along with the sync review
message, and a test checks that every key the app uses exists in every
locale. Habit statistics and calendar screenshot scenes now select a
habit so they show those views.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:42:22 -03:00
waoziandClaude Opus 5.5 786aa6cca7 Show the practice manual and settings opened from How to
With the practice manual or configuration modal open, the practice page
also drew the same manual under it, so its widgets repeated their keys
and the whole frame was rejected, leaving a blank screen. Those modals
now cover the page like the start speed editor, and rejected frames log
the widget key and kind that caused them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:35:58 -03:00
waoziandClaude Opus 5.5 3dd7f1c67d Match cast asset table entries in the embedded image check
The asset table now writes each path behind a byte-pointer cast, so the
check reported every embedded image as missing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:30:13 -03:00
waoziandClaude Opus 5.5 9a73f8287f Give build gate tests a complete scratch project
The version and sync-retry gate tests linked Ziran packages into
build/packages without creating it and left out the package manifest
and mk/sync.mk, so Make stopped before reaching the gate being tested.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:29:12 -03:00
waoziandClaude Opus 5.5 279341cbe5 Group break settings into sections
Timer status with Rest break now, general break options, each timer, and
the weekly summary each sit in their own section with label-beside-control
rows, instead of one long stack of floating headers and controls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:25:15 -03:00
waoziandClaude Opus 5.5 64726e6c83 Group audio settings into sections
Audio settings sit in Output, Sounds, and Music sections. Each sound cue
is one row with its picker, Play, and Import instead of a picker and a
full-width import button per cue, and music tracks use the same list row.
Preview buttons say Play or Stop rather than the practice start label,
soft remove buttons use a light danger tint instead of a dark block,
and the pause label is translated in every locale.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:23:23 -03:00
waoziandClaude Opus 5.5 1af803c684 Center the about text and add audio and breaks screenshot scenes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:18:03 -03:00
waozi fbb84fd8ce Polish first-run guide focus and navigation 2026-09-28 12:13:14 -03:00
waoziandClaude Opus 5.5 e9f90216c1 Group appearance settings and show the mode and scale labels
Appearance settings sit in Theme and Layout sections with each label
beside its control. The theme mode picker lost its Follow device label
and the scale factor never showed its percentage because both texts
were formatted into a stack buffer that was gone by paint time; they
now live in frame text. Customize Nav is a regular row action instead
of a large accent button.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 11:59:53 -03:00
waoziandClaude Opus 5.5 e58742909f Group notification settings into sections
Notification switches and the test button share a card, and each
reminder is one row with its switch, practice, time, and remove action
instead of an unlabeled switch floating under a full-width picker.
Narrow screens split a reminder over two lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 11:53:07 -03:00
waoziandClaude Opus 5.5 b91804a656 Group device settings into titled sections
Device settings were a flat stack of floating labels, full-width
dropdowns, and a lone checkbox. They now sit in Language, Display,
Window, and Playback sections with each label beside its control, a
divider between rows, and switches for every on/off setting. The
language picker is disabled while the system language is used, and
switch knobs stay white on every color theme.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 11:49:00 -03:00
waoziandClaude Opus 5.5 666cf6dec4 Rebuild every Ziran tool together
Only zi2c and zi2zir were rebuilt when Ziran changed, so tests that run
the whole toolchain mixed a new zi2zir with an old ziran and failed with
an unsupported ZIR version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 11:49:00 -03:00
waozi 3232483494 Keep Wim Hof session progress active through exit prompt 2026-09-28 11:45:18 -03:00
waoziandClaude Opus 5.5 560bfd14e3 Compile native sources to reusable objects in parallel
The native build handed every generated module, SQLite, and the embedded
assets to one compiler call and wiped and re-touched the generated tree
first, so any change recompiled everything on one core. Generation now
updates the tree in place and prunes stale files, and each source builds
its own object with header dependencies, so rebuilds recompile only
what changed and use every core.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 11:21:32 -03:00
waozi 8b82d6ccca Fix Customize Nav click carryover 2026-09-28 03:00:14 -03:00
waozi 6458781bfb Enlarge the desktop profile avatar 2026-09-28 02:38:37 -03:00
waozi 3e37e8d9dc Fix habit summary and expanded card bounds 2026-09-28 02:01:56 -03:00
waozi d7ee514132 Fix habit expansion and compact readability 2026-09-28 01:52:26 -03:00
waoziandClaude Opus 5.5 c8a45734eb Use Kryon's tray instead of a private copy
The GTK/AppIndicator and Win32 tray backends moved into Kryon as the Ziran
`tray` module. Inbe keeps only its menu, actions, and status text in
desktop_tray.zi. Kryon picks StatusNotifierItem or a GTK status icon at
runtime and loads GTK only when the tray opens, so the build no longer
probes pkg-config for AppIndicator or links it.

On desktops with an AppIndicator host (GNOME, KDE, Xfce), closing the
window now hides Inner Breeze to the tray: the tray reports itself visible
once a StatusNotifierWatcher accepts it, where it previously never did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 00:56:19 -03:00
waozi 9fd589f704 Pin Kryon focused library build 2026-09-28 00:45:52 -03:00
waozi 1c3e45f824 Use focused Ziran tools and pin Kryon visual fixes 2026-09-28 00:42:47 -03:00
waozi 366e9e0a3b Pin Ziran text borrow source tracking 2026-09-27 21:11:25 -03:00
waoziandClaude Opus 5.5 bd42eff987 Let Cancel close the exit-session dialog
Each branch declared a new modal_result with :=, shadowing the one checked
after the branches, so the Cancel result was always read as zero and the
dialog stayed open. Assign the outer result instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 20:31:00 -03:00
waozi c7446fcdd3 Use field-aware Ziran text borrow checking 2026-09-27 20:26:37 -03:00
waoziandClaude Opus 5.5 f3aba36d00 Draw the profile row arrows and dashes
The UI font subset is built from locale text and input_common.txt, but the
profile rows use ›, the leaderboard shows — for missing averages, and practice
status joins parts with ·. Add them to the subset corpus, regenerate the
fonts, and update Kryon so the raylib backend loads glyphs beyond ASCII.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 17:39:25 -03:00
waoziandClaude Opus 5.5 fbbad35a1a Show real icons on list and friend actions
The Ziran port replaced the list edit and delete icons with ✎ and × text,
which the UI font cannot draw, and pointed the friend removal icon at a
language flag. Use Kryon's IconEdit and IconTrash, and update Kryon so
icon-only buttons and modal action labels draw again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 17:25:38 -03:00
waoziandClaude Opus 5.5 1d2207b045 Build dependencies from local sources before the network
scripts/packages.sh now seeds the Ziran package cache from Git checkouts that
already contain the locked commits, found in $ZIRAN_PACKAGE_SOURCES or
F-Droid's ../srclib, including submodules such as Kryon's raylib. Builders
that supply every source never fetch; anything missing is still downloaded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 17:12:16 -03:00
waoziandClaude Opus 5.5 e5c7d4be1a Restore the practice banner fade
The banner image is now queued paint, so the fade drawn directly with raylib
ended up underneath it and the banner stopped with a hard edge. Queue the fade
and the title background after the image with Kryon's vertical gradient paint.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 16:52:13 -03:00
waoziandClaude Opus 5.5 94b3bd5f9d Fetch dependencies as Ziran packages instead of submodules
ziran.toml and ziran.lock pin the Ziran toolchain, Kryon, Game2D, the Daochi
client, and the C libraries (as source packages) at the commits the vendor
submodules used. scripts/packages.sh bootstraps the locked toolchain, runs
ziran fetch, and links each checkout under build/packages/; make, Gradle, and
CI run it before building. make package-check replaces no-vendor-edits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 16:44:19 -03:00
waoziandClaude Opus 5.5 900553a78c Keep selected navigation readable in dark themes
Style packs pair their own accent-soft background with accent text. Inbe
replaces accent with the theme button color, so selected soft buttons in the
navigation rail rendered dark text on a dark background. Use the theme accent
and its computed ink instead, and give cards the themed surface.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 15:40:53 -03:00
waoziandClaude Opus 5.5 dc67b1bfbe Port Inbe screens, storage, and platform hosts to Ziran
Replace the remaining .kry and C application sources with Ziran modules,
move vendored dependencies to their current pointers, and add Ziran tests for
the ported hosts and policies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 15:40:52 -03:00
6511 changed files with 76535 additions and 460429 deletions

No files matched your search

+1 -6
View File
@@ -1,8 +1,3 @@
unpackaged_assets/**/*.ogg filter=lfs diff=lfs merge=lfs -text
test-fixtures/audio/*.mp3 filter=lfs diff=lfs merge=lfs -text
themes/catalog_*.css whitespace=-blank-at-eof
design/lists-redesign/*.png filter=lfs diff=lfs merge=lfs -text
design/sun-salutation/face-redesign/*.png filter=lfs diff=lfs merge=lfs -text
design/sun-salutation/face-redesign/*.mp4 filter=lfs diff=lfs merge=lfs -text
# Vendored three.js keeps its upstream formatting.
site/static/assets/radio/three*.js -whitespace
themes/catalog_*.kss whitespace=-blank-at-eof
-47
View File
@@ -1,47 +0,0 @@
name: Breeze build
on:
push:
branches: [master]
workflow_dispatch:
inputs:
profile:
description: Quick compiles the Linux app. Full also runs the local tests.
required: true
type: choice
options: [quick, full]
default: quick
permissions:
contents: read
concurrency:
group: breeze-build-${{ gitea.ref }}
cancel-in-progress: true
jobs:
linux:
name: Linux native
if: gitea.ref == 'refs/heads/master'
runs-on: build-native-breeze
timeout-minutes: 60
env:
BREEZE_PROFILE: ${{ gitea.event_name == 'push' && 'quick' || inputs.profile }}
steps:
- name: Check out the current pushed commit from Build
id: native
env:
BUILD_NATIVE_SOURCE_TOKEN: ${{ github.token }}
run: /usr/local/libexec/gitea-native-build checkout
- name: Fetch locked Ziran packages
if: steps.native.outputs.current == 'true'
run: /usr/local/libexec/gitea-native-build run sh scripts/packages.sh --locked
- name: Build the desktop app
if: steps.native.outputs.current == 'true'
run: |
/usr/local/libexec/gitea-native-build run bash -ec '
make -j"$JOBS" PACKAGE_FLAGS=--locked native
ccache --show-stats || true
'
- name: Run the retained local tests
if: steps.native.outputs.current == 'true' && env.BREEZE_PROFILE == 'full'
run: /usr/local/libexec/gitea-native-build run bash -ec 'make -j"$JOBS" PACKAGE_FLAGS=--locked test'
-168
View File
@@ -1,168 +0,0 @@
name: Cloudflare Pages
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
concurrency:
group: breeze-pages-${{ gitea.ref }}
cancel-in-progress: true
jobs:
site:
name: Build and verify the site
if: gitea.event_name == 'pull_request' || gitea.ref == 'refs/heads/master'
# Keep deployments on the same Build slot as its web artifact cache.
runs-on: build-breeze
# A cold build bootstraps pinned Ziran and Emscripten before compiling WASM.
timeout-minutes: 120
env:
SITE_ASSET_VERSION: ${{ gitea.sha }}
steps:
- name: Check out Breeze from Gitea
uses: https://github.com/actions/checkout@v4
env:
GIT_LFS_SKIP_SMUDGE: '1'
with:
persist-credentials: false
- name: Fetch the website's audio from Gitea LFS
run: sh site/fetch-meditation-audio.sh
- name: Check preinstalled Node.js 22
id: node-check
run: |
if command -v node >/dev/null 2>&1 && node -v | grep -q '^v22\.'; then
echo "Using preinstalled $(node -v)"
echo "ready=true" >> "$GITHUB_OUTPUT"
else
echo "ready=false" >> "$GITHUB_OUTPUT"
fi
- name: Set up Node.js
if: steps.node-check.outputs.ready != 'true'
uses: https://github.com/actions/setup-node@v4
with:
node-version: 22
- name: Identify exact web build inputs
id: web-inputs
run: |
key=$(sh site/web-build-key.sh)
printf 'key=%s\n' "$key" >> "$GITHUB_OUTPUT"
- name: Restore the source-built web app
id: web-restore
uses: https://github.com/actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830
continue-on-error: true
with:
path: build/dist/web
key: breeze-web-${{ runner.os }}-${{ runner.arch }}-${{ steps.web-inputs.outputs.key }}
- name: Check the cached web build
id: web-cache
env:
WEB_INPUT_KEY: ${{ steps.web-inputs.outputs.key }}
run: |
if sh site/web-build-receipt.sh verify build/dist/web "$WEB_INPUT_KEY" 2>/dev/null; then
echo 'Reusing the verified web build for these inputs'
echo 'ready=true' >> "$GITHUB_OUTPUT"
else
echo 'Building the web app for these inputs'
echo 'ready=false' >> "$GITHUB_OUTPUT"
fi
- name: Install site build dependencies
run: USER="$(id -un)" .github/scripts/install-apt-packages.sh .github/apt/empty-packages.txt apt-utils gnupg ripgrep unzip zip zstd
- name: Install web build dependencies
if: steps.web-cache.outputs.ready != 'true'
run: USER="$(id -un)" .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt python3-pil
- name: Fetch locked Ziran packages
if: steps.web-cache.outputs.ready != 'true'
uses: ./.github/actions/ziran-packages
- name: Set up the pinned Emscripten SDK
if: steps.web-cache.outputs.ready != 'true'
uses: ./.github/actions/emscripten
- name: Build the web app from this revision
if: steps.web-cache.outputs.ready != 'true'
env:
WEB_INPUT_KEY: ${{ steps.web-inputs.outputs.key }}
run: |
set -eu
rm -f build/dist/web/index.html build/dist/web/index.js build/dist/web/index.wasm
make -j2 PACKAGE_FLAGS=--locked WEB_CACHE_BUSTER="$WEB_INPUT_KEY" build/dist/web/index.html
sh site/web-build-receipt.sh write build/dist/web "$WEB_INPUT_KEY"
- name: Verify the exact web app artifact
env:
WEB_INPUT_KEY: ${{ steps.web-inputs.outputs.key }}
run: sh site/web-build-receipt.sh verify build/dist/web "$WEB_INPUT_KEY"
- name: Save the verified web build for the next deployment
if: gitea.event_name != 'pull_request' && steps.web-cache.outputs.ready != 'true' && steps.web-restore.outputs.cache-hit != 'true'
uses: https://github.com/actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830
continue-on-error: true
with:
path: build/dist/web
key: breeze-web-${{ runner.os }}-${{ runner.arch }}-${{ steps.web-inputs.outputs.key }}
- name: Fetch the pinned site icons from Gitea
run: |
set -eu
kryon_dir="$PWD/build/site-kryon"
sh site/fetch-kryon-icons.sh "$kryon_dir"
printf 'KRYON_DIR=%s\n' "$kryon_dir" >> "$GITHUB_ENV"
- name: Select the verified web app origin
if: gitea.event_name != 'pull_request'
run: |
set -eu
host=innerbreeze.org
if ! sh site/check-account-origin.sh "$host"; then
host=inbe.waozi.xyz
sh site/check-account-origin.sh "$host"
fi
printf 'SITE_APP_HOST=%s\n' "$host" >> "$GITHUB_ENV"
- name: Build site with the source-built web app and signed download repository
env:
APT_SIGNING_KEY: ${{ gitea.event_name != 'pull_request' && secrets.APT_SIGNING_KEY || '' }}
run: SITE_WEB_DIR="$PWD/build/dist/web" sh site/build-production.sh
- name: Test website routes, assets and Telegram bridge
run: |
node tests/site_assets_test.mjs
sh tests/site_web_build_test.sh
# The APT fixture is designed to check package discovery without root.
if [ "$(id -u)" -eq 0 ]; then
runuser -u nobody -- sh tests/apt_repo_test.sh
else
sh tests/apt_repo_test.sh
fi
node tests/telegram_bridge_test.mjs
- name: Deploy current master to Cloudflare Pages
if: gitea.event_name != 'pull_request'
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
WRANGLER_SEND_METRICS: 'false'
REVISION: ${{ gitea.sha }}
run: |
set -euo pipefail
test "$(git rev-parse HEAD)" = "$REVISION"
test "$(git ls-remote origin refs/heads/master | cut -f1)" = "$REVISION"
: "${CLOUDFLARE_API_TOKEN:?Missing Gitea Pages deployment token}"
: "${CLOUDFLARE_ACCOUNT_ID:?Missing Gitea Pages account ID}"
# Verify the public domain and the selected app origin before uploading.
curl -fsS --max-time 25 https://innerbreeze.org/ -o /dev/null
sh site/check-account-origin.sh "$SITE_APP_HOST"
npm exec --yes [email protected] -- wrangler pages deploy build/site \
--project-name=inbe --branch=master --commit-hash="$REVISION" --commit-dirty=false
sh site/verify-deployment.sh "$REVISION"
-1
View File
@@ -2,4 +2,3 @@
set -eu
scripts/check-secrets.py --staged
scripts/check-file-size.py --staged
-1
View File
@@ -15,4 +15,3 @@ else
fi
scripts/check-secrets.py --pre-push "$@" < "$tmp"
scripts/pre-push-checks.py < "$tmp"
+7 -11
View File
@@ -2,9 +2,8 @@ name: Fetch Ziran packages
description: >
Fetch the packages pinned in ziran.lock. The built Ziran compiler is cached
by the runner image and the toolchain commit, so bumping another package
such as Kryon keeps it; the package checkouts are cached by the runner image
and the whole lock and fall back to the previous checkouts, so a bump
fetches only what changed.
such as Kryon keeps it; the package checkouts are cached by the whole lock and fall back
to the previous checkouts, so a bump fetches only what changed.
inputs:
save-toolchain:
@@ -29,7 +28,7 @@ runs:
- name: Restore the Ziran toolchain
if: inputs.save-toolchain == 'true'
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
uses: actions/cache@v4
with:
path: |
build/ziran-bootstrap
@@ -40,7 +39,7 @@ runs:
- name: Restore the Ziran toolchain without saving it
if: inputs.save-toolchain != 'true'
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
uses: actions/cache/restore@v4
with:
path: |
build/ziran-bootstrap
@@ -49,16 +48,13 @@ runs:
restore-keys: |
ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-
# Package checkouts can hold programs built inside them, such as the
# Ziran an Apps controller build compiles for its own lock, so they are
# kept per runner image as well.
- name: Restore the package sources
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
uses: actions/cache@v4
with:
path: ~/.cache/ziran/sources
key: ziran-sources-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-${{ hashFiles('ziran.lock') }}
key: ziran-sources-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('ziran.lock') }}
restore-keys: |
ziran-sources-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-
ziran-sources-${{ runner.os }}-${{ runner.arch }}-
- name: Fetch Ziran packages
shell: sh
-4
View File
@@ -1,4 +0,0 @@
platforms;android-36
build-tools;35.0.0
ndk;28.2.13676358
cmake;3.22.1
-7
View File
@@ -1,7 +0,0 @@
python3-fonttools
nasm
# dav1d (the AVIF decoder) builds with Meson and Ninja.
meson
ninja-build
# The app build decodes every guide narration clip with ffmpeg to check it.
ffmpeg
+4 -6
View File
@@ -3,9 +3,13 @@ ca-certificates
curl
dpkg
libcurl4-openssl-dev
libdrm-dev
libdrm2
libegl1-mesa-dev
libegl1
libgbm-dev
libgbm1
libgles2-mesa-dev
libgl1
libgl1-mesa-dri
libglvnd0
@@ -23,9 +27,3 @@ rpm
x11-utils
xvfb
zip
nasm
# dav1d (the AVIF decoder) builds with Meson and Ninja.
meson
ninja-build
# The app build decodes every guide narration clip with ffmpeg to check it.
ffmpeg
+1 -8
View File
@@ -1,9 +1,5 @@
build-essential
apt-utils
gnupg
ffmpeg
ca-certificates
desktop-file-utils
libcurl4-openssl-dev
ripgrep
zlib1g-dev
@@ -26,9 +22,6 @@ x11-utils
xclip
sqlite3
imagemagick
tesseract-ocr
python3-cryptography
nasm
# dav1d (the AVIF decoder) builds with Meson and Ninja.
meson
ninja-build
-3
View File
@@ -1,8 +1,5 @@
build-essential
cmake
zlib1g-dev
zip
tcl
python3-fonttools
# The app build decodes every guide narration clip with ffmpeg to check it.
ffmpeg
-7
View File
@@ -1,14 +1,7 @@
build-essential
gcc-mingw-w64-x86-64-win32
g++-mingw-w64-x86-64-win32
zlib1g-dev
libz-mingw-w64-dev
zip
nsis
python3-fonttools
nasm
# dav1d (the AVIF decoder) builds with Meson and Ninja.
meson
ninja-build
# The app build decodes every guide narration clip with ffmpeg to check it.
ffmpeg
-18
View File
@@ -1,18 +0,0 @@
# Files over 1 MB that may be committed (scripts/check-file-size.py runs in
# the pre-commit hook and in CI). Only files the app ships or its build reads
# belong here; drafts, renders and design explorations go in the ignored
# backup/ folder, and large media can go in Git LFS (see .gitattributes).
# Lumi and the default profile picture
assets/lumi/mascot.png
assets/profile-pictures/flowers.png
# Narration receipts the practice packages are built from
design/tai-chi/narration-receipt.json
design/tai-chi/narration-male-receipt.json
design/astral-projection/bruce-narration-receipt.json
# Exact digest-bound Arcade library artwork shipped for offline browsing.
apps/bundled/arcade.games/3db3d137e3e15f7bada0cab75751f33d92005e3bc28dded7a1419b1f06e6a1e0.zx
apps/bundled/arcade.games/83471e1e310ffbac2972bf5d85e7072da2812c6a3d7efb9d8beff7873ca973e1.zx
apps/bundled/arcade.games/a2cdbe88ec6220d89b105e60d37b4c1e910506cfd7df5875e2e55a3021b4c366.zx
# The Radio page's three.js runtime on the website.
site/static/assets/radio/three.core.js
-1
View File
@@ -1 +0,0 @@
docker.io/library/ubuntu@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852
-10
View File
@@ -1,10 +0,0 @@
#!/bin/sh
# The same package and real-browser checks as CI's Build Browser Add-ons job.
set -eu
export YUE_DESKTOP_RECOVERY=0
unset DISPLAY WAYLAND_DISPLAY XAUTHORITY DBUS_SESSION_BUS_ADDRESS
make package-unpackaged-assets chrome-web-store firefox-addons firefox-addons-lint
test -f build/dist/inbe-chrome-web-store.zip
test -f build/dist/inbe-firefox-addons.zip
make web-smoke-test
LIBGL_ALWAYS_SOFTWARE=1 make web-smoke-test-firefox
-29
View File
@@ -1,29 +0,0 @@
#!/bin/sh
# Reset only the server's private overlay, never its canonical checkout.
set -eu
server=/sync-server
filesystem=$(stat -f -c %T "$server")
if [ "$filesystem" != overlayfs ]; then
echo "release-ready: sync server is not a private overlay" >&2
exit 2
fi
commit=$(cat .github/sync-test-server-commit)
python3 -c "$RELEASE_READY_SNAPSHOT" "$server" "$commit"
expected=$(git -c safe.directory="$server" -C "$server" rev-parse HEAD:vendor/liboqs)
actual=$(git -c safe.directory="$server/vendor/liboqs" -C "$server/vendor/liboqs" rev-parse HEAD)
if [ "$expected" != "$actual" ]; then
echo "release-ready: canonical Mesh's liboqs must match the CI pin" >&2
exit 2
fi
if [ -n "$(git -c safe.directory="$server/vendor/liboqs" -C "$server/vendor/liboqs" status --porcelain --untracked-files=all)" ]; then
echo "release-ready: canonical Mesh's liboqs must be pristine" >&2
exit 2
fi
# Emscripten's PATH entry holds a cmake directory, which make's own command
# lookup would try to run instead of the cmake program. The server generates
# its Go with Ziran, Breeze's own toolchain.
make /src/build/packages/ziran/build/bin/zi2c
make -C "$server" BUILD_DIR="$server/build" CMAKE="$(command -v cmake)" \
ZIRAN=/src/build/packages/ziran/build/bin/ziran build
MESH_BIN="$server/mesh" make sync-server-test
git -c safe.directory="$server" -C "$server" diff --exit-code "$commit" -- .
-64
View File
@@ -1,64 +0,0 @@
# The Test job's machine for `make release-ready`: the runner's Ubuntu, the
# packages CI installs for native/browser tests, its pinned SDK and Bun.
# scripts/release-ready.sh has Harmony's container service run this recipe as
# root on the pinned base image (.github/local-ci/base-image), with the
# candidate's .github folder at /run/harmony-container/context.tar, and commit
# the result with these settings:
# EM_NODE_JS=/usr/local/bin/bun EMSDK_NODE=/usr/local/bin/bun
# EM_CONFIG=/opt/emsdk/.emscripten
# PATH=/opt/emsdk/upstream/emscripten:/usr/local/go/bin:/usr/local/bin:/usr/bin:/bin
set -eu
BUN_VERSION=1.4.2
BUN_SHA256=36368faef7527875d5ffa52e53cd48021741f2a83eb6208a8dd64068d422a913
GO_VERSION=1.24.4
context=/tmp/inbe-ci-context
mkdir -p "$context"
tar -xf /run/harmony-container/context.tar -C "$context"
# The hosted runner also ships git, Git LFS, curl, cmake, zip, jq, OpenSSL's
# headers, libsodium, D-Bus, Java 21, Go and the Android SDK
# (scripts/release-ready.sh mounts this machine's).
export DEBIAN_FRONTEND=noninteractive
apt-get update
# shellcheck disable=SC2046
apt-get install -y --no-install-recommends \
git git-lfs python3 curl xz-utils make cmake zip unzip jq file libssl-dev \
libsodium23 dbus openjdk-21-jdk-headless \
libgtk-3-0t64 libasound2t64 libdbus-glib-1-2 libxt6t64 libxtst6 libpci3 \
$(grep -hv '^#' "$context/apt/test-packages.txt" "$context/apt/web-packages.txt" \
"$context/apt/windows-packages.txt" | cut -d: -f2- | sort -u | tr '\n' ' ')
if [ -x /usr/bin/x86_64-w64-mingw32-gcc-win32 ]; then
update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-win32
fi
curl -fsSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /tmp/chrome.deb
apt-get install -y --no-install-recommends /tmp/chrome.deb
rm -rf /var/lib/apt/lists/* /tmp/chrome.deb
# Bun only: nothing in the image executes Node, including the SDK's cache bootstrap.
mkdir -p /opt/js-runtime
curl -fsSL "https://github.com/oven-sh/bun/releases/download/bun-v${BUN_VERSION}/bun-linux-x64.zip" \
-o /opt/js-runtime/bun.zip
printf '%s %s\n' "$BUN_SHA256" /opt/js-runtime/bun.zip | sha256sum -c -
unzip -q /opt/js-runtime/bun.zip -d /opt/js-runtime
mv /opt/js-runtime/bun-linux-x64/bun /usr/local/bin/bun
rm -rf /opt/js-runtime/bun.zip /opt/js-runtime/bun-linux-x64
bun --version
export EM_NODE_JS=/usr/local/bin/bun EMSDK_NODE=/usr/local/bin/bun
mkdir -p /opt/emsdk /opt/firefox
curl -fsSL https://github.com/emscripten-core/emsdk/archive/refs/heads/main.tar.gz \
| tar -xz -C /opt/emsdk --strip-components=1
emscripten=$(cat "$context/emscripten-version")
/opt/emsdk/emsdk install "$emscripten"
/opt/emsdk/emsdk activate "$emscripten"
/opt/emsdk/upstream/emscripten/embuilder build zlib
chmod -R a+rwX /opt/emsdk/upstream/emscripten/cache
curl -fsSL 'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US' \
| tar -xJ -C /opt/firefox --strip-components=1
ln -s /opt/firefox/firefox /usr/local/bin/firefox
curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar -xz -C /usr/local
ln -s /usr/local/go/bin/go /usr/local/bin/go
/usr/local/go/bin/go version
rm -rf "$context"
-132
View File
@@ -1,132 +0,0 @@
#!/usr/bin/env python3
"""Install the pinned SDK components, retrying downloads in fresh staging areas."""
from pathlib import Path
import argparse
import os
import re
import shutil
import subprocess
import tempfile
import time
import xml.etree.ElementTree as ET
import zipfile
ROOT = Path(__file__).resolve().parents[2]
def component_path(root, package):
if not re.fullmatch(r"(?:platforms;android-[0-9]+|(?:build-tools|ndk|cmake);[0-9]+\.[0-9]+\.[0-9]+)", package):
raise ValueError("invalid pinned SDK component: " + package)
return root.joinpath(*package.split(";"))
def valid(root, package):
directory = component_path(root, package)
try:
document = ET.parse(directory / "package.xml")
if not any(element.tag.rsplit("}", 1)[-1] == "localPackage" and
element.get("path") == package for element in document.iter()):
return False
kind, version = package.split(";")
if kind == "platforms":
with zipfile.ZipFile(directory / "android.jar") as archive:
return archive.testzip() is None
properties = (directory / "source.properties").read_text()
if not re.search(r"^Pkg\.Revision\s*=\s*" + re.escape(version) + r"\s*$", properties, re.M):
return False
if kind == "cmake":
command = [directory / "bin/cmake", "--version"]
elif kind == "build-tools":
command = [directory / "aapt2", "version"]
else:
command = [next(directory.glob("toolchains/llvm/prebuilt/*/bin/clang")), "--version"]
result = subprocess.run(command, capture_output=True, text=True, timeout=15)
if result.returncode != 0:
return False
if kind == "cmake":
expected = "cmake version " + re.escape(version) + r"(?:-[0-9A-Za-z.]+)?"
return re.fullmatch(expected, result.stdout.splitlines()[0]) is not None
return True
except (OSError, UnicodeError, ET.ParseError, zipfile.BadZipFile, StopIteration, IndexError,
subprocess.TimeoutExpired):
return False
def merge_licenses(source, destination):
"""Keep runner-owned permissions and accepted licence hashes intact."""
if not source.is_dir():
return
destination.mkdir(exist_ok=True)
for license_file in source.iterdir():
if not license_file.is_file():
continue
target = destination / license_file.name
accepted = target.read_text().splitlines() if target.exists() else []
additions = [line for line in license_file.read_text().splitlines()
if line.strip() and line not in accepted]
if not additions:
continue
# copytree/copy2 also chmod and set timestamps. Hosted SDK licences
# can be writable but owned by root, so metadata copying fails.
with target.open("a") as output:
output.write("\n" + "\n".join(additions) + "\n")
def install(root, packages, manager, sleep=time.sleep):
root = Path(root).resolve()
manager = Path(manager).resolve(strict=True)
root.mkdir(parents=True, exist_ok=True)
for package in packages:
destination = component_path(root, package)
if valid(root, package):
print("Android SDK: verified cached " + package, flush=True)
continue
for attempt in range(1, 4):
print(f"Android SDK: install {package}, attempt {attempt}/3", flush=True)
# sdkmanager keeps partial archives beneath its SDK root. A new
# stage guarantees that a corrupt ZIP cannot survive the retry.
with tempfile.TemporaryDirectory(prefix=".inbe-sdk-", dir=root) as temporary:
stage = Path(temporary)
if (root / "licenses").is_dir():
shutil.copytree(root / "licenses", stage / "licenses")
environment = dict(os.environ, ANDROID_HOME=str(stage), ANDROID_SDK_ROOT=str(stage))
try:
result = subprocess.run([manager, "--sdk_root=" + str(stage), package],
input=b"y\n" * 128, env=environment, timeout=600)
except subprocess.TimeoutExpired:
result = None
if result is not None and result.returncode == 0 and valid(stage, package):
source = component_path(stage, package)
destination.parent.mkdir(parents=True, exist_ok=True)
if destination.exists():
destination.rename(stage / "incomplete-component")
source.rename(destination)
merge_licenses(stage / "licenses", root / "licenses")
if not valid(root, package):
raise RuntimeError("SDK component failed validation after installation: " + package)
break
print("Android SDK: rejected incomplete or invalid " + package, flush=True)
if attempt == 3:
raise RuntimeError("Android SDK download failed after three fresh attempts: " + package)
sleep(attempt * 2)
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--sdk-root", type=Path,
default=os.environ.get("ANDROID_SDK_ROOT") or os.environ.get("ANDROID_HOME"))
parser.add_argument("--sdkmanager", type=Path)
parser.add_argument("--packages", type=Path, default=ROOT / ".github/android-sdk-packages.txt")
args = parser.parse_args()
if args.sdk_root is None:
parser.error("ANDROID_SDK_ROOT or ANDROID_HOME must name the job's SDK")
manager = args.sdkmanager or args.sdk_root / "cmdline-tools/latest/bin/sdkmanager"
if args.sdkmanager is None and not manager.is_file():
manager = Path(shutil.which("sdkmanager") or manager)
packages = [line.strip() for line in args.packages.read_text().splitlines()
if line.strip() and not line.lstrip().startswith("#")]
install(args.sdk_root, packages, manager)
if __name__ == "__main__":
main()
+11 -22
View File
@@ -14,26 +14,6 @@ if [ ! -f "$package_file" ]; then
exit 2
fi
mapfile -t raw_packages < "$package_file"
packages=()
for package in "${raw_packages[@]}" "$@"; do
if [ -z "$package" ] || [[ "$package" == \#* ]]; then
continue
fi
packages+=("$package")
done
missing=()
for package in "${packages[@]}"; do
if ! dpkg-query -W -f='${Status}\n' "$package" 2>/dev/null | grep -qx 'install ok installed'; then
missing+=("$package")
fi
done
if [ "${#missing[@]}" -eq 0 ]; then
echo "All ${#packages[@]} requested apt packages are already installed; skipping apt-get."
exit 0
fi
APT_CACHE_DIR="${APT_CACHE_DIR:-/tmp/apt-cache}"
apt_arch="$(dpkg --print-architecture)"
ubuntu_archive="https://archive.ubuntu.com/ubuntu"
@@ -72,6 +52,15 @@ Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
EOF
mapfile -t raw_packages < "$package_file"
packages=()
for package in "${raw_packages[@]}" "$@"; do
if [ -z "$package" ] || [[ "$package" == \#* ]]; then
continue
fi
packages+=("$package")
done
mkdir -p "$APT_CACHE_DIR/partial"
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get \
@@ -79,12 +68,12 @@ sudo apt-get \
-o Acquire::http::Timeout=20 \
-o Acquire::https::Timeout=20 \
update
if [ "${#missing[@]}" -gt 0 ]; then
if [ "${#packages[@]}" -gt 0 ]; then
sudo apt-get \
-o Acquire::Retries=3 \
-o Acquire::http::Timeout=20 \
-o Acquire::https::Timeout=20 \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${missing[@]}"
install -y "${packages[@]}"
fi
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
-1
View File
@@ -1 +0,0 @@
35159302be6f9011c3934636c6c200eec785ff5b
+17 -45
View File
@@ -47,11 +47,11 @@ jobs:
if run['head_sha'] != commit or run['path'] != '.github/workflows/release.yml':
raise SystemExit('The Release checks must belong to the requested source commit')
jobs = api(f'repos/{repository}/actions/runs/{run_id}/jobs?per_page=100')['jobs']
for name in ('Secret Scan', 'Test (0/3)', 'Test (1/3)', 'Test (2/3)'):
for name in ('Secret Scan', 'Test'):
checks = [job for job in jobs if job['name'] == name]
if len(checks) != 1 or checks[0]['conclusion'] != 'success':
raise SystemExit(f'{name} must have passed before signing')
print('Verified passing Secret Scan and all three Test shards for ' + commit)
print('Verified passing Secret Scan and full Test jobs for ' + commit)
PY
- name: Checkout verified source
@@ -82,20 +82,19 @@ jobs:
with:
path: |
${{ env.ANDROID_HOME }}/platforms/android-36
${{ env.ANDROID_HOME }}/build-tools/35.0.0
${{ env.ANDROID_HOME }}/build-tools/34.0.0
${{ env.ANDROID_HOME }}/ndk/28.2.13676358
${{ env.ANDROID_HOME }}/cmake/3.22.1
key: android-sdk-v2-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/android-sdk-packages.txt') }}
key: android-moto-sdk-${{ runner.os }}-api36-ndk28-cmake322
restore-keys: |
android-sdk-v2-${{ runner.os }}-${{ runner.arch }}-
android-sdk-${{ runner.os }}-${{ runner.arch }}-
- name: Verify and install Android SDK components
timeout-minutes: 20
run: python3 .github/scripts/install-android-sdk.py
- name: Install Android build dependencies
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/android-packages.txt
- name: Install Android SDK components
run: |
set -euo pipefail
SDKMANAGER="$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager"
yes | "$SDKMANAGER" --licenses >/dev/null || true
"$SDKMANAGER" "platforms;android-36" "build-tools;34.0.0" "ndk;28.2.13676358" "cmake;3.22.1"
- name: Prepare Android signing key
env:
@@ -106,6 +105,11 @@ jobs:
mkdir -p ~/.android
printf '%s' "$KEYSTORE_BASE64" | base64 -d > ~/.android/inbe-release.keystore
- name: Prepare Firebase config
env:
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
run: ./scripts/write-google-services-json.sh
- name: Copy Android assets
run: ./scripts/copy-android-assets.sh
@@ -116,18 +120,6 @@ jobs:
SOURCE_COMMIT: ${{ inputs.source_commit }}
run: |
set -euo pipefail
python3 - <<'PY'
import importlib.util
import os
import subprocess
from pathlib import Path
spec = importlib.util.spec_from_file_location('phone_check', 'scripts/phone-check.py')
check = importlib.util.module_from_spec(spec)
spec.loader.exec_module(check)
revision = os.environ['SOURCE_COMMIT']
assert subprocess.check_output(['git', 'rev-parse', 'HEAD'], text=True).strip() == revision
assert check.app_tree(Path.cwd()) == check.app_tree(Path.cwd(), revision), 'App source differs from candidate'
PY
./droid/gradlew -p droid assembleRelease \
-Papp.onlyAbi=armeabi-v7a \
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
@@ -137,32 +129,12 @@ jobs:
VERSION=$(python3 scripts/check-version.py --print-version)
mkdir -p build/release/moto
cp droid/app/build/outputs/apk/release/app-armeabi-v7a-release.apk "build/release/moto/inbe-$VERSION-moto.apk"
"$ANDROID_HOME/build-tools/35.0.0/apksigner" verify --print-certs "build/release/moto/inbe-$VERSION-moto.apk"
"$ANDROID_HOME/build-tools/34.0.0/apksigner" verify --print-certs "build/release/moto/inbe-$VERSION-moto.apk"
printf '%s\n' "$SOURCE_COMMIT" > build/release/moto/source-commit.txt
(
cd build/release/moto
sha256sum "inbe-$VERSION-moto.apk" > "inbe-$VERSION-moto.apk.sha256"
)
python3 - <<'PY'
import hashlib
import importlib.util
import json
import os
from pathlib import Path
spec = importlib.util.spec_from_file_location('phone_check', 'scripts/phone-check.py')
check = importlib.util.module_from_spec(spec)
spec.loader.exec_module(check)
root = Path.cwd()
revision = os.environ['SOURCE_COMMIT']
content = check.app_tree(root, revision)
assert check.app_tree(root) == content, 'App source changed during build'
apk = next(Path('build/release/moto').glob('inbe-*-moto.apk'))
receipt = dict(schema=1, status='passed', source_commit=revision, app_tree=content,
apk=dict(sha256=hashlib.sha256(apk.read_bytes()).hexdigest(), **check.apk_identity(apk)),
workflow_run=os.environ['GITHUB_SERVER_URL'] + '/' + os.environ['GITHUB_REPOSITORY'] +
'/actions/runs/' + os.environ['GITHUB_RUN_ID'])
(apk.parent / 'build-receipt.json').write_text(json.dumps(receipt, indent=2) + '\n')
PY
- name: Remove signing key
if: always()
-63
View File
@@ -1,63 +0,0 @@
name: Sign bundled Arcade content
# The established publisher key is currently held only by this repository's
# GitHub secret. This manual repair signs the checked-in catalog's immutable
# content descriptors and exports them; it never publishes an app release.
on:
workflow_dispatch:
inputs:
catalog_sha256:
description: Exact SHA-256 of the bundled Arcade catalog being repaired
required: true
type: string
permissions:
contents: read
jobs:
sign:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Load the pinned Apps release API
run: |
python3 - <<'PY'
from hashlib import sha256
import json
from pathlib import Path
import urllib.request
package = next(p for p in json.loads(Path('ziran.lock').read_text())['packages'] if p['name'].lower() == 'apps')
if package['url'] != 'https://git.waozi.xyz/waozi/apps.git' or package['commit'] != 'c18e70b434456823a5d332255d78b48064f12de3':
raise SystemExit('Review the changed Apps pin before signing content')
url = 'https://git.waozi.xyz/waozi/apps/raw/commit/' + package['commit'] + '/scripts/node_release.py'
request = urllib.request.Request(url, headers={'User-Agent': 'Breeze-content-signing/1'})
with urllib.request.urlopen(request, timeout=30) as response:
source = response.read(1048577)
if sha256(source).hexdigest() != '6b02a862edcd0d1f966cf168f762a6e91dcb3eaae4bacd555c096ad25ceebffe':
raise SystemExit('Pinned Apps release API bytes differ')
path = Path('build/content-signing-api/node_release.py')
path.parent.mkdir(parents=True, exist_ok=True)
path.write_bytes(source)
PY
- name: Install signature library
run: python3 -m pip install cryptography
- name: Test content signing
env:
APPS_RELEASE_API: build/content-signing-api/node_release.py
run: python3 tests/arcade_content_sign_test.py
- name: Sign only the requested catalog's content
env:
INBE_PACKAGE_SIGNING_KEY: ${{ secrets.INBE_PACKAGE_SIGNING_KEY }}
KEY_ID: ${{ vars.INBE_PACKAGE_KEY_ID }}
CATALOG_SHA256: ${{ inputs.catalog_sha256 }}
run: |
python3 scripts/sign-arcade-content.py --catalog-sha256 "$CATALOG_SHA256" \
--key-id "$KEY_ID" --release-api build/content-signing-api/node_release.py \
--output build/arcade-content-signatures
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: arcade-content-signatures
path: build/arcade-content-signatures/*.zx.release-v2.json
if-no-files-found: error
retention-days: 30
+36 -49
View File
@@ -13,8 +13,8 @@ permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.sha }}
cancel-in-progress: false
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
secret-scan:
@@ -42,34 +42,6 @@ jobs:
python3 scripts/check-secrets.py --working-tree
python3 scripts/check-secrets.py --history
# The pre-commit hook runs the same check on staged files.
- name: Refuse new files over 1 MB
env:
BEFORE: ${{ github.event.before }}
BASE_REF: ${{ github.base_ref }}
run: |
set -eu
if [ -n "$BASE_REF" ]; then
base=$(git merge-base "origin/$BASE_REF" HEAD)
elif [ -n "$BEFORE" ] && git cat-file -e "$BEFORE^{commit}" 2>/dev/null; then
base=$BEFORE
else
base=HEAD~1
fi
python3 scripts/check-file-size.py --since "$base"
google-free:
name: Google libraries only in the gplay edition
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# The normal and F-Droid builds read no Google library or plugin; only
# gplay-scoped configurations and gplay files may name one.
- name: Keep Google libraries out of the normal and F-Droid build files
uses: kryonlabs/kryon/.github/actions/google-free@7217475dfa7f462939e47e3f0bc918aef248b179
guard-package-urls:
name: Package URLs are public HTTPS
runs-on: ubuntu-latest
@@ -124,12 +96,6 @@ jobs:
with:
node-version: 22
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Cache Test apt packages
uses: actions/cache@v4
with:
@@ -145,19 +111,42 @@ jobs:
- name: Run Tests
run: sh scripts/test-shard.sh ${{ matrix.shard }} 3
- name: Read sync test server revision
if: matrix.shard == 0
id: sync-test-server
run: echo "revision=$(cat .github/sync-test-server-commit)" >> "$GITHUB_OUTPUT"
- name: Require Visual Tests
if: matrix.shard == 1
run: make visual-test
- name: Save Visual Test Evidence
if: always() && matrix.shard == 1
uses: actions/upload-artifact@v4
with:
name: native-visual-tests
path: |
build/visual-test/
build/native-visual-test/
build/native-zoom-test/*.png
build/native-zoom-test/app.log
build/launcher-ui-test/
build/locale-render-ui-test/
build/native-screenshot-test/
build/native-text-pixels-test/*.png
build/native-text-pixels-test/*.log
build/settings-sidebar-test/
build/startup-quit-test/
build/lumi-ui-test/
build/lumi-history-ui-test/
build/habits-cards-ui-test/
build/lists-ui-test/
build/sync-review-ui-test/
build/data-back-ui-test/
retention-days: 7
- name: Check out sync test server
if: matrix.shard == 0
uses: actions/checkout@v4
with:
repository: ziranlang/mesh
# Includes signed photo copies (blobs) and the private Lumi
# collection used for shared account activity.
ref: ${{ steps.sync-test-server.outputs.revision }}
repository: kryonlabs/daochi
# Includes the private Lumi collection used for shared account activity.
ref: f850456a7e039e9ba39fcf03cb7cb802ff6a3329
path: .test-server
submodules: recursive
@@ -171,10 +160,8 @@ jobs:
- name: Verify sync and recovery
if: matrix.shard == 0
run: |
# The server generates its Go with Ziran, Breeze's own toolchain.
make "$GITHUB_WORKSPACE/build/packages/ziran/build/bin/zi2c"
make -C .test-server build ZIRAN="$GITHUB_WORKSPACE/build/packages/ziran/build/bin/ziran"
make sync-server-test MESH_BIN="$GITHUB_WORKSPACE/.test-server/mesh"
make -C .test-server build
make sync-server-test DAOCHI_BIN="$GITHUB_WORKSPACE/.test-server/daochi"
browser-addons:
# Builds the web app once, packages it for Chrome and Firefox, and runs
@@ -213,7 +200,7 @@ jobs:
- name: Install Web Dependencies
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt python3-pil
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set up Emscripten
uses: ./.github/actions/emscripten
-89
View File
@@ -1,89 +0,0 @@
name: F-Droid
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '23 7 * * *'
workflow_dispatch:
inputs:
revision:
description: Exact committed candidate (defaults to the triggering commit)
required: false
type: string
workflow_call:
inputs:
revision:
required: false
type: string
permissions:
contents: read
jobs:
build:
name: F-Droid security and clean build
runs-on: ubuntu-latest
timeout-minutes: 90
container:
# Official F-Droid buildserver, pinned for repeatable verification.
image: registry.gitlab.com/fdroid/fdroidserver@sha256:1ea8bef1820bff06c2974e31b4fc4c79c364cd24231b86e71fa4b926797e0dac
steps:
- name: Require an immutable candidate
env:
CANDIDATE: ${{ inputs.revision || github.sha }}
shell: bash
run: |
if ! [[ "$CANDIDATE" =~ ^[0-9a-f]{40}$ ]]; then
echo "::error::revision must be a full commit ID, never a branch or tag"
exit 1
fi
# Checkout's LFS support requires git-lfs inside the job container.
- name: Install recipe dependencies
run: |
apt-get update
apt-get install -y --no-install-recommends build-essential jimsh libssl-dev meson nasm ninja-build python3-fonttools ffmpeg openjdk-21-jdk-headless fdroidserver git-lfs
update-alternatives --set java /usr/lib/jvm/java-21-openjdk-amd64/bin/java
- name: Checkout candidate
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
ref: ${{ inputs.revision || github.sha }}
path: build/xyz.waozi.inbe
lfs: true
persist-credentials: false
- name: Verify and install Android SDK components
timeout-minutes: 20
run: |
python3 build/xyz.waozi.inbe/.github/scripts/install-android-sdk.py \
--sdk-root /opt/android-sdk --sdkmanager "$(command -v sdkmanager)"
- name: Build and scan with F-Droid without cached package sources
run: python3 build/xyz.waozi.inbe/scripts/check-fdroid.py
# F-Droid's scanner checked the source; its APK must hold no Google
# library either.
- name: Keep Google libraries out of F-Droid's APK
uses: kryonlabs/kryon/.github/actions/google-free@7217475dfa7f462939e47e3f0bc918aef248b179
with:
packages: tmp/*.apk
source: ''
- name: Preserve APK, exact metadata and scanner evidence
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: fdroid-unsigned
path: |
tmp/*.apk
logs/
metadata/
build/xyz.waozi.inbe/build/outputs/logs/
build/xyz.waozi.inbe/droid/app/build/intermediates/native_debug_metadata/
build/xyz.waozi.inbe/droid/app/build/intermediates/merged_native_libs/
if-no-files-found: error
retention-days: 7
-91
View File
@@ -1,91 +0,0 @@
name: Node app follower
# Arcade releases reach Waozi's node by themselves. Arcade's Game updates
# workflow attaches each new release (node-arcade-VERSION) when a game
# publishes an update; this checks every fifteen minutes for a release newer
# than the version the node serves and publishes it through the Node app
# release job, which signs exactly those bytes with the package key.
on:
schedule:
- cron: '12,27,42,57 * * * *'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: node-app-follower
cancel-in-progress: false
jobs:
check:
name: Find an Arcade release the node does not serve
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
publish: ${{ steps.release.outputs.publish }}
commit: ${{ steps.release.outputs.commit }}
tag: ${{ steps.release.outputs.tag }}
sha256: ${{ steps.release.outputs.sha256 }}
steps:
- name: Compare Arcade's newest release with the node
id: release
env:
GH_TOKEN: ${{ github.token }}
run: |
python3 - <<'PY'
import hashlib, json, os, re, subprocess, time, urllib.error, urllib.request
def gh(*args):
return subprocess.check_output(['gh', *args], text=True).strip()
def number(version):
return tuple(map(int, version.split('.')))
releases = json.loads(gh('release', 'list', '--repo', 'waozixyz/arcade', '--limit', '50',
'--json', 'tagName,isDraft'))
tags = [item['tagName'] for item in releases if not item['isDraft'] and
re.fullmatch(r'node-arcade-\d+\.\d+\.\d+', item['tagName'])]
tag = max(tags, key=lambda name: number(name.removeprefix('node-arcade-')))
def latest():
# Cloudflare answers 52x while it briefly cannot reach the node;
# retry those for a few minutes before calling the node down.
request = urllib.request.Request(
os.environ.get('NODE_LATEST_URL', 'https://api.waozi.xyz/api/v2/packages/inbe.arcade/latest?bucket=0&format=zx'),
headers={'User-Agent': 'Inbe-Publisher/1.0', 'Cache-Control': 'no-cache'})
waits = [int(wait) for wait in os.environ.get('NODE_RETRY_WAITS', '15 30 60 90').split()]
for attempt in range(len(waits) + 1):
try:
with urllib.request.urlopen(request, timeout=30) as response:
return json.load(response)['version']
except (urllib.error.URLError, TimeoutError, ConnectionError) as error:
if isinstance(error, urllib.error.HTTPError) and error.code < 500:
raise
if attempt == len(waits):
raise
print(f'The node did not answer ({error}); retrying in {waits[attempt]}s.')
time.sleep(waits[attempt])
live = latest()
with open(os.environ['GITHUB_OUTPUT'], 'a') as output:
if number(tag.removeprefix('node-arcade-')) <= number(live):
print(f'The node already serves Arcade {live}; newest release is {tag}.')
output.write('publish=false\n')
raise SystemExit(0)
commit = gh('api', f'repos/waozixyz/arcade/commits/{tag}', '--jq', '.sha')
subprocess.run(['gh', 'release', 'download', tag, '--repo', 'waozixyz/arcade',
'--pattern', 'arcade.zx', '--dir', 'bundle'], check=True)
with open('bundle/arcade.zx', 'rb') as bundle:
digest = hashlib.sha256(bundle.read()).hexdigest()
print(f'Publishing {tag} ({commit}, arcade.zx {digest}); the node serves {live}.')
output.write(f'publish=true\ncommit={commit}\ntag={tag}\nsha256={digest}\n')
PY
publish:
name: Publish it to Waozi's node
needs: check
if: needs.check.outputs.publish == 'true'
uses: ./.github/workflows/node-app-release.yml
with:
app: arcade
repository: waozixyz/arcade
commit: ${{ needs.check.outputs.commit }}
tag: ${{ needs.check.outputs.tag }}
sha256: ${{ needs.check.outputs.sha256 }}
secrets: inherit
-183
View File
@@ -1,183 +0,0 @@
name: Node app release
# Publishes one app the node offers that is built and checked in its own
# repository, such as Arcade from Shovey's publisher. That publisher builds
# the bundle, runs its screen checks, records the version in its repository's
# apps/versions.json and attaches the checked bundle to a GitHub release
# there. This workflow signs exactly those bytes with the package key, which
# lives only in this repository's secrets, uploads the release to Waozi's
# node and verifies what the node serves.
on:
workflow_dispatch:
inputs:
app:
description: The app's name in its ledger, such as arcade
required: true
type: string
repository:
description: Repository whose commit records the release, such as waozixyz/arcade
required: true
type: string
commit:
description: Full commit in that repository whose apps/versions.json names the release
required: true
type: string
tag:
description: GitHub release in that repository with the checked bundle attached as APP.zx
required: true
type: string
sha256:
description: SHA-256 of the checked bundle; any other bytes are refused
required: true
type: string
package_path:
description: Directory containing the app's Ziran package
default: '.'
type: string
ledger_path:
description: Release ledger relative to that package directory
default: apps/versions.json
type: string
# The node app follower publishes each new release through this same job.
workflow_call:
inputs:
app:
description: The app's name in its ledger, such as arcade
required: true
type: string
repository:
description: Repository whose commit records the release, such as waozixyz/arcade
required: true
type: string
commit:
description: Full commit in that repository whose apps/versions.json names the release
required: true
type: string
tag:
description: GitHub release in that repository with the checked bundle attached as APP.zx
required: true
type: string
sha256:
description: SHA-256 of the checked bundle; any other bytes are refused
required: true
type: string
package_path:
description: Directory containing the app's Ziran package
default: '.'
type: string
ledger_path:
description: Release ledger relative to that package directory
default: apps/versions.json
type: string
permissions:
contents: read
concurrency:
group: inbe-package-publishing
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Check separate-game archive validation
run: python3 tests/node_app_games_test.py
- name: Check the request
env:
APP: ${{ inputs.app }}
REPOSITORY: ${{ inputs.repository }}
COMMIT: ${{ inputs.commit }}
TAG: ${{ inputs.tag }}
SHA256: ${{ inputs.sha256 }}
PACKAGE_PATH: ${{ inputs.package_path }}
LEDGER_PATH: ${{ inputs.ledger_path }}
run: |
python3 - <<'PY'
import os, re
checks = {'APP': r'[a-z][a-z0-9-]{0,63}', 'REPOSITORY': r'waozixyz/[A-Za-z0-9._-]+',
'COMMIT': r'[0-9a-f]{40}', 'TAG': r'[A-Za-z0-9._-]{1,100}', 'SHA256': r'[0-9a-f]{64}'}
for name, pattern in checks.items():
if not re.fullmatch(pattern, os.environ[name]):
raise SystemExit(f'{name} is not valid')
path_pattern = r'[A-Za-z0-9_-][A-Za-z0-9._-]*(?:/[A-Za-z0-9_-][A-Za-z0-9._-]*)*'
for name in ('PACKAGE_PATH', 'LEDGER_PATH'):
value = os.environ[name]
if name == 'PACKAGE_PATH' and value == '.':
continue
if not re.fullmatch(path_pattern, value):
raise SystemExit(f'{name} is not a relative package path')
PY
- name: Fetch the release record, the publisher and the checked bundle
env:
GH_TOKEN: ${{ github.token }}
APP: ${{ inputs.app }}
REPOSITORY: ${{ inputs.repository }}
COMMIT: ${{ inputs.commit }}
TAG: ${{ inputs.tag }}
SHA256: ${{ inputs.sha256 }}
PACKAGE_PATH: ${{ inputs.package_path }}
run: |
set -eu
work="$RUNNER_TEMP/node-app"
mkdir -p "$work/bundles"
git init -q "$work/source"
git -C "$work/source" fetch -q --depth 1 "https://github.com/$REPOSITORY.git" "$COMMIT"
git -C "$work/source" checkout -q FETCH_HEAD
# The Apps publisher at the commit the release's own lock pins.
apps=$(python3 -c 'import json,sys; print(next(p["commit"] for p in json.load(open(sys.argv[1]))["packages"] if p["url"].rstrip("/").removesuffix(".git").endswith("waozixyz/apps")))' "$work/source/$PACKAGE_PATH/ziran.lock")
git init -q "$work/apps"
git -C "$work/apps" fetch -q --depth 1 https://github.com/waozixyz/apps.git "$apps"
git -C "$work/apps" checkout -q FETCH_HEAD
gh release download "$TAG" --repo "$REPOSITORY" --pattern "$APP.zx" --dir "$work/bundles"
echo "$SHA256 $work/bundles/$APP.zx" | sha256sum --check --strict
python3 scripts/node_app_games.py --bundle "$work/bundles/$APP.zx" --list > "$work/required-games.txt"
if [ -s "$work/required-games.txt" ]; then
gh release download "$TAG" --repo "$REPOSITORY" --pattern "$APP.games.tar" --dir "$work/bundles"
python3 scripts/node_app_games.py --bundle "$work/bundles/$APP.zx" \
--archive "$work/bundles/$APP.games.tar" --output "$work/bundles/$APP.games"
fi
- name: Install signing dependencies
run: sudo apt-get update && sudo apt-get install -y python3-cryptography
- name: Configure publisher
env:
SIGNING_KEY: ${{ secrets.INBE_PACKAGE_SIGNING_KEY }}
SSH_KEY: ${{ secrets.INBE_NODE_SSH_KEY }}
SSH_HOSTS: ${{ secrets.INBE_NODE_KNOWN_HOSTS }}
run: |
python3 - <<'PY'
import os
from pathlib import Path
directory = Path(os.environ['RUNNER_TEMP']) / 'inbe-publisher'
directory.mkdir(mode=0o700)
for filename, name in (('publisher.pem', 'SIGNING_KEY'), ('node.key', 'SSH_KEY'), ('known_hosts', 'SSH_HOSTS')):
if not os.environ.get(name):
raise SystemExit(f'{name} is not configured')
path = directory / filename
path.write_text(os.environ[name] + '\n')
path.chmod(0o600)
PY
- name: Sign, publish to Waozi's Mesh node and verify
env:
APP: ${{ inputs.app }}
KEY_ID: ${{ vars.INBE_PACKAGE_KEY_ID }}
TARGET: ${{ secrets.INBE_NODE_SSH_TARGET }}
STORE: ${{ secrets.INBE_NODE_PACKAGE_STORE }}
PACKAGE_PATH: ${{ inputs.package_path }}
LEDGER_PATH: ${{ inputs.ledger_path }}
run: |
set -eu
work="$RUNNER_TEMP/node-app"
export INBE_SSH_IDENTITY="$RUNNER_TEMP/inbe-publisher/node.key"
export INBE_SSH_KNOWN_HOSTS="$RUNNER_TEMP/inbe-publisher/known_hosts"
python3 "$work/apps/scripts/node_release.py" --store "$work/releases" --node-app "$APP" \
--key "$RUNNER_TEMP/inbe-publisher/publisher.pem" --key-id "$KEY_ID" \
--publishers apps/publishers.json --app-ledger "$work/source/$PACKAGE_PATH/$LEDGER_PATH" \
--bundle-directory "$work/bundles" \
--ssh-target "$TARGET" --remote-store "$STORE" --verify-origin https://api.waozi.xyz
- name: Remove signing material
if: always()
run: rm -rf "$RUNNER_TEMP/inbe-publisher"
+8 -38
View File
@@ -10,13 +10,8 @@ on:
- 'themes/**'
- 'scripts/prepare-package-assets.py'
- 'src/**'
- 'scripts/build-apps.sh'
- 'scripts/build-node-apps.sh'
- 'scripts/build-cells.sh'
- 'scripts/package-release.py'
- 'scripts/practice_content.py'
- 'scripts/practice_media.py'
- 'design/tai-chi/narration*.json'
- 'design/tai-chi/text/**'
- 'scripts/generate-package-versions.py'
- 'scripts/update-package-version.py'
- 'scripts/check-package-versions.py'
@@ -26,9 +21,6 @@ on:
- 'tests/package_upload_test.py'
- 'tests/package_versions_test.py'
- 'tests/package_workflow_test.py'
- 'tests/package_release_test.py'
- 'tests/package_manager_host.c'
- 'tests/package_manager_behavior.zi'
- 'ziran.lock'
- '.github/workflows/packages.yml'
workflow_dispatch:
@@ -45,24 +37,18 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@v4
- uses: ./.github/actions/ziran-packages
- name: Install signing and test dependencies
run: |
sudo apt-get update && sudo apt-get install -y python3-cryptography python3-fonttools
.github/scripts/install-apt-packages.sh .github/apt/test-packages.txt
run: sudo apt-get update && sudo apt-get install -y python3-cryptography python3-fonttools
- name: Build independent packages and check signatures
run: |
make package-version-test
make package-workflow-test
make package-manifest-test
make package-upload-test
make apps node-apps build-laws
make cells build-laws
python3 tests/package_release_test.py
- name: Run new packages in the last released app
run: python3 tests/package_compat_test.py --skip-forward
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Configure publisher
id: publisher
env:
@@ -104,7 +90,7 @@ jobs:
python3 scripts/check-package-publishers.py
python3 scripts/package-release.py --store build/package-releases \
--key "$RUNNER_TEMP/inbe-publisher/publisher.pem" --key-id "$KEY_ID"
- name: Sign and publish to Waozi's Mesh node
- name: Sign and publish to Waozi's Daochi node
if: steps.publisher.outputs.configured == 'true'
env:
KEY_ID: ${{ vars.INBE_PACKAGE_KEY_ID }}
@@ -117,29 +103,13 @@ jobs:
--key "$RUNNER_TEMP/inbe-publisher/publisher.pem" --key-id "$KEY_ID" \
--ssh-target "$TARGET" --remote-store "$STORE" \
--verify-origin https://api.waozi.xyz
# Each app the node offers publishes on its own when its ledger names a
# newer release; the node keeps its newest three releases for rollback.
- name: Publish new releases of the apps the node offers
if: steps.publisher.outputs.configured == 'true'
env:
KEY_ID: ${{ vars.INBE_PACKAGE_KEY_ID }}
TARGET: ${{ secrets.INBE_NODE_SSH_TARGET }}
STORE: ${{ secrets.INBE_NODE_PACKAGE_STORE }}
run: |
export INBE_SSH_IDENTITY="$RUNNER_TEMP/inbe-publisher/node.key"
export INBE_SSH_KNOWN_HOSTS="$RUNNER_TEMP/inbe-publisher/known_hosts"
python3 scripts/package-release.py --node-apps --store build/package-releases \
--key "$RUNNER_TEMP/inbe-publisher/publisher.pem" --key-id "$KEY_ID" \
--ssh-target "$TARGET" --remote-store "$STORE" \
--verify-origin https://api.waozi.xyz
- name: Archive packages
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@v4
with:
name: inbe-app-packages
path: |
build/inbe.zx
build/apps/*.zx
build/node-apps/*.zx
build/inbe.zib
build/cells/*.zib
build/package-releases/
if-no-files-found: error
- name: Remove signing material
+171 -16
View File
@@ -1,31 +1,186 @@
name: Refresh Gitea Pages after release
name: Cloudflare Pages
on:
push:
branches:
- master
# Refresh available downloads after a release; pushes deploy independently.
workflow_run:
workflows: [Release]
types: [completed]
branches: [master]
pull_request:
workflow_dispatch:
inputs:
released_web:
description: Use the published web app for a website-only update
type: boolean
default: false
permissions: {}
permissions:
contents: read
concurrency:
# A failed Release produces a skipped refresh, which must not cancel a push.
group: pages-${{ github.ref }}-${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion != 'success' && 'skipped' || 'deploy' }}
cancel-in-progress: true
jobs:
refresh-gitea-after-release:
name: Refresh Gitea Pages after a successful release
if: github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success'
build:
name: Build Site
runs-on: ubuntu-latest
timeout-minutes: 60
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
steps:
- name: Dispatch the current Gitea master workflow
- name: Checkout Repository
uses: actions/checkout@v4
with:
lfs: true
- name: Fetch Ziran packages
uses: ./.github/actions/ziran-packages
- name: Set up Node.js for the web build
uses: actions/setup-node@v4
with:
node-version: 22
- name: Resolve published downloads
env:
BREEZE_PAGES_DISPATCH_TOKEN: ${{ secrets.BREEZE_PAGES_DISPATCH_TOKEN }}
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
if [ -z "$BREEZE_PAGES_DISPATCH_TOKEN" ]; then
echo '::warning::BREEZE_PAGES_DISPATCH_TOKEN is missing'
exit 0
gh api repos/waozixyz/inbe/releases/latest > "$RUNNER_TEMP/inbe-published-release.json"
python3 - "$RUNNER_TEMP/inbe-published-release.json" >> "$GITHUB_ENV" <<'PY'
import json
import re
import sys
from pathlib import Path
release = json.loads(Path(sys.argv[1]).read_text())
tag = release["tag_name"]
version = tag.removeprefix("v")
assert re.fullmatch(r"(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)", version), "Invalid published release version"
assets = {asset["name"] for asset in release["assets"]}
candidates = [f"inbe-{version}-arm64-v8a.apk", f"inbe-{version}.apk"]
android = next((name for name in candidates if name in assets), None)
assert android is not None, "Published release has no compatible Android APK"
print(f"SITE_RELEASE_VERSION={version}")
print(f"SITE_ANDROID_APK_ASSET={android}")
PY
- name: Install Packages
if: ${{ !inputs.released_web }}
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set Up Emscripten
if: ${{ !inputs.released_web }}
uses: ./.github/actions/emscripten
- name: Download Released Web App
if: ${{ inputs.released_web }}
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
version="$SITE_RELEASE_VERSION"
test -n "$version"
mkdir -p build/released-web build/dist/web
gh release download "v$version" --pattern inbe-web.zip --dir build/released-web
unzip -q build/released-web/inbe-web.zip -d build/dist/web
test -s build/dist/web/index.wasm
- name: Web runner diagnostics
if: ${{ !inputs.released_web }}
run: |
set -euo pipefail
lscpu
free -m
for browser in chromium chromium-browser google-chrome google-chrome-stable; do
if command -v "$browser" >/dev/null 2>&1; then
"$browser" --version
fi
done
- name: Build Site
run: |
set -euo pipefail
if [ "$RELEASED_WEB" = "true" ]; then
make package-unpackaged-assets
sh site/build.sh
else
export PATH="$INBE_NODE_BIN:$PATH"
node --version
make build-laws
make site
fi
curl --fail-with-body --silent --show-error --max-time 30 \
--request POST \
--header "Authorization: token $BREEZE_PAGES_DISPATCH_TOKEN" \
--header 'Content-Type: application/json' \
--data '{"ref":"master"}' \
'https://git.waozi.xyz/api/v1/repos/waozi/breeze/actions/workflows/pages.yml/dispatches'
test -f build/site/index.html
test -f build/site/build/web/index.html
test -f build/site/build/web/index.js
test -f build/site/build/web/index.wasm || test -f build/site/build/web/index.wasm.gz || test -f build/site/build/web/index.wasm.parts.json
if [ "$GITHUB_EVENT_NAME" != "pull_request" ]; then
make site-release-assets-check
else
echo "Skipping release asset availability check for pull request build"
fi
env:
GH_TOKEN: ${{ github.token }}
RELEASED_WEB: ${{ inputs.released_web }}
- name: Upload Web diagnostics after a failed build
if: ${{ failure() && !inputs.released_web }}
uses: actions/upload-artifact@v4
with:
name: inbe-web-diagnostics
path: build/dist/web
if-no-files-found: warn
retention-days: 3
- name: Upload Site Artifact
uses: actions/upload-artifact@v4
with:
name: inbe-site
path: build/site
if-no-files-found: error
deploy-preview:
name: Deploy Preview
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'pull_request'
steps:
- name: Download Site Artifact
uses: actions/download-artifact@v4
with:
name: inbe-site
path: build/site
- name: Deploy Preview To Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy build/site --project-name=inbe --branch=${{ github.head_ref || github.ref_name }} --commit-hash=${{ github.sha }}
deploy-production:
name: Deploy Production
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
steps:
- name: Download Site Artifact
uses: actions/download-artifact@v4
with:
name: inbe-site
path: build/site
- name: Deploy Production To Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy build/site --project-name=inbe --branch=master --commit-hash=${{ github.sha }}
-60
View File
@@ -1,60 +0,0 @@
name: Publish Amazon Appstore
# Retries the Amazon Appstore upload and submission for an already published
# release. The Release workflow runs the same script for every new version.
"on":
workflow_dispatch:
inputs:
version:
description: Published release version, such as 2.1.60
required: true
type: string
permissions:
contents: read
jobs:
publish:
name: Upload release APK to Amazon Appstore
runs-on: ubuntu-latest
timeout-minutes: 30
env:
AMAZON_CLIENT_ID: ${{ secrets.AMAZON_CLIENT_ID }}
AMAZON_CLIENT_SECRET: ${{ secrets.AMAZON_CLIENT_SECRET }}
AMAZON_APP_ID: ${{ secrets.AMAZON_APP_ID }}
VERSION: ${{ inputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download the published release APK
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "::error::version must be numeric, such as 2.1.60"
exit 1
fi
apk="inbe-$VERSION.apk"
mkdir -p build/release/android
gh release download "v$VERSION" --repo "$GITHUB_REPOSITORY" --pattern "$apk" --dir build/release/android
expected=$(gh release view "v$VERSION" --repo "$GITHUB_REPOSITORY" --json assets \
--jq ".assets[] | select(.name == \"$apk\") | .digest")
actual="sha256:$(sha256sum "build/release/android/$apk" | cut -d' ' -f1)"
if [ "$actual" != "$expected" ]; then
echo "::error::$apk digest $actual does not match the release asset $expected"
exit 1
fi
echo "Verified $apk $actual"
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Upload APK to Amazon Appstore
env:
AMAZON_RELEASE_FILE: build/release/android/inbe-${{ inputs.version }}.apk
run: node scripts/upload-amazon-appstore.mjs
+52 -227
View File
@@ -3,14 +3,6 @@ name: Publish OpenStore
on:
workflow_dispatch:
inputs:
revision:
description: Exact committed source to build (defaults to the selected ref)
required: false
type: string
build_only:
description: Verify and archive the package without publishing it
type: boolean
default: false
changelog:
description: Changelog text for the OpenStore revision
required: false
@@ -19,187 +11,30 @@ on:
description: OpenStore channel
required: false
default: focal
# Release-created tags/events do not start another workflow with GITHUB_TOKEN.
workflow_run:
workflows: [Release]
types: [completed]
branches: [master]
release:
types: [published]
push:
tags:
- "v*"
permissions:
contents: read
jobs:
source:
runs-on: ubuntu-24.04
timeout-minutes: 5
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
outputs:
revision: ${{ steps.select.outputs.revision }}
run: ${{ steps.select.outputs.run }}
steps:
- name: Select the immutable release source
id: select
env:
GH_TOKEN: ${{ github.token }}
REQUESTED_REVISION: ${{ inputs.revision || github.sha }}
OPENSTORE_CHANNEL: ${{ inputs.channel || 'focal' }}
run: |
python3 - <<'PY'
import datetime
import json
import os
from pathlib import Path
import re
import subprocess
def api(path):
return json.loads(subprocess.check_output(["gh", "api", path]))
def timestamp(value):
return datetime.datetime.fromisoformat(value.replace("Z", "+00:00"))
def finish(revision=""):
with open(os.environ["GITHUB_OUTPUT"], "a") as output:
output.write(f"revision={revision}\nrun={'true' if revision else 'false'}\n")
raise SystemExit(0)
revision = os.environ["REQUESTED_REVISION"]
if os.environ["GITHUB_EVENT_NAME"] == "workflow_run":
event = json.loads(Path(os.environ["GITHUB_EVENT_PATH"]).read_text())
repo = os.environ["GITHUB_REPOSITORY"]
release = api(f"repos/{repo}/releases/latest")
if release["draft"] or release["prerelease"] or timestamp(release["published_at"]) < timestamp(event["workflow_run"]["created_at"]):
print("This run did not publish a new stable release; no OpenStore update.")
finish()
match = re.fullmatch(r"v(\d+)\.(\d+)\.(\d+)", release["tag_name"])
assert match, "Expected a numeric published release"
version = tuple(map(int, match.groups()))
store = json.loads(subprocess.check_output([
"curl", "--fail", "--silent", "--show-error", "--retry", "3",
"https://open-store.io/api/v4/apps/inbe"]))
assert store.get("success"), "OpenStore metadata lookup failed"
for item in store["data"].get("revisions", []):
existing = re.fullmatch(r"(\d+)\.(\d+)\.(\d+)", item.get("version", ""))
if item.get("channel") == os.environ["OPENSTORE_CHANNEL"] and item.get("architecture") == "arm64" and existing and tuple(map(int, existing.groups())) >= version:
print("OpenStore already has this release or a newer one.")
finish()
revision = api(f"repos/{repo}/commits/{release['tag_name']}")["sha"]
assert re.fullmatch(r"[0-9a-f]{40}", revision), "An exact commit is required"
finish(revision)
PY
publish:
needs: source
if: needs.source.outputs.run == 'true'
concurrency:
# Skipped source checks and diagnostics cannot replace a pending release.
group: openstore-${{ inputs.channel || 'focal' }}-${{ inputs.build_only && 'verify' || 'publish' }}
cancel-in-progress: false
runs-on: ubuntu-24.04
# The published focal channel must use Focal's ARM64 libc and libraries.
container: clickable/ci-20.04-arm64@sha256:c6227ffcdb2abb50101a8469dd2a8df3ffd9208e04a3e07e351db63d36bec5d6
defaults:
run:
shell: bash
runs-on: ubuntu-latest
timeout-minutes: 90
env:
DEBIAN_FRONTEND: noninteractive
# Ziran runs on the builder; only Click artifacts use the cross compiler.
CC: gcc
CXX: g++
OPENSTORE_API_KEY: ${{ secrets.OPENSTORE_API_KEY }}
OPENSTORE_APP_ID: inbe
OPENSTORE_CHANNEL: ${{ github.event.inputs.channel || 'focal' }}
CHANGELOG: ${{ github.event.inputs.changelog || github.event.release.name || github.event.release.tag_name || '' }}
steps:
- name: Require an immutable source
env:
CANDIDATE: ${{ needs.source.outputs.revision }}
run: |
[[ "$CANDIDATE" =~ ^[0-9a-f]{40}$ ]] || { echo 'An exact commit is required'; exit 1; }
- name: Install the Focal build environment
run: |
set -euo pipefail
apt-get update
apt-get install -y --no-install-recommends \
build-essential binutils-aarch64-linux-gnu ca-certificates ccache \
click curl gcc-aarch64-linux-gnu git git-lfs jq make patchelf \
perl pkg-config tcl xz-utils zlib1g-dev libbz2-1.0 libffi7 liblzma5 \
libsqlite3-0 libssl-dev \
libsdl2-dev:arm64 libssl-dev:arm64 zlib1g-dev:arm64 \
libcairo2-dev:arm64 libpango1.0-dev:arm64 libfontconfig1-dev:arm64 \
libfreetype6-dev:arm64 libglib2.0-dev:arm64 libx11-dev:arm64
apt-get install -y --no-install-recommends libwayland-bin \
libwayland-dev:arm64 libxkbcommon-dev:arm64 libpulse-dev:arm64 libdbus-1-dev:arm64
- name: Set up build Python for Focal
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
# Last upstream Actions build that supports Ubuntu 20.04.
python-version: '3.12.10'
- name: Install current build tools
run: |
# The project uses GNU Make 4.3+ function/comment parsing.
python3 -m pip install cmake==3.28.4 fonttools==4.58.5 gnumake==4.4.1
make --version
- name: Build Focal TLS libraries
run: |
set -euo pipefail
# The locked Curl requires OpenSSL 3. Build its current LTS for
# Focal instead of importing a newer distribution's libc.
tls_source="$RUNNER_TEMP/inbe-openssl"
mkdir -p "$tls_source"
curl --fail --location --retry 3 \
https://github.com/openssl/openssl/releases/download/openssl-3.5.9/openssl-3.5.9.tar.gz \
--output "$tls_source/source.tar.gz"
printf '%s %s\n' \
603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a \
"$tls_source/source.tar.gz" | sha256sum --check -
tar -xzf "$tls_source/source.tar.gz" -C "$tls_source"
cd "$tls_source/openssl-3.5.9"
./Configure linux-aarch64 --cross-compile-prefix=aarch64-linux-gnu- \
--prefix=/opt/inbe-openssl --libdir=lib --openssldir=/etc/ssl shared no-tests
make -j2 build_sw
make install_sw
cp LICENSE.txt /opt/inbe-openssl/lib/OpenSSL-LICENSE.txt
- name: Build Focal SDL with Wayland
run: |
set -euo pipefail
sdl_source="$RUNNER_TEMP/inbe-sdl2"
mkdir -p "$sdl_source"
curl --fail --location --retry 3 \
https://github.com/libsdl-org/SDL/releases/download/release-2.32.10/SDL2-2.32.10.tar.gz \
--output "$sdl_source/source.tar.gz"
printf '%s %s\n' \
5f5993c530f084535c65a6879e9b26ad441169b3e25d789d83287040a9ca5165 \
"$sdl_source/source.tar.gz" | sha256sum --check -
tar -xzf "$sdl_source/source.tar.gz" -C "$sdl_source"
unset PKG_CONFIG_PATH
export PKG_CONFIG_LIBDIR=/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig
cmake_bin="$(python3 -c 'import cmake; print(cmake.CMAKE_BIN_DIR + "/cmake")')"
"$cmake_bin" -S "$sdl_source/SDL2-2.32.10" -B "$sdl_source/build" \
-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 \
-DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/opt/inbe-sdl2 -DCMAKE_INSTALL_LIBDIR=lib \
-DSDL_SHARED=ON -DSDL_STATIC=OFF -DSDL_TEST=OFF \
-DSDL_WAYLAND=ON -DSDL_WAYLAND_SHARED=ON -DSDL_WAYLAND_LIBDECOR=OFF \
-DSDL_X11=ON -DSDL_KMSDRM=OFF -DSDL_OPENGL=OFF -DSDL_OPENGLES=ON \
-DSDL_PULSEAUDIO=ON -DSDL_ALSA=OFF
grep -q '^#define SDL_VIDEO_DRIVER_WAYLAND 1' "$sdl_source/build/SDL_config.h.intermediate"
"$cmake_bin" --build "$sdl_source/build" --parallel 2
"$cmake_bin" --install "$sdl_source/build"
cp "$sdl_source/SDL2-2.32.10/LICENSE.txt" /opt/inbe-sdl2/lib/SDL2-LICENSE.txt
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ needs.source.outputs.revision }}
fetch-depth: 0
lfs: true
@@ -209,12 +44,42 @@ jobs:
- name: Scan Tracked Files and History
run: |
set -euo pipefail
# The SDK container runs under a different UID from the checkout.
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git ls-files -z >/dev/null
python3 scripts/check-secrets.py --working-tree
python3 scripts/check-secrets.py --history
- name: Install build dependencies
run: |
sudo dpkg --add-architecture arm64
# Ubuntu's archive/security mirrors only carry amd64/i386; arm64
# lives on ports.ubuntu.com. Pin the stock deb822 sources to amd64
# and add a ports source, otherwise apt-get update 404s on
# binary-arm64 and the install step fails.
sudo sed -i 's/^Types: deb$/Types: deb\nArchitectures: amd64 i386/' /etc/apt/sources.list.d/ubuntu.sources
printf 'Types: deb\nURIs: http://ports.ubuntu.com/ubuntu-ports\nSuites: noble noble-updates noble-backports noble-security\nComponents: main universe restricted multiverse\nArchitectures: arm64\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' | sudo tee /etc/apt/sources.list.d/ports-arm64.sources >/dev/null
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
binutils-aarch64-linux-gnu \
ccache \
click \
cmake \
curl \
gcc-aarch64-linux-gnu \
jq \
make \
patchelf \
pkg-config \
tcl \
zlib1g-dev \
libcurl4-openssl-dev:arm64 \
libdrm-dev:arm64 \
libegl-dev:arm64 \
libgbm-dev:arm64 \
libgles-dev:arm64 \
libsdl2-dev:arm64 \
libssl-dev:arm64 \
zlib1g-dev:arm64
- name: Build Click package
run: |
set -euo pipefail
@@ -224,39 +89,19 @@ jobs:
export AARCH64_CC="$(command -v aarch64-linux-gnu-gcc)"
export AARCH64_AR="$(command -v aarch64-linux-gnu-ar)"
export AARCH64_RANLIB="$(command -v aarch64-linux-gnu-ranlib)"
export OPENSSL_ROOT_DIR=/opt/inbe-openssl
# Cross builds cannot autodetect the device's CA store.
export CMAKE_TOOLCHAIN_FILE="$RUNNER_TEMP/inbe-focal-arm64.cmake"
cat > "$CMAKE_TOOLCHAIN_FILE" <<'CMAKE'
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc)
set(OPENSSL_ROOT_DIR /opt/inbe-openssl CACHE PATH "Focal-built TLS")
set(CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt CACHE FILEPATH "Device CA bundle")
set(CURL_CA_PATH /etc/ssl/certs CACHE PATH "Device CA directory")
CMAKE
unset PKG_CONFIG_PATH
export AARCH64_PKG_CONFIG_PATH=/opt/inbe-openssl/lib/pkgconfig:/opt/inbe-sdl2/lib/pkgconfig:/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig
export AARCH64_PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig
export PKG_CONFIG_LIBDIR="$AARCH64_PKG_CONFIG_PATH"
# Kryon's desktop host: SDL2 windows drawn with Cairo and Pango.
desktop_host_packages="sdl2 cairo freetype2 pangocairo fontconfig gio-2.0 x11"
export AARCH64_DESKTOP_HOST_CFLAGS="$(pkg-config --cflags $desktop_host_packages)"
# Search bundled TLS and SDL before the SDK's older system copies.
export AARCH64_DESKTOP_HOST_LDLIBS="-L/opt/inbe-openssl/lib $(pkg-config --libs $desktop_host_packages)"
click_curl_dir="$PWD/vendor-builds/click/arm64/curl"
export AARCH64_KRYON_CURL_CFLAGS="-DCURL_STATICLIB -I$click_curl_dir/include"
export AARCH64_KRYON_CURL_LDLIBS="$click_curl_dir/lib/libcurl.a -L/opt/inbe-openssl/lib -lssl -lcrypto -lz -lpthread"
# The framework supplies graphics libraries for the device's GPU.
atomic_runtime="$("$AARCH64_CC" -print-file-name=libatomic.so.1)"
export AARCH64_CLICK_RUNTIME_LIBS="$(pkg-config --variable=libdir sdl2)/libSDL2-2.0.so.0 /opt/inbe-sdl2/lib/SDL2-LICENSE.txt /opt/inbe-openssl/lib/libssl.so.3 /opt/inbe-openssl/lib/libcrypto.so.3 /opt/inbe-openssl/lib/OpenSSL-LICENSE.txt $atomic_runtime /usr/lib/aarch64-linux-gnu/libz.so.1"
for runtime_file in $AARCH64_CLICK_RUNTIME_LIBS; do
test -f "$runtime_file"
done
# Make otherwise prefers the SDK's older /usr/bin/cmake.
export CMAKE="$(python3 -c 'import cmake; print(cmake.CMAKE_BIN_DIR + "/cmake")')"
"$CMAKE" --version
make CMAKE="$CMAKE" LDFLAGS="-Wl,--gc-sections -s -L/opt/inbe-openssl/lib" CLICK_ARCH=arm64 click
python3 scripts/check-click-abi.py build/dist/click/*.click
export AARCH64_RAY_SDL_CFLAGS="$(pkg-config --cflags sdl2)"
export AARCH64_RAY_SDL_LDLIBS="$(pkg-config --libs sdl2)"
export AARCH64_RAY_GL_CFLAGS="$(pkg-config --cflags libdrm gbm egl glesv2)"
export AARCH64_RAY_GL_LDLIBS="$(pkg-config --libs libdrm gbm egl glesv2)"
export AARCH64_RAY_CFLAGS="$AARCH64_RAY_SDL_CFLAGS $AARCH64_RAY_GL_CFLAGS"
export AARCH64_RAY_LDLIBS="$AARCH64_RAY_SDL_LDLIBS $AARCH64_RAY_GL_LDLIBS"
export AARCH64_RAY_SDL_INCLUDE_DIR=/usr/include/SDL2
export AARCH64_KRYON_CURL_CFLAGS="$(pkg-config --cflags libcurl)"
export AARCH64_KRYON_CURL_LDLIBS="$(pkg-config --libs libcurl)"
export AARCH64_CLICK_RUNTIME_LIBS="/usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 /usr/lib/aarch64-linux-gnu/libcurl.so.4 /usr/lib/aarch64-linux-gnu/libssl.so.3 /usr/lib/aarch64-linux-gnu/libcrypto.so.3 /usr/lib/aarch64-linux-gnu/libdrm.so.2 /usr/lib/aarch64-linux-gnu/libgbm.so.1 /usr/lib/aarch64-linux-gnu/libEGL.so.1 /usr/lib/aarch64-linux-gnu/libGLESv2.so.2 /usr/lib/aarch64-linux-gnu/libz.so.1"
make CLICK_ARCH=arm64 click
- name: Show package contents
run: |
@@ -265,28 +110,8 @@ jobs:
echo "Built $click_file"
dpkg-deb --contents "$click_file" | grep -E 'manifest.json|inbe.png|metainfo|inbe.desktop'
- name: Archive the verified package source and digest
run: |
mkdir -p build/release/openstore
cp build/dist/click/*.click build/release/openstore/
git rev-parse HEAD > build/release/openstore/source-commit.txt
cd build/release/openstore
sha256sum *.click > SHA256SUMS
- name: Preserve Click artifact
uses: actions/upload-artifact@v4
with:
name: openstore-click
path: build/release/openstore/*
if-no-files-found: error
- name: Publish to OpenStore
if: ${{ !inputs.build_only }}
env:
OPENSTORE_API_KEY: ${{ secrets.OPENSTORE_API_KEY }}
run: |
set -euo pipefail
version="$(python3 scripts/check-version.py --print-version)"
python3 scripts/check-phone-check.py "$version" --revision "$(git rev-parse HEAD)"
click_file="$(ls -t build/dist/click/*.click | head -1)"
scripts/publish-openstore.sh "$click_file"
+94 -373
View File
@@ -6,18 +6,14 @@ on:
- master
paths:
- 'src/**'
- '!src/apps/versions.zi'
- '!src/cells/versions.zi'
- 'droid/**'
- 'apps/publishers.json'
- 'CHANGELOG.md'
- 'Makefile'
- 'mk/**'
- 'tests/**'
- 'ziran.lock'
- 'scripts/**'
- '!scripts/package-release.py'
- '!scripts/practice_content.py'
- '!scripts/practice_media.py'
- '!scripts/update-package-version.py'
- '!scripts/generate-package-versions.py'
- '!scripts/prepare-package-assets.py'
@@ -25,147 +21,25 @@ on:
- '!scripts/package-manifests.py'
- 'packaging/**'
- '.github/workflows/release.yml'
- '.github/android-sdk-packages.txt'
- '.github/scripts/**'
- '.github/apt/**'
workflow_dispatch:
inputs:
revision:
description: Exact committed release candidate (defaults to the triggering commit)
required: false
type: string
reuse_run:
description: Verified Release run to reuse when only its phone-check receipt was added
required: false
type: string
permissions:
contents: write
actions: read
concurrency:
group: ${{ github.workflow }}-${{ inputs.revision || github.sha }}
cancel-in-progress: false
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
secret-scan:
name: Secret Scan
runs-on: ubuntu-latest
outputs:
reuse_artifacts: ${{ steps.reuse.outputs.reuse_artifacts }}
release_due: ${{ steps.due.outputs.release_due }}
steps:
- name: Require an immutable candidate
env:
CANDIDATE: ${{ inputs.revision || github.sha }}
run: |
if ! [[ "$CANDIDATE" =~ ^[0-9a-f]{40}$ ]]; then
echo "::error::revision must be a full commit ID, never a branch or tag"
exit 1
fi
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 0
# A push of a version that is already released has nothing to release:
# CI tests it, and the platform builds wait for the next version.
- name: Release only a new version or a requested run
id: due
env:
EVENT: ${{ github.event_name }}
run: |
set -euo pipefail
version=$(python3 scripts/check-version.py --print-version)
if [ "$EVENT" = "workflow_dispatch" ] || ! git rev-parse -q --verify "refs/tags/v$version" >/dev/null; then
echo "release_due=true" >> "$GITHUB_OUTPUT"
else
echo "release_due=false" >> "$GITHUB_OUTPUT"
echo "::notice title=Release::v$version is already released; CI tests this push and no release builds run"
fi
- name: Verify identical source and every gate before reusing artifacts
id: reuse
env:
GH_TOKEN: ${{ github.token }}
VERIFIED_RUN: ${{ inputs.reuse_run }}
CANDIDATE: ${{ inputs.revision || github.sha }}
run: |
python3 - <<'PY'
import json
import os
from pathlib import Path
import re
import subprocess
run_id = os.environ.get('VERIFIED_RUN', '')
output = Path(os.environ['GITHUB_OUTPUT'])
if not run_id:
with output.open('a') as stream:
stream.write('reuse_artifacts=false\n')
raise SystemExit(0)
if not re.fullmatch(r'[1-9][0-9]*', run_id):
raise SystemExit('A numeric verified Release run ID is required')
repository = os.environ['GITHUB_REPOSITORY']
def api(path):
return json.loads(subprocess.check_output(['gh', 'api', path], text=True))
run = api(f'repos/{repository}/actions/runs/{run_id}')
if (run['path'] != '.github/workflows/release.yml' or
run['event'] != 'push' or run['head_branch'] != 'master' or
run['repository']['full_name'] != repository):
raise SystemExit('Artifacts must come from this repository master Release workflow')
source = run['head_sha']
candidate = os.environ['CANDIDATE']
if (not re.fullmatch(r'[0-9a-f]{40}', source) or
not re.fullmatch(r'[0-9a-f]{40}', candidate)):
raise SystemExit('The verified source must be an immutable commit')
subprocess.run(['git', 'merge-base', '--is-ancestor', source, candidate], check=True)
version = subprocess.check_output(
['python3', 'scripts/check-version.py', '--print-version'], text=True).strip()
receipt = f'releases/phone-checks/{version}.json'
changed = subprocess.check_output(
['git', 'diff', '--name-only', '--no-renames', source, candidate], text=True).splitlines()
if changed != [receipt]:
raise SystemExit('Reuse requires identical source with only the phone-check receipt added')
if subprocess.run(['git', 'cat-file', '-e', source + ':' + receipt],
capture_output=True).returncode == 0:
raise SystemExit('The source run already had a phone receipt; do not race its publication')
subprocess.run(['python3', 'scripts/check-phone-check.py', version,
'--revision', candidate], check=True)
required = {
'Secret Scan', 'Test (0/3)', 'Test (1/3)', 'Test (2/3)',
'F-Droid / F-Droid security and clean build', 'Verify F-Droid reproducibility',
'Build Web', 'Build Chrome Extension', 'Build Firefox Add-on', 'Build Windows',
'Build Android',
'Build Linux AppImage (x86_64, ubuntu-22.04, x86_64)',
'Build Linux AppImage (aarch64, ubuntu-22.04-arm, aarch64)',
'Build Linux Deb (amd64, ubuntu-22.04)', 'Build Linux Deb (arm64, ubuntu-22.04-arm)',
'Build Linux RPM (x86_64, ubuntu-22.04)', 'Build Linux RPM (aarch64, ubuntu-22.04-arm)',
'Build Linux Snap (x86_64, ubuntu-22.04)', 'Build Linux Snap (aarch64, ubuntu-22.04-arm)',
'Build Linux Flatpak (x86_64, ubuntu-22.04)', 'Build Linux Flatpak (aarch64, ubuntu-22.04-arm)',
}
jobs = api(f'repos/{repository}/actions/runs/{run_id}/jobs?per_page=100')['jobs']
for name in required:
matches = [job for job in jobs if job['name'] == name]
if (len(matches) != 1 or matches[0]['status'] != 'completed' or
matches[0]['conclusion'] != 'success'):
raise SystemExit(name + ' must have passed for the identical source')
ci_runs = api(f'repos/{repository}/actions/workflows/ci.yml/runs?head_sha={source}&event=push&per_page=100')['workflow_runs']
matching = [item for item in ci_runs if item['head_sha'] == source and
item['path'] == '.github/workflows/ci.yml' and item['event'] == 'push' and
item['head_branch'] == 'master' and item['status'] == 'completed' and
item['conclusion'] == 'success']
if len(matching) != 1:
raise SystemExit('The identical source must also pass CI, including browser add-on smoke tests')
with output.open('a') as stream:
stream.write('reuse_artifacts=true\n')
print('All source, test, platform and F-Droid gates passed; reusing their immutable artifacts')
PY
- name: Fetch Ziran packages
uses: ./.github/actions/ziran-packages
with:
@@ -186,16 +60,10 @@ jobs:
python3 scripts/check-secrets.py --history
test:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Test (${{ matrix.shard }}/3)
name: Test
runs-on: ubuntu-latest
needs: secret-scan
# Run every unit shard and the package compatibility suite.
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
shard: [0, 1, 2]
timeout-minutes: 60
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -203,7 +71,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
lfs: true
@@ -215,13 +82,6 @@ jobs:
with:
node-version: 22
# Robolectric's Android 16 (SDK 36) sandbox needs Java 21.
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Cache Test apt packages
uses: actions/cache@v4
with:
@@ -235,65 +95,41 @@ jobs:
run: .github/scripts/install-apt-packages.sh .github/apt/test-packages.txt
- name: Run Tests
run: sh scripts/test-shard.sh ${{ matrix.shard }} 3
run: make test
- name: Run Packages Across App Versions
if: matrix.shard == 2
run: make package-compat-test
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Require Visual Tests
run: make visual-test
fdroid:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: F-Droid
needs: secret-scan
uses: ./.github/workflows/fdroid.yml
with:
revision: ${{ inputs.revision || github.sha }}
verify-fdroid:
name: Verify F-Droid reproducibility
runs-on: ubuntu-latest
needs: [secret-scan, fdroid, build-android]
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
timeout-minutes: 15
steps:
- name: Download independent F-Droid build
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
- name: Save Visual Test Evidence
if: always()
uses: actions/upload-artifact@v4
with:
github-token: ${{ github.token }}
run-id: ${{ inputs.reuse_run || github.run_id }}
name: fdroid-unsigned
path: fdroid
- name: Download signed Android release
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
github-token: ${{ github.token }}
run-id: ${{ inputs.reuse_run || github.run_id }}
name: release-android
path: signed
- name: Require the rebuilt APK to accept the release signature
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y apksigcopier apksigner
mapfile -t rebuilt < <(find fdroid/tmp -name '*.apk')
mapfile -t signed < <(find signed -name '*-fdroid.apk')
test "${#rebuilt[@]}" -eq 1
test "${#signed[@]}" -eq 1
apksigner verify --print-certs "${signed[0]}" | tee signer.txt
grep -Fx 'Signer #1 certificate SHA-256 digest: 47648dc7665db12a97c3077a4892ce29072c756bb31b5c331b8924493c888475' signer.txt
apksigcopier compare --unsigned "${signed[0]}" "${rebuilt[0]}"
name: release-visual-tests
path: |
build/visual-test/
build/native-visual-test/
build/native-zoom-test/*.png
build/native-zoom-test/app.log
build/launcher-ui-test/
build/locale-render-ui-test/
build/native-screenshot-test/
build/native-text-pixels-test/*.png
build/native-text-pixels-test/*.log
build/settings-sidebar-test/
build/startup-quit-test/
build/lumi-ui-test/
build/lumi-history-ui-test/
build/habits-cards-ui-test/
build/lists-ui-test/
build/sync-review-ui-test/
build/data-back-ui-test/
retention-days: 7
build-web:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Build Web
runs-on: ubuntu-latest
timeout-minutes: 60
needs: secret-scan
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -301,7 +137,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
lfs: true
@@ -323,7 +158,7 @@ jobs:
- name: Install Web Dependencies
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt python3-pil
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set up Emscripten
uses: ./.github/actions/emscripten
@@ -346,11 +181,10 @@ jobs:
if-no-files-found: error
build-chrome-extension:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Build Chrome Extension
runs-on: ubuntu-latest
timeout-minutes: 60
needs: secret-scan
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -358,7 +192,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
lfs: true
@@ -380,7 +213,7 @@ jobs:
- name: Install Web Dependencies
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt python3-pil
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set up Emscripten
uses: ./.github/actions/emscripten
@@ -403,11 +236,10 @@ jobs:
if-no-files-found: error
build-firefox-addons:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Build Firefox Add-on
runs-on: ubuntu-latest
timeout-minutes: 60
needs: secret-scan
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -415,7 +247,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
lfs: true
@@ -437,7 +268,7 @@ jobs:
- name: Install Web Dependencies
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt python3-pil
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set up Emscripten
uses: ./.github/actions/emscripten
@@ -461,11 +292,10 @@ jobs:
if-no-files-found: error
build-linux-appimage:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Build Linux AppImage
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
needs: secret-scan
needs: test
strategy:
fail-fast: false
matrix:
@@ -483,7 +313,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
- name: Fetch Ziran packages
@@ -522,8 +351,14 @@ jobs:
- name: Build Linux AppImage
env:
APPIMAGE_EXTRACT_AND_RUN: "1"
RAY_RAYLIB_CONFIG: -DSUPPORT_SCREEN_CAPTURE=0 -DSUPPORT_COMPRESSION_API=0 -DSUPPORT_AUTOMATION_EVENTS=0 -DSUPPORT_CLIPBOARD_IMAGE=0 -DSUPPORT_FILEFORMAT_BMP=0 -DSUPPORT_FILEFORMAT_GIF=0 -DSUPPORT_FILEFORMAT_QOI=0 -DSUPPORT_FILEFORMAT_DDS=0 -DSUPPORT_FILEFORMAT_TTF=0
run: |
set -euo pipefail
RAY_SDL_INCLUDE_DIR="$(pkg-config --variable=includedir sdl2 | sed 's,/SDL2$,,')"
RAY_CFLAGS="$(pkg-config --cflags sdl2 libdrm gbm egl glesv2)"
RAY_LDLIBS="$(pkg-config --libs sdl2 libdrm gbm egl glesv2)"
RAY_SDL_LDLIBS="$(pkg-config --libs sdl2)"
export RAY_SDL_INCLUDE_DIR RAY_CFLAGS RAY_LDLIBS RAY_SDL_LDLIBS
make appimage
mkdir -p build/release/linux
find build/dist/linux -maxdepth 1 -type f -name '*.AppImage' -exec cp {} build/release/linux/ \;
@@ -546,13 +381,6 @@ jobs:
app_pid=$!
for _ in $(seq 1 30); do
if xwininfo -tree -root | grep -q 'Inner Breeze'; then
sleep 3
# A build without TrueType support draws a pixel font.
if grep -q 'Font is not supported' /tmp/inbe-appimage.log; then
echo "AppImage could not load its fonts"
cat /tmp/inbe-appimage.log || true
exit 1
fi
exit 0
fi
if ! kill -0 "$app_pid" >/dev/null 2>&1; then
@@ -574,11 +402,10 @@ jobs:
if-no-files-found: error
build-linux-deb:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Build Linux Deb
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
needs: secret-scan
needs: test
strategy:
fail-fast: false
matrix:
@@ -594,7 +421,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
- name: Fetch Ziran packages
@@ -636,11 +462,10 @@ jobs:
if-no-files-found: error
build-linux-rpm:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Build Linux RPM
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
needs: secret-scan
needs: test
strategy:
fail-fast: false
matrix:
@@ -656,7 +481,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
- name: Fetch Ziran packages
@@ -698,11 +522,10 @@ jobs:
if-no-files-found: error
build-linux-snap:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Build Linux Snap
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
needs: secret-scan
needs: test
strategy:
fail-fast: false
matrix:
@@ -718,7 +541,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
- name: Fetch Ziran packages
@@ -757,11 +579,10 @@ jobs:
if-no-files-found: error
build-linux-flatpak:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Build Linux Flatpak
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
needs: secret-scan
needs: test
strategy:
fail-fast: false
matrix:
@@ -777,7 +598,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
- name: Fetch Ziran packages
@@ -816,11 +636,10 @@ jobs:
if-no-files-found: error
build-windows:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Build Windows
runs-on: ubuntu-latest
timeout-minutes: 60
needs: secret-scan
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -828,7 +647,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
- name: Fetch Ziran packages
@@ -853,7 +671,7 @@ jobs:
path: |
vendor-builds/windows
vendor-builds/sqlite
key: windows-vendor-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile', 'mk/**', '!mk/tests-*.mk', 'ziran.lock') }}
key: windows-vendor-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile', 'ziran.lock') }}
restore-keys: |
windows-vendor-${{ runner.os }}-${{ runner.arch }}-
@@ -882,55 +700,17 @@ jobs:
if-no-files-found: error
build-android:
if: needs.secret-scan.outputs.reuse_artifacts != 'true' && needs.secret-scan.outputs.release_due == 'true'
name: Build Android
runs-on: ubuntu-latest
timeout-minutes: 60
needs: secret-scan
env:
APT_CACHE_DIR: /tmp/apt-cache
needs: test
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 1
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Cache Android SDK packages
uses: actions/cache@v4
with:
path: |
${{ env.ANDROID_HOME }}/platforms/android-36
${{ env.ANDROID_HOME }}/build-tools/35.0.0
${{ env.ANDROID_HOME }}/ndk/28.2.13676358
${{ env.ANDROID_HOME }}/cmake/3.22.1
key: android-sdk-v2-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/android-sdk-packages.txt') }}
restore-keys: |
android-sdk-v2-${{ runner.os }}-${{ runner.arch }}-
- name: Verify and install Android SDK components
timeout-minutes: 20
run: python3 .github/scripts/install-android-sdk.py
- name: Cache Android apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: android-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/android-packages.txt') }}
restore-keys: |
android-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install translation check dependency
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/android-packages.txt
- name: Fetch Ziran packages
uses: ./.github/actions/ziran-packages
@@ -939,18 +719,47 @@ jobs:
with:
node-version: 22
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Install translation check dependency
run: sudo apt-get update && sudo apt-get install -y python3-fonttools
- name: Cache Android SDK packages
uses: actions/cache@v4
with:
path: |
${{ env.ANDROID_HOME }}/platforms/android-36
${{ env.ANDROID_HOME }}/build-tools/34.0.0
${{ env.ANDROID_HOME }}/ndk/25.1.8937393
${{ env.ANDROID_HOME }}/ndk/28.2.13676358
${{ env.ANDROID_HOME }}/cmake/3.22.1
key: android-sdk-${{ runner.os }}-${{ runner.arch }}-api36-bt34-ndk25-ndk28-cmake322
restore-keys: |
android-sdk-${{ runner.os }}-${{ runner.arch }}-
- name: Cache Android native build
uses: actions/cache@v4
with:
path: |
droid/app/.cxx
droid/app/build/intermediates/cxx
key: android-native-v2-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('droid/app/src/main/cpp/CMakeLists.txt', 'droid/app/build.gradle', 'droid/build.gradle', 'src/**/*.zi', 'src/**/*.c', 'src/**/*.h', 'ziran.lock') }}
key: android-native-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('droid/app/src/main/cpp/CMakeLists.txt', 'droid/app/build.gradle', 'src/**/*.c', 'src/**/*.h', 'ziran.lock') }}
restore-keys: |
android-native-v2-${{ runner.os }}-${{ runner.arch }}-
android-native-${{ runner.os }}-${{ runner.arch }}-
- name: Install Android SDK Components
run: |
set -euo pipefail
SDKMANAGER="$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager"
yes | "$SDKMANAGER" --licenses >/dev/null || true
"$SDKMANAGER" "platforms;android-36" "build-tools;34.0.0" "ndk;25.1.8937393" "cmake;3.22.1"
- name: Prepare Android signing key
env:
@@ -972,44 +781,21 @@ jobs:
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
WAOZI_DRIVE_PICKER_KEY: ${{ secrets.WAOZI_DRIVE_PICKER_KEY }}
WAOZI_DRIVE_PROJECT_NUMBER: ${{ secrets.WAOZI_DRIVE_PROJECT_NUMBER }}
WAOZI_DRIVE_PICKER_ORIGIN: ${{ secrets.WAOZI_DRIVE_PICKER_ORIGIN }}
run: |
set -euo pipefail
chmod +x droid/gradlew
./droid/gradlew -p droid assembleRelease \
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
-Pkeystore.alias="$KEY_ALIAS" \
-Pkeystore.password="$KEYSTORE_PASSWORD" \
--stacktrace
# Only the Google Play edition's own Gradle run reads its Google plugin.
./droid/gradlew -p droid assembleGplay \
-Pwaozi.drivePickerKey="$WAOZI_DRIVE_PICKER_KEY" \
-Pwaozi.driveProjectNumber="$WAOZI_DRIVE_PROJECT_NUMBER" \
-Pwaozi.drivePickerOrigin="$WAOZI_DRIVE_PICKER_ORIGIN" \
./droid/gradlew -p droid assembleRelease assembleGplay \
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
-Pkeystore.alias="$KEY_ALIAS" \
-Pkeystore.password="$KEYSTORE_PASSWORD" \
--stacktrace
./droid/gradlew -p droid bundleGplay \
-Pwaozi.drivePickerKey="$WAOZI_DRIVE_PICKER_KEY" \
-Pwaozi.driveProjectNumber="$WAOZI_DRIVE_PROJECT_NUMBER" \
-Pwaozi.drivePickerOrigin="$WAOZI_DRIVE_PICKER_ORIGIN" \
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
-Pkeystore.alias="$KEY_ALIAS" \
-Pkeystore.password="$KEYSTORE_PASSWORD" \
--stacktrace
make android-copy-release-apks
make android-copy-bundle
# F-Droid rebuilds the universal APK with -PfDroidBuild and copies
# this APK's signature onto it, so the two must match byte for byte.
./droid/gradlew -p droid assembleRelease -PfDroidBuild=true \
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
-Pkeystore.alias="$KEY_ALIAS" \
-Pkeystore.password="$KEYSTORE_PASSWORD" \
--stacktrace
make android-copy-fdroid-apk
- name: Preserve Android Native Crash Symbols
uses: actions/upload-artifact@v4
@@ -1028,8 +814,7 @@ jobs:
echo "Could not read APP_VERSION_STRING"
exit 1
fi
for apk in "build/android/inbe-$VERSION.apk" "build/android/inbe-$VERSION-gplay.apk" \
"build/android/inbe-$VERSION-fdroid.apk"; do
for apk in "build/android/inbe-$VERSION.apk" "build/android/inbe-$VERSION-gplay.apk"; do
if [ ! -f "$apk" ]; then
echo "Missing universal APK: $apk"
exit 1
@@ -1043,24 +828,6 @@ jobs:
done
cp "build/android/inbe-$VERSION-gplay.aab" build/release/android/
# Only the Google Play edition may hold a Google library, in its build
# files as in its APK. The universal and both x86 APK names end in a digit.
- name: Keep Google libraries out of the normal and F-Droid APKs
uses: kryonlabs/kryon/.github/actions/google-free@7217475dfa7f462939e47e3f0bc918aef248b179
with:
packages: >-
build/release/android/inbe-*[0-9].apk
build/release/android/inbe-*-arm*.apk
build/release/android/inbe-*-fdroid.apk
# The Google check must still recognise Play Billing, or its passes on
# the other editions prove nothing.
- name: Find Play Billing in the Google Play APK
uses: kryonlabs/kryon/.github/actions/google-free@7217475dfa7f462939e47e3f0bc918aef248b179
with:
packages: build/release/android/inbe-*-gplay.apk
source: ''
expect-google: 'true'
- name: Upload Android Artifacts
uses: actions/upload-artifact@v4
with:
@@ -1069,17 +836,10 @@ jobs:
if-no-files-found: error
release:
if: >-
always() && !cancelled() && needs.secret-scan.result == 'success' &&
(needs.secret-scan.outputs.reuse_artifacts == 'true' ||
(!contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') &&
!contains(needs.*.result, 'skipped')))
name: Release
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- secret-scan
- test
- build-web
- build-chrome-extension
- build-firefox-addons
@@ -1090,7 +850,6 @@ jobs:
- build-linux-flatpak
- build-windows
- build-android
- verify-fdroid
outputs:
tag_pushed: ${{ steps.tag_version.outputs.tag_pushed }}
release_upload: ${{ steps.tag_version.outputs.release_upload }}
@@ -1101,14 +860,11 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
fetch-depth: 0
- name: Download Release Artifacts
uses: actions/download-artifact@v4
with:
github-token: ${{ github.token }}
run-id: ${{ inputs.reuse_run || github.run_id }}
pattern: release-*
path: build/release
merge-multiple: true
@@ -1131,16 +887,6 @@ jobs:
done < <(scripts/list-expected-release-assets.sh "$VERSION")
exit "$missing"
- name: Require Phone Check or Explicit Owner Waiver for a New Version
run: |
set -euo pipefail
VERSION=$(python3 scripts/check-version.py --print-version)
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
echo "v$VERSION is already tagged; no new version to check"
exit 0
fi
python3 scripts/check-phone-check.py "$VERSION"
- name: Create and Push Tag If Version Is New
id: tag_version
env:
@@ -1189,7 +935,7 @@ jobs:
set -euo pipefail
VERSION='${{ steps.tag_version.outputs.version }}'
TAG="v$VERSION"
BASE="https://github.com/waozixyz/breeze/releases/download/$TAG"
BASE="https://github.com/waozixyz/inbe/releases/download/$TAG"
WINZIP="$(find build/release -maxdepth 2 -name '*-windows.zip' -print -quit || true)"
channels=()
for appimage in build/release/inbe-linux-*.AppImage; do
@@ -1214,17 +960,6 @@ jobs:
arch="${arch%.rpm}"
channels+=("--channel" "rpm-$arch=$rpm")
done
# Directly installed APKs update themselves from these channels;
# the Google Play and F-Droid builds update through their stores.
while IFS= read -r apk; do
abi="$(basename "$apk" .apk)"
abi="${abi#inbe-$VERSION}"
case "$abi" in
-gplay|-fdroid) continue ;;
"") channels+=("--channel" "android=$apk") ;;
*) channels+=("--channel" "android$abi=$apk") ;;
esac
done < <(find build/release -maxdepth 2 -name "inbe-$VERSION*.apk" | sort)
if [ ${#channels[@]} -eq 0 ]; then
echo "no release artifacts found for the appcast"
exit 1
@@ -1232,7 +967,7 @@ jobs:
python3 scripts/make_appcast.py \
--version "$VERSION" \
--base-url "$BASE" \
--notes-url "https://github.com/waozixyz/breeze/releases/tag/$TAG" \
--notes-url "https://github.com/waozixyz/inbe/releases/tag/$TAG" \
--changelog CHANGELOG.md \
--out build/release/appcast.json \
"${channels[@]}"
@@ -1280,7 +1015,7 @@ jobs:
needs:
- build-web
- release
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
if: needs.release.outputs.tag_pushed == 'true'
env:
BUTLER_API_KEY: ${{ secrets.ITCH_API_KEY }}
@@ -1295,14 +1030,10 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
- name: Download Release Artifacts
uses: actions/download-artifact@v4
with:
github-token: ${{ github.token }}
run-id: ${{ inputs.reuse_run || github.run_id }}
pattern: release-*
path: build/release
merge-multiple: true
@@ -1351,7 +1082,7 @@ jobs:
log_file="$(mktemp)"
for attempt in 1 2 3 4 5 6; do
if butler push "$target" "waozi/breeze:$channel" --userversion "$VERSION" 2>&1 | tee "$log_file"; then
if butler push "$target" "waozi/inbe:$channel" --userversion "$VERSION" 2>&1 | tee "$log_file"; then
rm -f "$log_file"
return 0
fi
@@ -1381,7 +1112,7 @@ jobs:
needs:
- build-android
- release
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
if: needs.release.outputs.tag_pushed == 'true'
steps:
- name: Check Google Play Secret
@@ -1397,8 +1128,6 @@ jobs:
- name: Download Android Release Artifact
uses: actions/download-artifact@v4
with:
github-token: ${{ github.token }}
run-id: ${{ inputs.reuse_run || github.run_id }}
name: release-android
path: build/release/android
@@ -1419,7 +1148,7 @@ jobs:
needs:
- build-android
- release
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
if: needs.release.outputs.tag_pushed == 'true'
env:
AMAZON_CLIENT_ID: ${{ secrets.AMAZON_CLIENT_ID }}
AMAZON_CLIENT_SECRET: ${{ secrets.AMAZON_CLIENT_SECRET }}
@@ -1428,8 +1157,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
- name: Check Amazon Appstore Secrets
id: amazon_secrets
@@ -1448,8 +1175,6 @@ jobs:
if: steps.amazon_secrets.outputs.configured == 'true'
uses: actions/download-artifact@v4
with:
github-token: ${{ github.token }}
run-id: ${{ inputs.reuse_run || github.run_id }}
name: release-android
path: build/release/android
@@ -1477,7 +1202,7 @@ jobs:
needs:
- build-chrome-extension
- release
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
if: needs.release.outputs.tag_pushed == 'true'
steps:
- name: Check Chrome Web Store Secrets
@@ -1509,8 +1234,6 @@ jobs:
if: steps.chrome_secrets.outputs.configured == 'true'
uses: actions/download-artifact@v4
with:
github-token: ${{ github.token }}
run-id: ${{ inputs.reuse_run || github.run_id }}
name: release-chrome-web-store
path: build/release/chrome-web-store
@@ -1605,7 +1328,7 @@ jobs:
needs:
- build-firefox-addons
- release
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
if: needs.release.outputs.tag_pushed == 'true'
steps:
- name: Check Firefox Add-ons Secrets
@@ -1631,8 +1354,6 @@ jobs:
if: steps.firefox_secrets.outputs.configured == 'true'
uses: actions/download-artifact@v4
with:
github-token: ${{ github.token }}
run-id: ${{ inputs.reuse_run || github.run_id }}
name: release-firefox-addons
path: build/release/firefox-addons
@@ -1668,7 +1389,7 @@ jobs:
timeout-minutes: 15
continue-on-error: true
needs: release
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
if: needs.release.outputs.tag_pushed == 'true'
env:
WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
@@ -1695,7 +1416,7 @@ jobs:
run: |
set -euo pipefail
VERSION='${{ needs.release.outputs.version }}'
SETUP_URL="https://github.com/waozixyz/breeze/releases/download/v$VERSION/inbe-windows-setup-$VERSION.exe"
SETUP_URL="https://github.com/waozixyz/inbe/releases/download/v$VERSION/inbe-windows-setup-$VERSION.exe"
if ! curl -fsSL -o /dev/null "$SETUP_URL"; then
echo "::warning::setup exe not published yet; skipping winget update"
exit 0
+1 -14
View File
@@ -16,8 +16,6 @@
*.wasm
build/
/backup/
/work/
/notes/
/output/
tmp/
vendor-builds/
@@ -30,6 +28,7 @@ node_modules
.env
.env.play
.secrets/
social-posts.local.json
/inbe.log
@@ -82,15 +81,3 @@ design/sun-salutation/*/reference-*.png
design/sun-salutation/generated-video-cut/source.mp4
design/sun-salutation/girl-parts/head-layers-check.png
.wrangler/
# Video and promo working material stays local (owner 2026-10-23).
/design/promo-film/
/design/videos/
/design/lumi-promo/
# Sun Salutation motion exported for the three.js lab (render-sun-salutation-live.py --motion).
/design/tai-chi/lab/
# Generated Android test classes and Gradle fixtures.
/tests/android-diary-photo/bin/
/tests/android-text-selection/bin/
+7 -46
View File
@@ -9,47 +9,11 @@
`ziran.lock`. Run `make package-check` after dependency changes. For local
debugging, map a package to a working repository in the ignored
`ziran.local.toml`; release builds use `PACKAGE_FLAGS=--locked`.
- Practice media (pictures, course data, recordings) lives in the
`practices` package (waozixyz/practices), not under
`assets/`. Commit media there, then update the lock here.
- Bump versions only for a release actually being made. Until then, note
every change under one `## [Unreleased]` section of `CHANGELOG.md` (and of
`apps/<app>/CHANGELOG.md`); App packages waits for the next version. At
release, number that section, then run `./update_version.sh`.
- Add the numeric release to `CHANGELOG.md`, then run `./update_version.sh`.
The canonical macros are `APP_VERSION_STRING`, `APP_VERSION_MAJOR`,
`APP_VERSION_MINOR`, and `APP_VERSION_PATCH`; do not create aliases.
Only the GitHub Actions release workflow creates or pushes release tags.
- A new version publishes only with a passing phone check of its exact app
content (`app_tree` over `APP_PATHS` in `scripts/phone-check.py`). Release
with `RELEASE_READY_REVISION=COMMIT make release-ready`, then
`make release REVISION=COMMIT APK=PATH BUILD_RECEIPT=PATH` with the development
Moto connected. The APK and its provenance come from the same fixed-source
overlay. Master, locks and peer edits keep changing freely. The release
commit retains the tested source; if master advanced, a merge preserves
all newer source and history. The workflow can release that exact commit
through its `revision` input. Never freeze the checkout for testing.
See [docs/apps.md](docs/apps.md#verification).
- Packages declare the oldest host interface they run on (`host_api` per app
in `apps/versions.json`); the host runs `oldest_host_api` to `host_api`.
Raise `host_api` when the host interface changes and `oldest_host_api` only
when it can no longer run older packages. `make package-compat-test` runs
the node's packages in this build and new packages in the last release.
`zx_revision` there is the ZX executable revision the host runs; update
checks send it and the node offers only packages whose `.zx` header has
it, and the publisher refuses a payload of another revision. Change it
with the Ziran pin, together with `oldest_host_api` and `host_api`.
- Goal (owner, 2026-10-11): every app updates through its own package
without a new APK. Work toward it in small steps alongside requested work;
discuss larger moves with the owner first. Put app screens, rules and text
in `apps/<app>/`, not in the host under `src/`. Practices draws its
screen layouts in `apps/practice/`; its native figure painters and
platform effects remain host capabilities (see [docs/apps.md](docs/apps.md)).
Keep the host interface small and generic (storage, network, locale,
platform effects), because
each new host call needs an APK before a package can use it. Apps share
data only through the host interface, never another app's internals.
- Translate changed strings in every affected locale; no English placeholders.
- Keep Breeze/Lumi/store notes to 2–3 short core, Practices or Habits lines, without links or Android versions; game changes belong only in their package changelogs.
- `make locale-translated-test` fails on any locale string that still equals
its English text. Translate it; add it to `tests/locale_same_as_english.txt`
only when it is a real brand name, loanword, or format string.
@@ -67,18 +31,15 @@
explicit product intent and separate review from implementation changes.
- Run `make proof-test sync-recovery-test version-test` for these contracts.
Coverage, trust boundaries, and the next proof migrations are described in
[docs/build-laws.md](docs/build-laws.md).
[docs/build-laws-plan.md](docs/build-laws-plan.md).
## Public UI and sync boundaries
- Use Kryon's namespaced widgets directly, each imported by package
(`Text :: #import "kryon/text";`): `Text.Draw(session, Text.Props)`,
`Image.Draw(session, Image.Props)` and `Button.Draw(session, Button.Props)`.
Semantic images use the same `Image` surface; file pictures come with
`kryon/image` and button icons with `kryon/icon`. No positional Text,
`Kryon`/`Widgets` facades, legacy drawing calls, alternate widgets, or thin
local forwarding wrappers. Keep meaningful compositions and gestures; use
standard `Checkbox.Draw` and `Toggle.Draw`.
- Use current Kryon calls `Text(session, TextProps)`,
`Image(session, ImageProps)`, and `Button(session, ButtonProps)` directly.
Semantic images use the same `Image` surface. No positional Text, legacy
drawing calls, alternate widgets, or thin local forwarding wrappers.
Keep meaningful compositions and gestures; use standard Checkbox and Toggle.
Run `make clean-text-api-check button-api-check` for UI changes.
- If a required widget capability is missing, implement the reusable primitive
upstream first. Do not work around it in Inbe or generated code.
+15 -426
View File
@@ -1,415 +1,4 @@
# Changelog
## [Unreleased]
- Fix Backspace, edits, backup restores. Find Photos/Radio. Dew via Telegram Stars. Fast Lumi chat, unseen reply alerts.
- Start/switch/resume. Seek Astral. Gentle 4-min and custom workouts. Day and night skies in Practices. Workout leggings and crop top. Download status/retry. Fix PiP/Home crashes.
- Reset break timers on return. Themed timers/coins. Daily coins, Diary links, habit charts, all stats and Activity icons.
## [2.1.63] - 2026-11-05
- Correct text in lists and Lumi without cursor jumps.
- Keep Lumi chat ready while replies arrive, with Send and Cancel for developer reports.
- See color purchase totals and reward frequency in the shop.
## [2.1.62] - 2026-11-03
- Clearer Sun Salutation guidance and steadier practice audio.
- More reliable habit reminders and new reward pictures.
- Safer account backups and more reliable sync.
## [2.1.61] - 2026-10-29
- Sync no longer gets stuck after something is deleted.
- Photos in Trash stop using storage and are deleted after 30 days unless Diary shows them.
- Cleared remote data stays 30 days; importing the same key brings it back.
- The download is about 16 MB smaller.
- Chinese, Japanese and Korean text displays correctly.
- More of the app is translated, including Profile and update notes.
## [2.1.60] - 2026-10-29
- Hide apps from the library and restore them through Edit.
- Use one simple reorder grip to the left of app icons in list and grid views.
- Unify Profile rows and put sent friend requests beside names with a cancel action.
## [2.1.59] - 2026-10-28
- Keep habits, practices, session counts and game progress free of storage charges, even when account storage is full.
- Count custom notes, Diary and media toward storage, and keep progress syncing past queued uploads that need more space.
- Show full public IDs in centered, grouped fields.
- Connect automatically to Sunup when it is installed, while keeping an explicit push-off choice off.
- Turn habit reminders on by default for setups without a saved choice.
## [2.1.58] - 2026-10-28
- Show friend pictures and equipped Apfelwurm skins in leaderboards; hide repeated headings and single-choice selectors.
- Keep downloaded Arcade games and saved progress across updates.
- Show premium username prices, confirm Dew purchases and open top-up when needed. Existing usernames stay free to keep.
- Align Profile leaderboard columns and improve Friends input, profile pictures and app rearranging.
## [2.1.56] - 2026-10-28
- Open the keyboard when editing an account alias and copy the complete public ID from Profile.
- Show a full public ID where it fits; tap it for a scannable QR code and the full ID to copy.
- Use one shared Profile leaderboard, including Apfelwurm’s score and level alongside puzzle and practice rankings.
## [2.1.55] - 2026-10-27
- Retry Google Play prices when the store cannot load Dew packs.
- Open apps with a calmer, themed loading screen and their own icon.
- Learn Apps in one short guide, with current app options.
## [2.1.54] - 2026-10-27
- Buy Dew through Google Play in the Google Play version.
## [2.1.53] - 2026-10-27
- Top up Dew with Bitcoin, USDT and other coins through dew.waozi.xyz.
- The Google Play version uses current Android components.
## [2.1.52] - 2026-10-27
- Set an account alias with capitals, an @ or spaces; a taken alias now says so.
- Restore audio playback and account sync on Ubuntu Touch.
## [2.1.51] - 2026-10-27
- Open Link to reliably while choosing a new habit's icon.
- Choose diary, notebook, pen, pencil, writing, notes, keyboard and idea icons for habits and rewards.
- Link habits to Diary entries and add a linked habit after a practice's first session.
- Get a short count-in before each workout exercise.
## [2.1.50] - 2026-10-26
- Habits award coins when you record a recent day before you created the habit.
## [2.1.49] - 2026-10-25
- Download Arcade in under one megabyte; its games and their covers arrive separately.
- Arcade’s covers show only the game art; the download dialog shows the size.
- Install game editors with their required games and review the complete download size.
- Reuse Shovey’s downloaded artwork and sounds in its editor.
## [2.1.48] - 2026-10-25
- Arcade uses large rounded game covers in the same dark library on every device.
- Download Apfelwurm and other Arcade games individually while keeping installed games and saves.
## [2.1.47] - 2026-10-25
- App downloads show their progress and open the app when ready.
- Installed apps no longer show download sizes.
- Arcade can download each game separately from its smaller catalog.
## [2.1.46] - 2026-10-24
- Practices can update its session controls, guides and settings without reinstalling Breeze.
- Wim Hof reminders now count from the start of each breath hold, with clear Off, every 30 seconds and every minute choices.
- Dew works in every version of the app; the Play version doesn't offer top-ups yet.
- Prices show in Dew; the dollar value appears only when you top up.
- Games can reward you with Dew, such as Shovey's secret chest.
- 1 XMR now buys 10,000 Dew: your balance and every price are ten times larger and worth the same.
- Sending Dew to friends is paused for now.
## [2.1.45] - 2026-10-24
- Smoother on phones: apps run as native code, and Shovey runs over twice as fast.
- Apps ask before downloading and show one loading animation.
- Games repeat held keys and keep the screen on.
- Finishing an Arcade level no longer turns the screen black.
- New installs follow your device's language and start with Diary, Lists and Leaderboard.
- Diary and Photos keep each photo once, privately, for all your apps.
- Profiles show your @name or a short ID.
- Linux tray: Show or Hide comes first.
## [2.1.44] - 2026-10-23
- Lists: lists are chips that wrap onto more rows; pull the items down to show finished ones.
- Lists: the gear on a list opens its settings: name, who has access and their roles, invitations, and Delete.
- Your profile picture is shared with friends, and shared lists show everyone's pictures.
- Sun Salutation moves smoothly, like Tai Chi and the workout.
- On Linux the program is now called breeze.
## [2.1.43] - 2026-10-23
- Lists: tap an item to finish it, swipe right to edit it and swipe left to delete it.
- The desktop practice window has its own sound, Breath and double-tap controls.
- Sun Salutation follows the classic chart poses, and its guide shows the whole sequence.
- Jumping jacks in the 7-Minute Workout follow a calmer pace.
- Switching to and from Apps is quicker.
## [2.1.42] - 2026-10-22
- Keep practice animation smooth in the browser.
- Keep navigation responsive while apps open or update, including during a running practice.
- Restore clean F-Droid builds.
- Show distinct Photos, Radio and Library icons in Apps, including before installation.
- Open your shared Entity profile beside Settings, with your existing account and Dew balance.
- Follow a gentler Sun Salutation pace, with seconds per breath, a duration estimate and clearer audio settings.
- Keep knees and elbows aligned through Sun Salutation's Low Lunge and Knees, Chest and Chin transitions.
- Keep Sun Salutation repetitions and tempo, and Tai Chi lesson details, in linked habit sessions and across account sync.
- About lists only installed apps; published apps appear in More apps without a beta setting.
- Start installed practices reliably from Lumi while their content opens.
- See Dew and activity directly in Profile, with data management inside the Dew card.
- Achievement alerts name the award at the top right and can be turned off.
## [2.1.41] - 2026-10-22
- Reduce practice-animation stutter on slower browsers.
## [2.1.40] - 2026-10-22
- Keep practice animations smooth in browsers on slower devices.
## [2.1.39] - 2026-10-22
- Fix account sync, Shop borrowing and history, Android key backups and Profile navigation.
- Share photo storage between Diary and Photos and compress new uploads.
- Keep practice guides visible, browser animations smooth and web saves recoverable.
## [2.1.38] - 2026-10-21
- Track habits you want to avoid with a daily target of 0.
- Set custom coins per occurrence, including negative penalties and 0.
- Simplify Apps editing, settings, navigation and app loading; make Photos available to everyone.
- Diary and Photos share saved images and automatically compress new photo uploads.
- Fix Profile headers, scrolling, dialogs, font freezes and Android key backups.
- Fix large-account sync, false sync failures, sharing controls and activity and achievement views.
## [2.1.37] - 2026-10-20
- Leaderboard ranks each installed practice and each Arcade game you play, such as Shovey's levels solved.
- Swipe left or right to move between Practice's tabs.
- Astral Projection has its own cover, plus How to and Customize like the other meditations.
- Apps can keep their own colours inside Inner Breeze, so games look like themselves.
- Astral Projection has a gently floating animated figure and a shorter introduction.
- Existing profiles receive the Exercise preset linked to Workout, while deleted presets stay deleted.
- Narration can finish downloading during a practice and begin speaking the current guidance.
- Download errors use a short message without repeating that progress is saved.
- Profile brings activity, data, friends and achievements into consistent rows, with node settings under Account.
- Every achievement has its app's badge; filter the collection by apps installed on this device.
- Lists names who each list is shared with, and sharing is one icon.
- Diary can reopen immediately after closing while a download helper is still running.
## [2.1.36] - 2026-10-19
- Inner Breeze starts several times faster: installed apps such as Arcade open when you go to them.
- Opening Arcade takes a moment instead of several seconds on slower phones.
- An app you tap while it is still downloading opens as soon as it is ready.
- An app not yet on this device shows a download symbol, and its card shows the download's progress.
- Lists, Habits, Apps, Lumi, Arcade and Pushy draw faster and scroll more smoothly.
- Scrolling Habits no longer moves or opens a habit; hold a habit a little longer to move it.
- Drag the border beside habit names to widen or narrow the names column.
- Astral Projection: a 40-minute guided visualization with offline text and English narration.
- Sun Salutation follows the classic sequence: lunges with a knee down, knees, chest and chin, and cobra, switching legs each round.
- New 7-Minute Workout: twelve 30-second exercises shown by an animated guide, with rests, a countdown and tips.
- Practice has tabs for Meditation, Yoga, Martial arts and Workout; install or unlock any practice from its card.
- Breathing, meditation, Astral Projection and the workout come with the app, ready without a download.
- Leaderboard lists every practice you have installed, including Tai Chi and
Astral Projection, in your Practice order, and leaves out the others.
- Lumi shares a few changelog highlights in chat after an update, once per version.
- Manage your name, picture and sync nodes in the redesigned Self profile.
- Install Radio to listen to three live ambient stations while using other
apps and practices, with separate volume controls.
- Open installed apps directly from Android, Windows and Linux launcher
shortcuts, using each app's existing account and data.
- Manage apps through a compact three-dot menu with Pin, Unpin and Install
to launcher. Clear Apps search with the × shown while it contains text.
- Rename any app and choose its icon in Properties, in the app's three-dot
menu. An update not yet installed or seen shows as a dot on that menu,
with Update at the top.
- Choose guide and practice voices during setup, with download sizes for the
selected language. Both start selected; you can turn them off or skip audio.
- Go back from optional audio to correct the language, including during a
download. Your choices survive restarting the app.
- Use larger setup controls and continue directly when both voices are off.
- Android accessibility services can read controls and activate, focus and
scroll them. Password values stay hidden.
- Habits' save, discard and delete confirmations can improve through Habits
updates while keeping existing data and older installed packages working.
- Apps from the node show their own icon on Apps and in the navigation as
soon as they are installed, not a plain grid until they first run.
- A day a habit is not scheduled on no longer takes a tap, so its empty
space cannot add a check mark. An off day with something recorded on it
still opens.
- Developer replies to your feedback appear in Lumi as replies from the
developer, quoting the feedback they answer, like a reply in a chat app.
Replies you received earlier change to this look too, and each reply shows
once even when several of your devices fetched it.
- Settings › About lists the version of the Inbe harness, the package that
carries the apps and updates them without a new app release, then each app
you installed, including apps from the node.
- Open a web link in a Lumi message by tapping it in the message's words,
where it shows in the theme's link color. Right-click a message to copy it.
- Apps from the node open only once they are on your device. An installed
one starts when you open it; one still downloading stays closed instead of
showing "Installing this app".
- Chess moves into Arcade, a set of games that also has Pushy, so the
standalone Chess app no longer shows in your apps or More apps. Install
Arcade from More apps to keep playing your saved and friend Chess games.
- Habits earn coins, more for hard ones, to spend on your own rewards in the shop.
- The habit shop scrolls smoothly, even with its grid of symbols open.
- Rewards can show 28 more symbols, such as weed, cigarettes, beer, wine, fast food, sweets, TV and games.
## [2.1.35] - 2026-10-17
### Added
- Chess in More apps: play the computer or a friend.
- More apps shows new node apps without updating.
- Settings › About › Show beta apps lists apps in testing.
- Photos (beta): your photos by day, encrypted, on all devices.
- Diary is Markdown with inline photos, kept in Photos; each day has a gallery.
### Changed
- Photos go to every node with photo upload on.
- Answer a developer's reply through Lumi.
### Fixed
- Sideways camera photos are upright in Diary on desktop.
## [2.1.34] - 2026-10-15
### Added
- Dew in Profile: top up with Monero in its own window, and pick Free, 1 GB or 5 GB storage priced in Dew. Every Dew amount, from your balance and plan prices to the Tai Chi price, also shows its value in XMR and US dollars, and top-ups show the dollar value of Monero. Monero is offered only outside Google Play.
- Share a list after a friend accepts its invitation.
- 24-form Tai Chi with progress, characters, music and spoken guidance, unlocked once with Dew and recognised on every device of your account, with its discount and download size shown before unlocking (not on Google Play).
### Changed
- Reliable Dew balances, with minimum top-ups and confirmations.
- Manage practice downloads in one window on the Practice screen.
- Tai Chi narration in a female or male voice, chosen in Tai Chi's Customize; the monk speaks with the male voice.
- Choose each practice's narration language in its Customize, from a list where an icon downloads or removes each language. Narration in the app's language downloads by itself, and Lumi's guide voice now downloads in the app's language instead of coming inside the app.
- Compact Lists tabs and larger task controls.
- Lists tabs look like tabs: the open list is underlined, with no box around the row.
- Lists' Share and Invitations open in a compact dialog over the list.
- Top up Dew centers the Monero address under its QR code.
- Profile shows how much of your storage is used, with a bar, next to your plan and in Storage plans.
- Free storage is 20 MB. Profile shows the free storage your sync node gives instead of a fixed size.
- Diary photos sync as one encrypted copy each, about the photo's own size on your sync node instead of about four and a half times, and are no longer stored twice on your device. Photos added before upload the same way and free their old space on the node.
- Every practice is optional: Practice shows only installed ones. Wim Hof comes installed and can be removed; Meditation and Breathing Patterns come with the app and are added without a download.
- Manage practices lists every practice with its size and one button: Install, Buy for a paid practice, Cancel while it downloads, or Uninstall once it is on Practice. Uninstalling a downloaded practice asks once, then frees the space; one that comes with the app just leaves Practice. Drag a practice by its handle onto another to change the order Practice shows them in. Your progress stays either way.
- Lumi asks to download or unlock a practice before starting one that isn't on your device.
- A new install comes with Lumi, Habits and Practice, in that order; add Lists, Diary and Leaderboard from More apps. The apps you install or remove and the order of your pinned apps follow your account to your other devices, and a newly signed-in device takes your account's apps instead of replacing them.
### Removed
- Donations: the reminder, About's Donate button and Lumi's donation links. Dew is how you pay in Inner Breeze.
### Fixed
- Sync no longer gets stuck on Review sync changes: Android merges large changes again, and a closed review stays closed until your account has newer data.
- Android: closing the floating practice window with its X ends the practice.
- Practice downloads show their real size, and each practice's pictures come only with its download.
- Diary adds every photo you pick, online or offline, even when your sync node is full. A full node only keeps new photos from syncing there.
- Practice no longer gets stuck showing another device's practice after that device closed during it: a session that stops updating for a minute is gone, and a device that closed mid-practice ends its session when it opens again. Another device's practice always has Close, and one that stopped updating has End this session.
- Habits no longer jump when you open a habit or Inactive habits: when the table will need to scroll, its scrollbar shows from the start, with the days that fit beside it.
## [2.1.33] - 2026-10-13
### Added
- Lumi guides you through each screen.
- Lumi understands habit requests offline.
- Lumi asks before going online.
- Your own AI provider for Lumi.
- Tap Lumi and she swirls.
### Changed
- Sun Salutation follows your breath.
- Span habits: one Good when, length first in statistics.
### Fixed
- Synced habit settings and days never revert to older copies.
- Android: opens about two seconds faster.
- Desktop tray shows the current logo.
- Progress bars fill visibly in every theme.
## [2.1.32] - 2026-10-13
### Added
- Drag habits to reorder or deactivate them.
- Habits get icons, schedules, times and daily questions.
- Questions can compare with your average.
- Apps asks before downloading app updates.
### Changed
- Habits is a table of the last seven days.
### Fixed
- Android: the floating practice window opens from Recents and shows results.
- The donation reminder shows on one device only.
- Held keys repeat in text fields.
- The breathing count is readable; older habit entries edit again.
## [2.1.31] - 2026-10-11
### Fixed
- Android: after the floating practice window, the app fits the screen again instead of running under the status bar and navigation and losing its sides.
## [2.1.30] - 2026-10-11
### Fixed
- Long menus, such as the colour theme, scroll by touch and open at your choice.
- With a menu open, tapping the navigation closes it and switches screens in one tap.
- Menus stay above the navigation instead of hiding their last options behind it.
- Web: the app is sharp on high-density screens instead of magnified and blurry.
### Changed
- Icons are sharper on the web.
## [2.1.29] - 2026-10-11
### Fixed
- Scrolling Lumi's commands keeps the keyboard open.
- New habits show each colour choice in its own colour.
- Leaving Wim Hof no longer freezes the app for a few seconds.
- The app no longer freezes just after launch while it checks for app updates.
### Changed
- Scrollbars use your theme's colours and show how much is in view.
- Apps rearranges to fill the window's width.
## [2.1.28] - 2026-10-10
### Added
- Connect a phone and a computer by QR code in Profile.
- Leaderboard is its own app.
- Profile > Data shows each sync node's storage.
### Changed
- Profile holds your account, data and Telegram; Settings holds device preferences.
- Diary shows bold text as bold.
- On desktop, a minimized practice opens in its own window.
### Fixed
- Linux: text uses Inner Breeze's fonts again.
- Smoother minimized breathing count.
- The desktop close prompt shows above Apps.
## [2.1.27] - 2026-10-10
### Added
- End a held breath from the minimized practice window with Breath or a double tap.
- Lumi feedback includes the app version, device and system.
### Fixed
- Picture-in-picture opens when you leave Inbe during a practice and returns to it.
- Lumi keeps answers that arrive during picture-in-picture.
- Lumi says whether feedback reached the developer and keeps it to retry.
- Feedback saved by older versions is now sent.
- Fix a startup crash on 32-bit Android phones.
## [2.1.26] - 2026-10-09
### Added
- Detach a running practice into its own resizable desktop window.
- Keep the practice visible over other Android apps with picture-in-picture, which you can turn off in Settings.
### Changed
- The minimized practice window is taller and shows the breath count, time left or phase.
- Diary saves quietly, without a "Waiting to save" note.
### Fixed
- Show the keyboard in Diary on Android.
- Keep the practice window over Apps.
- Open Lumi without freezing the practice window.
## [2.1.25] - 2026-10-09
### Changed
- Minimized practices show their live circle or figure in a resizable window and return to the page you started them from.
### Fixed
- Stop syncing from pausing the breathing circle while you practice.
- Keep breath sounds playing while a practice is minimized.
- Animate the Wim Hof breathing circle smoothly, including its Customize preview.
- Keep Wim Hof timing accurate when the frame rate varies.
- Skip repeated account checks on unchanged animation frames.
## [2.1.24] - 2026-10-09
### Fixed
- Open the breathing animation, background music and other menus reliably again.
- Use the In / Out breathing animation you choose in Wim Hof sessions.
- Offer Test for your own imported music instead of "Audio not installed".
- Keep the breathing circle smooth on phones signed in to an account.
## [2.1.23] - 2026-10-09
### Added
- Customize KSS in Appearance with live preview, per-app styles, an inspector, undo, and reset to defaults.
@@ -527,58 +116,58 @@
## [2.1.7] - 2026-10-06
### Changed
- Manage Lumi and all other apps in one compact list with icons, drag handles and add/remove controls.
- Include Lists and Diary with the app so every app can be added to the sidebar offline.
- Manage Lumi and all other cells in one compact list with icons, drag handles and add/remove controls.
- Include Lists and Diary with the app so every cell can be added to the sidebar offline.
## [2.1.6] - 2026-10-06
### Changed
- Manage installed and available apps together in Settings, with drag reordering, trash controls and quick reinstallation from saved packages.
- Manage installed and available cells together in Settings, with drag reordering, trash controls and quick reinstallation from saved packages.
- Keep Lumi included as the app companion while allowing her sidebar shortcut to be hidden, with an outlined firefly icon matching the other navigation icons.
- Let Lumi change themes and appearance directly through chat and app tools.
### Fixed
- Keep sidebars steady while dragging the scale slider and apply the new scale on release.
- Keep Settings available in the final sidebar position.
- Honor every checked startup app, including Diary, and report Diary correctly when opened in Harmony.
- Honor every checked startup cell, including Diary, and report Diary correctly when opened in Harmony.
- Exit promptly when Quit is pressed in the close dialog.
## [2.1.5] - 2026-10-06
### Changed
- Chat with Lumi in a simpler conversation view, with her avatar beside replies and a standard app icon.
- Chat with Lumi in a simpler conversation view, with her avatar beside replies and a standard cell icon.
- Let Lumi complete today’s habits and start practices immediately, including WHM.
- Show Lumi commands only for installed and enabled apps.
- Show Lumi commands only for installed and enabled cells.
- Ask which habit to complete, choose it by name, and use compact autocomplete chips with case-insensitive matching and command spelling correction.
## [2.1.4] - 2026-10-06
### Added
- Meet Lumi, Inner Breeze's firefly companion, as the first recommended app and home screen.
- Meet Lumi, Inner Breeze's firefly companion, as the first recommended cell and home screen.
- Chat privately with Lumi, complete commands and todo names as you type, and add, complete or reopen todos locally.
### Fixed
- Restore missing characters in translations and mixed-language labels, including the Android language picker.
## [2.1.3] - 2026-10-06
### Fixed
- Restore translated text after the app packages load, and refresh translations when packages change.
- Restore translated text after the cell packages load, and refresh translations when packages change.
## [2.1.2] - 2026-10-06
### Changed
- Call the independently installed features Apps, with a translated app picker and separate versions in About.
- Call the independently installed features Cells, with a translated cell picker and separate versions in About.
## [2.1.1] - 2026-10-06
### Added
- Attach, browse and remove Diary photos while preserving imported originals.
- Load graphics, translations, fonts and styles from app packages so these resources can update without replacing the APK.
- Update the app picker, Diary and Lists screens through their app packages.
- Load graphics, translations, fonts and styles from cell packages so these resources can update without replacing the APK.
- Update the cell picker, Diary and Lists screens through their cell packages.
### Fixed
- Keep browser account signing and update checks working with the current web runtime.
- Keep importing saved account data working in the browser.
## [2.1.0] - 2026-10-06
### Added
- Choose recommended Habits and Practices or download optional Lists and Diary from the app picker.
- Receive verified app updates independently, with a switch to disable automatic updates and a manual update check.
- Choose recommended Habits and Practices or download optional Lists and Diary from the cell picker.
- Receive verified cell updates independently, with a switch to disable automatic updates and a manual update check.
- Sync selected apps with your account, including removals, while keeping saved data on each device.
- Write private daily entries in Diary and browse them by calendar, preserving the existing Harmony entry format.
- View the main application version and each app version in About.
- View the main application version and each cell version in About.
## [2.0.12] - 2026-10-06
### Fixed
@@ -933,7 +522,7 @@
## [1.9.0] - 2026-08-15
### Added
- Break reminders, Workrave-style: micro, rest and daily break timers with statistics and a desktop timer HUD that lives as a real OS window next to the app (desktop only, off by default, with its own settings tab).
- A dedicated Notifications settings tab. Push delivery uses UnifiedPush (no Google services): "Set up push" opens an in-app picker that lists installed distributor apps with their name and icon and registers with the one you pick; the status line reports the real registration state.
- A dedicated Notifications settings tab. Push delivery uses UnifiedPush (no Google services): "Set up push" opens an in-cell picker that lists installed distributor apps with their name and icon and registers with the one you pick; the status line reports the real registration state.
- Reminders are an editable list: add as many as you want, each with a practice dropdown (Wim Hof, Meditation, Sun Salutation), a [-] time [+] stepper, an on/off toggle and delete. Ships with one enabled Wim-Hof 08:00 reminder.
- A notification when new friend requests arrive over social sync (toggleable, on by default).
- Screenshot scenes for the first-run guide and the notifications settings, for regression coverage.
-31
View File
@@ -1,31 +0,0 @@
# Contributing to Inner Breeze
Report a bug through Lumi's feedback card in the app or
[GitHub Issues](https://github.com/waozixyz/breeze/issues). Include the app version,
platform, steps to reproduce, what you expected, and what happened. Keep account
keys, private conversations and personal practice data out of public reports.
For a security issue, use [Security](SECURITY.md).
## Development
Build with `make native apps`. Dependencies and the Ziran toolchain are pinned
in `ziran.lock`; see [build guide](docs/building.md) for other platforms. Read
[AGENTS.md](AGENTS.md) for repository conventions and
[app packages](docs/apps.md) for module ownership.
Keep a change focused. Put app UI in its owning package, reusable Kryon changes
in Kryon, and compiler changes in Ziran. Preserve existing data and upgrade
paths. Translate changed app strings in every supported locale.
Run the tests that exercise the changed behavior and `git diff --check`.
For UI changes, run `make clean-text-api-check button-api-check` and the relevant
private-display UI tests. `make test` and `make visual-test` are the CI gates.
Android adapter tests need Java 21 and Android SDK platform 36; set
`ANDROID_SDK_ROOT` to your SDK directory.
Visual tests create disposable profiles and private displays; they must never
use your desktop or personal profile. See [verification](docs/apps.md#verification)
for the additional exact-source phone and release checks.
In a pull request, explain the user-visible change and list the checks you ran,
including any platform you could not verify. A build or a commit does not
publish a release.
+2543 -228
View File
File diff suppressed because it is too large. Load diff
+185 -51
View File
@@ -13,68 +13,202 @@
# Inner Breeze
Free, open-source apps for breathing, meditation, habits and everyday life.
Use them offline, keep your data on your device, and optionally connect an
account to sync across devices.
Inner Breeze is a free, open-source practice app for breathing, meditation, and
habit tracking. It works offline, stores data locally in SQLite, and can
optionally sync user-owned data through a Daochi-compatible sync server.
[Download the latest release](https://github.com/waozixyz/breeze/releases/latest)
· [What's new](CHANGELOG.md)
[Account activity](docs/ACCOUNT_ACTIVITY.md) explains persistent Telegram linking,
reopening an authorized installation, and seeing and controlling the running
practice from another device connected to the same account.
## Make space for yourself
## Features
- **Practice:** guided breathing, meditation, Astral Projection, Sun Salutation,
a 7-Minute Workout, with animated guides and optional narration.
- **Habits:** track daily goals, practices and habits you want to avoid; follow
your history and choose your own rewards.
- **Diary and Photos:** write, reflect and keep pictures together, with shared
photo storage and automatic compression of new uploads.
- **Lists:** organize tasks and share lists with friends, choosing who can
read, edit or manage them.
- **Lumi:** a firefly companion for starting practices, managing habits and
changing your app. Offline commands work without an AI connection.
- **Your apps:** arrange Apps as a list or grid, choose colours and icons,
listen to ambient Radio, and explore Arcade games and achievements.
- **Profile:** compare practice and game rankings with friends in Leaderboard.
Only installed apps, ranked practices and installed games appear there.
- Lumi, a local firefly companion with private chat, habit completion, practice starts, and optional todo tools
- Guided practice sessions with visual and audio cues
- Mind, Yoga, and Fitness organization for different practice routines
- Customizable breathing sessions, meditation timers, and habit counters
- Habit tracking with session history and linked practice counts
- Local import and export support
- Theme customization with light and dark variants
- Repeat the last completed practice using its current settings
## A look inside
## Build
<p align="center">
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/01-apps.png" alt="Apps you can arrange and personalize" width="30%">
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/03-practice-home.png" alt="Guided breathing and movement practices" width="30%">
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/04-sun-salutation.png" alt="Animated Sun Salutation practice" width="30%">
</p>
<p align="center"><em>Apps · Practices · Sun Salutation</em></p>
The build checks Inbe's laws with the Ziran compiler (`ziran check`); no
separate proof tool is needed. The build host needs Python 3 and the platform's
native build dependencies. See [build laws](docs/build-laws-plan.md) for the
checked behavior.
<p align="center">
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/05-habits.png" alt="Habit goals and daily history" width="30%">
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/07-diary.png" alt="Diary for everyday reflection" width="30%">
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/02-lumi-customize.png" alt="Lumi helping customize Inner Breeze" width="30%">
</p>
<p align="center"><em>Habits · Diary · Lumi</em></p>
Build commands fetch the dependencies pinned in `ziran.lock`.
Tai Chi is an optional Dew unlock outside Google Play.
Build and run the desktop app:
## Your data and choices
Your data is stored locally. Account sync is optional. Lumi starts offline;
connecting an AI provider asks for your agreement to the data sharing shown
in the app. Use Inner Breeze's service or configure your own provider.
[Privacy policy](https://inbe.waozi.xyz/privacy.html)
· [Account recovery and sync](docs/SYNC_RECOVERY.md)
· [Appearance](docs/appearance.md)
## Build and contribute
```sh
```bash
make native
make run
```
See the [build guide](docs/building.md) for Android, web, dependencies and tests,
the [F-Droid checks](docs/fdroid.md), and
[Contributing](CONTRIBUTING.md) to report bugs or make changes.
[Report security issues privately](SECURITY.md).
Run the terminal backend:
```bash
make tui
```
Build Android artifacts:
```bash
make android-debug
PASSWORD=your-keystore-password make android-release
PASSWORD=your-keystore-password make android-bundle
```
Build the web app:
```bash
make web
make site
```
Run the test suite:
[Custom appearance](docs/appearance.md) describes live KSS editing, per-app
customizations, reset, and Lumi's appearance tools.
```bash
make test
make visual-test
```
CI and releases require the visual gate. It uses disposable profiles and
private Xvfb displays to check glyph pixels, every zoom from 50% to 250%,
selected navigation and app cards in all 13 palettes and both color modes,
enlarged Appearance labels, shipped locales, and page interactions. It keeps
screenshots and logs under `build/`; CI uploads them even when a check fails.
Every visual suite runs even if an earlier suite fails. The complete result,
including hashes of the tested binary and bundles, is in
`build/visual-test/results.json`; changing an artifact during the gate fails it.
Its system tools are listed in `.github/apt/test-packages.txt`.
Store captures cover Apps, Lumi, Practices, Habits, Lists, Diary, Appearance,
and supporting pages in phone, 7-inch tablet, 10-inch tablet, and Chromebook
layouts. Capture runs use disposable profiles on private Xvfb displays and
check viewport sizes, nonblank rendering, and expected screen text. They do
not copy images into the store listing until visual review is recorded:
```bash
make native cells PACKAGE_FLAGS=--locked
make screenshot
# Inspect build/screenshots/review-*.jpg and the full-size PNGs.
make screenshot-review REVIEWER="your name"
make screenshot-export
make play-preflight
python3 scripts/upload-play-screenshots.py
```
The scene list in `scripts/screenshot-scenes.json` selects eight store images
per phone/tablet type while retaining all 64 captures for review. Changing
source, scene definitions, Kryon, binaries, bundles, or screenshot bytes
invalidates publishing preflight. A historical capture can still be visually
reviewed and used for a review video; Play requires a fresh capture of the
current locked build. Local Kryon preview builds cannot pass Play preflight.
Preflight checks every dependency against its locked commit and runs a fresh
source check, so reused incremental preview outputs cannot hide missing imports.
Keep credentials in the ignored `.env.play` using `.env.play.example`.
The uploader defaults to validating and discarding its remote edit. After
review, `PLAY_COMMIT=1 python3 scripts/upload-play-screenshots.py` validates
and commits the listing; a failed edit is discarded. This updates listing
assets only. App releases follow the numeric changelog, `update_version.sh`,
and the existing release workflow, which builds and publishes the signed
Google Play AAB and owns release tags. A local build or commit is not a Play
deployment.
`make lumi-promo` renders a narrated portrait review MP4 from the exact
reviewed phone captures and the generated artwork in `design/lumi-promo/`.
Lumi uses eight generated wing-flapping frames, flies to each screen and settles
facing the app while a narrator explains it. Lumi turns with the flight direction
and flips inward after arriving on the right. Wings flap continuously using
distinct poses; each app screen stays in a fixed position without sliding in.
The audio contains speech only, without music or sound effects. Scene timings
expand to fit the complete spoken lines.
`make lumi-narration` generates the stored narrator clips through OpenRouter
using a locally configured `OPENROUTER_API_KEY`; unchanged clips are reused.
The voice, script and provider options are in `design/lumi-promo/narration.json`.
The chat example runs real local theme actions; the surrounding forest and
glow are marketing effects. Inspect `build/lumi-promo/storyboard.jpg` and
`build/lumi-promo/inner-breeze-lumi-review.mp4` before using it publicly.
Google Play's preview video field takes a YouTube URL, so the MP4 needs an
approved public or unlisted YouTube upload with embedding enabled before it can
be added to the listing. Pass `--video-url https://www.youtube.com/watch?v=VIDEO_ID`
to the listing uploader, or configure `PLAY_VIDEO_URL`. To update only the
video, use `PLAY_COMMIT=1 python3 scripts/upload-play-screenshots.py --video-only --video-url URL`.
The approved [Lumi preview](https://www.youtube.com/watch?v=XESpbMRaz4o) is
available on YouTube and configured in the English Google Play listing.
Screenshot publishing still requires the complete current
capture, visual review, export and locked build preflight.
To test sync and recovery against an isolated local server:
```bash
make sync-server-test DAOCHI_BIN=/absolute/path/to/daochi
```
This uses disposable client databases and a loopback server; see
[web and sync test coverage](WEB_RENDERER_TESTS.md) for details.
The Apps picker, independent ZIB packages, update settings, account choices and
publisher setup are described in [app packages](docs/cells.md).
Native binaries are written to `build/bin/<platform>/`. Release artifacts are
written under `build/dist/`.
Dependencies, including Kryon and the Ziran toolchain, are pinned in
`ziran.lock`. `make` fetches them into the Ziran package cache and links them
under `build/packages/`; `sh scripts/packages.sh` does the same by hand.
Builders that supply the sources themselves need no network: put Git checkouts
containing the locked commits (including Kryon's `raylib` submodule) in
`$ZIRAN_PACKAGE_SOURCES`, or declare them as F-Droid srclibs, which are found
in `../srclib` automatically.
To debug Inbe against the root Kryon checkout, map it in an ignored
`ziran.local.toml`:
```toml
[overrides]
kryon = "../../kryonlabs/kryon"
```
Use this only for local debugging. Permanent Kryon fixes should be committed in
the root Kryon repository and then brought into Inbe with `ziran update kryon`.
## Project Layout
- `src/` - app code
- `assets/` - images, fonts, and sounds
- `locales/` - translations
- `droid/` - Android project
- `site/` - website
- `ziran.toml`, `ziran.lock` - pinned Ziran toolchain and dependencies
## Support
Monero:
```text
48ms5LfFrPJ2LUvqP9Mm5BhDSnZnqu14jB8XpAukw3jDBKxRAxYvq3k4fEwXY7kCY3LrtycMUayJZR1YJuyvJHCDCcyw6pA
```
Bitcoin:
```text
bc1qxzcetg50f6epgddc09n82xqn3zswlmk44235y5
```
Lightning:
```text
waozi@cake.cash
```
## License
BSD 3-Clause. See [LICENSE](LICENSE).
-10
View File
@@ -1,10 +0,0 @@
# Reporting a security issue
Email [[email protected]](mailto:[email protected]) privately with the affected
Inner Breeze version, platform, reproduction steps and expected impact.
Use a disposable account or sample data when possible. Do not include private
keys, API keys or other people's data.
Use [GitHub Issues](https://github.com/waozixyz/breeze/issues) for ordinary bugs.
Please keep unpatched security details out of public reports while the issue
is investigated.
+78
View File
@@ -0,0 +1,78 @@
# Inner Breeze TODO
Marketing plan from 2026-10-02. Tick items off as they land and add a date or
link where it helps. Inner Breeze's edge: free, no ads, no account, offline,
open source, against breathing apps that charge $60–100 a year. It is also
visual (painted practice art, the Sun Salutation characters), so put effort
where those two things matter.
## Store listing
- [x] Rewrite the Play/F-Droid short and full descriptions around what people
search for (Wim Hof breathing, box and 4-7-8 breathing, Sun Salutation,
meditation timer, habit tracker, no ads, no account) in en-US, de-DE,
es-ES, fr-FR and pt-BR. (2026-10-02)
- [x] Regenerate the store screenshots from the current app at real phone and
tablet scale: painted practice cards, a Sun Salutation pose and showcase
habits (`make screenshot`). (2026-10-02)
- [ ] Publish the new text and screenshots on Google Play. F-Droid reads them
from this repo at the next release. `scripts/upload-play-screenshots.py`
uploads images only; the text goes in through Play Console.
- [ ] Make a new 1024x500 feature graphic in the painted style. The current
one is the old pixel art.
- [ ] Add a one-line caption to each store screenshot ("Wim Hof-style
rounds", "Follow the Sun Salutation").
- [ ] Keep "Wim Hof" out of the app title and icon. Wim Hof Method is a
registered trademark; a description that says "based on the Wim Hof
Method" is fine.
- [ ] Fix the Portuguese app string "Saudacao ao sol" to "Saudação ao sol".
- [ ] Give each channel its own tagged Play link, for example
`https://play.google.com/store/apps/details?id=xyz.waozi.inbe&referrer=utm_source%3Dreddit`,
and check Play Console's acquisition report every month.
## Short vertical video (best reach for new users)
- [ ] Record 30–60 second "breathe with me" sessions: a Wim Hof round, box
breathing, a Sun Salutation sequence.
- [ ] Post them on YouTube Shorts, TikTok and Instagram Reels. Reels can be
posted by hand from the phone; the Meta API hold only blocks automation.
- [ ] Finish Social's YouTube path: approval in Telegram and a background
upload worker (yuebot `plugins/social`).
- [ ] Optional: Pinterest pins for Sun Salutation and breathing technique
guides, which keep bringing traffic for a long time.
## Reddit
Read each subreddit's self-promotion rules first. Post as the developer, show
the app, and stay to answer comments.
- [ ] For users: r/WimHofMethod, r/breathwork, r/Meditation, r/yoga
- [ ] For the free/open-source angle: r/androidapps, r/fossdroid,
r/opensource, r/degoogle, r/linux
## Website (inbe.waozi.xyz)
- [ ] One page per technique with the `?mini` embed, so visitors practise on
the page: box breathing timer, 4-7-8 breathing, Wim Hof-style breathing,
Sun Salutation steps, meditation timer.
- [ ] Put the Play and F-Droid links under each embed.
## Directories and launches (one-time)
- [ ] AlternativeTo: list Inner Breeze as an alternative to Calm, Headspace,
Breathwrk and Prana Breath.
- [ ] Flathub: check whether `packaging/flatpak/xyz.waozi.inbe.yml` is
published, and submit it if not.
- [ ] Open-source app lists (awesome lists, F-Droid collections).
- [ ] Product Hunt launch.
- [ ] One Show HN about how it is built: the whole app in Ziran and Kryon,
running on Android, web, Linux and Windows. This brings developers and
GitHub stars, not meditators, so do it once.
## Channels to keep small
- Facebook and Threads Pages: the Meta API is on hold (no business
verification). Social is moving Facebook to the ThinkPad's signed-in
Chromium instead.
- X: the audience is mostly developers; keep it for Ziran and Kryon.
- Telegram @lotusinbe: keeps current users engaged but does not find new ones.
+37
View File
@@ -0,0 +1,37 @@
# Web Renderer Tests
Inbe ships the Kryon Canvas2D renderer. `web-canvas` is an alias for `web`.
| Target | Renderer | Purpose |
|---|---|---|
| `make web` | Kryon Canvas2D | Shipping Emscripten/WASM build with liboqs sync support; WebGL is not required. |
| `make web-canvas` | Kryon Canvas2D | Alias for the shipping web build. |
| `make web-compare-test` | Kryon Canvas2D | Builds the web target and runs its smoke suite. |
| `make web-side-by-side-test` | Kryon Canvas2D | Builds, tests, and serves a preview page. |
The shared smoke test is `scripts/web-smoke-test.mjs`:
- `WEB_SMOKE_RENDERER=canvas` requires a live Canvas2D context and nonblank pixels.
- It requires the app runtime-ready hook, a cycling render loop, IDBFS idle/flush behavior, and app settings persistence.
- It verifies sync-key import, practice startup, and habit navigation without reloading.
- The Chromium path also completes a one-minute meditation through pause and
background elapsed time, saves its mood, and verifies the saved check-in after reload.
Server integration:
- Run `make sync-server-test DAOCHI_BIN=/absolute/path/to/daochi` with a built
Daochi server. The runner starts a disposable loopback server and two isolated
client databases, and retains test data and logs in a printed temporary directory.
- It checks offline recovery, a lost upload response, retry without duplicates,
conflicting mood edits, backup restoration, and synced deletion. It uses Inbe's
native storage and sync code; browser transport remains covered by the web smoke suite.
For a manual preview, run:
```bash
make web-side-by-side-test
```
The script prints a local preview URL. Use
`scripts/web-side-by-side-test.sh --no-serve` for build-and-smoke validation
without starting the preview server.
-15
View File
@@ -1,15 +0,0 @@
{
"arcade": {
"id": "inbe.arcade",
"version": "0.7.126",
"host_api": 43,
"key_id": "inbe-2026-10",
"bundled": true,
"path": "apps/bundled/arcade.zx",
"bytes": 10156,
"sha256": "8879f61329c401b72fa843f7b92d520c65214598738f6cdafa73471454947f76",
"source": "https://git.waozi.xyz/waozi/arcade",
"source_commit": "fc3eb2b65f5ea84e30de86b2a1c6c3dc7c643c07",
"sequence": 205
}
}
Binary file not shown.
+1 -173
View File
@@ -1,177 +1,5 @@
# Changelog
## [Unreleased]
- Show synced edits for the open day as they arrive and preserve text still being edited.
- Read and edit formatted Diary entries with inline photos.
- Compare full-size AVIF copies with adjustable quality and storage totals; reopen image storage from the wrench in Diary or Photos.
## [1.3.27] - 2026-11-05
- Maintenance release for Inner Breeze 2.1.63.
## [1.3.26] - 2026-11-02
- Maintenance release for Inner Breeze 2.1.62.
## [1.3.25] - 2026-10-29
- Maintenance release for Inner Breeze 2.1.61.
## [1.3.24] - 2026-10-29
- Maintenance release for Inner Breeze 2.1.60.
## [1.3.23] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.59.
## [1.3.22] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.58.
## [1.3.21] - 2026-10-28
- Open each day’s photos from a gallery icon, attach photos with the paperclip, and keep the entry’s layout steady while browsing its gallery.
## [1.3.20] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.56.
## [1.3.19] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.55.
## [1.3.18] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.54.
## [1.3.17] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.53.
## [1.3.16] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
## [1.3.15] - 2026-10-26
- Maintenance release for Inner Breeze 2.1.51.
## [1.3.14] - 2026-10-26
- Maintenance release for Inner Breeze 2.1.50.
## [1.3.13] - 2026-10-25
- Maintenance release for Inner Breeze 2.1.49.
## [1.3.12] - 2026-10-25
- Maintenance release for Inner Breeze 2.1.48.
## [1.3.11] - 2026-10-25
- Maintenance release for Inner Breeze 2.1.47.
## [1.3.10] - 2026-10-24
- Maintenance release for Inner Breeze 2.1.46.
## [1.3.9] - 2026-10-23
- Maintenance release for Inner Breeze 2.1.45.
## [1.3.8] - 2026-10-23
- Maintenance release for Inner Breeze 2.1.44.
## [1.3.7] - 2026-10-23
- Maintenance release for Inner Breeze 2.1.43.
## [1.3.6] - 2026-10-22
- Maintenance release for Inner Breeze 2.1.42.
## [1.3.5] - 2026-10-22
- Maintenance release for Inner Breeze 2.1.41.
## [1.3.4] - 2026-10-22
- Maintenance release for Inner Breeze 2.1.40.
## [1.3.3] - 2026-10-22
- Maintenance release for Inner Breeze 2.1.39.
## [1.3.2] - 2026-10-21
- Give each achievement its own meaningful icon.
- Maintenance release for Inner Breeze 2.1.38.
## [1.3.1] - 2026-10-20
- Maintenance release for Inner Breeze 2.1.37.
## [1.3.0] - 2026-10-18
- Run the same Diary package in Inner Breeze, Werkzeug, or its own desktop window.
- Keep entry editing, undo and redo with Diary, while the host provides private documents and available photo and spelling services.
- The previous and next day arrows sit right beside the date.
## [1.2.0] - 2026-10-17
### Changed
- An entry is Markdown. Headings, **bold**, *italic*, links, lists and quotes show styled, and their marks appear on the line you are editing.
- Photos sit inside the entry, where you add them, with text before or after them on their line. Each one is saved to your photo library, the one Photos shows, under the day it was taken, and the entry links to it there. Delete a photo's Markdown to take it out of the entry.
- Show gallery under each day's entry opens that day's photos, which scroll sideways. Tap one to put it in the entry at the cursor.
- Photos from older entries appear inside the entry, after its text.
## [1.1.12] - 2026-10-17
- Maintenance release for Inner Breeze 2.1.35.
## [1.1.11] - 2026-10-17
- Maintenance release for Inner Breeze 2.1.34.
## [1.1.10] - 2026-10-13
- Maintenance release for Inner Breeze 2.1.33.
## [1.1.9] - 2026-10-11
### Changed
- Scrollbars use your theme's colours and show how much of the page is in view.
## [1.1.8] - 2026-10-10
### Added
- Correct the spelling of an entry with one button. Inner Breeze sends the entry to the Waozi node, which returns it with only misspelled words corrected. It uses the same daily online allowance as Lumi.
- Undo and redo buttons, so a correction or any other change can be taken back.
### Changed
- A title bar shows the date in the middle, between the previous and next day. Today and the calendar sit together on the left, and the entry's tools are compact buttons on the right, leaving more room for writing.
- The entry reaches the bottom of the screen; a notice takes room below it only while it is shown.
## [1.1.7] - 2026-10-10
### Changed
- When a photo is not on this device, for example because your sync node does not store photos, the entry shows where the photo is instead of an empty space.
## [1.1.6] - 2026-10-10
### Changed
- Show **bold** text as bold. The ** marks appear only on the line you are editing, so you can still change them.
## [1.1.5] - 2026-10-10
### Changed
- Save your writing quietly, without a "Waiting to save…" note below the entry.
## [1.1.4] - 2026-10-08
- Keep date limits working when Diary updates on existing Inbe installations.
@@ -187,7 +15,7 @@
## [1.1.1] - 2026-10-06
- Use Apps consistently in the app and its independently delivered package.
- Use Cells consistently in the cell and its independently delivered package.
## [1.1.0] - 2026-10-06
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_diary_days_1_title": "Deník · 1 dnů",
"achievement_diary_days_1_description": "Vykonejte tuto aktivitu v 1 různých dnech: neprázdný uložený zápis do deníku.",
"achievement_diary_days_3_title": "Deník · 3 dnů",
"achievement_diary_days_3_description": "Vykonejte tuto aktivitu v 3 různých dnech: neprázdný uložený zápis do deníku.",
"achievement_diary_days_7_title": "Deník · 7 dnů",
"achievement_diary_days_7_description": "Vykonejte tuto aktivitu v 7 různých dnech: neprázdný uložený zápis do deníku.",
"achievement_diary_days_14_title": "Deník · 14 dnů",
"achievement_diary_days_14_description": "Vykonejte tuto aktivitu v 14 různých dnech: neprázdný uložený zápis do deníku.",
"achievement_diary_days_30_title": "Deník · 30 dnů",
"achievement_diary_days_30_description": "Vykonejte tuto aktivitu v 30 různých dnech: neprázdný uložený zápis do deníku.",
"achievement_diary_days_60_title": "Deník · 60 dnů",
"achievement_diary_days_60_description": "Vykonejte tuto aktivitu v 60 různých dnech: neprázdný uložený zápis do deníku.",
"achievement_diary_days_100_title": "Deník · 100 dnů",
"achievement_diary_days_100_description": "Vykonejte tuto aktivitu v 100 různých dnech: neprázdný uložený zápis do deníku.",
"achievement_diary_days_180_title": "Deník · 180 dnů",
"achievement_diary_days_180_description": "Vykonejte tuto aktivitu v 180 různých dnech: neprázdný uložený zápis do deníku.",
"achievement_diary_days_365_title": "Deník · 365 dnů",
"achievement_diary_days_365_description": "Vykonejte tuto aktivitu v 365 různých dnech: neprázdný uložený zápis do deníku.",
"achievement_diary_weeks_2_title": "Deník · 2 týdnů",
"achievement_diary_weeks_2_description": "Vykonejte tuto aktivitu v 2 různých týdnech od pondělí do neděle: neprázdný uložený zápis do deníku.",
"achievement_diary_weeks_4_title": "Deník · 4 týdnů",
"achievement_diary_weeks_4_description": "Vykonejte tuto aktivitu v 4 různých týdnech od pondělí do neděle: neprázdný uložený zápis do deníku.",
"achievement_diary_weeks_12_title": "Deník · 12 týdnů",
"achievement_diary_weeks_12_description": "Vykonejte tuto aktivitu v 12 různých týdnech od pondělí do neděle: neprázdný uložený zápis do deníku.",
"achievement_diary_weeks_26_title": "Deník · 26 týdnů",
"achievement_diary_weeks_26_description": "Vykonejte tuto aktivitu v 26 různých týdnech od pondělí do neděle: neprázdný uložený zápis do deníku.",
"achievement_diary_months_3_title": "Deník · 3 měsíců",
"achievement_diary_months_3_description": "Vykonejte tuto aktivitu v 3 různých kalendářních měsících: neprázdný uložený zápis do deníku.",
"achievement_diary_months_6_title": "Deník · 6 měsíců",
"achievement_diary_months_6_description": "Vykonejte tuto aktivitu v 6 různých kalendářních měsících: neprázdný uložený zápis do deníku.",
"achievement_diary_months_12_title": "Deník · 12 měsíců",
"achievement_diary_months_12_description": "Vykonejte tuto aktivitu v 12 různých kalendářních měsících: neprázdný uložený zápis do deníku.",
"achievement_diary_photo_days_1_title": "Deník · 1 dnů",
"achievement_diary_photo_days_1_description": "Vykonejte tuto aktivitu v 1 různých dnech: uložený zápis do deníku s platnou fotografií.",
"achievement_diary_photo_days_5_title": "Deník · 5 dnů",
"achievement_diary_photo_days_5_description": "Vykonejte tuto aktivitu v 5 různých dnech: uložený zápis do deníku s platnou fotografií.",
"achievement_diary_photo_days_20_title": "Deník · 20 dnů",
"achievement_diary_photo_days_20_description": "Vykonejte tuto aktivitu v 20 různých dnech: uložený zápis do deníku s platnou fotografií.",
"achievement_diary_return_14_title": "Deník · 14 dnů přestávky",
"achievement_diary_return_14_description": "Vraťte se po alespoň 14 celých dnech bez této aktivity: neprázdný uložený zápis do deníku."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_diary_days_1_title": "Tagebuch · 1 Tage",
"achievement_diary_days_1_description": "Führe dies an 1 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_days_3_title": "Tagebuch · 3 Tage",
"achievement_diary_days_3_description": "Führe dies an 3 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_days_7_title": "Tagebuch · 7 Tage",
"achievement_diary_days_7_description": "Führe dies an 7 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_days_14_title": "Tagebuch · 14 Tage",
"achievement_diary_days_14_description": "Führe dies an 14 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_days_30_title": "Tagebuch · 30 Tage",
"achievement_diary_days_30_description": "Führe dies an 30 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_days_60_title": "Tagebuch · 60 Tage",
"achievement_diary_days_60_description": "Führe dies an 60 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_days_100_title": "Tagebuch · 100 Tage",
"achievement_diary_days_100_description": "Führe dies an 100 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_days_180_title": "Tagebuch · 180 Tage",
"achievement_diary_days_180_description": "Führe dies an 180 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_days_365_title": "Tagebuch · 365 Tage",
"achievement_diary_days_365_description": "Führe dies an 365 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_weeks_2_title": "Tagebuch · 2 Wochen",
"achievement_diary_weeks_2_description": "Führe dies in 2 unterschiedlichen Kalenderwochen von Montag bis Sonntag aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_weeks_4_title": "Tagebuch · 4 Wochen",
"achievement_diary_weeks_4_description": "Führe dies in 4 unterschiedlichen Kalenderwochen von Montag bis Sonntag aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_weeks_12_title": "Tagebuch · 12 Wochen",
"achievement_diary_weeks_12_description": "Führe dies in 12 unterschiedlichen Kalenderwochen von Montag bis Sonntag aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_weeks_26_title": "Tagebuch · 26 Wochen",
"achievement_diary_weeks_26_description": "Führe dies in 26 unterschiedlichen Kalenderwochen von Montag bis Sonntag aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_months_3_title": "Tagebuch · 3 Monate",
"achievement_diary_months_3_description": "Führe dies in 3 unterschiedlichen Kalendermonaten aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_months_6_title": "Tagebuch · 6 Monate",
"achievement_diary_months_6_description": "Führe dies in 6 unterschiedlichen Kalendermonaten aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_months_12_title": "Tagebuch · 12 Monate",
"achievement_diary_months_12_description": "Führe dies in 12 unterschiedlichen Kalendermonaten aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
"achievement_diary_photo_days_1_title": "Tagebuch · 1 Tage",
"achievement_diary_photo_days_1_description": "Führe dies an 1 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit gültigem Foto.",
"achievement_diary_photo_days_5_title": "Tagebuch · 5 Tage",
"achievement_diary_photo_days_5_description": "Führe dies an 5 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit gültigem Foto.",
"achievement_diary_photo_days_20_title": "Tagebuch · 20 Tage",
"achievement_diary_photo_days_20_description": "Führe dies an 20 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit gültigem Foto.",
"achievement_diary_return_14_title": "Tagebuch · 14 Tage Pause",
"achievement_diary_return_14_description": "Kehre nach mindestens 14 ganzen Tagen ohne diese Aktivität zurück: ein gespeicherter Tagebucheintrag mit Inhalt."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_diary_days_1_title": "First page",
"achievement_diary_days_1_description": "Do this on 1 distinct dates: a nonempty saved diary entry.",
"achievement_diary_days_3_title": "Three pages",
"achievement_diary_days_3_description": "Do this on 3 distinct dates: a nonempty saved diary entry.",
"achievement_diary_days_7_title": "Seven pages",
"achievement_diary_days_7_description": "Do this on 7 distinct dates: a nonempty saved diary entry.",
"achievement_diary_days_14_title": "Fourteen pages",
"achievement_diary_days_14_description": "Do this on 14 distinct dates: a nonempty saved diary entry.",
"achievement_diary_days_30_title": "Thirty pages",
"achievement_diary_days_30_description": "Do this on 30 distinct dates: a nonempty saved diary entry.",
"achievement_diary_days_60_title": "Sixty pages",
"achievement_diary_days_60_description": "Do this on 60 distinct dates: a nonempty saved diary entry.",
"achievement_diary_days_100_title": "One hundred pages",
"achievement_diary_days_100_description": "Do this on 100 distinct dates: a nonempty saved diary entry.",
"achievement_diary_days_180_title": "An unfolding story",
"achievement_diary_days_180_description": "Do this on 180 distinct dates: a nonempty saved diary entry.",
"achievement_diary_days_365_title": "A year of pages",
"achievement_diary_days_365_description": "Do this on 365 distinct dates: a nonempty saved diary entry.",
"achievement_diary_weeks_2_title": "Two weeks remembered",
"achievement_diary_weeks_2_description": "Do this in 2 distinct Monday–Sunday calendar weeks: a nonempty saved diary entry.",
"achievement_diary_weeks_4_title": "Four weeks remembered",
"achievement_diary_weeks_4_description": "Do this in 4 distinct Monday–Sunday calendar weeks: a nonempty saved diary entry.",
"achievement_diary_weeks_12_title": "Twelve weeks remembered",
"achievement_diary_weeks_12_description": "Do this in 12 distinct Monday–Sunday calendar weeks: a nonempty saved diary entry.",
"achievement_diary_weeks_26_title": "Twenty-six weeks remembered",
"achievement_diary_weeks_26_description": "Do this in 26 distinct Monday–Sunday calendar weeks: a nonempty saved diary entry.",
"achievement_diary_months_3_title": "Three months remembered",
"achievement_diary_months_3_description": "Do this in 3 distinct calendar months: a nonempty saved diary entry.",
"achievement_diary_months_6_title": "Six months remembered",
"achievement_diary_months_6_description": "Do this in 6 distinct calendar months: a nonempty saved diary entry.",
"achievement_diary_months_12_title": "Twelve months remembered",
"achievement_diary_months_12_description": "Do this in 12 distinct calendar months: a nonempty saved diary entry.",
"achievement_diary_photo_days_1_title": "A picture in your story",
"achievement_diary_photo_days_1_description": "Do this on 1 distinct dates: a saved diary entry containing a valid photo.",
"achievement_diary_photo_days_5_title": "Five illustrated days",
"achievement_diary_photo_days_5_description": "Do this on 5 distinct dates: a saved diary entry containing a valid photo.",
"achievement_diary_photo_days_20_title": "Twenty illustrated days",
"achievement_diary_photo_days_20_description": "Do this on 20 distinct dates: a saved diary entry containing a valid photo.",
"achievement_diary_return_14_title": "A new page again",
"achievement_diary_return_14_description": "Return after at least 14 full days without this activity: a nonempty saved diary entry."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_diary_days_1_title": "Diario · 1 días",
"achievement_diary_days_1_description": "Realiza esto en 1 fechas distintas: una entrada de diario guardada con contenido.",
"achievement_diary_days_3_title": "Diario · 3 días",
"achievement_diary_days_3_description": "Realiza esto en 3 fechas distintas: una entrada de diario guardada con contenido.",
"achievement_diary_days_7_title": "Diario · 7 días",
"achievement_diary_days_7_description": "Realiza esto en 7 fechas distintas: una entrada de diario guardada con contenido.",
"achievement_diary_days_14_title": "Diario · 14 días",
"achievement_diary_days_14_description": "Realiza esto en 14 fechas distintas: una entrada de diario guardada con contenido.",
"achievement_diary_days_30_title": "Diario · 30 días",
"achievement_diary_days_30_description": "Realiza esto en 30 fechas distintas: una entrada de diario guardada con contenido.",
"achievement_diary_days_60_title": "Diario · 60 días",
"achievement_diary_days_60_description": "Realiza esto en 60 fechas distintas: una entrada de diario guardada con contenido.",
"achievement_diary_days_100_title": "Diario · 100 días",
"achievement_diary_days_100_description": "Realiza esto en 100 fechas distintas: una entrada de diario guardada con contenido.",
"achievement_diary_days_180_title": "Diario · 180 días",
"achievement_diary_days_180_description": "Realiza esto en 180 fechas distintas: una entrada de diario guardada con contenido.",
"achievement_diary_days_365_title": "Diario · 365 días",
"achievement_diary_days_365_description": "Realiza esto en 365 fechas distintas: una entrada de diario guardada con contenido.",
"achievement_diary_weeks_2_title": "Diario · 2 semanas",
"achievement_diary_weeks_2_description": "Realiza esto en 2 semanas naturales distintas, de lunes a domingo: una entrada de diario guardada con contenido.",
"achievement_diary_weeks_4_title": "Diario · 4 semanas",
"achievement_diary_weeks_4_description": "Realiza esto en 4 semanas naturales distintas, de lunes a domingo: una entrada de diario guardada con contenido.",
"achievement_diary_weeks_12_title": "Diario · 12 semanas",
"achievement_diary_weeks_12_description": "Realiza esto en 12 semanas naturales distintas, de lunes a domingo: una entrada de diario guardada con contenido.",
"achievement_diary_weeks_26_title": "Diario · 26 semanas",
"achievement_diary_weeks_26_description": "Realiza esto en 26 semanas naturales distintas, de lunes a domingo: una entrada de diario guardada con contenido.",
"achievement_diary_months_3_title": "Diario · 3 meses",
"achievement_diary_months_3_description": "Realiza esto en 3 meses naturales distintos: una entrada de diario guardada con contenido.",
"achievement_diary_months_6_title": "Diario · 6 meses",
"achievement_diary_months_6_description": "Realiza esto en 6 meses naturales distintos: una entrada de diario guardada con contenido.",
"achievement_diary_months_12_title": "Diario · 12 meses",
"achievement_diary_months_12_description": "Realiza esto en 12 meses naturales distintos: una entrada de diario guardada con contenido.",
"achievement_diary_photo_days_1_title": "Diario · 1 días",
"achievement_diary_photo_days_1_description": "Realiza esto en 1 fechas distintas: una entrada guardada del diario con una foto válida.",
"achievement_diary_photo_days_5_title": "Diario · 5 días",
"achievement_diary_photo_days_5_description": "Realiza esto en 5 fechas distintas: una entrada guardada del diario con una foto válida.",
"achievement_diary_photo_days_20_title": "Diario · 20 días",
"achievement_diary_photo_days_20_description": "Realiza esto en 20 fechas distintas: una entrada guardada del diario con una foto válida.",
"achievement_diary_return_14_title": "Diario · 14 días de pausa",
"achievement_diary_return_14_description": "Vuelve después de al menos 14 días completos sin esta actividad: una entrada de diario guardada con contenido."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_diary_days_1_title": "Journal · 1 jours",
"achievement_diary_days_1_description": "Faites ceci à 1 dates distinctes : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_days_3_title": "Journal · 3 jours",
"achievement_diary_days_3_description": "Faites ceci à 3 dates distinctes : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_days_7_title": "Journal · 7 jours",
"achievement_diary_days_7_description": "Faites ceci à 7 dates distinctes : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_days_14_title": "Journal · 14 jours",
"achievement_diary_days_14_description": "Faites ceci à 14 dates distinctes : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_days_30_title": "Journal · 30 jours",
"achievement_diary_days_30_description": "Faites ceci à 30 dates distinctes : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_days_60_title": "Journal · 60 jours",
"achievement_diary_days_60_description": "Faites ceci à 60 dates distinctes : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_days_100_title": "Journal · 100 jours",
"achievement_diary_days_100_description": "Faites ceci à 100 dates distinctes : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_days_180_title": "Journal · 180 jours",
"achievement_diary_days_180_description": "Faites ceci à 180 dates distinctes : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_days_365_title": "Journal · 365 jours",
"achievement_diary_days_365_description": "Faites ceci à 365 dates distinctes : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_weeks_2_title": "Journal · 2 semaines",
"achievement_diary_weeks_2_description": "Faites ceci au cours de 2 semaines civiles distinctes, du lundi au dimanche : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_weeks_4_title": "Journal · 4 semaines",
"achievement_diary_weeks_4_description": "Faites ceci au cours de 4 semaines civiles distinctes, du lundi au dimanche : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_weeks_12_title": "Journal · 12 semaines",
"achievement_diary_weeks_12_description": "Faites ceci au cours de 12 semaines civiles distinctes, du lundi au dimanche : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_weeks_26_title": "Journal · 26 semaines",
"achievement_diary_weeks_26_description": "Faites ceci au cours de 26 semaines civiles distinctes, du lundi au dimanche : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_months_3_title": "Journal · 3 mois",
"achievement_diary_months_3_description": "Faites ceci au cours de 3 mois civils distincts : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_months_6_title": "Journal · 6 mois",
"achievement_diary_months_6_description": "Faites ceci au cours de 6 mois civils distincts : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_months_12_title": "Journal · 12 mois",
"achievement_diary_months_12_description": "Faites ceci au cours de 12 mois civils distincts : une entrée de journal enregistrée avec du contenu.",
"achievement_diary_photo_days_1_title": "Journal · 1 jours",
"achievement_diary_photo_days_1_description": "Faites ceci à 1 dates distinctes : une entrée de journal enregistrée contenant une photo valide.",
"achievement_diary_photo_days_5_title": "Journal · 5 jours",
"achievement_diary_photo_days_5_description": "Faites ceci à 5 dates distinctes : une entrée de journal enregistrée contenant une photo valide.",
"achievement_diary_photo_days_20_title": "Journal · 20 jours",
"achievement_diary_photo_days_20_description": "Faites ceci à 20 dates distinctes : une entrée de journal enregistrée contenant une photo valide.",
"achievement_diary_return_14_title": "Journal · 14 jours de pause",
"achievement_diary_return_14_description": "Revenez après au moins 14 journées entières sans cette activité : une entrée de journal enregistrée avec du contenu."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_diary_days_1_title": "日記 · 1 日",
"achievement_diary_days_1_description": "異なる1日で行う:内容のある保存済みの日記。",
"achievement_diary_days_3_title": "日記 · 3 日",
"achievement_diary_days_3_description": "異なる3日で行う:内容のある保存済みの日記。",
"achievement_diary_days_7_title": "日記 · 7 日",
"achievement_diary_days_7_description": "異なる7日で行う:内容のある保存済みの日記。",
"achievement_diary_days_14_title": "日記 · 14 日",
"achievement_diary_days_14_description": "異なる14日で行う:内容のある保存済みの日記。",
"achievement_diary_days_30_title": "日記 · 30 日",
"achievement_diary_days_30_description": "異なる30日で行う:内容のある保存済みの日記。",
"achievement_diary_days_60_title": "日記 · 60 日",
"achievement_diary_days_60_description": "異なる60日で行う:内容のある保存済みの日記。",
"achievement_diary_days_100_title": "日記 · 100 日",
"achievement_diary_days_100_description": "異なる100日で行う:内容のある保存済みの日記。",
"achievement_diary_days_180_title": "日記 · 180 日",
"achievement_diary_days_180_description": "異なる180日で行う:内容のある保存済みの日記。",
"achievement_diary_days_365_title": "日記 · 365 日",
"achievement_diary_days_365_description": "異なる365日で行う:内容のある保存済みの日記。",
"achievement_diary_weeks_2_title": "日記 · 2 週間",
"achievement_diary_weeks_2_description": "月曜から日曜までの異なる2暦週で行う:内容のある保存済みの日記。",
"achievement_diary_weeks_4_title": "日記 · 4 週間",
"achievement_diary_weeks_4_description": "月曜から日曜までの異なる4暦週で行う:内容のある保存済みの日記。",
"achievement_diary_weeks_12_title": "日記 · 12 週間",
"achievement_diary_weeks_12_description": "月曜から日曜までの異なる12暦週で行う:内容のある保存済みの日記。",
"achievement_diary_weeks_26_title": "日記 · 26 週間",
"achievement_diary_weeks_26_description": "月曜から日曜までの異なる26暦週で行う:内容のある保存済みの日記。",
"achievement_diary_months_3_title": "日記 · 3 か月",
"achievement_diary_months_3_description": "異なる3暦月で行う:内容のある保存済みの日記。",
"achievement_diary_months_6_title": "日記 · 6 か月",
"achievement_diary_months_6_description": "異なる6暦月で行う:内容のある保存済みの日記。",
"achievement_diary_months_12_title": "日記 · 12 か月",
"achievement_diary_months_12_description": "異なる12暦月で行う:内容のある保存済みの日記。",
"achievement_diary_photo_days_1_title": "日記 · 1 日",
"achievement_diary_photo_days_1_description": "異なる1日で行う:有効な写真を含む保存済みの日記。",
"achievement_diary_photo_days_5_title": "日記 · 5 日",
"achievement_diary_photo_days_5_description": "異なる5日で行う:有効な写真を含む保存済みの日記。",
"achievement_diary_photo_days_20_title": "日記 · 20 日",
"achievement_diary_photo_days_20_description": "異なる20日で行う:有効な写真を含む保存済みの日記。",
"achievement_diary_return_14_title": "日記 · 14 日間の休止",
"achievement_diary_return_14_description": "この活動をしない日が丸14日以上続いた後に再開する:内容のある保存済みの日記。"
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_diary_days_1_title": "일기 · 1 일",
"achievement_diary_days_1_description": "서로 다른 1일에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_days_3_title": "일기 · 3 일",
"achievement_diary_days_3_description": "서로 다른 3일에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_days_7_title": "일기 · 7 일",
"achievement_diary_days_7_description": "서로 다른 7일에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_days_14_title": "일기 · 14 일",
"achievement_diary_days_14_description": "서로 다른 14일에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_days_30_title": "일기 · 30 일",
"achievement_diary_days_30_description": "서로 다른 30일에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_days_60_title": "일기 · 60 일",
"achievement_diary_days_60_description": "서로 다른 60일에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_days_100_title": "일기 · 100 일",
"achievement_diary_days_100_description": "서로 다른 100일에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_days_180_title": "일기 · 180 일",
"achievement_diary_days_180_description": "서로 다른 180일에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_days_365_title": "일기 · 365 일",
"achievement_diary_days_365_description": "서로 다른 365일에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_weeks_2_title": "일기 · 2 주",
"achievement_diary_weeks_2_description": "월요일부터 일요일까지의 서로 다른 2개 달력 주에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_weeks_4_title": "일기 · 4 주",
"achievement_diary_weeks_4_description": "월요일부터 일요일까지의 서로 다른 4개 달력 주에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_weeks_12_title": "일기 · 12 주",
"achievement_diary_weeks_12_description": "월요일부터 일요일까지의 서로 다른 12개 달력 주에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_weeks_26_title": "일기 · 26 주",
"achievement_diary_weeks_26_description": "월요일부터 일요일까지의 서로 다른 26개 달력 주에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_months_3_title": "일기 · 3 개월",
"achievement_diary_months_3_description": "서로 다른 3개 달력 월에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_months_6_title": "일기 · 6 개월",
"achievement_diary_months_6_description": "서로 다른 6개 달력 월에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_months_12_title": "일기 · 12 개월",
"achievement_diary_months_12_description": "서로 다른 12개 달력 월에 수행하세요: 내용이 있는 저장된 일기.",
"achievement_diary_photo_days_1_title": "일기 · 1 일",
"achievement_diary_photo_days_1_description": "서로 다른 1일에 수행하세요: 유효한 사진이 포함된 저장된 일기.",
"achievement_diary_photo_days_5_title": "일기 · 5 일",
"achievement_diary_photo_days_5_description": "서로 다른 5일에 수행하세요: 유효한 사진이 포함된 저장된 일기.",
"achievement_diary_photo_days_20_title": "일기 · 20 일",
"achievement_diary_photo_days_20_description": "서로 다른 20일에 수행하세요: 유효한 사진이 포함된 저장된 일기.",
"achievement_diary_return_14_title": "일기 · 14 일의 휴식",
"achievement_diary_return_14_description": "이 활동 없이 온전히 14일 이상 지난 뒤 돌아오세요: 내용이 있는 저장된 일기."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_diary_days_1_title": "Diário · 1 dias",
"achievement_diary_days_1_description": "Faça isto em 1 datas distintas: uma entrada de diário guardada com conteúdo.",
"achievement_diary_days_3_title": "Diário · 3 dias",
"achievement_diary_days_3_description": "Faça isto em 3 datas distintas: uma entrada de diário guardada com conteúdo.",
"achievement_diary_days_7_title": "Diário · 7 dias",
"achievement_diary_days_7_description": "Faça isto em 7 datas distintas: uma entrada de diário guardada com conteúdo.",
"achievement_diary_days_14_title": "Diário · 14 dias",
"achievement_diary_days_14_description": "Faça isto em 14 datas distintas: uma entrada de diário guardada com conteúdo.",
"achievement_diary_days_30_title": "Diário · 30 dias",
"achievement_diary_days_30_description": "Faça isto em 30 datas distintas: uma entrada de diário guardada com conteúdo.",
"achievement_diary_days_60_title": "Diário · 60 dias",
"achievement_diary_days_60_description": "Faça isto em 60 datas distintas: uma entrada de diário guardada com conteúdo.",
"achievement_diary_days_100_title": "Diário · 100 dias",
"achievement_diary_days_100_description": "Faça isto em 100 datas distintas: uma entrada de diário guardada com conteúdo.",
"achievement_diary_days_180_title": "Diário · 180 dias",
"achievement_diary_days_180_description": "Faça isto em 180 datas distintas: uma entrada de diário guardada com conteúdo.",
"achievement_diary_days_365_title": "Diário · 365 dias",
"achievement_diary_days_365_description": "Faça isto em 365 datas distintas: uma entrada de diário guardada com conteúdo.",
"achievement_diary_weeks_2_title": "Diário · 2 semanas",
"achievement_diary_weeks_2_description": "Faça isto em 2 semanas de calendário distintas, de segunda a domingo: uma entrada de diário guardada com conteúdo.",
"achievement_diary_weeks_4_title": "Diário · 4 semanas",
"achievement_diary_weeks_4_description": "Faça isto em 4 semanas de calendário distintas, de segunda a domingo: uma entrada de diário guardada com conteúdo.",
"achievement_diary_weeks_12_title": "Diário · 12 semanas",
"achievement_diary_weeks_12_description": "Faça isto em 12 semanas de calendário distintas, de segunda a domingo: uma entrada de diário guardada com conteúdo.",
"achievement_diary_weeks_26_title": "Diário · 26 semanas",
"achievement_diary_weeks_26_description": "Faça isto em 26 semanas de calendário distintas, de segunda a domingo: uma entrada de diário guardada com conteúdo.",
"achievement_diary_months_3_title": "Diário · 3 meses",
"achievement_diary_months_3_description": "Faça isto em 3 meses de calendário distintos: uma entrada de diário guardada com conteúdo.",
"achievement_diary_months_6_title": "Diário · 6 meses",
"achievement_diary_months_6_description": "Faça isto em 6 meses de calendário distintos: uma entrada de diário guardada com conteúdo.",
"achievement_diary_months_12_title": "Diário · 12 meses",
"achievement_diary_months_12_description": "Faça isto em 12 meses de calendário distintos: uma entrada de diário guardada com conteúdo.",
"achievement_diary_photo_days_1_title": "Diário · 1 dias",
"achievement_diary_photo_days_1_description": "Faça isto em 1 datas distintas: uma entrada guardada do diário com uma fotografia válida.",
"achievement_diary_photo_days_5_title": "Diário · 5 dias",
"achievement_diary_photo_days_5_description": "Faça isto em 5 datas distintas: uma entrada guardada do diário com uma fotografia válida.",
"achievement_diary_photo_days_20_title": "Diário · 20 dias",
"achievement_diary_photo_days_20_description": "Faça isto em 20 datas distintas: uma entrada guardada do diário com uma fotografia válida.",
"achievement_diary_return_14_title": "Diário · 14 dias de pausa",
"achievement_diary_return_14_description": "Regresse após pelo menos 14 dias completos sem esta atividade: uma entrada de diário guardada com conteúdo."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_diary_days_1_title": "Дневник · 1 дней",
"achievement_diary_days_1_description": "Сделайте это в 1 разных датах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_days_3_title": "Дневник · 3 дней",
"achievement_diary_days_3_description": "Сделайте это в 3 разных датах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_days_7_title": "Дневник · 7 дней",
"achievement_diary_days_7_description": "Сделайте это в 7 разных датах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_days_14_title": "Дневник · 14 дней",
"achievement_diary_days_14_description": "Сделайте это в 14 разных датах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_days_30_title": "Дневник · 30 дней",
"achievement_diary_days_30_description": "Сделайте это в 30 разных датах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_days_60_title": "Дневник · 60 дней",
"achievement_diary_days_60_description": "Сделайте это в 60 разных датах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_days_100_title": "Дневник · 100 дней",
"achievement_diary_days_100_description": "Сделайте это в 100 разных датах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_days_180_title": "Дневник · 180 дней",
"achievement_diary_days_180_description": "Сделайте это в 180 разных датах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_days_365_title": "Дневник · 365 дней",
"achievement_diary_days_365_description": "Сделайте это в 365 разных датах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_weeks_2_title": "Дневник · 2 недель",
"achievement_diary_weeks_2_description": "Сделайте это в 2 разных календарных неделях с понедельника по воскресенье: сохранённая запись в дневнике с содержимым.",
"achievement_diary_weeks_4_title": "Дневник · 4 недель",
"achievement_diary_weeks_4_description": "Сделайте это в 4 разных календарных неделях с понедельника по воскресенье: сохранённая запись в дневнике с содержимым.",
"achievement_diary_weeks_12_title": "Дневник · 12 недель",
"achievement_diary_weeks_12_description": "Сделайте это в 12 разных календарных неделях с понедельника по воскресенье: сохранённая запись в дневнике с содержимым.",
"achievement_diary_weeks_26_title": "Дневник · 26 недель",
"achievement_diary_weeks_26_description": "Сделайте это в 26 разных календарных неделях с понедельника по воскресенье: сохранённая запись в дневнике с содержимым.",
"achievement_diary_months_3_title": "Дневник · 3 месяцев",
"achievement_diary_months_3_description": "Сделайте это в 3 разных календарных месяцах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_months_6_title": "Дневник · 6 месяцев",
"achievement_diary_months_6_description": "Сделайте это в 6 разных календарных месяцах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_months_12_title": "Дневник · 12 месяцев",
"achievement_diary_months_12_description": "Сделайте это в 12 разных календарных месяцах: сохранённая запись в дневнике с содержимым.",
"achievement_diary_photo_days_1_title": "Дневник · 1 дней",
"achievement_diary_photo_days_1_description": "Сделайте это в 1 разных датах: сохранённая дневниковая запись с корректной фотографией.",
"achievement_diary_photo_days_5_title": "Дневник · 5 дней",
"achievement_diary_photo_days_5_description": "Сделайте это в 5 разных датах: сохранённая дневниковая запись с корректной фотографией.",
"achievement_diary_photo_days_20_title": "Дневник · 20 дней",
"achievement_diary_photo_days_20_description": "Сделайте это в 20 разных датах: сохранённая дневниковая запись с корректной фотографией.",
"achievement_diary_return_14_title": "Дневник · 14 дней перерыва",
"achievement_diary_return_14_description": "Вернитесь после как минимум 14 полных дней без этой активности: сохранённая запись в дневнике с содержимым."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_diary_days_1_title": "日记 · 1 天",
"achievement_diary_days_1_description": "在1个不同日期进行:已保存且有内容的日记。",
"achievement_diary_days_3_title": "日记 · 3 天",
"achievement_diary_days_3_description": "在3个不同日期进行:已保存且有内容的日记。",
"achievement_diary_days_7_title": "日记 · 7 天",
"achievement_diary_days_7_description": "在7个不同日期进行:已保存且有内容的日记。",
"achievement_diary_days_14_title": "日记 · 14 天",
"achievement_diary_days_14_description": "在14个不同日期进行:已保存且有内容的日记。",
"achievement_diary_days_30_title": "日记 · 30 天",
"achievement_diary_days_30_description": "在30个不同日期进行:已保存且有内容的日记。",
"achievement_diary_days_60_title": "日记 · 60 天",
"achievement_diary_days_60_description": "在60个不同日期进行:已保存且有内容的日记。",
"achievement_diary_days_100_title": "日记 · 100 天",
"achievement_diary_days_100_description": "在100个不同日期进行:已保存且有内容的日记。",
"achievement_diary_days_180_title": "日记 · 180 天",
"achievement_diary_days_180_description": "在180个不同日期进行:已保存且有内容的日记。",
"achievement_diary_days_365_title": "日记 · 365 天",
"achievement_diary_days_365_description": "在365个不同日期进行:已保存且有内容的日记。",
"achievement_diary_weeks_2_title": "日记 · 2 周",
"achievement_diary_weeks_2_description": "在2个不同的周一至周日自然周进行:已保存且有内容的日记。",
"achievement_diary_weeks_4_title": "日记 · 4 周",
"achievement_diary_weeks_4_description": "在4个不同的周一至周日自然周进行:已保存且有内容的日记。",
"achievement_diary_weeks_12_title": "日记 · 12 周",
"achievement_diary_weeks_12_description": "在12个不同的周一至周日自然周进行:已保存且有内容的日记。",
"achievement_diary_weeks_26_title": "日记 · 26 周",
"achievement_diary_weeks_26_description": "在26个不同的周一至周日自然周进行:已保存且有内容的日记。",
"achievement_diary_months_3_title": "日记 · 3 个月",
"achievement_diary_months_3_description": "在3个不同自然月进行:已保存且有内容的日记。",
"achievement_diary_months_6_title": "日记 · 6 个月",
"achievement_diary_months_6_description": "在6个不同自然月进行:已保存且有内容的日记。",
"achievement_diary_months_12_title": "日记 · 12 个月",
"achievement_diary_months_12_description": "在12个不同自然月进行:已保存且有内容的日记。",
"achievement_diary_photo_days_1_title": "日记 · 1 天",
"achievement_diary_photo_days_1_description": "在1个不同日期进行:包含有效照片且已保存的日记。",
"achievement_diary_photo_days_5_title": "日记 · 5 天",
"achievement_diary_photo_days_5_description": "在5个不同日期进行:包含有效照片且已保存的日记。",
"achievement_diary_photo_days_20_title": "日记 · 20 天",
"achievement_diary_photo_days_20_description": "在20个不同日期进行:包含有效照片且已保存的日记。",
"achievement_diary_return_14_title": "日记 · 14 天间隔",
"achievement_diary_return_14_description": "至少有连续14个完整日期未进行此活动后再次进行:已保存且有内容的日记。"
}
-326
View File
@@ -1,326 +0,0 @@
{
"schema": 1,
"app": "inbe.diary",
"achievements": [
{
"id": "diary.days.1",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 1,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_days_1_title",
"description_key": "achievement_diary_days_1_description",
"title": "First page",
"description": "Save 1 qualifying diary day.",
"icon": "assets/diary/icons/diary.days.1.shape",
"icon_source": "mingcute_regular_pencil"
},
{
"id": "diary.days.3",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 3,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_days_3_title",
"description_key": "achievement_diary_days_3_description",
"title": "Three pages",
"description": "Save 3 qualifying diary days.",
"icon": "assets/diary/icons/diary.days.3.shape",
"icon_source": "mingcute_regular_notebook"
},
{
"id": "diary.days.7",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 7,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_days_7_title",
"description_key": "achievement_diary_days_7_description",
"title": "Seven pages",
"description": "Save 7 qualifying diary days.",
"icon": "assets/diary/icons/diary.days.7.shape",
"icon_source": "mingcute_regular_quill_pen"
},
{
"id": "diary.days.14",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 14,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_days_14_title",
"description_key": "achievement_diary_days_14_description",
"title": "Fourteen pages",
"description": "Save 14 qualifying diary days.",
"icon": "assets/diary/icons/diary.days.14.shape",
"icon_source": "mingcute_regular_book_2"
},
{
"id": "diary.days.30",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 30,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_days_30_title",
"description_key": "achievement_diary_days_30_description",
"title": "Thirty pages",
"description": "Save 30 qualifying diary days.",
"icon": "assets/diary/icons/diary.days.30.shape",
"icon_source": "mingcute_regular_book"
},
{
"id": "diary.days.60",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 60,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_days_60_title",
"description_key": "achievement_diary_days_60_description",
"title": "Sixty pages",
"description": "Save 60 qualifying diary days.",
"icon": "assets/diary/icons/diary.days.60.shape",
"icon_source": "mingcute_regular_book_3"
},
{
"id": "diary.days.100",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 100,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_days_100_title",
"description_key": "achievement_diary_days_100_description",
"title": "One hundred pages",
"description": "Save 100 qualifying diary days.",
"icon": "assets/diary/icons/diary.days.100.shape",
"icon_source": "mingcute_regular_book_5"
},
{
"id": "diary.days.180",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 180,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_days_180_title",
"description_key": "achievement_diary_days_180_description",
"title": "An unfolding story",
"description": "Save 180 qualifying diary days.",
"icon": "assets/diary/icons/diary.days.180.shape",
"icon_source": "mingcute_regular_book_6"
},
{
"id": "diary.days.365",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 365,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_days_365_title",
"description_key": "achievement_diary_days_365_description",
"title": "A year of pages",
"description": "Save 365 qualifying diary days.",
"icon": "assets/diary/icons/diary.days.365.shape",
"icon_source": "mingcute_regular_bookmarks"
},
{
"id": "diary.weeks.2",
"group": "diary",
"metric": "diary",
"rule": "weeks",
"target": 2,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_weeks_2_title",
"description_key": "achievement_diary_weeks_2_description",
"title": "Two weeks remembered",
"description": "Write in 2 distinct weeks.",
"icon": "assets/diary/icons/diary.weeks.2.shape",
"icon_source": "mingcute_regular_calendar_week"
},
{
"id": "diary.weeks.4",
"group": "diary",
"metric": "diary",
"rule": "weeks",
"target": 4,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_weeks_4_title",
"description_key": "achievement_diary_weeks_4_description",
"title": "Four weeks remembered",
"description": "Write in 4 distinct weeks.",
"icon": "assets/diary/icons/diary.weeks.4.shape",
"icon_source": "mingcute_regular_calendar_month"
},
{
"id": "diary.weeks.12",
"group": "diary",
"metric": "diary",
"rule": "weeks",
"target": 12,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_weeks_12_title",
"description_key": "achievement_diary_weeks_12_description",
"title": "Twelve weeks remembered",
"description": "Write in 12 distinct weeks.",
"icon": "assets/diary/icons/diary.weeks.12.shape",
"icon_source": "mingcute_regular_calendar_3"
},
{
"id": "diary.weeks.26",
"group": "diary",
"metric": "diary",
"rule": "weeks",
"target": 26,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_weeks_26_title",
"description_key": "achievement_diary_weeks_26_description",
"title": "Twenty-six weeks remembered",
"description": "Write in 26 distinct weeks.",
"icon": "assets/diary/icons/diary.weeks.26.shape",
"icon_source": "mingcute_regular_calendar"
},
{
"id": "diary.months.3",
"group": "diary",
"metric": "diary",
"rule": "months",
"target": 3,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_months_3_title",
"description_key": "achievement_diary_months_3_description",
"title": "Three months remembered",
"description": "Write in 3 distinct months.",
"icon": "assets/diary/icons/diary.months.3.shape",
"icon_source": "mingcute_regular_notebook_2"
},
{
"id": "diary.months.6",
"group": "diary",
"metric": "diary",
"rule": "months",
"target": 6,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_months_6_title",
"description_key": "achievement_diary_months_6_description",
"title": "Six months remembered",
"description": "Write in 6 distinct months.",
"icon": "assets/diary/icons/diary.months.6.shape",
"icon_source": "mingcute_regular_bookmark"
},
{
"id": "diary.months.12",
"group": "diary",
"metric": "diary",
"rule": "months",
"target": 12,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_months_12_title",
"description_key": "achievement_diary_months_12_description",
"title": "Twelve months remembered",
"description": "Write in 12 distinct months.",
"icon": "assets/diary/icons/diary.months.12.shape",
"icon_source": "mingcute_regular_bookmark_edit"
},
{
"id": "diary.photo_days.1",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 1,
"variant": "photo",
"pack": "",
"needs": "",
"title_key": "achievement_diary_photo_days_1_title",
"description_key": "achievement_diary_photo_days_1_description",
"title": "A picture in your story",
"description": "Save a valid photo on 1 diary day.",
"icon": "assets/diary/icons/diary.photo_days.1.shape",
"icon_source": "mingcute_regular_photo_album"
},
{
"id": "diary.photo_days.5",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 5,
"variant": "photo",
"pack": "",
"needs": "",
"title_key": "achievement_diary_photo_days_5_title",
"description_key": "achievement_diary_photo_days_5_description",
"title": "Five illustrated days",
"description": "Save valid photos on 5 distinct diary days.",
"icon": "assets/diary/icons/diary.photo_days.5.shape",
"icon_source": "mingcute_regular_photo_album_2"
},
{
"id": "diary.photo_days.20",
"group": "diary",
"metric": "diary",
"rule": "days",
"target": 20,
"variant": "photo",
"pack": "",
"needs": "",
"title_key": "achievement_diary_photo_days_20_title",
"description_key": "achievement_diary_photo_days_20_description",
"title": "Twenty illustrated days",
"description": "Save valid photos on 20 distinct diary days.",
"icon": "assets/diary/icons/diary.photo_days.20.shape",
"icon_source": "mingcute_regular_camera_rotate"
},
{
"id": "diary.return.14",
"group": "diary",
"metric": "diary",
"rule": "return",
"target": 14,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_diary_return_14_title",
"description_key": "achievement_diary_return_14_description",
"title": "A new page again",
"description": "Save a diary day after a 14-day diary gap.",
"icon": "assets/diary/icons/diary.return.14.shape",
"icon_source": "mingcute_regular_pen_2"
}
]
}
+127 -350
View File
@@ -1,53 +1,24 @@
// Date arithmetic and per-day documents moved from Harmony's original Diary.
// File effects belong to the host; this bundle has no OS or database access.
//
// A day's document keeps Harmony's version 1:
// {"version":1,"date":"YYYY-MM-DD","text":"...","photos":[...]}. The text is
// the entry, in Markdown, and the only source of truth: its photos are embed
// lines (diary_markdown.zi). "photos" lists the Diary files the text embeds,
// for older versions, which show those photos below the entry.
#import "json_scan"
#import, file "diary_view.zi";
#import, file "diary_date.zi";
#import, file "diary_markdown.zi";
#import "std/text"
#import "text"
#import "vec"
#import "byte_text_linux"
#import, file "diary_types.zi";
#import "kryon/app_context"
#import "kryon/app_protocol"
#import "date_parse"
#import, file "diary_history.zi";
#import, file "diary_spelling_mask.zi";
#import, file "diary_ui_types.zi";
#import, file "diary_wire.zi";
#import, file "../../src/cells/diary_types.zi";
#import, file "../../src/cells/module_types.zi";
#import, file "../../src/core/types.zi";
ReadDiaryFile :: (name: string) -> DiaryFileResult {
data := DocumentRead(name)
status := DocumentStatus()
return DiaryFileResult.{.data = data, .missing = status == DOCUMENT_MISSING,
.succeeded = status != DOCUMENT_ERROR}
}
DiaryClock :: () -> string {
seconds := cast(s64)AppNow() + cast(s64)AppLocalOffset()
date := CivilFromUnix(seconds)
buffer: [19]u8
unused WriteIsoDay(seconds, buffer[:10])
buffer[10] = cast(u8)32
unused DateWriteDigits(buffer[:], 11, date.hour, 2)
buffer[13] = cast(u8)58
unused DateWriteDigits(buffer[:], 14, date.minute, 2)
buffer[16] = cast(u8)58
unused DateWriteDigits(buffer[:], 17, date.second, 2)
out: Vec(u8)
BuilderPrint(*out, "%", TextFromBytes(buffer[:]))
return BuilderFinish(out)
}
host_api :: #system_library "host_api";
ReadDiaryHost :: () -> DiaryMessage #foreign host_api;
WriteDiaryHost :: (message: DiaryMessage) #foreign host_api;
ReadDiaryFileHost :: (name: string) -> DiaryFileResult #foreign host_api;
SaveDiaryFileHost :: (name: string, data: string) -> bool #foreign host_api;
DiaryClockHost :: () -> string #foreign host_api;
Today :: () -> Date {
clock := DiaryClock()
clock := DiaryClockHost()
if clock.count < 10 {
return Date.{}
}
@@ -115,87 +86,94 @@ Document :: (message: DiaryMessage) -> string {
BuilderPrint(*out, ",\"text\":")
Json(*out, message.text)
BuilderPrint(*out, ",\"photos\":")
PhotoMirror(*out, message.text)
photos := FieldAt(message.document, 0, "photos")
if photos >= 0 && ArrayCount(message.document, photos) >= 0 {
end := ValueEnd(message.document, photos, 0)
BuilderPrint(*out, "%", message.document[photos:end])
} else {
BuilderPrint(*out, "[]")
}
BuilderPrint(*out, "}")
return BuilderFinish(out)
}
// The "photos" list older versions show: each Diary file the text embeds,
// once, in the order the text first names it. Photos of the media library
// are no Diary files; older versions show their embed lines as text.
PhotoMirror :: (out: *Vec(u8), text: string) {
BuilderPrint(out, "[")
written: s32 = 0
embed := DiaryEmbedNext(text, 0)
while embed.valid {
file := DiaryEmbedTarget(text, embed)
first := !embed.library
earlier := DiaryEmbedNext(text, 0)
while first && earlier.valid && earlier.start < embed.start {
if !earlier.library && DiaryEmbedTarget(text, earlier) == file {
first = false
}
earlier = DiaryEmbedNext(text, earlier.end)
}
if first {
if written > 0 {
BuilderPrint(out, ",")
}
BuilderPrint(out, "{\"file\":")
Json(out, file)
BuilderPrint(out, ",\"name\":")
Json(out, DiaryEmbedAlt(text, embed))
BuilderPrint(out, "}")
written += 1
}
embed = DiaryEmbedNext(text, embed.end)
SafePhoto :: (file: string) -> bool {
if file.count == 0 || file.count > 200 || file == "." || file == ".." {
return false
}
BuilderPrint(out, "]")
for byte: file {
if !((byte >= cast(u8)48 && byte <= cast(u8)57) ||
(byte >= cast(u8)97 && byte <= cast(u8)122) ||
byte == cast(u8)45 || byte == cast(u8)46) {
return false
}
}
return true
}
// Photos an older version attached as Diary files and the text does not
// embed yet, as embed lines after the text, in the document's order. Only
// the text in memory changes: viewing a day writes nothing, and its first
// real edit saves the embeds.
Migrated :: (text: string, document: string) -> string {
rows := FieldAt(document, 0, "photos")
result := text
for index: cast(s32)0..ArrayCount(document, rows) - 1 {
row := ElementAt(document, rows, index)
file := Decode(document, FieldAt(document, row, "file"))
if DiaryEmbedReferences(result, file) {
continue
}
destination: Vec(u8)
BuilderPrint(*destination, "diary:%", file)
line := DiaryEmbedLine(BuilderFinish(destination),
Decode(document, FieldAt(document, row, "name")))
result = DiaryEmbedAppend(result, line)
PhotoSelection :: (message: DiaryMessage) -> DiaryMessage {
rows := FieldAt(message.document, 0, "photos")
message.photo_count = ArrayCount(message.document, rows)
if message.photo_count < 0 {
message.photo_count = 0
}
return result
message.photo_file = ""
message.photo_name = ""
if message.photo_count == 0 {
message.photo_index = 0
return message
}
if message.photo_index < 0 || message.photo_index >= message.photo_count {
message.photo_index = 0
}
row := ElementAt(message.document, rows, message.photo_index)
message.photo_file = Decode(message.document, FieldAt(message.document, row, "file"))
message.photo_name = Decode(message.document, FieldAt(message.document, row, "name"))
return message
}
// Puts the photo the host named, a library photo it just added or a Diary
// file, on its own line at the caret: one edit, saved at once. The caret
// starts at the end of a day's entry, so without a click the photo follows
// the text.
AttachPhoto :: (message: DiaryMessage) -> DiaryMessage {
line := DiaryEmbedLine(message.attachment_file, message.attachment_name)
PhotoChange :: (message: DiaryMessage, remove: bool) -> DiaryMessage {
if !OnOrBefore(Date.{message.year, message.month, message.day}, Today()) ||
message.load_error || DiaryEmbedAt(line, 0).end != cast(s32)line.count {
message.load_error || (!remove && !SafePhoto(message.attachment_file)) {
message.succeeded = false
return message
}
edit := DiaryEmbedInsertion(message.text, message.cursor, line)
message.action = DIARY_EDIT
message.edit_start = edit.start
message.edit_end = edit.end
message.replacement = edit.replacement
message = Apply(message)
message.replacement = ""
// An entry that cannot save keeps the photo and saves with its next edit.
rows := FieldAt(message.document, 0, "photos")
count := ArrayCount(message.document, rows)
out: Vec(u8)
BuilderPrint(*out, "{\"photos\":[")
written: s32 = 0
for index: cast(s32)0..count - 1 {
if remove && index == message.photo_index {
continue
}
row := ElementAt(message.document, rows, index)
end := ValueEnd(message.document, row, 0)
if written > 0 { BuilderPrint(*out, ",") }
BuilderPrint(*out, "%", message.document[row:end])
written += 1
}
if !remove {
if written > 0 { BuilderPrint(*out, ",") }
BuilderPrint(*out, "{\"file\":")
Json(*out, message.attachment_file)
BuilderPrint(*out, ",\"name\":")
Json(*out, message.attachment_name)
BuilderPrint(*out, "}")
message.photo_index = written
}
BuilderPrint(*out, "]}")
previous := message
message.document = BuilderFinish(out)
message.saved = false
message = Save(message)
return message
if !message.saved {
previous.succeeded = false
return previous
}
// Removing a reference keeps its private original bytes. A damaged entry
// or another imported document can still refer to that same photo.
return PhotoSelection(message)
}
Load :: (message: DiaryMessage, date: Date) -> DiaryMessage {
@@ -203,12 +181,16 @@ Load :: (message: DiaryMessage, date: Date) -> DiaryMessage {
message.succeeded = false;
return message
}
loaded := ReadDiaryFile(Filename(date))
loaded := ReadDiaryFileHost(Filename(date))
message.year = date.year
message.month = date.month
message.day = date.day
message.text = ""
message.document = loaded.data
message.photo_index = 0
message.photo_count = 0
message.photo_file = ""
message.photo_name = ""
message.cursor = 0
message.anchor = 0
message.load_error = !loaded.succeeded
@@ -232,15 +214,13 @@ Load :: (message: DiaryMessage, date: Date) -> DiaryMessage {
row := ElementAt(loaded.data, rows, index)
file := Decode(loaded.data, FieldAt(loaded.data, row, "file"))
label := FieldAt(loaded.data, row, "name")
if !DiaryFileNameValid(file) || label < 0 || loaded.data[label] != cast(u8)34 {
if !SafePhoto(file) || label < 0 || loaded.data[label] != cast(u8)34 {
message.load_error = true
return message
}
}
message.text = Migrated(Decode(loaded.data, text), loaded.data)
message.cursor = cast(s32)message.text.count
message.anchor = message.cursor
return message
message.text = Decode(loaded.data, text)
return PhotoSelection(message)
}
Save :: (message: DiaryMessage) -> DiaryMessage {
@@ -252,7 +232,7 @@ Save :: (message: DiaryMessage) -> DiaryMessage {
return message
}
message.document = Document(message)
message.saved = DocumentWrite(Filename(Date.{message.year, message.month, message.day}),
message.saved = SaveDiaryFileHost(Filename(Date.{message.year, message.month, message.day}),
message.document)
message.succeeded = message.saved
return message
@@ -261,7 +241,7 @@ Save :: (message: DiaryMessage) -> DiaryMessage {
Apply :: (message: DiaryMessage) -> DiaryMessage {
message.succeeded = true
if message.action == DIARY_ROUTE {
message.succeeded = true
message.succeeded = message.screen == ScreenDiary
return message
}
if message.action == DIARY_LOAD {
@@ -275,7 +255,7 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
return Save(message)
}
if message.action == DIARY_ATTACH {
return AttachPhoto(message)
return PhotoChange(message, false)
}
if message.action == DIARY_EDIT {
if !OnOrBefore(Date.{message.year, message.month, message.day}, Today()) ||
@@ -298,8 +278,21 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
message.succeeded = false;
return message
}
if message.control == 29008 || message.control == 29009 {
if message.photo_count > 0 {
message.photo_index = (message.photo_index + message.photo_count +
(ifx message.control == 29008 then -1 else 1)) % message.photo_count
}
return PhotoSelection(message)
}
if message.control == 29010 {
if message.photo_count > 0 {
return PhotoChange(message, true)
}
return message
}
if message.control == 29013 {
clock := DiaryClock()
clock := DiaryClockHost()
if message.load_error || message.calendar || clock.count < 16 {
message.succeeded = false
return message
@@ -375,7 +368,7 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
message.marks[day] = cast(u8)0
}
for day: cast(s32)1..Days(message.month_year, message.month_number) {
file := ReadDiaryFile(Filename(Date.{message.month_year, message.month_number, day}))
file := ReadDiaryFileHost(Filename(Date.{message.month_year, message.month_number, day}))
text := FieldAt(file.data, 0, "text")
has_text := text >= 0 && text + 1 < file.data.count && file.data[text + 1] != cast(u8)34
message.marks[day] = ifx has_text ||
@@ -385,244 +378,28 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
return message
}
entry: DiaryMessage;
editor: DiaryUiFrame;
loaded: bool;
document_scope: string;
document_revision: string;
history: DiaryHistory;
photo_waiting: bool;
photo_day: Date;
spelling_sent: string;
spelling_day: Date;
spelling_notice_until: float64;
DiarySpellingNotice :: (key: string) {
editor.spelling_notice = key
spelling_notice_until = editor.now + 6.0
}
DiarySpellingPollService :: () {
if !editor.spelling_busy || !AppSupports("text.correct.poll") { return }
result := AppService("text.correct.poll", "")
if !DiaryWireBool(result, "finished") { return }
editor.spelling_busy = false
same_day := entry.year == spelling_day.year && entry.month == spelling_day.month &&
entry.day == spelling_day.day
if !same_day { return }
notice := DiaryWireString(result, FieldAt(result, 0, "notice"))
if notice != "" {
DiarySpellingNotice(notice)
return
}
if entry.text != spelling_sent {
DiarySpellingNotice("diary_spelling_error")
return
}
corrected := DiarySpellingRestored(entry.text, DiaryWireString(result, FieldAt(result, 0, "text")))
if corrected == "" && entry.text != "" {
DiarySpellingNotice("diary_spelling_error")
return
}
if corrected == entry.text {
DiarySpellingNotice("diary_spelling_none")
return
}
edit := DiaryHistoryEdit(entry.text, corrected)
entry.action = DIARY_EDIT
entry.edit_start = edit.start
entry.edit_end = edit.end
entry.replacement = edit.replacement
entry = Apply(entry)
entry.replacement = ""
editor.save_at = editor.now
DiaryHistoryObserve(*history, entry.year, entry.month, entry.day, entry.text, editor.now, false)
}
DiarySpellingRequest :: () {
if !editor.spelling_requested || editor.spelling_busy || !AppSupports("text.correct.start") { return }
result := AppService("text.correct.start", DiarySpellingMasked(entry.text))
notice := DiaryWireString(result, FieldAt(result, 0, "notice"))
if notice != "" {
DiarySpellingNotice(notice)
return
}
editor.spelling_busy = DiaryWireBool(result, "busy")
if editor.spelling_busy {
spelling_sent = entry.text
spelling_day = Date.{entry.year, entry.month, entry.day}
editor.spelling_notice = ""
}
}
DiaryEnsureLoaded :: () {
if !loaded {
entry = Apply(DiaryMessage.{.action = DIARY_LOAD})
loaded = entry.succeeded
}
}
DiaryRefreshPosition :: (position: s32, text: string) -> s32 {
at := ifx position > text.count then cast(s32)text.count else position
while at > 0 && at < text.count && DiaryContinuationByte(text[at]) {
at -= 1
}
return at
}
DiaryObserveDocuments :: (refresh: bool) {
if !AppSupports("document.revision") {
return
}
revision := AppService("document.revision", "")
if revision == "" || revision == document_revision {
return
}
separator := revision.count - 1
while separator >= 0 && revision[separator] != cast(u8)58 {
separator -= 1
}
if separator <= 0 {
return
}
scope := revision[:separator]
if document_scope != "" && scope != document_scope {
// Keep the selected date, but never save or carry editor state from
// another account into it.
date := Date.{entry.year, entry.month, entry.day}
entry = Apply(DiaryMessage.{.action = DIARY_LOAD, .year = date.year,
.month = date.month, .day = date.day})
loaded = entry.succeeded
editor = DiaryUiFrame.{}
DiaryHistoryClear(*history)
photo_waiting = false
spelling_sent = ""
document_scope = scope
document_revision = revision
return
}
document_scope = scope
if !refresh || (loaded && !entry.saved) {
// Leave the revision pending while typing or retrying a failed save.
return
}
document_revision = revision
if !loaded {
return
}
fresh := Load(entry, Date.{entry.year, entry.month, entry.day})
// A manifest and its chunks may arrive on different sync pages. Keep
// the current text until a later committed revision makes it readable.
if fresh.load_error || (fresh.document == entry.document && !entry.load_error) {
return
}
fresh.cursor = DiaryRefreshPosition(entry.cursor, fresh.text)
fresh.anchor = DiaryRefreshPosition(entry.anchor, fresh.text)
if fresh.text != entry.text {
DiaryHistoryClear(*history)
}
entry = fresh
}
DiaryHistoryApply :: (redo: bool) {
changed := ifx redo then DiaryHistoryRedo(*history) else DiaryHistoryUndo(*history)
if !changed { return }
edit := DiaryHistoryEdit(entry.text, history.current)
entry.action = DIARY_EDIT
entry.edit_start = edit.start
entry.edit_end = edit.end
entry.replacement = edit.replacement
entry = Apply(entry)
entry.replacement = ""
editor.save_at = editor.now
}
DiaryPicked :: (result: string) {
status := DiaryWireString(result, FieldAt(result, 0, "status"))
photo_waiting = status == "pending"
if status != "done" {
editor.photo_error = status == "failed"
return
}
if entry.year != photo_day.year || entry.month != photo_day.month || entry.day != photo_day.day {
return
}
entry.action = DIARY_ATTACH
entry.attachment_file = DiaryWireString(result, FieldAt(result, 0, "destination"))
entry.attachment_name = DiaryWireString(result, FieldAt(result, 0, "name"))
entry = Apply(entry)
editor.photo_error = !entry.succeeded
}
#program_export "DiaryMain"
Main :: () -> s32 {
mode := AppMode()
if mode == APP_IDENTIFY {
AppIdentity("inbe.diary")
AppDescribe("Diary", "S1.8rr:M5 3H19V21H5ZM8 7H16M8 11H16M8 15H13")
return APP_PROTOCOL
message := ReadDiaryHost()
if message.abi != MODULE_ABI {
return -1
}
if mode == APP_COMMAND {
DiaryObserveDocuments(false)
entry = Apply(DiaryMessageDecode(AppCommand()))
loaded = entry.year > 0
AppReply(DiaryMessageEncode(entry))
return 0
if message.action == MODULE_IDENTIFY {
return MODULE_DIARY
}
if mode == APP_SAVE {
DiaryObserveDocuments(false)
if loaded { entry = Save(entry) }
AppReply(DiaryMessageEncode(entry))
return ifx !loaded || entry.saved || entry.load_error then 0 else 1
}
if mode != APP_FRAME { return 0 }
DiaryObserveDocuments(true)
DiaryEnsureLoaded()
bounds := AppBounds()
editor.session = AppSession()
editor.width = cast(s32)bounds.width
editor.height = cast(s32)(bounds.y + bounds.height)
editor.origin_x = cast(s32)bounds.x
editor.origin_y = cast(s32)bounds.y
editor.scale = AppScale()
editor.font = AppFont()
editor.now = AppAreaInput().now_seconds
editor.input = AppAreaInput()
editor.link_color = ifx AppDark() then cast(u32)0x9bc5e8ff else cast(u32)0x286d9cff
editor.muted_color = ifx AppDark() then cast(u32)0xaaaeb3ff else cast(u32)0x62686eff
editor.can_undo = history.undo_count > 0
editor.can_redo = history.redo_count > 0
editor.photo_requested = false
editor.undo_requested = false
editor.redo_requested = false
editor.spelling_requested = false
if editor.now >= spelling_notice_until { editor.spelling_notice = "" }
DiarySpellingPollService()
editor.clipboard_write = false
if photo_waiting && AppSupports("media.pick.status") {
DiaryPicked(AppService("media.pick.status", ""))
}
entry.action = DIARY_FRAME
entry = DiaryView(entry, editor, Today())
editor = DiaryObservedFrame()
if entry.action != DIARY_FRAME { entry = Apply(entry) }
if editor.undo_requested { DiaryHistoryApply(false) }
if editor.redo_requested { DiaryHistoryApply(true) }
DiarySpellingRequest()
if editor.photo_requested && AppSupports("media.pick") {
entry = Save(entry)
if entry.saved {
photo_day = Date.{entry.year, entry.month, entry.day}
DiaryPicked(AppService("media.pick", AppLocale("diary_attach_photo")))
if message.action == DIARY_FRAME {
message.succeeded = true
message = DiaryView(message, DiaryObserve(), Today())
if message.action != DIARY_FRAME {
message = Apply(message)
}
// A quiet editor saves after its typing delay; file errors stay visible.
if !message.saved && DiarySaveDue() {
message = Save(message)
}
WriteDiaryHost(message)
} else {
WriteDiaryHost(Apply(message))
}
if editor.clipboard_write {
unused ClipboardCopy(editor.clipboard_text, 0)
}
if !entry.saved && editor.now >= editor.save_at { entry = Save(entry) }
if loaded && !entry.load_error {
DiaryHistoryObserve(*history, entry.year, entry.month, entry.day, entry.text, editor.now, true)
}
AppKeyboard(editor.focused)
return 0
}
-150
View File
@@ -1,150 +0,0 @@
// Diary decides whether a saved document contains a real entry or a valid
// account photo. Achievement facts contain only its date and photo flag.
#import "std/json_scan"
#import "std/text_buffer"
#import "std/byte_text_linux"
#import "std/vec"
#import, file "diary_markdown.zi";
#import, file "../../src/storage/achievements.zi";
#import, file "../../src/storage/achievement_records.zi";
#import, file "../../src/storage/sqlite.zi";
#import, file "../../src/storage/db.zi";
#import, file "../../src/storage/state.zi";
#import, file "../../src/storage/storage_core.zi";
#import, file "../../src/storage/bundled_app_records.zi";
#import, file "../../src/apps/diary_records.zi";
#import, file "../../src/apps/media_store.zi";
#import, file "../../src/apps/package_files.zi";
#import, file "../../src/app/text_buffers.zi";
AchievementDiaryPhoto :: (target: string, library: bool) -> bool {
if library {
hash := MediaPlaceHash(target)
if hash == "" { return false }
item := MediaRead(hash)
return item.valid && !item.trashed
}
if !DiaryFileNameValid(target) { return false }
key := DiaryRecordKey(target)
record := BundledAppRecordRead(key)
defer { PackageFree(key); PackageFree(record) }
return DiaryMediaParse(record).valid
}
// A saved document's day, whether it shows a photo, and whether it is a
// real entry: authored text or a valid photo. `day` is 0 when the name is
// not a day's document.
DiaryEntry :: struct {
day: s32
photo: bool
qualified: bool
}
DiaryEntryOf :: (name: string, document: string) -> DiaryEntry {
entry: DiaryEntry
if name.count != 15 || name[10:] != ".json" { return entry }
day := AchievementParseDay(name[:10])
if day == 0 || document.count > 16777216 { return entry }
entry.day = day
end := ValueEnd(document, Space(document, 0), 0)
if end < 0 || Space(document, end) != document.count { return entry }
version := ReadNumber(document, FieldAt(document, 0, "version"))
date: [11]u8
if !version.valid || version.value != 1 ||
ReadStringText(document, FieldAt(document, 0, "date"), date[:]) != 10 ||
TextUntilNul(date[:]) != name[:10] { return entry }
decoded := ReadStringValue(document, FieldAt(document, 0, "text"), 16777216)
if !decoded.valid { return entry }
text := BuilderFinish(decoded.value)
defer { PackageFree(text) }
authored := false
offset: s32 = 0
while offset < text.count {
embed := DiaryEmbedAt(text, offset)
if embed.valid {
if AchievementDiaryPhoto(DiaryEmbedTarget(text, embed), embed.library) { entry.photo = true }
offset = embed.end
continue
}
// A broken image by itself is not authored journal text.
if text[offset] == #char "!" && offset + 1 < text.count && text[offset + 1] == #char "[" {
while offset < text.count && text[offset] != cast(u8)10 { offset += 1 }
continue
}
byte := text[offset]
if byte > cast(u8)32 && byte != #char "*" && byte != #char "_" && byte != #char "#" &&
byte != #char ">" && byte != #char "`" && byte != #char "~" && byte != #char "-" { authored = true }
offset += 1
}
old_photos := FieldAt(document, 0, "photos")
for index: cast(s32)0..ArrayCount(document, old_photos) - 1 {
row := ElementAt(document, old_photos, index)
file: [201]u8
if ReadStringText(document, FieldAt(document, row, "file"), file[:]) > 0 &&
AchievementDiaryPhoto(TextUntilNul(file[:]), false) { entry.photo = true }
}
entry.qualified = authored || entry.photo
return entry
}
// Records the day's fact and answers whether the day has a real entry.
AchievementDiarySaved :: (name: string, document: string, live: bool = true) -> bool {
entry := DiaryEntryOf(name, document)
if entry.day == 0 { return false }
unused AchievementRecord("diary", name, entry.day, 1, ifx entry.photo then "photo" else "", "", true, live,
!entry.qualified)
return entry.qualified
}
AchievementDiaryBackfill :: (offset: s32) -> s32 {
statement: *void
if SqlitePrepareText(storage_db_handle(),
"SELECT substr(key,17) FROM settings WHERE user_id=?1 AND key GLOB 'cell.diary.file.????-??-??.json' ORDER BY key LIMIT 128 OFFSET ?2",
-1, *statement, null) != SQLITE_OK { return -1 }
defer { SqliteFinalize(statement) }
bind_text(statement, 1, AchievementOwner())
SqliteBindInt(statement, 2, offset)
rows: s32 = 0
while SqliteStep(statement) == SQLITE_ROW {
name := AppTextFromCString(SqliteColumnText(statement, 0), 96)
document := DiaryRecordRead(name)
unused AchievementDiarySaved(name, document, false)
PackageFree(document)
rows += 1
}
return rows
}
// Every day of the account with a real entry, oldest first, from the synced
// documents, so a newly linked habit brings its earlier days along. The
// caller frees the list.
DiaryWrittenDays :: () -> Vec(s32) {
days: Vec(s32)
offset: s32 = 0
more := true
while more {
statement: *void
if SqlitePrepareText(storage_db_handle(),
"SELECT substr(key,17) FROM settings WHERE user_id=?1 AND key GLOB 'cell.diary.file.????-??-??.json' ORDER BY key LIMIT 128 OFFSET ?2",
-1, *statement, null) != SQLITE_OK {
break
}
bind_text(statement, 1, AchievementOwner())
SqliteBindInt(statement, 2, offset)
rows: s32 = 0
while SqliteStep(statement) == SQLITE_ROW {
name := AppTextFromCString(SqliteColumnText(statement, 0), 96)
document := DiaryRecordRead(name)
entry := DiaryEntryOf(name, document)
PackageFree(document)
if entry.qualified {
unused VecPush(days, entry.day)
}
rows += 1
}
SqliteFinalize(statement)
more = rows == 128
offset += rows
}
return days
}
+1 -1
View File
@@ -1,4 +1,4 @@
#import "std/text"
#import "text"
#import "vec"
#import "byte_text_linux"
-177
View File
@@ -1,177 +0,0 @@
// Undo and redo for the Diary entry on screen. The app retains immutable
// snapshots; native callers own copies of their snapshots. Typing
// within a moment is one step; a spelling correction, an undo and a redo are
// steps of their own.
#import "vec"
#import "std/text"
#import "byte_text_linux"
DIARY_HISTORY_DEPTH :: 64
// Typing joins the open step until it pauses this long or the step is this
// old, in seconds.
DIARY_HISTORY_PAUSE :: 1.0
DIARY_HISTORY_SPAN :: 5.0
DiaryHistory :: struct {
year: s32
month: s32
day: s32
// Owned copies, freed by DiaryHistoryFree.
current: string
undo: [DIARY_HISTORY_DEPTH]string
undo_count: s32
redo: [DIARY_HISTORY_DEPTH]string
redo_count: s32
typing: bool
typed_at: float64
step_started: float64
}
// A replacement of text[start:end], as the Diary package applies edits.
DiaryEdit :: struct {
start: s32
end: s32
replacement: string
}
#if !#defined(KRYON_HOSTED_UI) {
c :: #system_library "c";
DiaryHistoryFreeBytes :: (bytes: *u8) #foreign c "free";
}
DiaryHistoryCopy :: (text: string) -> string {
#if #defined(KRYON_HOSTED_UI) {
return text
} else {
copy: Vec(u8)
BuilderPrint(*copy, "%", text)
return BuilderFinish(copy)
}
}
DiaryHistoryFree :: (value: string) {
#if !#defined(KRYON_HOSTED_UI) {
if value.count == 0 {
return
}
bytes := cast(*TextDescriptor)(*value)
DiaryHistoryFreeBytes(bytes.data)
}
}
DiaryHistoryPush :: (steps: []string, count: *s32, snapshot: string) {
if count.* == cast(s32)steps.count {
// The oldest step makes room for the newest.
DiaryHistoryFree(steps[0])
for index: cast(s32)1..count.* - 1 {
steps[index - 1] = steps[index]
}
count.* -= 1
}
steps[count.*] = snapshot
count.* += 1
}
DiaryHistoryDropRedo :: (history: *DiaryHistory) {
for index: cast(s32)0..history.redo_count - 1 {
DiaryHistoryFree(history.redo[index])
history.redo[index] = ""
}
history.redo_count = 0
}
DiaryHistoryClear :: (history: *DiaryHistory) {
DiaryHistoryFree(history.current)
for index: cast(s32)0..history.undo_count - 1 {
DiaryHistoryFree(history.undo[index])
}
DiaryHistoryDropRedo(history)
history.* = DiaryHistory.{}
}
// Records the entry as it is after a frame. Another day starts a new
// history. typing is false for a change that must be its own step.
DiaryHistoryObserve :: (history: *DiaryHistory, year: s32, month: s32, day: s32,
text: string, now: float64, typing: bool) {
if history.year != year || history.month != month || history.day != day {
DiaryHistoryClear(history)
history.year = year
history.month = month
history.day = day
history.current = DiaryHistoryCopy(text)
return
}
if history.current == text {
return
}
joins := typing && history.typing &&
now - history.typed_at < DIARY_HISTORY_PAUSE &&
now - history.step_started < DIARY_HISTORY_SPAN
if joins {
DiaryHistoryFree(history.current)
} else {
DiaryHistoryPush(history.undo[:], *history.undo_count, history.current)
history.step_started = now
}
DiaryHistoryDropRedo(history)
history.current = DiaryHistoryCopy(text)
history.typing = typing
history.typed_at = now
}
// Moves back one step. The history's current text becomes the text the host
// then shows; false means there is nothing to undo.
DiaryHistoryUndo :: (history: *DiaryHistory) -> bool {
if history.undo_count == 0 {
return false
}
history.undo_count -= 1
DiaryHistoryPush(history.redo[:], *history.redo_count, history.current)
history.current = history.undo[history.undo_count]
history.undo[history.undo_count] = ""
history.typing = false
return true
}
DiaryHistoryRedo :: (history: *DiaryHistory) -> bool {
if history.redo_count == 0 {
return false
}
history.redo_count -= 1
DiaryHistoryPush(history.undo[:], *history.undo_count, history.current)
history.current = history.redo[history.redo_count]
history.redo[history.redo_count] = ""
history.typing = false
return true
}
DiaryContinuationByte :: (byte: u8) -> bool {
return (byte & cast(u8)192) == cast(u8)128
}
// The smallest replacement that turns from into to, on whole UTF-8
// characters, so the caret lands just after the changed text.
DiaryHistoryEdit :: (from: string, to: string) -> DiaryEdit {
shorter := ifx from.count < to.count then from.count else to.count
prefix: s64 = 0
while prefix < shorter && from[prefix] == to[prefix] {
prefix += 1
}
while prefix > 0 &&
((prefix < from.count && DiaryContinuationByte(from[prefix])) ||
(prefix < to.count && DiaryContinuationByte(to[prefix]))) {
prefix -= 1
}
suffix: s64 = 0
while suffix < from.count - prefix && suffix < to.count - prefix &&
from[from.count - 1 - suffix] == to[to.count - 1 - suffix] {
suffix += 1
}
// The shared ending is the same bytes in both texts, so one check keeps
// it on a character boundary in each.
while suffix > 0 && DiaryContinuationByte(from[from.count - suffix]) {
suffix -= 1
}
return DiaryEdit.{.start = cast(s32)prefix, .end = cast(s32)(from.count - suffix),
.replacement = to[prefix:to.count - suffix]}
}
-481
View File
@@ -1,481 +0,0 @@
// A Diary entry is Markdown. This module finds its photo embeds and the
// CommonMark basics the editor previews, and makes the edits that add a
// photo. It reads only the entry's text; files and the account's media
// library belong to the host.
//
// An embed is a CommonMark image anywhere in a line whose destination is a
// photo: `![ALT](photos/YYYY/MM/DD/SHA256.EXT)` for a photo of the account's
// media library, which Photos shows too (the photo's day, its SHA-256 and
// its type), or `![ALT](diary:FILE)` for a photo an older version attached
// to the entry as a Diary file. Other images and text stay ordinary text.
// An inserted photo gets a line of its own.
#import "std/text"
#import "vec"
#import "byte_text_linux"
Markdown :: #import "kryon/markdown_preview";
// Resolve Diary's media syntax for Kryon's shared Markdown editor. Keeping
// one extra span lets the preview report its own image-capacity truncation.
diary_images: [Markdown.PREVIEW_IMAGES + 1]Markdown.ImageSpan;
DiaryResolvedImages :: (text: string) -> []Markdown.ImageSpan {
count: s32 = 0
embed := DiaryEmbedNext(text, 0)
while embed.valid && count < Markdown.PREVIEW_IMAGES + 1 {
diary_images[count] = Markdown.ImageSpan.{.valid = true,
.start = embed.start, .end = embed.end, .line_start = embed.line_start,
.line_end = embed.line_end, .alt_end = embed.alt_end}
count += 1
embed = DiaryEmbedNext(text, embed.end)
}
return diary_images[:count]
}
DIARY_EMBED_ALT_MAX :: 200
DIARY_EMBED_NAME_MAX :: 200
DiaryEmbed :: struct {
valid: bool
// The image's bytes, from its `!` to its closing parenthesis.
start: s32
end: s32
// Its line, without the line break.
line_start: s32
line_end: s32
alt_start: s32
alt_end: s32
// The destination, without angle brackets, ends with its target: the
// Diary file's name after `diary:`, or the whole library place.
destination_start: s32
target_start: s32
target_end: s32
// A photo of the account's media library (photos/...) or a Diary file
// (diary:).
library: bool
}
// Replaces text[start:end]; the caret goes to cursor afterwards.
DiaryEmbedEdit :: struct {
start: s32
end: s32
replacement: string
cursor: s32
}
DiaryLineEnd :: (text: string, start: s32) -> s32 {
end := start
while end < cast(s32)text.count && text[end] != cast(u8)10 {
end += 1
}
return end
}
DiaryLineStart :: (text: string, at: s32) -> s32 {
start := at
if start > cast(s32)text.count {
start = cast(s32)text.count
}
while start > 0 && text[start - 1] != cast(u8)10 {
start -= 1
}
return start
}
DiaryBlank :: (byte: u8) -> bool {
return byte == cast(u8)32 || byte == cast(u8)9
}
// ---------------------------------------------------------------- embeds
// A Diary file name, as the host stores it.
DiaryFileNameValid :: (name: string) -> bool {
if name.count == 0 || name.count > DIARY_EMBED_NAME_MAX || name == "." || name == ".." {
return false
}
for byte: name {
digit := byte >= cast(u8)48 && byte <= cast(u8)57
letter := byte >= cast(u8)97 && byte <= cast(u8)122
if !digit && !letter && byte != cast(u8)45 && byte != cast(u8)46 {
return false
}
}
return true
}
// A media library key: the photo's SHA-256 in lowercase hex.
DiaryMediaKeyValid :: (key: string) -> bool {
if key.count != 64 {
return false
}
for byte: key {
digit := byte >= cast(u8)48 && byte <= cast(u8)57
letter := byte >= cast(u8)97 && byte <= cast(u8)102
if !digit && !letter {
return false
}
}
return true
}
DiaryDigits :: (value: string) -> bool {
for byte: value {
if byte < cast(u8)48 || byte > cast(u8)57 {
return false
}
}
return true
}
// The photo types the library keeps.
DiaryPhotoTypeValid :: (format: string) -> bool {
return format == "jpg" || format == "png" || format == "webp" || format == "gif"
}
// A library photo's place: photos/YYYY/MM/DD/<sha256>.<type>, its day as the
// Photos gallery groups it.
DiaryLibraryPathValid :: (path: string) -> bool {
if path.count < 86 || path.count > 87 || path[:7] != "photos/" ||
path[11] != #char "/" || path[14] != #char "/" || path[17] != #char "/" ||
path[82] != #char "." {
return false
}
if !DiaryDigits(path[7:11]) || !DiaryDigits(path[12:14]) || !DiaryDigits(path[15:17]) {
return false
}
month := (cast(s32)path[12] - 48) * 10 + cast(s32)path[13] - 48
day := (cast(s32)path[15] - 48) * 10 + cast(s32)path[16] - 48
if month < 1 || month > 12 || day < 1 || day > 31 {
return false
}
return DiaryMediaKeyValid(path[18:82]) && DiaryPhotoTypeValid(path[83:])
}
// The place of a library photo taken or added on `day` (YYYY-MM-DD), or ""
// when one of its parts is not valid.
DiaryLibraryPath :: (day: string, hash: string, format: string) -> string {
if day.count != 10 || day[4] != #char "-" || day[7] != #char "-" {
return ""
}
out: Vec(u8)
BuilderPrint(*out, "photos/%/%/%/%.%", day[:4], day[5:7], day[8:10], hash, format)
path := BuilderFinish(out)
if !DiaryLibraryPathValid(path) {
return ""
}
return path
}
// The photo at `at`, where an image's `!` stands, or an invalid embed. An
// image follows CommonMark within one line: `![ALT](DESTINATION)`, with
// spaces or tabs around the destination, an optional "title", 'title' or
// (title) after it, and the destination in <angle brackets> or plain.
// Escaped brackets may appear in ALT. Only a destination naming a photo, a
// library place or a Diary file, makes it an embed.
DiaryEmbedAt :: (text: string, at: s32) -> DiaryEmbed {
embed: DiaryEmbed
if at < 0 || at + 1 >= cast(s32)text.count || text[at] != #char "!" ||
text[at + 1] != #char "[" {
return embed
}
line_start := DiaryLineStart(text, at)
line_end := DiaryLineEnd(text, at)
if DiaryEscaped(text, at, line_start) {
return embed
}
close := at + 2
while close < line_end && text[close] != #char "]" {
if text[close] == #char "[" {
return embed
}
if text[close] == cast(u8)92 && close + 1 < line_end {
close += 1
}
close += 1
}
if close + 1 >= line_end || text[close + 1] != #char "(" ||
close - (at + 2) > DIARY_EMBED_ALT_MAX {
return embed
}
cursor := DiarySkipBlank(text, close + 2, line_end)
destination_start := cursor
destination_end := cursor
if cursor < line_end && text[cursor] == #char "<" {
destination_start = cursor + 1
destination_end = destination_start
while destination_end < line_end && text[destination_end] != #char ">" &&
text[destination_end] != #char "<" {
destination_end += 1
}
if destination_end >= line_end || text[destination_end] != #char ">" {
return embed
}
cursor = destination_end + 1
} else {
while cursor < line_end && text[cursor] > cast(u8)32 && text[cursor] != #char "(" &&
text[cursor] != #char ")" {
cursor += 1
}
destination_end = cursor
}
after := DiarySkipBlank(text, cursor, line_end)
if after > cursor && after < line_end && (text[after] == cast(u8)34 ||
text[after] == cast(u8)39 || text[after] == #char "(") {
after = DiaryTitleEnd(text, after, line_end)
if after < 0 {
return embed
}
after = DiarySkipBlank(text, after, line_end)
}
if after >= line_end || text[after] != #char ")" {
return embed
}
destination := text[destination_start:destination_end]
target_start := destination_start
library := false
if destination.count > 6 && destination[:6] == "diary:" {
target_start += 6
if !DiaryFileNameValid(text[target_start:destination_end]) {
return embed
}
} else if DiaryLibraryPathValid(destination) {
library = true
} else {
return embed
}
embed.valid = true
embed.start = at
embed.end = after + 1
embed.line_start = line_start
embed.line_end = line_end
embed.alt_start = at + 2
embed.alt_end = close
embed.destination_start = destination_start
embed.target_start = target_start
embed.target_end = destination_end
embed.library = library
return embed
}
DiarySkipBlank :: (text: string, at: s32, end: s32) -> s32 {
cursor := at
while cursor < end && DiaryBlank(text[cursor]) {
cursor += 1
}
return cursor
}
// Where an image's title that opens at `at` ends, after its closing quote
// or parenthesis, or -1 when it does not close on the line.
DiaryTitleEnd :: (text: string, at: s32, end: s32) -> s32 {
closing := text[at]
if closing == #char "(" {
closing = #char ")"
}
cursor := at + 1
while cursor < end {
if text[cursor] == cast(u8)92 && cursor + 1 < end {
cursor += 2
continue
}
if text[cursor] == closing {
return cursor + 1
}
if text[at] == #char "(" && text[cursor] == #char "(" {
return -1
}
cursor += 1
}
return -1
}
// The first embed starting in text[from:to].
DiaryEmbedIn :: (text: string, from: s32, to: s32) -> DiaryEmbed {
at := from
if at < 0 {
at = 0
}
while at + 1 < to {
if text[at] == #char "!" && text[at + 1] == #char "[" {
embed := DiaryEmbedAt(text, at)
if embed.valid {
return embed
}
}
at += 1
}
return DiaryEmbed.{}
}
// The first embed starting at or after `from`.
DiaryEmbedNext :: (text: string, from: s32) -> DiaryEmbed {
return DiaryEmbedIn(text, from, cast(s32)text.count)
}
// Whether the line starting at line_start holds photos and nothing else but
// spaces, as an inserted photo's line does.
DiaryImageLine :: (text: string, line_start: s32) -> bool {
line_end := DiaryLineEnd(text, line_start)
found := false
at := line_start
while at < line_end {
if DiaryBlank(text[at]) || text[at] == cast(u8)13 {
at += 1
continue
}
embed := DiaryEmbedAt(text, at)
if !embed.valid {
return false
}
found = true
at = embed.end
}
return found
}
// A Diary file's name, or a library photo's whole path.
DiaryEmbedTarget :: (text: string, embed: DiaryEmbed) -> string {
return text[embed.target_start:embed.target_end]
}
// What the embed links to: diary:FILE or the library place.
DiaryEmbedDestination :: (text: string, embed: DiaryEmbed) -> string {
return text[embed.destination_start:embed.target_end]
}
DiaryEmbedAlt :: (text: string, embed: DiaryEmbed) -> string {
return text[embed.alt_start:embed.alt_end]
}
// Whether a diary: embed names this file.
DiaryEmbedReferences :: (text: string, file: string) -> bool {
embed := DiaryEmbedNext(text, 0)
while embed.valid {
if !embed.library && DiaryEmbedTarget(text, embed) == file {
return true
}
embed = DiaryEmbedNext(text, embed.end)
}
return false
}
// The bytes of the UTF-8 character at index, or 0 when it is not valid.
DiaryCharacterSize :: (value: string, index: s32) -> s32 {
lead := value[index]
size: s32 = 0
if lead < cast(u8)128 {
return 1
}
if lead >= cast(u8)194 && lead <= cast(u8)223 {
size = 2
} else if lead >= cast(u8)224 && lead <= cast(u8)239 {
size = 3
} else if lead >= cast(u8)240 && lead <= cast(u8)244 {
size = 4
} else {
return 0
}
if index + size > cast(s32)value.count {
return 0
}
for offset: cast(s32)1..size - 1 {
if (value[index + offset] & cast(u8)192) != cast(u8)128 {
return 0
}
}
return size
}
// An embed line linking to `destination`, diary:FILE or a library path. Its
// name keeps whole characters up to the length limit; brackets, line breaks
// and invalid bytes become spaces.
DiaryEmbedLine :: (destination: string, name: string) -> string {
out: Vec(u8)
BuilderPrint(*out, "![")
written: s32 = 0
index: s32 = 0
while index < cast(s32)name.count {
size := DiaryCharacterSize(name, index)
step := ifx size == 0 then 1 else size
if written + step > DIARY_EMBED_ALT_MAX {
break
}
byte := name[index]
if size == 0 || (size == 1 && (byte == #char "[" || byte == #char "]" || byte < cast(u8)32)) {
BuilderPrint(*out, " ")
} else {
BuilderPrint(*out, "%", name[index:index + size])
}
written += step
index += step
}
BuilderPrint(*out, "](%)", destination)
return BuilderFinish(out)
}
// The text with an embed line added at its end. A blank line separates it
// from text before it; embeds that follow each other share no blank line.
DiaryEmbedAppend :: (text: string, line: string) -> string {
out: Vec(u8)
count := cast(s32)text.count
BuilderPrint(*out, "%", text)
if count == 0 {
BuilderPrint(*out, "%", line)
return BuilderFinish(out)
}
if text[count - 1] == cast(u8)10 {
previous := DiaryLineStart(text, count - 1)
after_embed := DiaryImageLine(text, previous)
blank := count >= 2 && text[count - 2] == cast(u8)10
if !after_embed && !blank {
BuilderPrint(*out, "\n")
}
} else if DiaryImageLine(text, DiaryLineStart(text, count)) {
BuilderPrint(*out, "\n")
} else {
BuilderPrint(*out, "\n\n")
}
BuilderPrint(*out, "%", line)
return BuilderFinish(out)
}
// The edit that puts an embed line at `at`, on a line of its own, with the
// caret on the line after it.
DiaryEmbedInsertion :: (text: string, at: s32, line: string) -> DiaryEmbedEdit {
edit: DiaryEmbedEdit
count := cast(s32)text.count
start := at
if start < 0 {
start = 0
}
if start > count {
start = count
}
while start > 0 && start < count && (text[start] & cast(u8)192) == cast(u8)128 {
start -= 1
}
out: Vec(u8)
if start > 0 && text[start - 1] != cast(u8)10 {
BuilderPrint(*out, "\n")
}
BuilderPrint(*out, "%\n", line)
edit.start = start
edit.end = start
// At a line break the edit takes it over, so the caret, which an edit
// leaves after its replacement, starts the next line.
if start < count && text[start] == cast(u8)10 {
edit.end = start + 1
}
edit.replacement = BuilderFinish(out)
edit.cursor = start + cast(s32)edit.replacement.count
return edit
}
DiaryEscaped :: (text: string, at: s32, from: s32) -> bool {
slashes: s32 = 0
cursor := at - 1
while cursor >= from && text[cursor] == cast(u8)92 {
slashes += 1
cursor -= 1
}
return slashes % 2 == 1
}
-111
View File
@@ -1,111 +0,0 @@
// Images never go to the spelling service, wherever they stand in a line:
// each `![...](...)` is sent as one object replacement character, U+FFFC,
// so photo names, places and hashes stay on this device. The correction
// gets each image back at its mark, in order. A correction that lost or
// added a mark cannot be matched to the images, so it is refused.
#import "vec"
#import "std/text"
#import "byte_text_linux"
DIARY_SPELLING_MARK :: "\xEF\xBF\xBC"
DiarySpellingLineEnd :: (text: string, start: s64) -> s64 {
end := start
while end < text.count && text[end] != cast(u8)10 {
end += 1
}
return end
}
// Where an image that starts at `at` ends, after its closing parenthesis,
// or -1. It is read generously, `![`, then `](` and `)` on the same line,
// so that whatever a destination holds stays masked.
DiarySpellingImageEnd :: (text: string, at: s64) -> s64 {
if at + 1 >= text.count || text[at] != cast(u8)33 || text[at + 1] != cast(u8)91 {
return -1
}
line_end := DiarySpellingLineEnd(text, at)
cursor := at + 2
while cursor + 1 < line_end && (text[cursor] != cast(u8)93 || text[cursor + 1] != cast(u8)40) {
cursor += 1
}
if cursor + 1 >= line_end {
return -1
}
cursor += 2
while cursor < line_end && text[cursor] != cast(u8)41 {
cursor += 1
}
if cursor >= line_end {
return -1
}
return cursor + 1
}
// Whether a mark the text already holds starts at `at`.
DiarySpellingMarkAt :: (text: string, at: s64) -> bool {
mark := DIARY_SPELLING_MARK
return at + mark.count <= text.count && text[at:at + mark.count] == mark
}
// The bytes the mark at `at` stands for, ending where the next byte to read
// is, or -1 when no mark starts there. A mark the entry held itself stands
// for itself.
DiarySpellingMasks :: (text: string, at: s64) -> s64 {
if DiarySpellingMarkAt(text, at) {
return at + DIARY_SPELLING_MARK.count
}
return DiarySpellingImageEnd(text, at)
}
// The entry as the spelling service sees it: each image one mark.
DiarySpellingMasked :: (text: string) -> string {
out: Vec(u8)
at: s64 = 0
while at < text.count {
end := DiarySpellingMasks(text, at)
if end > at {
BuilderPrint(*out, "%", DIARY_SPELLING_MARK)
at = end
continue
}
unused VecPush(out, text[at])
at += 1
}
return BuilderFinish(out)
}
// The correction with the original images back at their marks, or "" when
// its marks no longer match the entry's.
DiarySpellingRestored :: (original: string, corrected: string) -> string {
out: Vec(u8)
source: s64 = 0
at: s64 = 0
while at < corrected.count {
if !DiarySpellingMarkAt(corrected, at) {
unused VecPush(out, corrected[at])
at += 1
continue
}
// The next mark of the original and what it stands for.
while source < original.count && DiarySpellingMasks(original, source) < 0 {
source += 1
}
if source >= original.count {
VecFree(out)
return ""
}
end := DiarySpellingMasks(original, source)
BuilderPrint(*out, "%", original[source:end])
source = end
at += DIARY_SPELLING_MARK.count
}
while source < original.count && DiarySpellingMasks(original, source) < 0 {
source += 1
}
if source < original.count {
VecFree(out)
return ""
}
return BuilderFinish(out)
}
-52
View File
@@ -1,52 +0,0 @@
DIARY_ROUTE :: 1
DIARY_LOAD :: 2
DIARY_SAVE :: 3
DIARY_CONTROL :: 4
DIARY_EDIT :: 5
DIARY_ATTACH :: 6
DIARY_FRAME :: 7
DiaryMessage :: struct {
abi: s32
action: s32
control: s32
year: s32
month: s32
day: s32
month_year: s32
month_number: s32
month_days: s32
month_weekday: s32
screen: s32
text: string
document: string
replacement: string
edit_start: s32
edit_end: s32
cursor: s32
anchor: s32
// A photo for DIARY_ATTACH to embed at the caret: what the embed links
// to, diary:FILE or a library photo's photos/YYYY/MM/DD/<sha256>.<type>,
// and its name.
attachment_file: string
attachment_name: string
calendar: bool
saved: bool
load_error: bool
succeeded: bool
marks: [32]u8
}
DiaryFileResult :: struct {
data: string
missing: bool
succeeded: bool
}
DiaryMediaEntry :: struct {
hash: string
name: string
day: string
format: string
}
-44
View File
@@ -1,44 +0,0 @@
#import "session"
TextArea :: #import "kryon/text_area";
// Device observations and retained editor values, never native pointers.
DiaryUiFrame :: struct {
session: Session
origin_x: s32
origin_y: s32
width: s32
height: s32
bottom: s32
scale: float32
font: s32
now: float64
input: TextArea.Input
focused: bool
selecting: bool
scroll: s32
calendar_scroll: s32
page_scroll: s32
// The gallery grid's vertical scroll and the day whose separate
// gallery is open (year * 10000 + month * 100 + day), or 0.
photos_scroll: s32
photos_open_day: s32
save_at: float64
photo_error: bool
photo_requested: bool
// The theme's colors for links and for list and quote marks in the
// entry's Markdown.
link_color: u32
muted_color: u32
clipboard_write: bool
clipboard_text: string
// Undo, redo and spelling run in the host, which keeps the entry's
// earlier versions and reaches the node.
can_undo: bool
can_redo: bool
undo_requested: bool
redo_requested: bool
spelling_requested: bool
spelling_busy: bool
// A locale key while a spelling check has something to say.
spelling_notice: string
}
+94 -394
View File
@@ -1,245 +1,41 @@
#import "geometry"
#import, file "diary_date.zi";
Box :: #import "kryon/box";
Button :: #import "kryon/button";
Image :: #import "kryon/image";
Layout :: #import "kryon/layout";
Press :: #import "kryon/press";
Scroll :: #import "kryon/scroll";
Text :: #import "kryon/text";
TextArea :: #import "kryon/text_area";
MarkdownEditor :: #import "kryon/markdown_editor";
Markdown :: #import "kryon/markdown_preview";
#import "text_measure"
#import "image_props"
#import "image_widget"
#import "layout"
#import "text_props"
#import "text_widget"
#import "text_input_props"
#import "text_area_widget"
#import "button_props"
#import "button_widget"
#import "control_props"
#import "drawing_props"
#import "text_align"
#import "std/text"
#import "text"
#import "vec"
#import "byte_text_linux"
#import "kryon/tree"
#import, file "diary_markdown.zi";
#import, file "diary_types.zi";
#import, file "diary_ui_types.zi";
#import "kryon/app_context"
#import "json_scan"
#import, file "diary_wire.zi";
CompressionIcon :: #import "mingcute/mingcute_regular_tool";
#import "scroll_props"
#import "scroll_widget"
#import "tree"
#import, file "../../src/cells/diary_types.zi";
#import, file "../../src/cells/diary_ui_types.zi";
using Image.ImageFit;
using TextAlign;
using Text.Wrap;
using ImageFit;
using ButtonTone;
using ButtonEmphasis;
using IconPlacement;
using ContentAlignment;
library_json: string;
DiaryPhoto :: (destination: string) -> string {
if !AppSupports("media.asset") { return "" }
return AppService("media.asset", destination)
}
DiaryMediaQuery :: (day: string, trashed: bool) -> s32 {
library_json = "[]"
if AppSupports("media.query") {
library_json = AppService("media.query", day)
}
count := ArrayCount(library_json, 0)
return ifx count >= 0 then count else 0
}
DiaryMediaItem :: (index: s32) -> DiaryMediaEntry {
item := ElementAt(library_json, 0, index)
return DiaryMediaEntry.{
.hash = DiaryWireString(library_json, FieldAt(library_json, item, "hash")),
.name = DiaryWireString(library_json, FieldAt(library_json, item, "name")),
.day = DiaryWireString(library_json, FieldAt(library_json, item, "day")),
.format = DiaryWireString(library_json, FieldAt(library_json, item, "format"))}
}
host_api :: #system_library "host_api";
ReadDiaryUiHost :: () -> DiaryUiFrame #foreign host_api;
WriteDiaryUiHost :: (frame: DiaryUiFrame) #foreign host_api;
DiaryLocaleHost :: (key: string) -> string #foreign host_api;
state: DiaryMessage;
frame: DiaryUiFrame;
pending: bool;
DIARY_PREVIOUS_ICON :: "S1.8rr:M15 5L8 12L15 19"
DIARY_NEXT_ICON :: "S1.8rr:M9 5L16 12L9 19"
DIARY_CALENDAR_ICON :: "S1.6rr:M4 5H20V20H4ZM4 10H20M8 3V7M16 3V7"
DIARY_TIME_ICON :: "S1.6rr:M21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12ZM12 7V12L15.5 14"
DIARY_PHOTO_ICON :: "S1.6rr:M3 5H21V19H3ZM3 16L8 11L13 16L16 13L21 18M17.5 8.5C17.5 9.33 16.83 10 16 10C15.17 10 14.5 9.33 14.5 8.5C14.5 7.67 15.17 7 16 7C16.83 7 17.5 7.67 17.5 8.5Z"
DIARY_ATTACHMENT_ICON :: "S1.8rr:M21 11L12 20C9.8 22.2 6.2 22.2 4 20C1.8 17.8 1.8 14.2 4 12L14 2C15.66 0.34 18.34 0.34 20 2C21.66 3.66 21.66 6.34 20 8L10 18C8.9 19.1 7.1 19.1 6 18C4.9 16.9 4.9 15.1 6 14L15 5"
DIARY_UNDO_ICON :: "S1.8rr:M9 14L4 9L9 4M4 9H14C17.31 9 20 11.69 20 15C20 18.31 17.31 21 14 21H11"
DIARY_REDO_ICON :: "S1.8rr:M15 14L20 9L15 4M20 9H10C6.69 9 4 11.69 4 15C4 18.31 6.69 21 10 21H13"
DIARY_SPELLING_ICON :: "S2rr:M3 14L7.5 3L12 14M4.8 10H10.2M12 17L15.5 20.5L21.5 13"
DiaryObservedFrame :: () -> DiaryUiFrame {
return frame
DiaryObserve :: () -> DiaryUiFrame {
return ReadDiaryUiHost()
}
// The entry previews its Markdown (diary_markdown.zi): away from the lines
// holding the caret or a selection, markers are hidden, emphasis is bold or
// slanted, headings are larger, links and list and quote marks take their
// colors, and a photo's embed line shows the photo in its place. On the
// caret's line the Markdown shows as typed, with the photo under it.
editor_blocks: [Markdown.PREVIEW_IMAGES + 1]TextArea.Block;
// A copy the view owns of text a host call answered. The host answers in its
// own buffers, which its next call may overwrite.
DiaryKept :: (value: string) -> string {
out: Vec(u8)
BuilderPrint(*out, "%", value)
return BuilderFinish(out)
}
// A photo's height in the entry: three quarters of its width, within limits
// that keep a few lines of text in view on a phone.
DiaryPhotoHeight :: (width: float32) -> s32 {
height := cast(s32)(width * 0.75)
if height > Scale(360) {
height = Scale(360)
}
if height < Scale(120) {
height = Scale(120)
}
return height
}
DiaryEditorProps :: (area: TextArea.Props) -> MarkdownEditor.Props {
props: MarkdownEditor.Props = .{.area = area, .muted_color = frame.muted_color,
.link_color = frame.link_color, .images = DiaryResolvedImages(area.value)}
height := DiaryPhotoHeight(area.bounds.width)
unavailable := AppLocale("diary_photo_unavailable")
for index: cast(s32)0..cast(s32)props.images.count - 1 {
embed := DiaryEmbedAt(area.value, props.images[index].start)
editor_blocks[index] = TextArea.Block.{.start = embed.line_start, .height = height,
.image = DiaryKept(DiaryPhoto(DiaryEmbedDestination(area.value, embed))),
.label = unavailable}
}
props.area.blocks = editor_blocks[:props.images.count]
return props
}
// The day's gallery is a separate view, opened by its toolbar icon. It
// lists the library's photos of that day, then the entry's other photos.
// Choosing one inserts it at the saved caret and returns to the entry.
DIARY_DAY_PHOTOS :: 64
DiaryDayPhoto :: struct {
// What an embed of the photo links to.
destination: string
name: string
// Its preview, or "" while the photo is not on this device.
asset: string
}
day_photos: [DIARY_DAY_PHOTOS]DiaryDayPhoto;
day_photo_count: s32;
// A photo is listed once: by what it links to, or by the picture it draws,
// since a Diary file the library keeps too draws as the library's photo.
DiaryDayPhotoKnown :: (destination: string, asset: string) -> bool {
for index: cast(s32)0..day_photo_count - 1 {
if day_photos[index].destination == destination {
return true
}
if asset.count > 0 && day_photos[index].asset == asset {
return true
}
}
return false
}
DiaryDayPhotoAdd :: (destination: string, name: string) {
if destination.count == 0 || day_photo_count >= DIARY_DAY_PHOTOS {
return
}
asset := DiaryPhoto(destination)
if DiaryDayPhotoKnown(destination, asset) {
return
}
day_photos[day_photo_count] = DiaryDayPhoto.{.destination = destination,
.name = DiaryKept(name), .asset = DiaryKept(asset)}
day_photo_count += 1
}
DiaryDayPhotos :: (text: string) {
day_photo_count = 0
if state.load_error || state.year <= 0 {
return
}
count := DiaryMediaQuery(ISO(Date.{state.year, state.month, state.day}), false)
for index: cast(s32)0..count - 1 {
if day_photo_count >= DIARY_DAY_PHOTOS {
break
}
entry := DiaryMediaItem(index)
DiaryDayPhotoAdd(DiaryLibraryPath(entry.day, entry.hash, entry.format), entry.name)
}
embed := DiaryEmbedNext(text, 0)
while embed.valid && day_photo_count < DIARY_DAY_PHOTOS {
DiaryDayPhotoAdd(DiaryEmbedDestination(text, embed), DiaryEmbedAlt(text, embed))
embed = DiaryEmbedNext(text, embed.end)
}
}
// The open gallery remembers its day, so another day opens with it closed.
DiaryDayKey :: () -> s32 {
return state.year * 10000 + state.month * 100 + state.day
}
DiaryGalleryOpen :: () -> bool {
return frame.photos_open_day != 0 && frame.photos_open_day == DiaryDayKey()
}
// Puts a photo's embed on its own line at the caret: one edit, saved at once.
DiaryInsertPhoto :: (destination: string, name: string) {
line := DiaryEmbedLine(destination, name)
edit := DiaryEmbedInsertion(state.text, state.cursor, line)
state.action = DIARY_EDIT
state.edit_start = edit.start
state.edit_end = edit.end
state.replacement = edit.replacement
pending = true
frame.save_at = frame.now
}
DiaryDayGallery :: (left: float32, top: float32, width: float32, height: float32, editable: bool) {
gap := cast(float32)Scale(8)
inner := width - cast(float32)Scale(14)
columns := cast(s32)((inner + gap) / cast(float32)Scale(112))
if columns < 1 {
columns = 1
}
tile := (inner - cast(float32)(columns - 1) * gap) / cast(float32)columns
rows := (day_photo_count + columns - 1) / columns
strip := Scroll.Draw(frame.session, Scroll.Props.{.key = cast(u64)290302,
.bounds = Rectangle.{left, top, width, height}, .scale = frame.scale,
.content_height = cast(s32)(cast(float32)rows * (tile + gap)),
.scroll_offset = frame.photos_scroll})
frame.photos_scroll = strip.scroll_offset
if !strip.opened {
return
}
for index: cast(s32)0..day_photo_count - 1 {
photo := day_photos[index]
bounds := Rectangle.{strip.content.x + cast(float32)(index % columns) * (tile + gap),
strip.content.y + cast(float32)(index / columns) * (tile + gap), tile, tile}
Box.Draw(frame.session, Box.Props.{.key = cast(u64)(292000 + index), .bounds = bounds,
.fill = Color.{156, 156, 156, 36}, .radius = cast(float32)Scale(6)})
if photo.asset.count > 0 {
Image.Draw(frame.session, Image.Props.{.key = cast(u64)(292100 + index),
.asset_path = photo.asset, .alt_text = photo.name, .bounds = bounds,
.fit = cast(Image.ImageFit)ImageFitCover, .smooth = true})
}
press := Press.Draw(frame.session, Press.Props.{.key = cast(u64)(292200 + index),
.id = 292200 + index, .bounds = bounds, .label = photo.name, .now = frame.now,
.disabled = !editable})
if press.clicked && !pending {
DiaryInsertPhoto(photo.destination, photo.name)
frame.photos_open_day = 0
}
}
End(frame.session)
DiarySaveDue :: () -> bool {
return frame.now >= frame.save_at
}
DateTitle :: (year: s32, month: s32, day: s32) -> string {
@@ -247,7 +43,7 @@ DateTitle :: (year: s32, month: s32, day: s32) -> string {
keys: [12]string = .["habit_month_1", "habit_month_2", "habit_month_3",
"habit_month_4", "habit_month_5", "habit_month_6", "habit_month_7",
"habit_month_8", "habit_month_9", "habit_month_10", "habit_month_11", "habit_month_12"]
month_text := AppLocale(keys[month - 1])
month_text := DiaryLocaleHost(keys[month - 1])
title: Vec(u8)
eastern := month_text.count >= 2 && month_text[:2] == "%d"
if day > 0 && !eastern { BuilderPrint(*title, "% ", day) }
@@ -269,167 +65,56 @@ DateTitle :: (year: s32, month: s32, day: s32) -> string {
return BuilderFinish(title)
}
HasWords :: (text: string) -> bool {
for byte: text {
if byte != cast(u8)32 && byte != cast(u8)10 && byte != cast(u8)13 && byte != cast(u8)9 {
return true
}
}
return false
}
Scale :: (value: s32) -> s32 {
return cast(s32)(cast(float32)value * frame.scale)
}
FinishView :: () -> DiaryMessage {
WriteDiaryUiHost(frame)
return state
}
// A button with an icon shows only the icon; its label names it for
// accessibility.
DiaryAction :: ( id: s32, label: string, bounds: Rectangle, enabled: bool = true,
icon: string = "", selected: bool = false, loading: bool = false) {
if Button.Draw(frame.session, Button.Props.{.id = id, .bounds = bounds,
.label = label, .disabled = !enabled, .selected = selected, .loading = loading,
.icon_shape = icon, .icon_only = icon != "", .fit_content = true,
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)(ifx icon != "" then ButtonEmphasisGhost else ButtonEmphasisSoft)}) != 0 {
// Photos, undo, redo and spelling are host effects.
frame.focused = false
DiaryAction :: ( id: s32, label: string, bounds: Rectangle, enabled: bool = true) {
if Button(frame.session, ButtonProps.{.id = id, .bounds = bounds,
.label = label, .disabled = !enabled, .tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 {
if id == 29005 {
frame.photo_requested = true
return
}
if id == 29014 {
frame.undo_requested = true
return
}
if id == 29015 {
frame.redo_requested = true
return
}
if id == 29016 {
frame.spelling_requested = true
return
}
if id == 29017 {
frame.photos_open_day = ifx DiaryGalleryOpen() then 0 else DiaryDayKey()
frame.photos_scroll = 0
frame.focused = false
return
}
state.action = DIARY_CONTROL
state.control = id
pending = true
frame.scroll = 0
frame.photos_scroll = 0
frame.photos_open_day = 0
frame.focused = false
}
}
DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> DiaryMessage {
state = message
frame = observed
pending = false
column := Layout.CenteredColumnFor(frame.width, Scale(640), Scale(16))
left := cast(float32)(column.x + frame.origin_x)
column := CenteredColumnFor(frame.width, Scale(640), Scale(16))
left := cast(float32)column.x
width := cast(float32)column.width
Text(frame.session, TextProps.{.bounds = Rectangle.{left, cast(float32)Scale(24),
width, cast(float32)Scale(40)}, .text = DateTitle(state.year, state.month, state.day), .font = frame.font})
part := (width - cast(float32)Scale(12)) / 3.0
compact := frame.height < Scale(480)
top := cast(float32)(frame.origin_y + ifx compact then Scale(4) else Scale(12))
control := cast(float32)Scale(44)
gap := cast(float32)Scale(8)
// Title bar: the selected date with the previous and next day right
// beside it, centered together.
title := DateTitle(state.year, state.month, state.day)
title_font := frame.font + Scale(4)
title_width := cast(float32)TextWidth(frame.session, Text.Props.{.text = title, .size = title_font})
if title_width > width - 2.0 * (control + gap) {
title_width = width - 2.0 * (control + gap)
}
title_left := left + (width - title_width) / 2.0
compression := AppSupports("media.compression.open")
if compression {
title_width = title_width - control - gap
if title_width < control {
title_width = control
}
title_left = left + (width - control - gap - title_width) / 2.0
if Button.Draw(frame.session, Button.Props.{.id = 29018,
.bounds = Rectangle.{left + width - control, top, control, control},
.label = AppLocale("media_compression_title"), .icon_only = true,
.icon_shape = CompressionIcon.Shape,
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisGhost}) != 0 {
unused AppService("media.compression.open", "")
}
}
DiaryAction(29001, "‹", Rectangle.{title_left - gap - control, top, control, control},
true, DIARY_PREVIOUS_ICON)
DiaryAction(29002, "›", Rectangle.{title_left + title_width + gap, top, control, control},
top := cast(float32)(ifx compact then Scale(44) else Scale(76))
DiaryAction(29001, "‹", Rectangle.{left, top, part, cast(float32)Scale(44)})
DiaryAction(29004, DiaryLocaleHost("diary_today"), Rectangle.{left + part + cast(float32)Scale(6),
top, part, cast(float32)Scale(44)})
DiaryAction(29002, "›", Rectangle.{left + 2.0 * (part + cast(float32)Scale(6)),
top, part, cast(float32)Scale(44)},
OnOrBefore(Next(Date.{state.year, state.month, state.day}, 1), today) &&
!OnOrBefore(today, Date.{state.year, state.month, state.day}),
DIARY_NEXT_ICON)
title_strong: [1]Text.Range = .[Text.Range.{.start = 0, .end = cast(s32)title.count}]
Text.Draw(frame.session, Text.Props.{.bounds = Rectangle.{title_left, top, title_width, control},
.text = title, .size = title_font, .strong = title_strong[:],
.align = cast(TextAlign)TextAlignCenter, .vertical_align = cast(TextAlign)TextAlignCenter,
.wrap = cast(Text.Wrap)TextWrapEllipsis})
// On phones the editing tools get their own row, keeping every target
// at 44 units instead of squeezing the icons beside Today.
tools := top + control + gap
tool_gap := cast(float32)Scale(4)
tool := control
today_width := cast(float32)Scale(96)
stacked := width < today_width + gap + 7.0 * tool + 6.0 * tool_gap
edit_tools := tools
if stacked && !state.calendar {
edit_tools += control + tool_gap
}
DiaryAction(29004, AppLocale("diary_today"), Rectangle.{left, tools, today_width, control})
DiaryAction(29003, AppLocale("tab_diary_calendar"),
Rectangle.{left + today_width + gap, tools, tool, control},
true, DIARY_CALENDAR_ICON, state.calendar)
editable := !state.load_error && state.year > 0
if !state.calendar {
idle := editable && !frame.spelling_busy
DiaryAction(29014, AppLocale("diary_undo"),
Rectangle.{left + width - 6.0 * tool - 5.0 * tool_gap, edit_tools, tool, control},
idle && frame.can_undo, DIARY_UNDO_ICON)
DiaryAction(29015, AppLocale("diary_redo"),
Rectangle.{left + width - 5.0 * tool - 4.0 * tool_gap, edit_tools, tool, control},
idle && frame.can_redo, DIARY_REDO_ICON)
DiaryAction(29016, AppLocale("diary_check_spelling"),
Rectangle.{left + width - 4.0 * tool - 3.0 * tool_gap, edit_tools, tool, control},
idle && HasWords(state.text) && AppSupports("text.correct.start"), DIARY_SPELLING_ICON, false, frame.spelling_busy)
DiaryAction(29013, AppLocale("diary_insert_time"),
Rectangle.{left + width - 3.0 * tool - 2.0 * tool_gap, edit_tools, tool, control},
!frame.spelling_busy, DIARY_TIME_ICON)
DiaryAction(29005, AppLocale("diary_attach_photo"),
Rectangle.{left + width - 2.0 * tool - tool_gap, edit_tools, tool, control},
AppSupports("media.pick"), DIARY_ATTACHMENT_ICON)
DiaryDayPhotos(state.text)
gallery_label := AppLocale("diary_show_gallery")
if DiaryGalleryOpen() {
gallery_label = AppLocale("diary_hide_gallery")
}
DiaryAction(29017, gallery_label,
Rectangle.{left + width - tool, edit_tools, tool, control},
editable && day_photo_count > 0, DIARY_PHOTO_ICON, DiaryGalleryOpen())
}
content := edit_tools + control + cast(float32)Scale(12)
content_height := cast(float32)(frame.height - frame.bottom) - content - cast(float32)Scale(16)
if !state.calendar && DiaryGalleryOpen() {
DiaryDayGallery(left, content, width, content_height, editable && !frame.spelling_busy)
return FinishView()
}
!OnOrBefore(today, Date.{state.year, state.month, state.day}))
DiaryAction(29003, DiaryLocaleHost("tab_diary_calendar"),
Rectangle.{left, top + cast(float32)Scale(52), width, cast(float32)Scale(44)})
if state.calendar {
scroll := Scroll.Draw(frame.session, Scroll.Props.{.key = cast(u64)290300,
.bounds = Rectangle.{left, content, width, content_height},
scroll := Scroll(frame.session, ScrollProps.{.key = cast(u64)290300,
.bounds = Rectangle.{left, top + cast(float32)Scale(104), width,
cast(float32)(frame.height - frame.bottom - Scale(200))},
.content_height = Scale(344), .scroll_offset = frame.calendar_scroll})
frame.calendar_scroll = scroll.scroll_offset
if !scroll.opened {
@@ -441,15 +126,15 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
origin, part, cast(float32)Scale(44)},
state.month_year < today.year ||
(state.month_year == today.year && state.month_number < today.month))
Text.Draw(frame.session, Text.Props.{.bounds = Rectangle.{left + part,
Text(frame.session, TextProps.{.bounds = Rectangle.{left + part,
origin + cast(float32)Scale(8), part, cast(float32)Scale(32)},
.text = DateTitle(state.month_year, state.month_number, 0), .size = frame.font})
.text = DateTitle(state.month_year, state.month_number, 0), .font = frame.font})
weekdays: [7]string = .["habit_day_mon", "habit_day_tue", "habit_day_wed", "habit_day_thu",
"habit_day_fri", "habit_day_sat", "habit_day_sun"]
for day: cast(s32)0..cast(s32)6 {
Text.Draw(frame.session, Text.Props.{.bounds = Rectangle.{left + cast(float32)day * width / 7.0,
Text(frame.session, TextProps.{.bounds = Rectangle.{left + cast(float32)day * width / 7.0,
origin + cast(float32)Scale(52), width / 7.0, cast(float32)Scale(24)},
.text = AppLocale(weekdays[day]), .size = frame.font})
.text = DiaryLocaleHost(weekdays[day]), .font = frame.font})
}
for day: cast(s32)1..state.month_days {
position := state.month_weekday + day - 1
@@ -467,47 +152,48 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
End(frame.session)
return FinishView()
}
// The gallery never changes the entry's viewport or line positions.
notice := frame.photo_error || state.load_error || frame.spelling_notice != ""
notice_room := ifx notice then Scale(60) else 0
editor_height := cast(s32)content_height - notice_room
editor_height := frame.height - frame.bottom - cast(s32)top - Scale(236)
if editor_height < Scale(120) {
editor_height = Scale(120)
}
page := Scroll.Draw(frame.session, Scroll.Props.{.key = cast(u64)290301,
.bounds = Rectangle.{left, content, width, content_height},
.content_height = editor_height + notice_room,
.scroll_offset = frame.page_scroll, .scale = frame.scale})
page := Scroll(frame.session, ScrollProps.{.key = cast(u64)290301,
.bounds = Rectangle.{left, top + cast(float32)Scale(104), width,
cast(float32)(frame.height - frame.bottom - cast(s32)top - Scale(120))},
.content_height = editor_height + Scale(104) +
(ifx state.photo_count > 0 then Scale(380) else 0), .scroll_offset = frame.page_scroll})
frame.page_scroll = page.scroll_offset
if !page.opened {
return FinishView()
}
area: TextArea.Props
DiaryAction(29013, DiaryLocaleHost("diary_insert_time"),
Rectangle.{left, page.content.y, (width - cast(float32)Scale(8)) / 2.0, cast(float32)Scale(44)})
DiaryAction(29005, DiaryLocaleHost("diary_attach_photo"),
Rectangle.{left + (width + cast(float32)Scale(8)) / 2.0, page.content.y,
(width - cast(float32)Scale(8)) / 2.0, cast(float32)Scale(44)})
area: TextAreaProps
area.key = cast(u64)290200
area.focus_id = 29020
area.bounds = Rectangle.{left, page.content.y, width, cast(float32)editor_height}
area.bounds = Rectangle.{left, page.content.y + cast(float32)Scale(56), width,
cast(float32)editor_height}
area.value = state.text
area.label = AppLocale("tab_diary")
area.label = DiaryLocaleHost("tab_diary")
area.wrap = true
area.scale = frame.scale
area.cursor = state.cursor
area.anchor = state.anchor
area.scroll_y = frame.scroll
area.focused = frame.focused
area.selecting = frame.selecting
// The entry waits while its spelling is checked, so the correction
// always applies to the text that was sent.
area.read_only = !editable || frame.spelling_busy
area.read_only = state.load_error || state.year < 1
area.max_bytes = 2147483646
area.max_codepoints = 2147483646
area.input = frame.input
edited := MarkdownEditor.Draw(frame.session, DiaryEditorProps(area))
edited := TextArea(frame.session, area)
state.cursor = edited.cursor
state.anchor = edited.anchor
frame.scroll = edited.scroll_y
frame.focused = edited.focused
frame.selecting = edited.selecting
if edited.edit.changed && !pending {
if edited.edit.changed {
state.action = DIARY_EDIT
state.edit_start = edited.edit.start
state.edit_end = edited.edit.end
@@ -520,17 +206,31 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
frame.clipboard_text = edited.clipboard_text
}
if notice {
status := frame.spelling_notice
if state.load_error {
status = "diary_read_error"
}
if frame.photo_error {
status = "diary_photo_error"
}
Text.Draw(frame.session, Text.Props.{.bounds = Rectangle.{left,
if frame.photo_error || state.load_error || !state.saved {
status := ifx frame.photo_error then "diary_photo_error" else ifx state.load_error then "diary_read_error" else "diary_save_pending"
Text(frame.session, TextProps.{.bounds = Rectangle.{left,
area.bounds.y + area.bounds.height + cast(float32)Scale(12), width, cast(float32)Scale(40)},
.text = AppLocale(status), .size = frame.font})
.text = DiaryLocaleHost(status), .font = frame.font})
}
if state.photo_count > 0 {
photo_top := area.bounds.y + area.bounds.height + cast(float32)Scale(60)
path: Vec(u8)
BuilderPrint(*path, "diary/photos/%.%", state.photo_file, frame.photo_format)
image := BuilderFinish(path)
Image(frame.session, ImageProps.{.asset_path = image,
.alt_text = state.photo_name,
.bounds = Rectangle.{left, photo_top, width, cast(float32)Scale(240)},
.fit = cast(ImageFit)ImageFitContain})
Text(frame.session, TextProps.{.text = state.photo_name,
.bounds = Rectangle.{left, photo_top + cast(float32)Scale(248), width,
cast(float32)Scale(32)}, .font = frame.font})
DiaryAction(29008, "‹", Rectangle.{left, photo_top + cast(float32)Scale(288),
part, cast(float32)Scale(44)})
DiaryAction(29010, DiaryLocaleHost("diary_remove_photo"),
Rectangle.{left + part + cast(float32)Scale(6), photo_top + cast(float32)Scale(288),
part, cast(float32)Scale(44)})
DiaryAction(29009, "›", Rectangle.{left + 2.0 * (part + cast(float32)Scale(6)),
photo_top + cast(float32)Scale(288), part, cast(float32)Scale(44)})
}
End(frame.session)
return FinishView()
-151
View File
@@ -1,151 +0,0 @@
// App-owned commands shared with callers. Documents retain their existing schema.
#import "json_scan"
#import "std/text"
#import "vec"
#import "byte_text_linux"
#import, file "diary_types.zi";
DiaryWireString :: (text: string, at: s32) -> string {
if at < 0 { return "" }
bytes: Vec(u8)
for index: 0..text.count - 1 { unused VecPush(bytes, cast(u8)0) }
count := ReadStringText(text, at, VecSlice(bytes, 0, bytes.count))
if count < 0 {
VecFree(bytes)
return ""
}
result: Vec(u8)
BuilderPrint(*result, "%", TextFromBytes(VecSlice(bytes, 0, count)))
VecFree(bytes)
return BuilderFinish(result)
}
DiaryWireQuote :: (out: *Vec(u8), value: string) {
BuilderPrint(out, "\"")
for index: 0..value.count - 1 {
byte := value[index]
if byte == cast(u8)34 { BuilderPrint(out, "\\\"") }
else if byte == cast(u8)92 { BuilderPrint(out, "\\\\") }
else if byte == cast(u8)10 { BuilderPrint(out, "\\n") }
else if byte == cast(u8)13 { BuilderPrint(out, "\\r") }
else if byte == cast(u8)9 { BuilderPrint(out, "\\t") }
else if byte < cast(u8)32 {
hex := "0123456789abcdef"
BuilderPrint(out, "\\u00")
unused VecPush(out.*, hex[cast(s64)(byte / cast(u8)16)])
unused VecPush(out.*, hex[cast(s64)(byte % cast(u8)16)])
}
else { BuilderPrint(out, "%", value[index:index + 1]) }
}
BuilderPrint(out, "\"")
}
DiaryWireNumber :: (text: string, key: string) -> s32 {
value := ReadNumber(text, FieldAt(text, 0, key))
if !value.valid || value.value < -2147483648.0 || value.value > 2147483647.0 { return 0 }
result := cast(s32)value.value
return ifx cast(float64)result == value.value then result else 0
}
DiaryWireBool :: (text: string, key: string) -> bool {
at := FieldAt(text, 0, key)
return at >= 0 && at + 4 <= text.count && text[at:at + 4] == "true"
}
DiaryMessageDecode :: (text: string) -> DiaryMessage {
message: DiaryMessage
if text.count == 0 || text[0] != cast(u8)123 ||
Space(text, ValueEnd(text, 0, 0)) != text.count { return message }
message.abi = DiaryWireNumber(text, "abi")
message.action = DiaryWireNumber(text, "action")
message.control = DiaryWireNumber(text, "control")
message.year = DiaryWireNumber(text, "year")
message.month = DiaryWireNumber(text, "month")
message.day = DiaryWireNumber(text, "day")
message.month_year = DiaryWireNumber(text, "month_year")
message.month_number = DiaryWireNumber(text, "month_number")
message.month_days = DiaryWireNumber(text, "month_days")
message.month_weekday = DiaryWireNumber(text, "month_weekday")
message.screen = DiaryWireNumber(text, "screen")
message.text = DiaryWireString(text, FieldAt(text, 0, "text"))
message.document = DiaryWireString(text, FieldAt(text, 0, "document"))
message.replacement = DiaryWireString(text, FieldAt(text, 0, "replacement"))
message.edit_start = DiaryWireNumber(text, "edit_start")
message.edit_end = DiaryWireNumber(text, "edit_end")
message.cursor = DiaryWireNumber(text, "cursor")
message.anchor = DiaryWireNumber(text, "anchor")
message.attachment_file = DiaryWireString(text, FieldAt(text, 0, "attachment_file"))
message.attachment_name = DiaryWireString(text, FieldAt(text, 0, "attachment_name"))
message.calendar = DiaryWireBool(text, "calendar")
message.saved = DiaryWireBool(text, "saved")
message.load_error = DiaryWireBool(text, "load_error")
message.succeeded = DiaryWireBool(text, "succeeded")
marks := FieldAt(text, 0, "marks")
if ArrayCount(text, marks) == 32 {
for index: cast(s32)0..cast(s32)31 {
value := ReadNumber(text, ElementAt(text, marks, index))
message.marks[index] = ifx value.valid && value.value == 1.0 then cast(u8)1 else cast(u8)0
}
}
return message
}
DiaryMessageEncode :: (message: DiaryMessage) -> string {
out: Vec(u8)
BuilderPrint(*out, "{")
BuilderPrint(*out, "\"abi\":")
BuilderPrint(*out, "%", message.abi)
BuilderPrint(*out, ",\"action\":")
BuilderPrint(*out, "%", message.action)
BuilderPrint(*out, ",\"control\":")
BuilderPrint(*out, "%", message.control)
BuilderPrint(*out, ",\"year\":")
BuilderPrint(*out, "%", message.year)
BuilderPrint(*out, ",\"month\":")
BuilderPrint(*out, "%", message.month)
BuilderPrint(*out, ",\"day\":")
BuilderPrint(*out, "%", message.day)
BuilderPrint(*out, ",\"month_year\":")
BuilderPrint(*out, "%", message.month_year)
BuilderPrint(*out, ",\"month_number\":")
BuilderPrint(*out, "%", message.month_number)
BuilderPrint(*out, ",\"month_days\":")
BuilderPrint(*out, "%", message.month_days)
BuilderPrint(*out, ",\"month_weekday\":")
BuilderPrint(*out, "%", message.month_weekday)
BuilderPrint(*out, ",\"screen\":")
BuilderPrint(*out, "%", message.screen)
BuilderPrint(*out, ",\"text\":")
DiaryWireQuote(*out, message.text)
BuilderPrint(*out, ",\"document\":")
DiaryWireQuote(*out, message.document)
BuilderPrint(*out, ",\"replacement\":")
DiaryWireQuote(*out, message.replacement)
BuilderPrint(*out, ",\"edit_start\":")
BuilderPrint(*out, "%", message.edit_start)
BuilderPrint(*out, ",\"edit_end\":")
BuilderPrint(*out, "%", message.edit_end)
BuilderPrint(*out, ",\"cursor\":")
BuilderPrint(*out, "%", message.cursor)
BuilderPrint(*out, ",\"anchor\":")
BuilderPrint(*out, "%", message.anchor)
BuilderPrint(*out, ",\"attachment_file\":")
DiaryWireQuote(*out, message.attachment_file)
BuilderPrint(*out, ",\"attachment_name\":")
DiaryWireQuote(*out, message.attachment_name)
BuilderPrint(*out, ",\"calendar\":")
BuilderPrint(*out, "%", ifx message.calendar then "true" else "false")
BuilderPrint(*out, ",\"saved\":")
BuilderPrint(*out, "%", ifx message.saved then "true" else "false")
BuilderPrint(*out, ",\"load_error\":")
BuilderPrint(*out, "%", ifx message.load_error then "true" else "false")
BuilderPrint(*out, ",\"succeeded\":")
BuilderPrint(*out, "%", ifx message.succeeded then "true" else "false")
BuilderPrint(*out, ",\"marks\":[")
for index: cast(s32)0..cast(s32)31 {
if index > 0 { BuilderPrint(*out, ",") }
BuilderPrint(*out, "%", cast(s32)message.marks[index])
}
BuilderPrint(*out, "]}")
return BuilderFinish(out)
}
+1 -168
View File
@@ -1,179 +1,12 @@
# Changelog
## [Unreleased]
- Diary links are exclusive. Activity shows completed habit icons, and Habits has daily line graphs and an overview beside Shop.
- Tap a diary-linked habit's day to open that date in Diary and keep its completion.
- Coins follow the selected theme color.
- Statistics and Shop have matching icons and separate tap targets.
- Claim the daily reward beside the coin balance: one coin a day, three on the seventh day in a row.
- Choose soda, coffee, bubble tea, chocolate and candle pictures for custom rewards.
## [1.3.17] - 2026-11-05
- Show color purchase totals, recent purchase frequency and the last purchase date for rewards.
## [1.3.16] - 2026-11-02
- Maintenance release for Inner Breeze 2.1.62.
## [1.3.15] - 2026-10-29
- Maintenance release for Inner Breeze 2.1.61.
## [1.3.14] - 2026-10-29
- Maintenance release for Inner Breeze 2.1.60.
## [1.3.13] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.59.
## [1.3.12] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.58.
## [1.3.11] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.56.
## [1.3.10] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.55.
## [1.3.9] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.54.
## [1.3.8] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.53.
## [1.3.7] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
## [1.3.6] - 2026-10-27
- Open Link to reliably with the expanded icon picker.
- Choose eight more diary and writing symbols for habits and rewards.
- Link habits to Diary entries.
- Requires Breeze 2.1.51 or later.
## [1.3.4] - 2026-10-26
- Maintenance release for Inner Breeze 2.1.50.
## [1.3.3] - 2026-10-25
- Maintenance release for Inner Breeze 2.1.49.
## [1.3.2] - 2026-10-25
- Maintenance release for Inner Breeze 2.1.48.
## [1.3.1] - 2026-10-25
- Maintenance release for Inner Breeze 2.1.47.
## [1.3.0] - 2026-10-24
- The habit list, each habit's week and calendar, its day with its entries, its editor and its statistics now come with Habits, so they can change without an app update.
## [1.2.11] - 2026-10-24
- Maintenance release for Inner Breeze 2.1.46.
## [1.2.10] - 2026-10-23
- Maintenance release for Inner Breeze 2.1.45.
## [1.2.9] - 2026-10-23
- Maintenance release for Inner Breeze 2.1.44.
## [1.2.8] - 2026-10-23
- Maintenance release for Inner Breeze 2.1.43.
## [1.2.7] - 2026-10-22
- Maintenance release for Inner Breeze 2.1.42.
## [1.2.6] - 2026-10-22
- Maintenance release for Inner Breeze 2.1.41.
## [1.2.5] - 2026-10-22
- Maintenance release for Inner Breeze 2.1.40.
## [1.2.4] - 2026-10-22
- Maintenance release for Inner Breeze 2.1.39.
## [1.2.3] - 2026-10-21
- Track zero-occurrence goals and choose custom coins, including 0 and negative coins per occurrence.
- Give each achievement its own meaningful icon.
- Maintenance release for Inner Breeze 2.1.38.
## [1.2.2] - 2026-10-21
- The shop scrolls to the final activity row at phone and desktop sizes.
- Rewards can use a soda can symbol.
## [1.2.1] - 2026-10-20
- Maintenance release for Inner Breeze 2.1.37.
## [1.2.0] - 2026-10-19
- The shop now comes with Habits, so it can improve with a Habits update.
- Requires Inner Breeze 2.1.36 or later.
## [1.1.2] - 2026-10-18
- Save, discard and delete confirmations use consistent controls and can
improve with Habits updates while preserving existing habit data.
- Requires Inner Breeze 2.1.36 or later.
## [1.1.1] - 2026-10-18
- Leaving a habit with unsaved changes asks whether to save, discard, or
keep editing. Unchanged habits close without a prompt.
## [1.1.0] - 2026-10-17
- A counting habit's count dialog now comes with Habits, so it can improve with a Habits update, without a new Inner Breeze.
- Requires Inner Breeze 2.1.35 or later.
## [1.0.7] - 2026-10-17
- Maintenance release for Inner Breeze 2.1.35.
## [1.0.6] - 2026-10-17
- Maintenance release for Inner Breeze 2.1.34.
- Requires Inner Breeze 2.1.28 or later.
## [1.0.5] - 2026-10-13
- Maintenance release for Inner Breeze 2.1.33.
- Requires Inner Breeze 2.1.28 or later.
## [1.0.4] - 2026-10-10
- Requires Inner Breeze 2.1.28 or later.
## [1.0.3] - 2026-10-07
- Keep app labels and content visible after updating Inner Breeze.
## [1.0.2] - 2026-10-06
- Use Apps consistently in the app and its independently delivered package.
- Use Cells consistently in the cell and its independently delivered package.
## [1.0.1] - 2026-10-06
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_habits_created_1_title": "Návyky · 1 výsledků",
"achievement_habits_created_1_description": "Zaznamenejte 1 různých výsledků: platný uložený návyk.",
"achievement_habits_days_1_title": "Návyky · 1 dnů",
"achievement_habits_days_1_description": "Vykonejte tuto aktivitu v 1 různých dnech: splněný den návyku.",
"achievement_habits_days_3_title": "Návyky · 3 dnů",
"achievement_habits_days_3_description": "Vykonejte tuto aktivitu v 3 různých dnech: splněný den návyku.",
"achievement_habits_days_7_title": "Návyky · 7 dnů",
"achievement_habits_days_7_description": "Vykonejte tuto aktivitu v 7 různých dnech: splněný den návyku.",
"achievement_habits_days_14_title": "Návyky · 14 dnů",
"achievement_habits_days_14_description": "Vykonejte tuto aktivitu v 14 různých dnech: splněný den návyku.",
"achievement_habits_days_30_title": "Návyky · 30 dnů",
"achievement_habits_days_30_description": "Vykonejte tuto aktivitu v 30 různých dnech: splněný den návyku.",
"achievement_habits_days_60_title": "Návyky · 60 dnů",
"achievement_habits_days_60_description": "Vykonejte tuto aktivitu v 60 různých dnech: splněný den návyku.",
"achievement_habits_days_100_title": "Návyky · 100 dnů",
"achievement_habits_days_100_description": "Vykonejte tuto aktivitu v 100 různých dnech: splněný den návyku.",
"achievement_habits_days_180_title": "Návyky · 180 dnů",
"achievement_habits_days_180_description": "Vykonejte tuto aktivitu v 180 různých dnech: splněný den návyku.",
"achievement_habits_days_365_title": "Návyky · 365 dnů",
"achievement_habits_days_365_description": "Vykonejte tuto aktivitu v 365 různých dnech: splněný den návyku.",
"achievement_habits_completions_10_title": "Návyky · 10 výsledků",
"achievement_habits_completions_10_description": "Zaznamenejte 10 různých výsledků: splněný den návyku.",
"achievement_habits_completions_50_title": "Návyky · 50 výsledků",
"achievement_habits_completions_50_description": "Zaznamenejte 50 různých výsledků: splněný den návyku.",
"achievement_habits_completions_100_title": "Návyky · 100 výsledků",
"achievement_habits_completions_100_description": "Zaznamenejte 100 různých výsledků: splněný den návyku.",
"achievement_habits_completions_500_title": "Návyky · 500 výsledků",
"achievement_habits_completions_500_description": "Zaznamenejte 500 různých výsledků: splněný den návyku.",
"achievement_habits_single_scheduled_days_7_title": "Návyky · 7 plánovaných dat",
"achievement_habits_single_scheduled_days_7_description": "U jednoho návyku splňte 7 plánovaných dat: splněný plánovaný den návyku.",
"achievement_habits_single_scheduled_days_30_title": "Návyky · 30 plánovaných dat",
"achievement_habits_single_scheduled_days_30_description": "U jednoho návyku splňte 30 plánovaných dat: splněný plánovaný den návyku.",
"achievement_habits_single_scheduled_days_100_title": "Návyky · 100 plánovaných dat",
"achievement_habits_single_scheduled_days_100_description": "U jednoho návyku splňte 100 plánovaných dat: splněný plánovaný den návyku.",
"achievement_habits_counter_target_1_title": "Návyky · 1 výsledků",
"achievement_habits_counter_target_1_description": "Zaznamenejte 1 různých výsledků: dosažený cíl počítaného návyku.",
"achievement_habits_question_answer_1_title": "Návyky · 1 výsledků",
"achievement_habits_question_answer_1_description": "Zaznamenejte 1 různých výsledků: skutečná uložená odpověď na otázku návyku.",
"achievement_habits_ended_span_1_title": "Návyky · 1 výsledků",
"achievement_habits_ended_span_1_description": "Zaznamenejte 1 různých výsledků: uložený časový úsek návyku s platným začátkem a koncem."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_habits_created_1_title": "Gewohnheiten · 1 Ergebnisse",
"achievement_habits_created_1_description": "Erfasse 1 unterschiedliche Ergebnisse: eine gültige gespeicherte Gewohnheit.",
"achievement_habits_days_1_title": "Gewohnheiten · 1 Tage",
"achievement_habits_days_1_description": "Führe dies an 1 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
"achievement_habits_days_3_title": "Gewohnheiten · 3 Tage",
"achievement_habits_days_3_description": "Führe dies an 3 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
"achievement_habits_days_7_title": "Gewohnheiten · 7 Tage",
"achievement_habits_days_7_description": "Führe dies an 7 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
"achievement_habits_days_14_title": "Gewohnheiten · 14 Tage",
"achievement_habits_days_14_description": "Führe dies an 14 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
"achievement_habits_days_30_title": "Gewohnheiten · 30 Tage",
"achievement_habits_days_30_description": "Führe dies an 30 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
"achievement_habits_days_60_title": "Gewohnheiten · 60 Tage",
"achievement_habits_days_60_description": "Führe dies an 60 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
"achievement_habits_days_100_title": "Gewohnheiten · 100 Tage",
"achievement_habits_days_100_description": "Führe dies an 100 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
"achievement_habits_days_180_title": "Gewohnheiten · 180 Tage",
"achievement_habits_days_180_description": "Führe dies an 180 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
"achievement_habits_days_365_title": "Gewohnheiten · 365 Tage",
"achievement_habits_days_365_description": "Führe dies an 365 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
"achievement_habits_completions_10_title": "Gewohnheiten · 10 Ergebnisse",
"achievement_habits_completions_10_description": "Erfasse 10 unterschiedliche Ergebnisse: ein erfüllter Gewohnheitstag.",
"achievement_habits_completions_50_title": "Gewohnheiten · 50 Ergebnisse",
"achievement_habits_completions_50_description": "Erfasse 50 unterschiedliche Ergebnisse: ein erfüllter Gewohnheitstag.",
"achievement_habits_completions_100_title": "Gewohnheiten · 100 Ergebnisse",
"achievement_habits_completions_100_description": "Erfasse 100 unterschiedliche Ergebnisse: ein erfüllter Gewohnheitstag.",
"achievement_habits_completions_500_title": "Gewohnheiten · 500 Ergebnisse",
"achievement_habits_completions_500_description": "Erfasse 500 unterschiedliche Ergebnisse: ein erfüllter Gewohnheitstag.",
"achievement_habits_single_scheduled_days_7_title": "Gewohnheiten · 7 geplante Tage",
"achievement_habits_single_scheduled_days_7_description": "Erfülle für eine Gewohnheit 7 geplante Tage: ein erfüllter geplanter Gewohnheitstag.",
"achievement_habits_single_scheduled_days_30_title": "Gewohnheiten · 30 geplante Tage",
"achievement_habits_single_scheduled_days_30_description": "Erfülle für eine Gewohnheit 30 geplante Tage: ein erfüllter geplanter Gewohnheitstag.",
"achievement_habits_single_scheduled_days_100_title": "Gewohnheiten · 100 geplante Tage",
"achievement_habits_single_scheduled_days_100_description": "Erfülle für eine Gewohnheit 100 geplante Tage: ein erfüllter geplanter Gewohnheitstag.",
"achievement_habits_counter_target_1_title": "Gewohnheiten · 1 Ergebnisse",
"achievement_habits_counter_target_1_description": "Erfasse 1 unterschiedliche Ergebnisse: ein erreichtes Zählziel einer Gewohnheit.",
"achievement_habits_question_answer_1_title": "Gewohnheiten · 1 Ergebnisse",
"achievement_habits_question_answer_1_description": "Erfasse 1 unterschiedliche Ergebnisse: eine echte gespeicherte Antwort auf eine Gewohnheitsfrage.",
"achievement_habits_ended_span_1_title": "Gewohnheiten · 1 Ergebnisse",
"achievement_habits_ended_span_1_description": "Erfasse 1 unterschiedliche Ergebnisse: eine gespeicherte Gewohnheitszeitspanne mit gültigem Beginn und Ende."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_habits_created_1_title": "An intention takes shape",
"achievement_habits_created_1_description": "Record 1 distinct results: a valid saved habit.",
"achievement_habits_days_1_title": "First habit day",
"achievement_habits_days_1_description": "Do this on 1 distinct dates: a completed habit day.",
"achievement_habits_days_3_title": "Three habit days",
"achievement_habits_days_3_description": "Do this on 3 distinct dates: a completed habit day.",
"achievement_habits_days_7_title": "Seven habit days",
"achievement_habits_days_7_description": "Do this on 7 distinct dates: a completed habit day.",
"achievement_habits_days_14_title": "Fourteen habit days",
"achievement_habits_days_14_description": "Do this on 14 distinct dates: a completed habit day.",
"achievement_habits_days_30_title": "Thirty habit days",
"achievement_habits_days_30_description": "Do this on 30 distinct dates: a completed habit day.",
"achievement_habits_days_60_title": "Sixty habit days",
"achievement_habits_days_60_description": "Do this on 60 distinct dates: a completed habit day.",
"achievement_habits_days_100_title": "One hundred habit days",
"achievement_habits_days_100_description": "Do this on 100 distinct dates: a completed habit day.",
"achievement_habits_days_180_title": "A habit history",
"achievement_habits_days_180_description": "Do this on 180 distinct dates: a completed habit day.",
"achievement_habits_days_365_title": "A year of habit days",
"achievement_habits_days_365_description": "Do this on 365 distinct dates: a completed habit day.",
"achievement_habits_completions_10_title": "Ten completions",
"achievement_habits_completions_10_description": "Record 10 distinct results: a completed habit day.",
"achievement_habits_completions_50_title": "Fifty completions",
"achievement_habits_completions_50_description": "Record 50 distinct results: a completed habit day.",
"achievement_habits_completions_100_title": "One hundred completions",
"achievement_habits_completions_100_description": "Record 100 distinct results: a completed habit day.",
"achievement_habits_completions_500_title": "Five hundred completions",
"achievement_habits_completions_500_description": "Record 500 distinct results: a completed habit day.",
"achievement_habits_single_scheduled_days_7_title": "One habit, seven times",
"achievement_habits_single_scheduled_days_7_description": "For one habit, do this on 7 scheduled dates: a completed scheduled habit day.",
"achievement_habits_single_scheduled_days_30_title": "One habit, thirty times",
"achievement_habits_single_scheduled_days_30_description": "For one habit, do this on 30 scheduled dates: a completed scheduled habit day.",
"achievement_habits_single_scheduled_days_100_title": "One habit, one hundred times",
"achievement_habits_single_scheduled_days_100_description": "For one habit, do this on 100 scheduled dates: a completed scheduled habit day.",
"achievement_habits_counter_target_1_title": "A target met",
"achievement_habits_counter_target_1_description": "Record 1 distinct results: a counting habit’s target reached.",
"achievement_habits_question_answer_1_title": "An answer recorded",
"achievement_habits_question_answer_1_description": "Record 1 distinct results: a genuine saved answer to a habit question.",
"achievement_habits_ended_span_1_title": "A span recorded",
"achievement_habits_ended_span_1_description": "Record 1 distinct results: a saved habit span with a valid start and end."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_habits_created_1_title": "Hábitos · 1 resultados",
"achievement_habits_created_1_description": "Registra 1 resultados distintos: un hábito válido guardado.",
"achievement_habits_days_1_title": "Hábitos · 1 días",
"achievement_habits_days_1_description": "Realiza esto en 1 fechas distintas: un día de hábito completado.",
"achievement_habits_days_3_title": "Hábitos · 3 días",
"achievement_habits_days_3_description": "Realiza esto en 3 fechas distintas: un día de hábito completado.",
"achievement_habits_days_7_title": "Hábitos · 7 días",
"achievement_habits_days_7_description": "Realiza esto en 7 fechas distintas: un día de hábito completado.",
"achievement_habits_days_14_title": "Hábitos · 14 días",
"achievement_habits_days_14_description": "Realiza esto en 14 fechas distintas: un día de hábito completado.",
"achievement_habits_days_30_title": "Hábitos · 30 días",
"achievement_habits_days_30_description": "Realiza esto en 30 fechas distintas: un día de hábito completado.",
"achievement_habits_days_60_title": "Hábitos · 60 días",
"achievement_habits_days_60_description": "Realiza esto en 60 fechas distintas: un día de hábito completado.",
"achievement_habits_days_100_title": "Hábitos · 100 días",
"achievement_habits_days_100_description": "Realiza esto en 100 fechas distintas: un día de hábito completado.",
"achievement_habits_days_180_title": "Hábitos · 180 días",
"achievement_habits_days_180_description": "Realiza esto en 180 fechas distintas: un día de hábito completado.",
"achievement_habits_days_365_title": "Hábitos · 365 días",
"achievement_habits_days_365_description": "Realiza esto en 365 fechas distintas: un día de hábito completado.",
"achievement_habits_completions_10_title": "Hábitos · 10 resultados",
"achievement_habits_completions_10_description": "Registra 10 resultados distintos: un día de hábito completado.",
"achievement_habits_completions_50_title": "Hábitos · 50 resultados",
"achievement_habits_completions_50_description": "Registra 50 resultados distintos: un día de hábito completado.",
"achievement_habits_completions_100_title": "Hábitos · 100 resultados",
"achievement_habits_completions_100_description": "Registra 100 resultados distintos: un día de hábito completado.",
"achievement_habits_completions_500_title": "Hábitos · 500 resultados",
"achievement_habits_completions_500_description": "Registra 500 resultados distintos: un día de hábito completado.",
"achievement_habits_single_scheduled_days_7_title": "Hábitos · 7 fechas programadas",
"achievement_habits_single_scheduled_days_7_description": "Para un mismo hábito, completa 7 fechas programadas: un día programado de hábito completado.",
"achievement_habits_single_scheduled_days_30_title": "Hábitos · 30 fechas programadas",
"achievement_habits_single_scheduled_days_30_description": "Para un mismo hábito, completa 30 fechas programadas: un día programado de hábito completado.",
"achievement_habits_single_scheduled_days_100_title": "Hábitos · 100 fechas programadas",
"achievement_habits_single_scheduled_days_100_description": "Para un mismo hábito, completa 100 fechas programadas: un día programado de hábito completado.",
"achievement_habits_counter_target_1_title": "Hábitos · 1 resultados",
"achievement_habits_counter_target_1_description": "Registra 1 resultados distintos: la meta de un hábito de conteo alcanzada.",
"achievement_habits_question_answer_1_title": "Hábitos · 1 resultados",
"achievement_habits_question_answer_1_description": "Registra 1 resultados distintos: una respuesta real guardada a una pregunta de un hábito.",
"achievement_habits_ended_span_1_title": "Hábitos · 1 resultados",
"achievement_habits_ended_span_1_description": "Registra 1 resultados distintos: un intervalo de hábito guardado con inicio y fin válidos."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_habits_created_1_title": "Habitudes · 1 résultats",
"achievement_habits_created_1_description": "Enregistrez 1 résultats distincts : une habitude valide enregistrée.",
"achievement_habits_days_1_title": "Habitudes · 1 jours",
"achievement_habits_days_1_description": "Faites ceci à 1 dates distinctes : une journée d’habitude accomplie.",
"achievement_habits_days_3_title": "Habitudes · 3 jours",
"achievement_habits_days_3_description": "Faites ceci à 3 dates distinctes : une journée d’habitude accomplie.",
"achievement_habits_days_7_title": "Habitudes · 7 jours",
"achievement_habits_days_7_description": "Faites ceci à 7 dates distinctes : une journée d’habitude accomplie.",
"achievement_habits_days_14_title": "Habitudes · 14 jours",
"achievement_habits_days_14_description": "Faites ceci à 14 dates distinctes : une journée d’habitude accomplie.",
"achievement_habits_days_30_title": "Habitudes · 30 jours",
"achievement_habits_days_30_description": "Faites ceci à 30 dates distinctes : une journée d’habitude accomplie.",
"achievement_habits_days_60_title": "Habitudes · 60 jours",
"achievement_habits_days_60_description": "Faites ceci à 60 dates distinctes : une journée d’habitude accomplie.",
"achievement_habits_days_100_title": "Habitudes · 100 jours",
"achievement_habits_days_100_description": "Faites ceci à 100 dates distinctes : une journée d’habitude accomplie.",
"achievement_habits_days_180_title": "Habitudes · 180 jours",
"achievement_habits_days_180_description": "Faites ceci à 180 dates distinctes : une journée d’habitude accomplie.",
"achievement_habits_days_365_title": "Habitudes · 365 jours",
"achievement_habits_days_365_description": "Faites ceci à 365 dates distinctes : une journée d’habitude accomplie.",
"achievement_habits_completions_10_title": "Habitudes · 10 résultats",
"achievement_habits_completions_10_description": "Enregistrez 10 résultats distincts : une journée d’habitude accomplie.",
"achievement_habits_completions_50_title": "Habitudes · 50 résultats",
"achievement_habits_completions_50_description": "Enregistrez 50 résultats distincts : une journée d’habitude accomplie.",
"achievement_habits_completions_100_title": "Habitudes · 100 résultats",
"achievement_habits_completions_100_description": "Enregistrez 100 résultats distincts : une journée d’habitude accomplie.",
"achievement_habits_completions_500_title": "Habitudes · 500 résultats",
"achievement_habits_completions_500_description": "Enregistrez 500 résultats distincts : une journée d’habitude accomplie.",
"achievement_habits_single_scheduled_days_7_title": "Habitudes · 7 dates prévues",
"achievement_habits_single_scheduled_days_7_description": "Pour une même habitude, accomplissez 7 dates prévues : une journée prévue d’habitude accomplie.",
"achievement_habits_single_scheduled_days_30_title": "Habitudes · 30 dates prévues",
"achievement_habits_single_scheduled_days_30_description": "Pour une même habitude, accomplissez 30 dates prévues : une journée prévue d’habitude accomplie.",
"achievement_habits_single_scheduled_days_100_title": "Habitudes · 100 dates prévues",
"achievement_habits_single_scheduled_days_100_description": "Pour une même habitude, accomplissez 100 dates prévues : une journée prévue d’habitude accomplie.",
"achievement_habits_counter_target_1_title": "Habitudes · 1 résultats",
"achievement_habits_counter_target_1_description": "Enregistrez 1 résultats distincts : l’objectif atteint d’une habitude comptée.",
"achievement_habits_question_answer_1_title": "Habitudes · 1 résultats",
"achievement_habits_question_answer_1_description": "Enregistrez 1 résultats distincts : une vraie réponse enregistrée à une question d’habitude.",
"achievement_habits_ended_span_1_title": "Habitudes · 1 résultats",
"achievement_habits_ended_span_1_description": "Enregistrez 1 résultats distincts : une durée d’habitude enregistrée avec début et fin valides."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_habits_created_1_title": "習慣 · 1 件の結果",
"achievement_habits_created_1_description": "異なる結果を1件記録する:有効な保存済みの習慣。",
"achievement_habits_days_1_title": "習慣 · 1 日",
"achievement_habits_days_1_description": "異なる1日で行う:習慣を達成した日。",
"achievement_habits_days_3_title": "習慣 · 3 日",
"achievement_habits_days_3_description": "異なる3日で行う:習慣を達成した日。",
"achievement_habits_days_7_title": "習慣 · 7 日",
"achievement_habits_days_7_description": "異なる7日で行う:習慣を達成した日。",
"achievement_habits_days_14_title": "習慣 · 14 日",
"achievement_habits_days_14_description": "異なる14日で行う:習慣を達成した日。",
"achievement_habits_days_30_title": "習慣 · 30 日",
"achievement_habits_days_30_description": "異なる30日で行う:習慣を達成した日。",
"achievement_habits_days_60_title": "習慣 · 60 日",
"achievement_habits_days_60_description": "異なる60日で行う:習慣を達成した日。",
"achievement_habits_days_100_title": "習慣 · 100 日",
"achievement_habits_days_100_description": "異なる100日で行う:習慣を達成した日。",
"achievement_habits_days_180_title": "習慣 · 180 日",
"achievement_habits_days_180_description": "異なる180日で行う:習慣を達成した日。",
"achievement_habits_days_365_title": "習慣 · 365 日",
"achievement_habits_days_365_description": "異なる365日で行う:習慣を達成した日。",
"achievement_habits_completions_10_title": "習慣 · 10 件の結果",
"achievement_habits_completions_10_description": "異なる結果を10件記録する:習慣を達成した日。",
"achievement_habits_completions_50_title": "習慣 · 50 件の結果",
"achievement_habits_completions_50_description": "異なる結果を50件記録する:習慣を達成した日。",
"achievement_habits_completions_100_title": "習慣 · 100 件の結果",
"achievement_habits_completions_100_description": "異なる結果を100件記録する:習慣を達成した日。",
"achievement_habits_completions_500_title": "習慣 · 500 件の結果",
"achievement_habits_completions_500_description": "異なる結果を500件記録する:習慣を達成した日。",
"achievement_habits_single_scheduled_days_7_title": "習慣 · 7 予定日",
"achievement_habits_single_scheduled_days_7_description": "同じ習慣で予定された7日を達成する:予定された日に達成した習慣。",
"achievement_habits_single_scheduled_days_30_title": "習慣 · 30 予定日",
"achievement_habits_single_scheduled_days_30_description": "同じ習慣で予定された30日を達成する:予定された日に達成した習慣。",
"achievement_habits_single_scheduled_days_100_title": "習慣 · 100 予定日",
"achievement_habits_single_scheduled_days_100_description": "同じ習慣で予定された100日を達成する:予定された日に達成した習慣。",
"achievement_habits_counter_target_1_title": "習慣 · 1 件の結果",
"achievement_habits_counter_target_1_description": "異なる結果を1件記録する:回数を数える習慣で達成した自分の目標。",
"achievement_habits_question_answer_1_title": "習慣 · 1 件の結果",
"achievement_habits_question_answer_1_description": "異なる結果を1件記録する:習慣の質問に保存した実際の回答。",
"achievement_habits_ended_span_1_title": "習慣 · 1 件の結果",
"achievement_habits_ended_span_1_description": "異なる結果を1件記録する:開始と終了が有効な保存済みの習慣の時間記録。"
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_habits_created_1_title": "습관 · 1 개 결과",
"achievement_habits_created_1_description": "서로 다른 결과를 1개 기록하세요: 유효하게 저장한 습관.",
"achievement_habits_days_1_title": "습관 · 1 일",
"achievement_habits_days_1_description": "서로 다른 1일에 수행하세요: 습관을 완료한 날.",
"achievement_habits_days_3_title": "습관 · 3 일",
"achievement_habits_days_3_description": "서로 다른 3일에 수행하세요: 습관을 완료한 날.",
"achievement_habits_days_7_title": "습관 · 7 일",
"achievement_habits_days_7_description": "서로 다른 7일에 수행하세요: 습관을 완료한 날.",
"achievement_habits_days_14_title": "습관 · 14 일",
"achievement_habits_days_14_description": "서로 다른 14일에 수행하세요: 습관을 완료한 날.",
"achievement_habits_days_30_title": "습관 · 30 일",
"achievement_habits_days_30_description": "서로 다른 30일에 수행하세요: 습관을 완료한 날.",
"achievement_habits_days_60_title": "습관 · 60 일",
"achievement_habits_days_60_description": "서로 다른 60일에 수행하세요: 습관을 완료한 날.",
"achievement_habits_days_100_title": "습관 · 100 일",
"achievement_habits_days_100_description": "서로 다른 100일에 수행하세요: 습관을 완료한 날.",
"achievement_habits_days_180_title": "습관 · 180 일",
"achievement_habits_days_180_description": "서로 다른 180일에 수행하세요: 습관을 완료한 날.",
"achievement_habits_days_365_title": "습관 · 365 일",
"achievement_habits_days_365_description": "서로 다른 365일에 수행하세요: 습관을 완료한 날.",
"achievement_habits_completions_10_title": "습관 · 10 개 결과",
"achievement_habits_completions_10_description": "서로 다른 결과를 10개 기록하세요: 습관을 완료한 날.",
"achievement_habits_completions_50_title": "습관 · 50 개 결과",
"achievement_habits_completions_50_description": "서로 다른 결과를 50개 기록하세요: 습관을 완료한 날.",
"achievement_habits_completions_100_title": "습관 · 100 개 결과",
"achievement_habits_completions_100_description": "서로 다른 결과를 100개 기록하세요: 습관을 완료한 날.",
"achievement_habits_completions_500_title": "습관 · 500 개 결과",
"achievement_habits_completions_500_description": "서로 다른 결과를 500개 기록하세요: 습관을 완료한 날.",
"achievement_habits_single_scheduled_days_7_title": "습관 · 7 예정일",
"achievement_habits_single_scheduled_days_7_description": "같은 습관에서 예정된 7일을 완료하세요: 예정된 날짜에 완료한 습관.",
"achievement_habits_single_scheduled_days_30_title": "습관 · 30 예정일",
"achievement_habits_single_scheduled_days_30_description": "같은 습관에서 예정된 30일을 완료하세요: 예정된 날짜에 완료한 습관.",
"achievement_habits_single_scheduled_days_100_title": "습관 · 100 예정일",
"achievement_habits_single_scheduled_days_100_description": "같은 습관에서 예정된 100일을 완료하세요: 예정된 날짜에 완료한 습관.",
"achievement_habits_counter_target_1_title": "습관 · 1 개 결과",
"achievement_habits_counter_target_1_description": "서로 다른 결과를 1개 기록하세요: 횟수를 세는 습관에서 달성한 자신의 목표.",
"achievement_habits_question_answer_1_title": "습관 · 1 개 결과",
"achievement_habits_question_answer_1_description": "서로 다른 결과를 1개 기록하세요: 습관 질문에 저장한 실제 답변.",
"achievement_habits_ended_span_1_title": "습관 · 1 개 결과",
"achievement_habits_ended_span_1_description": "서로 다른 결과를 1개 기록하세요: 유효한 시작과 종료가 있는 저장된 습관 시간 기록."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_habits_created_1_title": "Hábitos · 1 resultados",
"achievement_habits_created_1_description": "Registe 1 resultados distintos: um hábito válido guardado.",
"achievement_habits_days_1_title": "Hábitos · 1 dias",
"achievement_habits_days_1_description": "Faça isto em 1 datas distintas: um dia de hábito concluído.",
"achievement_habits_days_3_title": "Hábitos · 3 dias",
"achievement_habits_days_3_description": "Faça isto em 3 datas distintas: um dia de hábito concluído.",
"achievement_habits_days_7_title": "Hábitos · 7 dias",
"achievement_habits_days_7_description": "Faça isto em 7 datas distintas: um dia de hábito concluído.",
"achievement_habits_days_14_title": "Hábitos · 14 dias",
"achievement_habits_days_14_description": "Faça isto em 14 datas distintas: um dia de hábito concluído.",
"achievement_habits_days_30_title": "Hábitos · 30 dias",
"achievement_habits_days_30_description": "Faça isto em 30 datas distintas: um dia de hábito concluído.",
"achievement_habits_days_60_title": "Hábitos · 60 dias",
"achievement_habits_days_60_description": "Faça isto em 60 datas distintas: um dia de hábito concluído.",
"achievement_habits_days_100_title": "Hábitos · 100 dias",
"achievement_habits_days_100_description": "Faça isto em 100 datas distintas: um dia de hábito concluído.",
"achievement_habits_days_180_title": "Hábitos · 180 dias",
"achievement_habits_days_180_description": "Faça isto em 180 datas distintas: um dia de hábito concluído.",
"achievement_habits_days_365_title": "Hábitos · 365 dias",
"achievement_habits_days_365_description": "Faça isto em 365 datas distintas: um dia de hábito concluído.",
"achievement_habits_completions_10_title": "Hábitos · 10 resultados",
"achievement_habits_completions_10_description": "Registe 10 resultados distintos: um dia de hábito concluído.",
"achievement_habits_completions_50_title": "Hábitos · 50 resultados",
"achievement_habits_completions_50_description": "Registe 50 resultados distintos: um dia de hábito concluído.",
"achievement_habits_completions_100_title": "Hábitos · 100 resultados",
"achievement_habits_completions_100_description": "Registe 100 resultados distintos: um dia de hábito concluído.",
"achievement_habits_completions_500_title": "Hábitos · 500 resultados",
"achievement_habits_completions_500_description": "Registe 500 resultados distintos: um dia de hábito concluído.",
"achievement_habits_single_scheduled_days_7_title": "Hábitos · 7 datas programadas",
"achievement_habits_single_scheduled_days_7_description": "Para um mesmo hábito, conclua 7 datas programadas: um dia programado de hábito concluído.",
"achievement_habits_single_scheduled_days_30_title": "Hábitos · 30 datas programadas",
"achievement_habits_single_scheduled_days_30_description": "Para um mesmo hábito, conclua 30 datas programadas: um dia programado de hábito concluído.",
"achievement_habits_single_scheduled_days_100_title": "Hábitos · 100 datas programadas",
"achievement_habits_single_scheduled_days_100_description": "Para um mesmo hábito, conclua 100 datas programadas: um dia programado de hábito concluído.",
"achievement_habits_counter_target_1_title": "Hábitos · 1 resultados",
"achievement_habits_counter_target_1_description": "Registe 1 resultados distintos: a meta de um hábito de contagem atingida.",
"achievement_habits_question_answer_1_title": "Hábitos · 1 resultados",
"achievement_habits_question_answer_1_description": "Registe 1 resultados distintos: uma resposta real guardada a uma pergunta de hábito.",
"achievement_habits_ended_span_1_title": "Hábitos · 1 resultados",
"achievement_habits_ended_span_1_description": "Registe 1 resultados distintos: um intervalo de hábito guardado com início e fim válidos."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_habits_created_1_title": "Привычки · 1 результатов",
"achievement_habits_created_1_description": "Запишите 1 разных результатов: сохранённая корректная привычка.",
"achievement_habits_days_1_title": "Привычки · 1 дней",
"achievement_habits_days_1_description": "Сделайте это в 1 разных датах: завершённый день привычки.",
"achievement_habits_days_3_title": "Привычки · 3 дней",
"achievement_habits_days_3_description": "Сделайте это в 3 разных датах: завершённый день привычки.",
"achievement_habits_days_7_title": "Привычки · 7 дней",
"achievement_habits_days_7_description": "Сделайте это в 7 разных датах: завершённый день привычки.",
"achievement_habits_days_14_title": "Привычки · 14 дней",
"achievement_habits_days_14_description": "Сделайте это в 14 разных датах: завершённый день привычки.",
"achievement_habits_days_30_title": "Привычки · 30 дней",
"achievement_habits_days_30_description": "Сделайте это в 30 разных датах: завершённый день привычки.",
"achievement_habits_days_60_title": "Привычки · 60 дней",
"achievement_habits_days_60_description": "Сделайте это в 60 разных датах: завершённый день привычки.",
"achievement_habits_days_100_title": "Привычки · 100 дней",
"achievement_habits_days_100_description": "Сделайте это в 100 разных датах: завершённый день привычки.",
"achievement_habits_days_180_title": "Привычки · 180 дней",
"achievement_habits_days_180_description": "Сделайте это в 180 разных датах: завершённый день привычки.",
"achievement_habits_days_365_title": "Привычки · 365 дней",
"achievement_habits_days_365_description": "Сделайте это в 365 разных датах: завершённый день привычки.",
"achievement_habits_completions_10_title": "Привычки · 10 результатов",
"achievement_habits_completions_10_description": "Запишите 10 разных результатов: завершённый день привычки.",
"achievement_habits_completions_50_title": "Привычки · 50 результатов",
"achievement_habits_completions_50_description": "Запишите 50 разных результатов: завершённый день привычки.",
"achievement_habits_completions_100_title": "Привычки · 100 результатов",
"achievement_habits_completions_100_description": "Запишите 100 разных результатов: завершённый день привычки.",
"achievement_habits_completions_500_title": "Привычки · 500 результатов",
"achievement_habits_completions_500_description": "Запишите 500 разных результатов: завершённый день привычки.",
"achievement_habits_single_scheduled_days_7_title": "Привычки · 7 запланированных дат",
"achievement_habits_single_scheduled_days_7_description": "Для одной привычки выполните 7 запланированных дат: завершённый запланированный день привычки.",
"achievement_habits_single_scheduled_days_30_title": "Привычки · 30 запланированных дат",
"achievement_habits_single_scheduled_days_30_description": "Для одной привычки выполните 30 запланированных дат: завершённый запланированный день привычки.",
"achievement_habits_single_scheduled_days_100_title": "Привычки · 100 запланированных дат",
"achievement_habits_single_scheduled_days_100_description": "Для одной привычки выполните 100 запланированных дат: завершённый запланированный день привычки.",
"achievement_habits_counter_target_1_title": "Привычки · 1 результатов",
"achievement_habits_counter_target_1_description": "Запишите 1 разных результатов: достигнутая собственная цель привычки со счётчиком.",
"achievement_habits_question_answer_1_title": "Привычки · 1 результатов",
"achievement_habits_question_answer_1_description": "Запишите 1 разных результатов: сохранённый настоящий ответ на вопрос привычки.",
"achievement_habits_ended_span_1_title": "Привычки · 1 результатов",
"achievement_habits_ended_span_1_description": "Запишите 1 разных результатов: сохранённый отрезок привычки с корректными началом и концом."
}
-42
View File
@@ -1,42 +0,0 @@
{
"achievement_habits_created_1_title": "习惯 · 1 个结果",
"achievement_habits_created_1_description": "记录1个不同的结果:有效且已保存的习惯。",
"achievement_habits_days_1_title": "习惯 · 1 天",
"achievement_habits_days_1_description": "在1个不同日期进行:已完成习惯的日期。",
"achievement_habits_days_3_title": "习惯 · 3 天",
"achievement_habits_days_3_description": "在3个不同日期进行:已完成习惯的日期。",
"achievement_habits_days_7_title": "习惯 · 7 天",
"achievement_habits_days_7_description": "在7个不同日期进行:已完成习惯的日期。",
"achievement_habits_days_14_title": "习惯 · 14 天",
"achievement_habits_days_14_description": "在14个不同日期进行:已完成习惯的日期。",
"achievement_habits_days_30_title": "习惯 · 30 天",
"achievement_habits_days_30_description": "在30个不同日期进行:已完成习惯的日期。",
"achievement_habits_days_60_title": "习惯 · 60 天",
"achievement_habits_days_60_description": "在60个不同日期进行:已完成习惯的日期。",
"achievement_habits_days_100_title": "习惯 · 100 天",
"achievement_habits_days_100_description": "在100个不同日期进行:已完成习惯的日期。",
"achievement_habits_days_180_title": "习惯 · 180 天",
"achievement_habits_days_180_description": "在180个不同日期进行:已完成习惯的日期。",
"achievement_habits_days_365_title": "习惯 · 365 天",
"achievement_habits_days_365_description": "在365个不同日期进行:已完成习惯的日期。",
"achievement_habits_completions_10_title": "习惯 · 10 个结果",
"achievement_habits_completions_10_description": "记录10个不同的结果:已完成习惯的日期。",
"achievement_habits_completions_50_title": "习惯 · 50 个结果",
"achievement_habits_completions_50_description": "记录50个不同的结果:已完成习惯的日期。",
"achievement_habits_completions_100_title": "习惯 · 100 个结果",
"achievement_habits_completions_100_description": "记录100个不同的结果:已完成习惯的日期。",
"achievement_habits_completions_500_title": "习惯 · 500 个结果",
"achievement_habits_completions_500_description": "记录500个不同的结果:已完成习惯的日期。",
"achievement_habits_single_scheduled_days_7_title": "习惯 · 7 个计划日期",
"achievement_habits_single_scheduled_days_7_description": "同一习惯在7个计划日期完成:在计划日期完成的习惯。",
"achievement_habits_single_scheduled_days_30_title": "习惯 · 30 个计划日期",
"achievement_habits_single_scheduled_days_30_description": "同一习惯在30个计划日期完成:在计划日期完成的习惯。",
"achievement_habits_single_scheduled_days_100_title": "习惯 · 100 个计划日期",
"achievement_habits_single_scheduled_days_100_description": "同一习惯在100个计划日期完成:在计划日期完成的习惯。",
"achievement_habits_counter_target_1_title": "习惯 · 1 个结果",
"achievement_habits_counter_target_1_description": "记录1个不同的结果:计数习惯中已达到的个人目标。",
"achievement_habits_question_answer_1_title": "习惯 · 1 个结果",
"achievement_habits_question_answer_1_description": "记录1个不同的结果:已保存的习惯问题真实回答。",
"achievement_habits_ended_span_1_title": "习惯 · 1 个结果",
"achievement_habits_ended_span_1_description": "记录1个不同的结果:开始与结束均有效的已保存习惯时间记录。"
}
-326
View File
@@ -1,326 +0,0 @@
{
"schema": 1,
"app": "inbe.habits",
"achievements": [
{
"id": "habits.created.1",
"group": "habits",
"metric": "habit.created",
"rule": "count",
"target": 1,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_created_1_title",
"description_key": "achievement_habits_created_1_description",
"title": "An intention takes shape",
"description": "Save 1 valid habit.",
"icon": "assets/habits/icons/habits.created.1.shape",
"icon_source": "mingcute_regular_aiming"
},
{
"id": "habits.days.1",
"group": "habits",
"metric": "habit.completed",
"rule": "days",
"target": 1,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_days_1_title",
"description_key": "achievement_habits_days_1_description",
"title": "First habit day",
"description": "Complete a habit on 1 distinct day.",
"icon": "assets/habits/icons/habits.days.1.shape",
"icon_source": "mingcute_regular_foot"
},
{
"id": "habits.days.3",
"group": "habits",
"metric": "habit.completed",
"rule": "days",
"target": 3,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_days_3_title",
"description_key": "achievement_habits_days_3_description",
"title": "Three habit days",
"description": "Complete habits on 3 distinct days.",
"icon": "assets/habits/icons/habits.days.3.shape",
"icon_source": "mingcute_regular_flag_1"
},
{
"id": "habits.days.7",
"group": "habits",
"metric": "habit.completed",
"rule": "days",
"target": 7,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_days_7_title",
"description_key": "achievement_habits_days_7_description",
"title": "Seven habit days",
"description": "Complete habits on 7 distinct days.",
"icon": "assets/habits/icons/habits.days.7.shape",
"icon_source": "mingcute_regular_flag_2"
},
{
"id": "habits.days.14",
"group": "habits",
"metric": "habit.completed",
"rule": "days",
"target": 14,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_days_14_title",
"description_key": "achievement_habits_days_14_description",
"title": "Fourteen habit days",
"description": "Complete habits on 14 distinct days.",
"icon": "assets/habits/icons/habits.days.14.shape",
"icon_source": "mingcute_regular_flag_3"
},
{
"id": "habits.days.30",
"group": "habits",
"metric": "habit.completed",
"rule": "days",
"target": 30,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_days_30_title",
"description_key": "achievement_habits_days_30_description",
"title": "Thirty habit days",
"description": "Complete habits on 30 distinct days.",
"icon": "assets/habits/icons/habits.days.30.shape",
"icon_source": "mingcute_regular_flag_4"
},
{
"id": "habits.days.60",
"group": "habits",
"metric": "habit.completed",
"rule": "days",
"target": 60,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_days_60_title",
"description_key": "achievement_habits_days_60_description",
"title": "Sixty habit days",
"description": "Complete habits on 60 distinct days.",
"icon": "assets/habits/icons/habits.days.60.shape",
"icon_source": "mingcute_regular_tree_2"
},
{
"id": "habits.days.100",
"group": "habits",
"metric": "habit.completed",
"rule": "days",
"target": 100,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_days_100_title",
"description_key": "achievement_habits_days_100_description",
"title": "One hundred habit days",
"description": "Complete habits on 100 distinct days.",
"icon": "assets/habits/icons/habits.days.100.shape",
"icon_source": "mingcute_regular_tree_3"
},
{
"id": "habits.days.180",
"group": "habits",
"metric": "habit.completed",
"rule": "days",
"target": 180,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_days_180_title",
"description_key": "achievement_habits_days_180_description",
"title": "A habit history",
"description": "Complete habits on 180 distinct days.",
"icon": "assets/habits/icons/habits.days.180.shape",
"icon_source": "mingcute_regular_tree_4"
},
{
"id": "habits.days.365",
"group": "habits",
"metric": "habit.completed",
"rule": "days",
"target": 365,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_days_365_title",
"description_key": "achievement_habits_days_365_description",
"title": "A year of habit days",
"description": "Complete habits on 365 distinct days.",
"icon": "assets/habits/icons/habits.days.365.shape",
"icon_source": "mingcute_regular_mountain_2"
},
{
"id": "habits.completions.10",
"group": "habits",
"metric": "habit.completed",
"rule": "count",
"target": 10,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_completions_10_title",
"description_key": "achievement_habits_completions_10_description",
"title": "Ten completions",
"description": "Record 10 distinct habit/date completions.",
"icon": "assets/habits/icons/habits.completions.10.shape",
"icon_source": "mingcute_regular_check"
},
{
"id": "habits.completions.50",
"group": "habits",
"metric": "habit.completed",
"rule": "count",
"target": 50,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_completions_50_title",
"description_key": "achievement_habits_completions_50_description",
"title": "Fifty completions",
"description": "Record 50 distinct habit/date completions.",
"icon": "assets/habits/icons/habits.completions.50.shape",
"icon_source": "mingcute_regular_check_2"
},
{
"id": "habits.completions.100",
"group": "habits",
"metric": "habit.completed",
"rule": "count",
"target": 100,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_completions_100_title",
"description_key": "achievement_habits_completions_100_description",
"title": "One hundred completions",
"description": "Record 100 distinct habit/date completions.",
"icon": "assets/habits/icons/habits.completions.100.shape",
"icon_source": "mingcute_regular_checks"
},
{
"id": "habits.completions.500",
"group": "habits",
"metric": "habit.completed",
"rule": "count",
"target": 500,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_completions_500_title",
"description_key": "achievement_habits_completions_500_description",
"title": "Five hundred completions",
"description": "Record 500 distinct habit/date completions.",
"icon": "assets/habits/icons/habits.completions.500.shape",
"icon_source": "mingcute_regular_check_circle"
},
{
"id": "habits.single_scheduled_days.7",
"group": "habits",
"metric": "habit.scheduled",
"rule": "max_days",
"target": 7,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_single_scheduled_days_7_title",
"description_key": "achievement_habits_single_scheduled_days_7_description",
"title": "One habit, seven times",
"description": "Complete the same habit on 7 of its scheduled dates.",
"icon": "assets/habits/icons/habits.single_scheduled_days.7.shape",
"icon_source": "mingcute_regular_calendar_day"
},
{
"id": "habits.single_scheduled_days.30",
"group": "habits",
"metric": "habit.scheduled",
"rule": "max_days",
"target": 30,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_single_scheduled_days_30_title",
"description_key": "achievement_habits_single_scheduled_days_30_description",
"title": "One habit, thirty times",
"description": "Complete the same habit on 30 of its scheduled dates.",
"icon": "assets/habits/icons/habits.single_scheduled_days.30.shape",
"icon_source": "mingcute_regular_calendar_add"
},
{
"id": "habits.single_scheduled_days.100",
"group": "habits",
"metric": "habit.scheduled",
"rule": "max_days",
"target": 100,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_single_scheduled_days_100_title",
"description_key": "achievement_habits_single_scheduled_days_100_description",
"title": "One habit, one hundred times",
"description": "Complete the same habit on 100 of its scheduled dates.",
"icon": "assets/habits/icons/habits.single_scheduled_days.100.shape",
"icon_source": "mingcute_regular_history"
},
{
"id": "habits.counter_target.1",
"group": "habits",
"metric": "habit.counter",
"rule": "count",
"target": 1,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_counter_target_1_title",
"description_key": "achievement_habits_counter_target_1_description",
"title": "A target met",
"description": "Reach a counting habit's own target on 1 date.",
"icon": "assets/habits/icons/habits.counter_target.1.shape",
"icon_source": "mingcute_regular_aiming_2"
},
{
"id": "habits.question_answer.1",
"group": "habits",
"metric": "habit.answer",
"rule": "count",
"target": 1,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_question_answer_1_title",
"description_key": "achievement_habits_question_answer_1_description",
"title": "An answer recorded",
"description": "Save 1 genuine answer to a habit question.",
"icon": "assets/habits/icons/habits.question_answer.1.shape",
"icon_source": "mingcute_regular_question"
},
{
"id": "habits.ended_span.1",
"group": "habits",
"metric": "habit.span",
"rule": "count",
"target": 1,
"variant": "",
"pack": "",
"needs": "",
"title_key": "achievement_habits_ended_span_1_title",
"description_key": "achievement_habits_ended_span_1_description",
"title": "A span recorded",
"description": "Save 1 valid span with both start and end.",
"icon": "assets/habits/icons/habits.ended_span.1.shape",
"icon_source": "mingcute_regular_time"
}
]
}
-11
View File
@@ -1,11 +0,0 @@
#import "drawing_props"
// Coins mark the important numbers, such as the balance, prices and
// rewards, in the theme's highlight. A host older than the highlight sends
// none, and the coin then takes the theme's text color.
HabitsCoinColor :: (highlight: Color, text: Color) -> Color {
if highlight.a == cast(u8)0 {
return text
}
return highlight
}
-46
View File
@@ -1,46 +0,0 @@
// Habit's editor confirmations belong to its package. The native host uses
// the same composition for older installed packages that lack these views.
#import "session"
Modal :: #import "kryon/modal";
#import "control_props"
using ButtonTone;
using ButtonEmphasis;
HabitEditorDialogProps :: struct {
session: Session
deleting: bool
title: string
message: string
keep_editing: string
save: string
discard: string
cancel: string
delete_label: string
}
HabitEditorDialog :: (props: HabitEditorDialogProps) -> Modal.ActionModalResult {
if props.deleting {
actions: [2]Modal.ActionModalAction = .[
Modal.ActionModalAction.{.label = props.cancel,
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft},
Modal.ActionModalAction.{.label = props.delete_label,
.tone = cast(ButtonTone)ButtonToneDanger,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisFilled}]
return Modal.ActionModal(props.session, Modal.ActionModalProps.{
.title = props.title, .message = props.message}, actions[:])
}
actions: [3]Modal.ActionModalAction = .[
Modal.ActionModalAction.{.label = props.keep_editing,
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft},
Modal.ActionModalAction.{.label = props.save,
.tone = cast(ButtonTone)ButtonToneAccent,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisFilled},
Modal.ActionModalAction.{.label = props.discard,
.tone = cast(ButtonTone)ButtonToneDanger,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}]
return Modal.ActionModal(props.session, Modal.ActionModalProps.{
.title = props.title, .message = props.message}, actions[:])
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+6 -54
View File
@@ -1,18 +1,8 @@
// Habits owns page transitions, linked-day actions, form validation, the
// habit list and each habit's page, the count dialog and the shop.
#import, file "../../src/apps/habits_types.zi";
#import, file "habits_view.zi";
#import, file "shop_view.zi";
#import, file "shop_stats_view.zi";
#import, file "habit_list_view.zi";
#import, file "habit_day_view.zi";
#import, file "habit_edit_view.zi";
#import, file "habit_stats_view.zi";
// Habits owns page transitions, linked-day actions and form validation.
#import, file "../../src/cells/habits_types.zi";
#import, file "../../src/habits/habit_types.zi";
#import, file "../../src/habits/habit_links.zi";
#import, file "../../src/core/types.zi";
#import, file "../../src/apps/module_types.zi";
#import "apps/node_types"
#import, file "../../src/cells/module_types.zi";
host_api :: #system_library "host_api";
ReadHabitsHost :: () -> HabitsMessage #foreign host_api;
WriteHabitsHost :: (message: HabitsMessage) #foreign host_api;
@@ -35,57 +25,20 @@ using HabitSyncMode;
HabitsApply :: (message: HabitsMessage) -> HabitsMessage {
message.succeeded = true
if message.action == HABITS_COUNT_DIALOG {
return HabitsCountView(message)
}
if message.action == HABITS_UNSAVED_DIALOG || message.action == HABITS_DELETE_DIALOG {
return HabitsEditorView(message)
}
if message.action == HABITS_SHOP_STATS_VIEW {
return HabitsShopStatisticsView(message)
}
if message.action == HABITS_SHOP_VIEW || message.action == HABITS_SHOP_BUY_DIALOG {
return HabitsShopView(message)
}
if message.action == HABITS_LIST_VIEW {
return HabitsListView(message)
}
if message.action == HABITS_DAY_VIEW {
return HabitsDayView(message)
}
if message.action == HABITS_ENTRY_VIEW {
return HabitsEntryView(message)
}
if message.action == HABITS_EDIT_VIEW {
return HabitsEditView(message)
}
if message.action == HABITS_STATS_VIEW {
return HabitsStatsView(message)
}
if message.action == HABITS_ROUTE {
message.succeeded = message.screen == ScreenHabits ||
message.screen == ScreenHabitEdit || message.screen == ScreenHabitSessionEdit
return message
}
if message.action == HABITS_DAY_ACTION {
// Days off the habit's schedule open and count like planned days.
if message.modal_active || message.index < 0 || message.index >= message.count {
if message.modal_active || message.index < 0 || message.index >= message.count ||
(!message.scheduled && !message.completed) {
return message
}
if (message.sync_activity & HABIT_LINK_DIARY) != 0 {
message.day_action = HABITS_DAY_DIARY
} else if message.counter_enabled != 0 {
if message.counter_enabled != 0 {
message.day_action = ifx message.decrement then HABITS_DAY_DECREMENT else HABITS_DAY_COUNT
} else if message.linked_count > 0 {
message.day_action = HABITS_DAY_LINKED
} else if message.span {
// A tap starts the habit's span, the next ends it; a day with
// spans opens their data.
message.day_action = HABITS_DAY_SPAN
} else if message.question_count > 0 {
// The day opens its questions, or the data of a done day,
// instead of being marked or cleared.
message.day_action = HABITS_DAY_QUESTIONS
} else {
message.day_action = HABITS_DAY_TOGGLE
}
@@ -112,7 +65,6 @@ HabitsApply :: (message: HabitsMessage) -> HabitsMessage {
message.reset_scroll = true
return message
}
message.sync_activity = HabitLinkNormalize(message.sync_activity)
message.sync_mode = ifx message.sync_activity != 0 then HABIT_SYNC_ACTIVITIES else HABIT_SYNC_NONE
message.weekdays = message.weekdays & 0xff
message.color.a = 255
-120
View File
@@ -1,120 +0,0 @@
#import "std/c_string"
#import "std/text_buffer"
#import "std/vec"
#import "std/text"
#import, file "../../src/storage/achievements.zi";
#import, file "../../src/storage/achievement_sources.zi";
#import, file "../../src/storage/sqlite.zi";
#import, file "../../src/storage/db.zi";
#import, file "../../src/storage/state.zi";
#import, file "../../src/storage/storage_core.zi";
#import, file "../../src/app/text_buffers.zi";
#import, file "../../src/habits/habit_types.zi";
#import, file "../../src/habits/habit_calendar.zi";
#import, file "../../src/habits/habit_schedule.zi";
#import, file "../../src/apps/package_files.zi";
AchievementHabitCreatedBackfill :: (offset: s32) -> s32 {
return AchievementSourceRows("habit.created", "SELECT id,0,1,'',id,0,deleted_at!=0 FROM habits WHERE user_id=?1 ORDER BY id LIMIT 128 OFFSET ?2", offset)
}
AchievementHabitDaysBackfill :: (habits: *Habits, offset: s32) -> s32 {
statement: *void
if SqlitePrepareText(storage_db_handle(),
"SELECT h.id,d.local_date,d.completed,d.count,h.counter_enabled,h.counter_target,h.deleted_at,h.span,COALESCE((SELECT c.old_value FROM habit_changes c WHERE c.user_id=h.user_id AND c.habit_id=h.id AND c.kind=8 AND c.deleted_at=0 AND c.changed_at>d.updated_at ORDER BY c.changed_at,c.rowid LIMIT 1),'') FROM habit_days d JOIN habits h ON h.id=d.habit_id WHERE h.user_id=?1 ORDER BY h.id,d.local_date LIMIT 128 OFFSET ?2",
-1, *statement, null) != SQLITE_OK { return -1 }
defer { SqliteFinalize(statement) }
bind_text(statement, 1, AchievementOwner())
SqliteBindInt(statement, 2, offset)
rows: s32 = 0
while SqliteStep(statement) == SQLITE_ROW {
id := AppTextFromCString(SqliteColumnText(statement, 0), 96)
day := SqliteColumnInt(statement, 1)
value := HabitDay.{.day_index = day, .completed = SqliteColumnInt(statement, 2), .count = SqliteColumnInt(statement, 3)}
counter := SqliteColumnInt(statement, 4) != 0
target := SqliteColumnInt(statement, 5)
historical := AppTextFromCString(SqliteColumnText(statement, 8), 256)
known := true
if historical == "check" || historical == "span" {
counter = false
target = 1
} else if historical.count > 0 {
known = historical.count > 6 && historical[:6] == "count:"
target = 0
if known {
for byte: historical[6:] {
if byte < #char "0" || byte > #char "9" || target > 1000000 {
known = false
break
}
target = target * 10 + cast(s32)(byte - #char "0")
}
counter = true
known = known && target >= 0
}
}
complete := known && HabitDayComplete(value, counter, target)
deleted := SqliteColumnInt64(statement, 6) != 0
source_bytes: Vec(u8)
BuilderPrint(*source_bytes, "%.%", id, day)
source := BuilderFinish(source_bytes)
defer { PackageFree(source) }
unused AchievementRecord("habit.completed", source, day, 1, "", id, true, false, deleted || !complete)
unused AchievementRecord("habit.counter", source, day, 1, "", id, false, false, deleted || !complete || !counter)
scheduled := false
if habits != null {
for index: cast(s32)0..habits.count - 1 {
habit := *habits.items[index]
if TextUntilNul(habit.id[:]) != id { continue }
// Pausing a habit today does not erase its historical schedule.
if habit.schedule_count > 0 {
scheduled = HabitScheduleMatches(HabitScheduleFor(habit, day), day)
} else {
copy := habit.*
copy.deactivated = 0
scheduled = habit_scheduled_day(*copy, day) != 0
}
}
}
unused AchievementRecord("habit.scheduled", source, day, 1, "", id, false, false, deleted || !complete || !scheduled)
rows += 1
}
return rows
}
AchievementHabitAnswersBackfill :: (offset: s32) -> s32 {
return AchievementSourceRows("habit.answer", "SELECT e.id,e.local_date,1,'',e.habit_id,0,(e.deleted_at!=0 OR h.deleted_at!=0 OR NOT EXISTS(SELECT 1 FROM json_each(CASE WHEN json_valid(e.answers) THEN e.answers ELSE '[]' END) a WHERE length(trim(CASE WHEN a.type='object' THEN COALESCE(json_extract(a.value,'$.value'),'') ELSE '' END,char(9)||char(10)||char(13)||' '))>0)) FROM habit_entries e JOIN habits h ON h.id=e.habit_id WHERE e.user_id=?1 ORDER BY e.id LIMIT 128 OFFSET ?2", offset)
}
AchievementHabitSpansBackfill :: (offset: s32) -> s32 {
return AchievementSourceRows("habit.span", "SELECT e.id,e.local_date,1,'',e.habit_id,0,(e.deleted_at!=0 OR h.deleted_at!=0 OR e.started_at<=0 OR e.ended_at<=e.started_at) FROM habit_entries e JOIN habits h ON h.id=e.habit_id WHERE e.user_id=?1 ORDER BY e.id LIMIT 128 OFFSET ?2", offset)
}
AchievementHabitRetractRows :: (sql: string, kind: s32) -> bool {
statement: *void
if SqlitePrepareText(storage_db_handle(), sql, -1, *statement, null) != SQLITE_OK { return false }
defer { SqliteFinalize(statement) }
bind_text(statement, 1, AchievementOwner())
while SqliteStep(statement) == SQLITE_ROW {
id := AppTextFromCString(SqliteColumnText(statement, 0), 96)
if kind == 0 {
if !AchievementRetract("habit.created", id) { return false }
} else if kind == 1 {
out: Vec(u8)
BuilderPrint(*out, "%.%", id, SqliteColumnInt(statement, 1))
source := BuilderFinish(out)
defer { PackageFree(source) }
if !AchievementRetract("habit.completed", source) || !AchievementRetract("habit.counter", source) ||
!AchievementRetract("habit.scheduled", source) { return false }
} else {
if !AchievementRetract("habit.answer", id) || !AchievementRetract("habit.span", id) { return false }
}
}
return true
}
AchievementHabitsDeleted :: () -> bool {
return AchievementHabitRetractRows("SELECT id FROM habits WHERE user_id=?1 AND deleted_at>0", 0) &&
AchievementHabitRetractRows("SELECT h.id,d.local_date FROM habit_days d JOIN habits h ON h.id=d.habit_id WHERE h.user_id=?1 AND (h.deleted_at>0 OR (d.completed=0 AND d.count=0 AND d.session_count=0))", 1) &&
AchievementHabitRetractRows("SELECT e.id FROM habit_entries e JOIN habits h ON h.id=e.habit_id WHERE e.user_id=?1 AND (e.deleted_at>0 OR h.deleted_at>0)", 2)
}
-253
View File
@@ -1,253 +0,0 @@
// Habits draws a counting habit's count dialog: the day's count with large
// steps down and up. The host supplies the day's count and the theme, and
// applies the step or opens the day the dialog asks for.
#import "session"
#import "geometry"
#import "vec"
#import "dpi"
Box :: #import "kryon/box";
Button :: #import "kryon/button";
Layout :: #import "kryon/layout";
Modal :: #import "kryon/modal";
Text :: #import "kryon/text";
#import "drawing_props"
#import "text_align"
#import "control_props"
#import "kryon/tree"
#import, file "../../src/apps/habits_ui_types.zi";
#import, file "../../src/apps/habits_types.zi";
#import, file "../../src/app/color.zi";
#import, file "editor_dialogs.zi";
using ButtonTone;
using ButtonEmphasis;
using TextAlign;
using Text.Wrap;
host_api :: #system_library "host_api";
ReadHabitsUiHost :: () -> HabitsUiFrame #foreign host_api;
WriteHabitsUiHost :: (frame: HabitsUiFrame) #foreign host_api;
HabitsLocaleHost :: (key: string) -> string #foreign host_api;
frame: HabitsUiFrame;
Scale :: (pixels: s32) -> s32 {
return ScalePixels(pixels, frame.scale)
}
Bounds :: (x: s32, y: s32, width: s32, height: s32) -> Rectangle {
return Rectangle.{cast(float32)x, cast(float32)y,
cast(float32)width, cast(float32)height}
}
// The number with two digits or more, as in a YYYY-MM-DD date.
PaddedNumber :: (out: *Vec(u8), value: s32, digits: s32) {
width: s32 = 1
limit: s32 = 10
while value >= limit {
width += 1
limit *= 10
}
while width < digits {
BuilderPrint(out, "0")
width += 1
}
BuilderPrint(out, "%", value)
}
DayText :: (day: s32) -> string {
out: Vec(u8)
PaddedNumber(*out, day / 10000, 4)
BuilderPrint(*out, "-")
PaddedNumber(*out, (day / 100) % 100, 2)
BuilderPrint(*out, "-")
PaddedNumber(*out, day % 100, 2)
return BuilderFinish(out)
}
// The template with its %d replaced by the count.
CountText :: (template: string, count: s32) -> string {
out: Vec(u8)
at: s64 = 0
while at < template.count {
if at + 1 < template.count && template[at] == cast(u8)37 &&
template[at + 1] == cast(u8)100 {
BuilderPrint(*out, "%", count)
at += 2
} else {
BuilderPrint(*out, "%", template[at:at + 1])
at += 1
}
}
return BuilderFinish(out)
}
CountLabel :: (bounds: Rectangle, text: string) {
Text.Draw(frame.session, Text.Props.{
.bounds = bounds, .text = text, .size = frame.small_font,
.align = cast(TextAlign)TextAlignCenter,
.vertical_align = cast(TextAlign)TextAlignCenter,
.wrap = cast(Text.Wrap)TextWrapNone})
}
// A step button draws its minus or plus as bars sized to the button, which
// read clearly where a "-" or "+" glyph is thin and small.
StepButton :: (id: s32, bounds: Rectangle, plus: bool, disabled: bool) -> bool {
clicked := Button.Draw(frame.session, Button.Props.{
.id = id, .bounds = bounds,
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft,
.disabled = disabled}) != 0
side := bounds.height
if bounds.width < side {
side = bounds.width
}
length := side * 0.36
thickness := cast(float32)Scale(3)
center_x := bounds.x + bounds.width * 0.5
center_y := bounds.y + bounds.height * 0.5
color := frame.text_color
if disabled {
color = color_with_alpha(color, 0.35)
}
unused Box.Draw(frame.session, Box.Props.{
.bounds = Rectangle.{center_x - length * 0.5, center_y - thickness * 0.5,
length, thickness},
.fill = color, .radius = thickness * 0.5})
if plus {
unused Box.Draw(frame.session, Box.Props.{
.bounds = Rectangle.{center_x - thickness * 0.5, center_y - length * 0.5,
thickness, length},
.fill = color, .radius = thickness * 0.5})
}
return clicked
}
// Draws the dialog and leaves in frame.action what the host does next.
CountDialog :: () {
frame.action = HABITS_COUNT_NONE
gap := Scale(12)
step_h := Scale(56)
button_h := Scale(44)
content_h := Scale(24) + Scale(64) + Scale(24) + gap + step_h + gap + button_h
if frame.linked_count > 0 {
content_h += button_h + gap
}
// A counting habit that asks questions keeps their answers as the
// day's entries, opened from here.
if frame.asks {
content_h += button_h + gap
}
dialog := Modal.Draw(frame.session, Modal.Props.{
.key = Layout.KeyHash("habits/count-dialog"),
.title = frame.name,
.strong_title = true,
.width = Scale(340), .height = content_h + Scale(74),
.scale = frame.scale,
.has_right_action = true,
.right_label = HabitsLocaleHost("close_button")})
if dialog.dismissed || dialog.right_clicked {
frame.action = HABITS_COUNT_CLOSE
return
}
if !dialog.opened {
return
}
content := dialog.layout.content
x := cast(s32)content.x
y := cast(s32)content.y
width := cast(s32)content.width
day_text := DayText(frame.day)
if frame.today {
day_text = HabitsLocaleHost("habits_today")
}
CountLabel(Bounds(x, y, width, Scale(24)), day_text)
y += Scale(24)
count_out: Vec(u8)
BuilderPrint(*count_out, "%", frame.count)
count_text := BuilderFinish(count_out)
count_strong: [1]Text.Range
count_strong[0] = Text.Range.{.start = 0, .end = cast(s32)count_text.count}
Text.Draw(frame.session, Text.Props.{
.bounds = Bounds(x, y, width, Scale(64)),
.text = count_text, .size = Scale(Text.Text48),
.strong = count_strong[:],
.align = cast(TextAlign)TextAlignCenter,
.vertical_align = cast(TextAlign)TextAlignCenter,
.wrap = cast(Text.Wrap)TextWrapNone})
y += Scale(64)
target_out: Vec(u8)
BuilderPrint(*target_out, "% %", HabitsLocaleHost("habit_counter_target"), frame.target)
CountLabel(Bounds(x, y, width, Scale(24)), BuilderFinish(target_out))
y += Scale(24) + gap
step_w := (width - gap) / 2
if StepButton(5720000, Bounds(x, y, step_w, step_h), false,
frame.count <= frame.linked_count) {
frame.action = HABITS_COUNT_DECREMENT
}
if StepButton(5720001, Bounds(x + width - step_w, y, step_w, step_h), true, false) {
frame.action = HABITS_COUNT_INCREMENT
}
y += step_h + gap
if frame.asks {
if Button.Draw(frame.session, Button.Props.{
.id = 5720004, .bounds = Bounds(x, y, width, button_h),
.label = HabitsLocaleHost("habit_day_entries"),
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisOutline}) != 0 {
unused End(frame.session)
frame.action = HABITS_COUNT_OPEN_DAY
return
}
y += button_h + gap
}
if frame.linked_count > 0 {
template := HabitsLocaleHost(ifx frame.linked_count == 1
then "session_count_singular" else "session_count_plural")
if Button.Draw(frame.session, Button.Props.{
.id = 5720002, .bounds = Bounds(x, y, width, button_h),
.label = CountText(template, frame.linked_count),
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisOutline}) != 0 {
unused End(frame.session)
frame.action = HABITS_COUNT_OPEN_DAY
return
}
y += button_h + gap
}
if Button.Draw(frame.session, Button.Props.{
.id = 5720003, .bounds = Bounds(x, y, width, button_h),
.label = HabitsLocaleHost("done_button"),
.tone = cast(ButtonTone)ButtonToneAccent,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisFilled}) != 0 {
frame.action = HABITS_COUNT_CLOSE
}
unused End(frame.session)
}
HabitsCountView :: (message: HabitsMessage) -> HabitsMessage {
frame = ReadHabitsUiHost()
CountDialog()
WriteHabitsUiHost(frame)
message.succeeded = true
return message
}
HabitsEditorView :: (message: HabitsMessage) -> HabitsMessage {
frame = ReadHabitsUiHost()
deleting := message.action == HABITS_DELETE_DIALOG
result := HabitEditorDialog(HabitEditorDialogProps.{
.session = frame.session, .deleting = deleting,
.title = HabitsLocaleHost(ifx deleting then "habit_delete_title" else "habit_unsaved_title"),
.message = HabitsLocaleHost(ifx deleting then "habit_delete_message" else "habit_unsaved_message"),
.keep_editing = HabitsLocaleHost("habit_keep_editing"),
.save = HabitsLocaleHost("save_button"),
.discard = HabitsLocaleHost("discard_button"),
.cancel = HabitsLocaleHost("cancel_button"),
.delete_label = HabitsLocaleHost("delete_button")})
frame.action = result.action
WriteHabitsUiHost(frame)
message.succeeded = true
return message
}
-239
View File
@@ -1,239 +0,0 @@
// A separate, read-only view of the persisted shop purchase history.
#import, file "shop_view.zi";
#import, file "../../src/apps/habits_types.zi";
#import, file "../../src/apps/habits_ui_types.zi";
Box :: #import "kryon/box";
Layout :: #import "kryon/layout";
Scroll :: #import "kryon/scroll";
Text :: #import "kryon/text";
#import "kryon/drawing_props"
#import "text_measure"
#import "text_align"
#import "kryon/tree"
#import "vec"
using Text.Wrap;
host_api :: #system_library "host_api";
ReadHabitsShopHost :: () -> HabitsShopFrame #foreign host_api;
WriteHabitsShopHost :: (frame: HabitsShopFrame) #foreign host_api;
ReadHabitRewardHost :: (index: s32) -> HabitsShopReward #foreign host_api;
PurchaseDate :: (date: s32) -> string {
month := (date / 100) % 100
day := date % 100
out: Vec(u8)
BuilderPrint(*out, "%-", date / 10000)
if month < 10 {
BuilderPrint(*out, "0")
}
BuilderPrint(*out, "%-", month)
if day < 10 {
BuilderPrint(*out, "0")
}
BuilderPrint(*out, "%", day)
return BuilderFinish(out)
}
RewardStatisticsText :: (reward: HabitsShopReward) -> string {
out: Vec(u8)
BuilderPrint(*out, "%: % · %: %", Locale("habit_shop_stats_purchases"),
reward.statistics.purchase_count, Locale("habit_shop_stats_month"),
reward.statistics.month_count)
return BuilderFinish(out)
}
RewardStatisticsHeight :: (reward: HabitsShopReward, width: s32) -> s32 {
inner := width - Scale(SHOP_CARD_PADDING * 2 + 10)
height := ParagraphHeight(RewardStatisticsText(reward), inner, shop.small_font)
if reward.statistics.purchase_count > 0 {
height += Scale(4) + ParagraphHeight(Filled(Locale("habit_shop_stats_last"),
PurchaseDate(reward.statistics.last_date)), inner, shop.small_font)
}
return height + Scale(14)
}
// Coins spent show in the coins' own color.
StatisticsColor :: (index: s32) -> Color {
colors: [4]Color = .[Color.{63, 137, 216, 255}, CoinColor(),
Color.{48, 159, 128, 255}, Color.{155, 104, 207, 255}]
return colors[index]
}
StatisticsLabel :: (index: s32) -> string {
keys: [4]string = .["habit_shop_stats_purchases", "habit_shop_stats_spent",
"habit_shop_stats_week", "habit_shop_stats_month"]
return Locale(keys[index])
}
StatisticsValue :: (index: s32) -> string {
values: [4]s64 = .[shop.statistics.purchase_count, shop.statistics.spent_coins,
shop.statistics.week_count, shop.statistics.month_count]
return Number(values[index])
}
StatisticsColumns :: (width: s32) -> s32 {
return ifx width >= Scale(280) then 2 else 1
}
StatisticsInnerWidth :: (width: s32) -> s32 {
return (width - Scale(8) * (StatisticsColumns(width) - 1)) /
StatisticsColumns(width) - Scale(32)
}
StatisticsNumberHeight :: (width: s32) -> s32 {
height := Scale(30)
for index: cast(s32)0..3 {
value_h := TextHeight(shop.session, Text.Props.{.text = StatisticsValue(index),
.size = shop.font + Scale(6),
.bounds = Bounds(0, 0, StatisticsInnerWidth(width), 0),
.wrap = cast(Text.Wrap)TextWrapAnywhere})
if value_h > height {
height = value_h
}
}
return height
}
StatisticsCardHeight :: (width: s32) -> s32 {
inner := StatisticsInnerWidth(width)
height: s32 = 0
for index: cast(s32)0..3 {
label_h := ParagraphHeight(StatisticsLabel(index), inner, shop.small_font)
if label_h > height {
height = label_h
}
}
return height + StatisticsNumberHeight(width) + Scale(34)
}
StatisticsHeight :: (width: s32) -> s32 {
title_h := SectionTitleHeight(Locale("habit_shop_stats_title"), width) + Scale(10)
if shop.statistics.purchase_count == 0 {
return title_h + ParagraphHeight(Locale("habit_shop_stats_empty"), width,
shop.small_font)
}
rows := 4 / StatisticsColumns(width)
last := Filled(Locale("habit_shop_stats_last"), PurchaseDate(shop.statistics.last_date))
return title_h + rows * StatisticsCardHeight(width) + rows * Scale(8) +
ParagraphHeight(last, width, shop.small_font)
}
Statistics :: (x: s32, y: s32, width: s32) {
y += SectionTitle(Locale("habit_shop_stats_title"), x, y, width) + Scale(10)
if shop.statistics.purchase_count == 0 {
text := Locale("habit_shop_stats_empty")
Text.Draw(shop.session, Text.Props.{.bounds = Bounds(x, y, width,
ParagraphHeight(text, width, shop.small_font)), .text = text,
.size = shop.small_font, .class_name = shop.muted_class,
.wrap = cast(Text.Wrap)TextWrapAuto})
return
}
columns := StatisticsColumns(width)
card_w := (width - Scale(8) * (columns - 1)) / columns
card_h := StatisticsCardHeight(width)
number_h := StatisticsNumberHeight(width)
for index: cast(s32)0..3 {
card_x := x + (index % columns) * (card_w + Scale(8))
card_y := y + (index / columns) * (card_h + Scale(8))
Card(Bounds(card_x, card_y, card_w, card_h), "")
Box.Draw(shop.session, Box.Props.{.bounds = Bounds(card_x, card_y + Scale(12),
Scale(4), card_h - Scale(24)), .fill = StatisticsColor(index)})
value := StatisticsValue(index)
strong: [1]Text.Range
strong[0] = Text.Range.{.start = 0, .end = cast(s32)value.count}
Text.Draw(shop.session, Text.Props.{.bounds = Bounds(card_x + Scale(16),
card_y + Scale(12), card_w - Scale(32), number_h),
.text = value, .size = shop.font + Scale(6), .strong = strong[:],
.wrap = cast(Text.Wrap)TextWrapAnywhere})
Text.Draw(shop.session, Text.Props.{.bounds = Bounds(card_x + Scale(16),
card_y + number_h + Scale(18), card_w - Scale(32), card_h - number_h - Scale(30)),
.text = StatisticsLabel(index), .size = shop.small_font,
.class_name = shop.muted_class, .wrap = cast(Text.Wrap)TextWrapAuto})
}
last := Filled(Locale("habit_shop_stats_last"), PurchaseDate(shop.statistics.last_date))
last_y := y + (4 / columns) * (card_h + Scale(8))
Text.Draw(shop.session, Text.Props.{.bounds = Bounds(x, last_y, width,
ParagraphHeight(last, width, shop.small_font)), .text = last,
.size = shop.small_font, .class_name = shop.muted_class,
.wrap = cast(Text.Wrap)TextWrapAuto})
}
StatisticsRewardHeight :: (index: s32, width: s32) -> s32 {
reward := ReadHabitRewardHost(index)
return ParagraphHeight(reward.name, width - Scale(32), shop.font) +
RewardStatisticsHeight(reward, width) + Scale(32)
}
StatisticsReward :: (index: s32, x: s32, y: s32, width: s32) -> s32 {
reward := ReadHabitRewardHost(index)
height := StatisticsRewardHeight(index, width)
Card(Bounds(x, y, width, height), "")
pad := Scale(16)
inner := width - pad * 2
name_h := ParagraphHeight(reward.name, inner, shop.font)
Text.Draw(shop.session, Text.Props.{.bounds = Bounds(x + pad, y + pad, inner, name_h),
.text = reward.name, .wrap = cast(Text.Wrap)TextWrapAuto})
text := RewardStatisticsText(reward)
text_h := ParagraphHeight(text, inner, shop.small_font)
line_y := y + pad + name_h + Scale(8)
Text.Draw(shop.session, Text.Props.{.bounds = Bounds(x + pad, line_y, inner, text_h),
.text = text, .size = shop.small_font, .wrap = cast(Text.Wrap)TextWrapAuto})
if reward.statistics.purchase_count > 0 {
last := Filled(Locale("habit_shop_stats_last"),
PurchaseDate(reward.statistics.last_date))
Text.Draw(shop.session, Text.Props.{.bounds = Bounds(x + pad,
line_y + text_h + Scale(4), inner,
ParagraphHeight(last, inner, shop.small_font)),
.text = last, .size = shop.small_font,
.class_name = shop.muted_class, .wrap = cast(Text.Wrap)TextWrapAuto})
}
return height
}
ShopStatisticsPage :: () {
bounds := shop.bounds
width := cast(s32)bounds.width
x := cast(s32)bounds.x
if width > Scale(SHOP_COLUMN_MAX) {
x += (width - Scale(SHOP_COLUMN_MAX)) / 2
width = Scale(SHOP_COLUMN_MAX)
}
top := PageHeader(x, cast(s32)bounds.y, width,
Locale("habit_shop_stats_title"), "")
if top < 0 {
shop.action = HABITS_SHOP_STATS_BACK
return
}
content_width := width - Scale(SHOP_SCROLLBAR_ROOM)
gap := Scale(SHOP_GAP)
content_h := StatisticsHeight(content_width) + gap
for index: cast(s32)0..shop.reward_count - 1 {
content_h += StatisticsRewardHeight(index, content_width) + gap
}
scrolled := Scroll.Draw(shop.session, Scroll.Props.{
.key = Layout.KeyHash("inbe/habits/shop/statistics"),
.bounds = Bounds(x, top, width,
cast(s32)(bounds.y + bounds.height) - top),
.content_height = content_h, .scroll_offset = shop.scroll})
shop.scroll = scrolled.scroll_offset
if !scrolled.opened {
return
}
y := cast(s32)scrolled.content.y
Statistics(x, y, content_width)
y += StatisticsHeight(content_width) + gap
for index: cast(s32)0..shop.reward_count - 1 {
y += StatisticsReward(index, x, y, content_width) + gap
}
unused End(shop.session)
}
HabitsShopStatisticsView :: (message: HabitsMessage) -> HabitsMessage {
shop = ReadHabitsShopHost()
shop.action = HABITS_SHOP_NONE
shop.clipboard_write = false
ShopStatisticsPage()
WriteHabitsShopHost(shop)
message.succeeded = true
return message
}
File diff suppressed because it is too large. Load diff
-81
View File
@@ -1,81 +0,0 @@
// The habit table has a name column and then up to seven day columns. The
// days share the width the name column leaves, within their limits, and the
// name column takes the rest.
HabitTableDayWidth :: (width: s32, name_min: s32, day_min: s32,
day_max: s32) -> s32 {
day := (width - name_min) / 7
if day > day_max {
day = day_max
}
if day < day_min {
day = day_min
}
return day
}
// Rows keep their order; only the rows below an open row move down by its
// details.
HabitRowOffset :: (position: s32, open: s32, row_height: s32,
detail_height: s32) -> s32 {
offset := position * row_height
if open >= 0 && position > open {
offset += detail_height
}
return offset
}
// The table's columns for its inner width.
HabitTableLayout :: struct {
// The column before the days: an icon and a name, or the icon alone.
name_width: s32
day_width: s32
// Today and the days before it that fit, at most seven.
days: s32
names: bool
}
// Four days are the smallest useful week: names stay visible while they fit,
// then give way to icons. Below that, the four days shrink only when the table
// itself is too narrow to hold their readable minimum.
HabitTableLayoutFor :: (width: s32, name_preferred: s32, name_min: s32,
icon_column: s32, day_min: s32, day_max: s32) -> HabitTableLayout {
layout: HabitTableLayout
layout.names = true
days: s32 = 7
while days > 4 && width - name_preferred < days * day_min {
days -= 1
}
layout.days = days
layout.day_width = (width - name_preferred) / days
if layout.day_width > day_max {
layout.day_width = day_max
}
if layout.day_width < day_min && width >= day_min * 4 {
layout.day_width = day_min
}
layout.name_width = width - layout.day_width * days
if layout.name_width >= name_min {
return layout
}
layout.names = false
space := width - icon_column
days = space / day_min
if days > 7 {
days = 7
}
if days < 4 {
days = 4
}
layout.days = days
layout.day_width = space / days
if layout.day_width > day_max {
layout.day_width = day_max
}
if layout.day_width < 1 {
layout.day_width = 1
}
layout.name_width = width - layout.day_width * days
return layout
}
+6 -203
View File
@@ -1,202 +1,5 @@
# Changelog
## [Unreleased]
- Backspace and text corrections work again. Restore backups and add photos reliably.
- Read Tao Te Ching art on its own page. Find Photos and Radio in Apps, with clearer feedback and appearance controls.
- Desktop controls respond, translations keep clean line breaks, and account sync is called Mesh.
- Start the Chromium extension when opened and reuse tabs for repeated opens of the same page.
- Free the Chromium extension's WebAssembly memory when an idle Practices or Habits tab loses focus, and load it again on return.
- Use one modern appearance and a simpler About list with Core and app versions.
## [2.1.64] - 2026-11-05
- Bring Lumi 1.5.29, Habits 1.3.17, Practices 1.6.11, Lists 1.1.30, Diary 1.3.27 and Leaderboard 1.0.31 for Inner Breeze 2.1.63.
## [2.1.63] - 2026-11-02
- Bring Lumi 1.5.28, Habits 1.3.16, Practices 1.6.10, Lists 1.1.29, Diary 1.3.26 and Leaderboard 1.0.30 for Inner Breeze 2.1.62.
## [2.1.62] - 2026-10-29
- Bring Lumi 1.5.27, Habits 1.3.15, Practices 1.6.9, Lists 1.1.28, Diary 1.3.25 and Leaderboard 1.0.29 for Inner Breeze 2.1.61.
## [2.1.61] - 2026-10-29
- Bring Lumi 1.5.26, Habits 1.3.14, Practices 1.6.8, Lists 1.1.27, Diary 1.3.24 and Leaderboard 1.0.28 for Inner Breeze 2.1.60.
## [2.1.60] - 2026-10-28
- Bring Lumi 1.5.25, Habits 1.3.13, Practices 1.6.7, Lists 1.1.26, Diary 1.3.23 and Leaderboard 1.0.27 for Inner Breeze 2.1.59.
## [2.1.59] - 2026-10-28
- Bring Lumi 1.5.24, Habits 1.3.12, Practices 1.6.6, Lists 1.1.25, Diary 1.3.22 and Leaderboard 1.0.26 for Inner Breeze 2.1.58.
## [2.1.58] - 2026-10-28
- Bring Diary’s separate day gallery and attachment toolbar.
## [2.1.57] - 2026-10-28
- Bring Lumi 1.5.23, Habits 1.3.11, Practices 1.6.5, Lists 1.1.24, Diary 1.3.20 and Leaderboard 1.0.25 for Inner Breeze 2.1.56.
## [2.1.56] - 2026-10-28
- Keep Apps guide translations available to older installed wrappers after automatic package updates.
## [2.1.55] - 2026-10-27
- Bring Lumi 1.5.22, Habits 1.3.10, Practices 1.6.4, Lists 1.1.23, Diary 1.3.19 and Leaderboard 1.0.24 for Inner Breeze 2.1.55.
## [2.1.54] - 2026-10-27
- Bring Lumi 1.5.21, Habits 1.3.9, Practices 1.6.3, Lists 1.1.22, Diary 1.3.18 and Leaderboard 1.0.23 for Inner Breeze 2.1.54.
## [2.1.53] - 2026-10-27
- Bring Lumi 1.5.20, Habits 1.3.8, Practices 1.6.2, Lists 1.1.21, Diary 1.3.17 and Leaderboard 1.0.22 for Inner Breeze 2.1.53.
## [2.1.52] - 2026-10-27
- Bring Lumi 1.5.19, Habits 1.3.7, Practices 1.6.1, Lists 1.1.20, Diary 1.3.16 and Leaderboard 1.0.21 for Inner Breeze 2.1.52.
## [2.1.51] - 2026-10-26
- Bring Lumi 1.5.18, Habits 1.3.6, Practices 1.6.0, Lists 1.1.19, Diary 1.3.15 and Leaderboard 1.0.20 for Inner Breeze 2.1.51.
## [2.1.50] - 2026-10-26
- Bring Lumi 1.5.17, Habits 1.3.4, Practices 1.5.4, Lists 1.1.18, Diary 1.3.14 and Leaderboard 1.0.19 for Inner Breeze 2.1.50.
## [2.1.49] - 2026-10-25
- Bring Lumi 1.5.16, Habits 1.3.3, Practices 1.5.3, Lists 1.1.17, Diary 1.3.13 and Leaderboard 1.0.18 for Inner Breeze 2.1.49.
## [2.1.48] - 2026-10-25
- Bring Lumi 1.5.15, Habits 1.3.2, Practices 1.5.2, Lists 1.1.16, Diary 1.3.12 and Leaderboard 1.0.17 for Inner Breeze 2.1.48.
## [2.1.47] - 2026-10-25
- Bring Lumi 1.5.14, Habits 1.3.1, Practices 1.5.1, Lists 1.1.15, Diary 1.3.11 and Leaderboard 1.0.16 for Inner Breeze 2.1.47.
## [2.1.46] - 2026-10-24
- Bring Lumi 1.5.13, Habits 1.2.11, Practices 1.3.11, Lists 1.1.14, Diary 1.3.10 and Leaderboard 1.0.15 for Inner Breeze 2.1.46.
## [2.1.45] - 2026-10-23
- Bring Lumi 1.5.11, Habits 1.2.10, Practices 1.3.10, Lists 1.1.13, Diary 1.3.9 and Leaderboard 1.0.14 for Inner Breeze 2.1.45.
## [2.1.44] - 2026-10-23
- Bring Lumi 1.5.10, Habits 1.2.9, Practices 1.3.9, Lists 1.1.12, Diary 1.3.8 and Leaderboard 1.0.13 for Inner Breeze 2.1.44.
## [2.1.43] - 2026-10-23
- Bring Lumi 1.5.9, Habits 1.2.8, Practices 1.3.8, Lists 1.1.10, Diary 1.3.7 and Leaderboard 1.0.12 for Inner Breeze 2.1.43.
## [2.1.42] - 2026-10-22
- Bring Lumi 1.5.8, Habits 1.2.7, Practices 1.3.6, Lists 1.1.9, Diary 1.3.6 and Leaderboard 1.0.11 for Inner Breeze 2.1.42.
## [2.1.41] - 2026-10-22
- Bring Lumi 1.5.7, Habits 1.2.6, Practices 1.3.5, Lists 1.1.8, Diary 1.3.5 and Leaderboard 1.0.10 for Inner Breeze 2.1.41.
## [2.1.40] - 2026-10-22
- Bring Lumi 1.5.6, Habits 1.2.5, Practices 1.3.4, Lists 1.1.7, Diary 1.3.4 and Leaderboard 1.0.9 for Inner Breeze 2.1.40.
## [2.1.39] - 2026-10-22
- Bring Lumi 1.5.5, Habits 1.2.4, Practices 1.3.3, Lists 1.1.6, Diary 1.3.3 and Leaderboard 1.0.8 for Inner Breeze 2.1.39.
## [2.1.38] - 2026-10-21
- Show activity once, with a single Profile interface and distinct achievement icons.
- Bring Lumi 1.5.4, Habits 1.2.3, Practices 1.3.2, Lists 1.1.5, Diary 1.3.2 and Leaderboard 1.0.7 for Inner Breeze 2.1.38.
## [2.1.37] - 2026-10-20
- Bring Lumi 1.5.3, Habits 1.2.1, Practices 1.3.1, Lists 1.1.3, Diary 1.3.1 and Leaderboard 1.0.6 for Inner Breeze 2.1.37.
## [2.1.36] - 2026-10-18
- Bring Practices 1.3.0, with a separate Astral Projection download, for Inner Breeze 2.1.36.
## [2.1.35] - 2026-10-18
- Bring Lumi 1.5.2, Habits 1.1.2, Practices 1.2.2, Lists 1.1.2, Diary 1.3.0 and Leaderboard 1.0.5 for Inner Breeze 2.1.36.
## [2.1.34] - 2026-10-17
- Bring Diary 1.2.0, with Markdown entries and photos inside them, and Habits 1.1.0, with its count dialog, for Inner Breeze 2.1.35.
- Requires Inner Breeze 2.1.35 or later.
## [2.1.33] - 2026-10-17
- Bring Lumi 1.5.1, Habits 1.0.7, Practices 1.2.1, Lists 1.1.1, Diary 1.1.12 and Leaderboard 1.0.4 for Inner Breeze 2.1.35.
## [2.1.32] - 2026-10-15
- Bring Practices 1.2.0 with separate practice and language downloads.
- Requires Inner Breeze 2.1.34 or later.
## [2.1.31] - 2026-10-15
- Bring Lists 1.1.0 with friend invitations and shared task editing.
- Requires Inner Breeze 2.1.34 or later.
## [2.1.30] - 2026-10-13
- Bring Lumi 1.4.0, Habits 1.0.5, Practices 1.1.5, Lists 1.0.6, Diary 1.1.10 and Leaderboard 1.0.2.
- Requires Inner Breeze 2.1.33 or later.
## [2.1.29] - 2026-10-11
- Bring Lumi 1.3.9, Diary 1.1.9, Lists 1.0.5 and Leaderboard 1.0.1.
- Requires Inner Breeze 2.1.29 or later.
## [2.1.28] - 2026-10-11
- Bring Lumi's message selection with copy and delete.
- Requires Inner Breeze 2.1.29 or later.
## [2.1.27] - 2026-10-11
- Bring Lumi's chat that loads older messages as you scroll up.
- Requires Inner Breeze 2.1.29 or later.
## [2.1.26] - 2026-10-10
- Bring Diary's title bar, undo and redo, and spelling correction, and Lumi's typing dots.
- Requires Inner Breeze 2.1.29 or later.
## [2.1.25] - 2026-10-10
- Open Leaderboard as its own app.
- Requires Inner Breeze 2.1.28 or later.
## [2.1.24] - 2026-10-10
- Remove the text of practice window buttons that are no longer shown.
## [2.1.23] - 2026-10-10
- Translate the descriptions in Lumi's command list.
## [2.1.22] - 2026-10-10
- Say which app, device and system details Lumi feedback includes before you send it.
## [2.1.21] - 2026-10-10
- Explain when approved Lumi feedback is still waiting to send and when the developer inbox has received it.
## [2.1.20] - 2026-10-09
- Customize each app in Appearance using live KSS editing, inspection, undo, and reset to defaults.
@@ -242,28 +45,28 @@
## [2.1.7] - 2026-10-06
- Show Lumi alongside every other app in one compact, reorderable list.
- Include all apps for instant sidebar additions without a download.
- Show Lumi alongside every other cell in one compact, reorderable list.
- Include all cells for instant sidebar additions without a download.
## [2.1.6] - 2026-10-06
- Show a clearer firefly icon for Lumi and keep the bundled companion available when her shortcut is hidden.
- Keep every selected startup app in the sidebar and preserve cached packages for quick reinstallation.
- Keep every selected startup cell in the sidebar and preserve cached packages for quick reinstallation.
- Provide app tools for changing themes, appearance and settings directly.
## [2.1.5] - 2026-10-06
- Use a standard app icon for Lumi and include translations for her habit and practice commands.
- Use a standard cell icon for Lumi and include translations for her habit and practice commands.
## [2.1.4] - 2026-10-06
- Recommend Lumi first in the app picker and open her chat as the default home.
- Recommend Lumi first in the cell picker and open her chat as the default home.
- Keep the firefly helper available offline alongside Habits and Practices.
- Include every character used by the current translations in the shared fonts.
## [2.1.3] - 2026-10-06
- Use Apps consistently in the app picker and its independently delivered package.
- Use Cells consistently in the cell picker and its independently delivered package.
## [2.1.2] - 2026-10-06
-22
View File
@@ -1,22 +0,0 @@
{
"achievement_self_active_1_title": "Osobní profil · 1 dnů",
"achievement_self_active_1_description": "Vykonejte tuto aktivitu v 1 různých dnech: smysluplná uložená aktivita.",
"achievement_self_active_3_title": "Osobní profil · 3 dnů",
"achievement_self_active_3_description": "Vykonejte tuto aktivitu v 3 různých dnech: smysluplná uložená aktivita.",
"achievement_self_active_7_title": "Osobní profil · 7 dnů",
"achievement_self_active_7_description": "Vykonejte tuto aktivitu v 7 různých dnech: smysluplná uložená aktivita.",
"achievement_self_active_14_title": "Osobní profil · 14 dnů",
"achievement_self_active_14_description": "Vykonejte tuto aktivitu v 14 různých dnech: smysluplná uložená aktivita.",
"achievement_self_active_30_title": "Osobní profil · 30 dnů",
"achievement_self_active_30_description": "Vykonejte tuto aktivitu v 30 různých dnech: smysluplná uložená aktivita.",
"achievement_self_active_60_title": "Osobní profil · 60 dnů",
"achievement_self_active_60_description": "Vykonejte tuto aktivitu v 60 různých dnech: smysluplná uložená aktivita.",
"achievement_self_active_100_title": "Osobní profil · 100 dnů",
"achievement_self_active_100_description": "Vykonejte tuto aktivitu v 100 různých dnech: smysluplná uložená aktivita.",
"achievement_self_active_180_title": "Osobní profil · 180 dnů",
"achievement_self_active_180_description": "Vykonejte tuto aktivitu v 180 různých dnech: smysluplná uložená aktivita.",
"achievement_self_active_365_title": "Osobní profil · 365 dnů",
"achievement_self_active_365_description": "Vykonejte tuto aktivitu v 365 různých dnech: smysluplná uložená aktivita.",
"achievement_self_return_14_title": "Osobní profil · 14 dnů přestávky",
"achievement_self_return_14_description": "Vraťte se po alespoň 14 celých dnech bez této aktivity: smysluplná uložená aktivita."
}
-22
View File
@@ -1,22 +0,0 @@
{
"achievement_self_active_1_title": "Persönliches Profil · 1 Tage",
"achievement_self_active_1_description": "Führe dies an 1 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
"achievement_self_active_3_title": "Persönliches Profil · 3 Tage",
"achievement_self_active_3_description": "Führe dies an 3 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
"achievement_self_active_7_title": "Persönliches Profil · 7 Tage",
"achievement_self_active_7_description": "Führe dies an 7 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
"achievement_self_active_14_title": "Persönliches Profil · 14 Tage",
"achievement_self_active_14_description": "Führe dies an 14 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
"achievement_self_active_30_title": "Persönliches Profil · 30 Tage",
"achievement_self_active_30_description": "Führe dies an 30 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
"achievement_self_active_60_title": "Persönliches Profil · 60 Tage",
"achievement_self_active_60_description": "Führe dies an 60 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
"achievement_self_active_100_title": "Persönliches Profil · 100 Tage",
"achievement_self_active_100_description": "Führe dies an 100 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
"achievement_self_active_180_title": "Persönliches Profil · 180 Tage",
"achievement_self_active_180_description": "Führe dies an 180 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
"achievement_self_active_365_title": "Persönliches Profil · 365 Tage",
"achievement_self_active_365_description": "Führe dies an 365 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
"achievement_self_return_14_title": "Persönliches Profil · 14 Tage Pause",
"achievement_self_return_14_description": "Kehre nach mindestens 14 ganzen Tagen ohne diese Aktivität zurück: eine sinnvolle gespeicherte Aktivität."
}
-22
View File
@@ -1,22 +0,0 @@
{
"achievement_self_active_1_title": "A beginning",
"achievement_self_active_1_description": "Do this on 1 distinct dates: a meaningful saved activity.",
"achievement_self_active_3_title": "Three days for yourself",
"achievement_self_active_3_description": "Do this on 3 distinct dates: a meaningful saved activity.",
"achievement_self_active_7_title": "A week of moments",
"achievement_self_active_7_description": "Do this on 7 distinct dates: a meaningful saved activity.",
"achievement_self_active_14_title": "Fourteen moments",
"achievement_self_active_14_description": "Do this on 14 distinct dates: a meaningful saved activity.",
"achievement_self_active_30_title": "Thirty days for yourself",
"achievement_self_active_30_description": "Do this on 30 distinct dates: a meaningful saved activity.",
"achievement_self_active_60_title": "Sixty days of care",
"achievement_self_active_60_description": "Do this on 60 distinct dates: a meaningful saved activity.",
"achievement_self_active_100_title": "One hundred days",
"achievement_self_active_100_description": "Do this on 100 distinct dates: a meaningful saved activity.",
"achievement_self_active_180_title": "A growing history",
"achievement_self_active_180_description": "Do this on 180 distinct dates: a meaningful saved activity.",
"achievement_self_active_365_title": "A year of moments",
"achievement_self_active_365_description": "Do this on 365 distinct dates: a meaningful saved activity.",
"achievement_self_return_14_title": "Welcome back",
"achievement_self_return_14_description": "Return after at least 14 full days without this activity: a meaningful saved activity."
}
-22
View File
@@ -1,22 +0,0 @@
{
"achievement_self_active_1_title": "Perfil personal · 1 días",
"achievement_self_active_1_description": "Realiza esto en 1 fechas distintas: una actividad significativa guardada.",
"achievement_self_active_3_title": "Perfil personal · 3 días",
"achievement_self_active_3_description": "Realiza esto en 3 fechas distintas: una actividad significativa guardada.",
"achievement_self_active_7_title": "Perfil personal · 7 días",
"achievement_self_active_7_description": "Realiza esto en 7 fechas distintas: una actividad significativa guardada.",
"achievement_self_active_14_title": "Perfil personal · 14 días",
"achievement_self_active_14_description": "Realiza esto en 14 fechas distintas: una actividad significativa guardada.",
"achievement_self_active_30_title": "Perfil personal · 30 días",
"achievement_self_active_30_description": "Realiza esto en 30 fechas distintas: una actividad significativa guardada.",
"achievement_self_active_60_title": "Perfil personal · 60 días",
"achievement_self_active_60_description": "Realiza esto en 60 fechas distintas: una actividad significativa guardada.",
"achievement_self_active_100_title": "Perfil personal · 100 días",
"achievement_self_active_100_description": "Realiza esto en 100 fechas distintas: una actividad significativa guardada.",
"achievement_self_active_180_title": "Perfil personal · 180 días",
"achievement_self_active_180_description": "Realiza esto en 180 fechas distintas: una actividad significativa guardada.",
"achievement_self_active_365_title": "Perfil personal · 365 días",
"achievement_self_active_365_description": "Realiza esto en 365 fechas distintas: una actividad significativa guardada.",
"achievement_self_return_14_title": "Perfil personal · 14 días de pausa",
"achievement_self_return_14_description": "Vuelve después de al menos 14 días completos sin esta actividad: una actividad significativa guardada."
}
-22
View File
@@ -1,22 +0,0 @@
{
"achievement_self_active_1_title": "Profil personnel · 1 jours",
"achievement_self_active_1_description": "Faites ceci à 1 dates distinctes : une activité utile enregistrée.",
"achievement_self_active_3_title": "Profil personnel · 3 jours",
"achievement_self_active_3_description": "Faites ceci à 3 dates distinctes : une activité utile enregistrée.",
"achievement_self_active_7_title": "Profil personnel · 7 jours",
"achievement_self_active_7_description": "Faites ceci à 7 dates distinctes : une activité utile enregistrée.",
"achievement_self_active_14_title": "Profil personnel · 14 jours",
"achievement_self_active_14_description": "Faites ceci à 14 dates distinctes : une activité utile enregistrée.",
"achievement_self_active_30_title": "Profil personnel · 30 jours",
"achievement_self_active_30_description": "Faites ceci à 30 dates distinctes : une activité utile enregistrée.",
"achievement_self_active_60_title": "Profil personnel · 60 jours",
"achievement_self_active_60_description": "Faites ceci à 60 dates distinctes : une activité utile enregistrée.",
"achievement_self_active_100_title": "Profil personnel · 100 jours",
"achievement_self_active_100_description": "Faites ceci à 100 dates distinctes : une activité utile enregistrée.",
"achievement_self_active_180_title": "Profil personnel · 180 jours",
"achievement_self_active_180_description": "Faites ceci à 180 dates distinctes : une activité utile enregistrée.",
"achievement_self_active_365_title": "Profil personnel · 365 jours",
"achievement_self_active_365_description": "Faites ceci à 365 dates distinctes : une activité utile enregistrée.",
"achievement_self_return_14_title": "Profil personnel · 14 jours de pause",
"achievement_self_return_14_description": "Revenez après au moins 14 journées entières sans cette activité : une activité utile enregistrée."
}
-22
View File
@@ -1,22 +0,0 @@
{
"achievement_self_active_1_title": "自分のプロフィール · 1 日",
"achievement_self_active_1_description": "異なる1日で行う:意味のある保存済みの活動。",
"achievement_self_active_3_title": "自分のプロフィール · 3 日",
"achievement_self_active_3_description": "異なる3日で行う:意味のある保存済みの活動。",
"achievement_self_active_7_title": "自分のプロフィール · 7 日",
"achievement_self_active_7_description": "異なる7日で行う:意味のある保存済みの活動。",
"achievement_self_active_14_title": "自分のプロフィール · 14 日",
"achievement_self_active_14_description": "異なる14日で行う:意味のある保存済みの活動。",
"achievement_self_active_30_title": "自分のプロフィール · 30 日",
"achievement_self_active_30_description": "異なる30日で行う:意味のある保存済みの活動。",
"achievement_self_active_60_title": "自分のプロフィール · 60 日",
"achievement_self_active_60_description": "異なる60日で行う:意味のある保存済みの活動。",
"achievement_self_active_100_title": "自分のプロフィール · 100 日",
"achievement_self_active_100_description": "異なる100日で行う:意味のある保存済みの活動。",
"achievement_self_active_180_title": "自分のプロフィール · 180 日",
"achievement_self_active_180_description": "異なる180日で行う:意味のある保存済みの活動。",
"achievement_self_active_365_title": "自分のプロフィール · 365 日",
"achievement_self_active_365_description": "異なる365日で行う:意味のある保存済みの活動。",
"achievement_self_return_14_title": "自分のプロフィール · 14 日間の休止",
"achievement_self_return_14_description": "この活動をしない日が丸14日以上続いた後に再開する:意味のある保存済みの活動。"
}
-22
View File
@@ -1,22 +0,0 @@
{
"achievement_self_active_1_title": "내 프로필 · 1 일",
"achievement_self_active_1_description": "서로 다른 1일에 수행하세요: 의미 있는 저장된 활동.",
"achievement_self_active_3_title": "내 프로필 · 3 일",
"achievement_self_active_3_description": "서로 다른 3일에 수행하세요: 의미 있는 저장된 활동.",
"achievement_self_active_7_title": "내 프로필 · 7 일",
"achievement_self_active_7_description": "서로 다른 7일에 수행하세요: 의미 있는 저장된 활동.",
"achievement_self_active_14_title": "내 프로필 · 14 일",
"achievement_self_active_14_description": "서로 다른 14일에 수행하세요: 의미 있는 저장된 활동.",
"achievement_self_active_30_title": "내 프로필 · 30 일",
"achievement_self_active_30_description": "서로 다른 30일에 수행하세요: 의미 있는 저장된 활동.",
"achievement_self_active_60_title": "내 프로필 · 60 일",
"achievement_self_active_60_description": "서로 다른 60일에 수행하세요: 의미 있는 저장된 활동.",
"achievement_self_active_100_title": "내 프로필 · 100 일",
"achievement_self_active_100_description": "서로 다른 100일에 수행하세요: 의미 있는 저장된 활동.",
"achievement_self_active_180_title": "내 프로필 · 180 일",
"achievement_self_active_180_description": "서로 다른 180일에 수행하세요: 의미 있는 저장된 활동.",
"achievement_self_active_365_title": "내 프로필 · 365 일",
"achievement_self_active_365_description": "서로 다른 365일에 수행하세요: 의미 있는 저장된 활동.",
"achievement_self_return_14_title": "내 프로필 · 14 일의 휴식",
"achievement_self_return_14_description": "이 활동 없이 온전히 14일 이상 지난 뒤 돌아오세요: 의미 있는 저장된 활동."
}
-22
View File
@@ -1,22 +0,0 @@
{
"achievement_self_active_1_title": "Perfil pessoal · 1 dias",
"achievement_self_active_1_description": "Faça isto em 1 datas distintas: uma atividade significativa guardada.",
"achievement_self_active_3_title": "Perfil pessoal · 3 dias",
"achievement_self_active_3_description": "Faça isto em 3 datas distintas: uma atividade significativa guardada.",
"achievement_self_active_7_title": "Perfil pessoal · 7 dias",
"achievement_self_active_7_description": "Faça isto em 7 datas distintas: uma atividade significativa guardada.",
"achievement_self_active_14_title": "Perfil pessoal · 14 dias",
"achievement_self_active_14_description": "Faça isto em 14 datas distintas: uma atividade significativa guardada.",
"achievement_self_active_30_title": "Perfil pessoal · 30 dias",
"achievement_self_active_30_description": "Faça isto em 30 datas distintas: uma atividade significativa guardada.",
"achievement_self_active_60_title": "Perfil pessoal · 60 dias",
"achievement_self_active_60_description": "Faça isto em 60 datas distintas: uma atividade significativa guardada.",
"achievement_self_active_100_title": "Perfil pessoal · 100 dias",
"achievement_self_active_100_description": "Faça isto em 100 datas distintas: uma atividade significativa guardada.",
"achievement_self_active_180_title": "Perfil pessoal · 180 dias",
"achievement_self_active_180_description": "Faça isto em 180 datas distintas: uma atividade significativa guardada.",
"achievement_self_active_365_title": "Perfil pessoal · 365 dias",
"achievement_self_active_365_description": "Faça isto em 365 datas distintas: uma atividade significativa guardada.",
"achievement_self_return_14_title": "Perfil pessoal · 14 dias de pausa",
"achievement_self_return_14_description": "Regresse após pelo menos 14 dias completos sem esta atividade: uma atividade significativa guardada."
}
Loaded 100 of 6511 files, more files were not shown because too many files have changed in this diff. Show more