11 Commits
Author SHA1 Message Date
waozi 4353f4a321 Keep the SQL regression fixture aligned with session details 2026-10-22 20:00:07 -03:00
waozi dc8aad00e6 Match the sync SQL fixture to the current habit schema 2026-10-22 03:49:03 -03:00
waozi be56541465 Bring the tests up to date with today's app
Astral Projection runs 40 minutes, habits store their coin level, package
modules are generated under their package prefix, and the Elist link test
names the modules the cells now use. Tests that load apps without Radio's
playback get silent stand-ins.
2026-10-19 20:22:15 -03:00
waozi 86d156a005 Fix the storage SQL and habit table tests for 2.1.32
The storage SQL test schema gains habits' span columns and habit_changes;
the habit table test taps the edit action again if a slow runner drops it.
2026-10-13 18:01:58 -03:00
waozi 7c750cc193 Measure spans without a good length
A habit that measures spans from start to end now only measures them: the
editor no longer has a "Good length" row under "Measure start to end",
and a span is not judged good or bad. Its statistics show the spans'
average and longest length, a bar per span and when they started and
ended, without an on-target count or a goal line. Questions keep their
good answers.

Lumi's set_habit_tracking sets check, count with a target, or span, and
her context no longer lists a span goal.
2026-10-13 14:47:20 -03:00
waozi 56a5b52c24 Keep habit days as entries: spans, good ranges and Lumi setup
A habit's days now hold entries, several a day. An entry has its time,
or a span's start and end, and its answers. Tapping a day that is done
opens the day's screen, the same screen as a practice's sessions, which
lists its entries to change or delete, ends a running span, and adds
another entry. A habit with questions asks them in the entry dialog;
counting habits open the day's entries from their count dialog.

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

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

Lumi sets a habit's tracking with set_habit_tracking (check, count to a
target, or spans with good lengths) and its questions and good answers
with set_habit_questions; a question that keeps its words keeps its
answers. Her context lists both for each habit.
2026-10-13 14:38:38 -03:00
waozi 7b65ddaf5e Let habits ask questions when a day is done, with their statistics
A habit's editor now has "Ask when done": add questions, each with its
words and how it is answered, as text, a whole number, a time or yes or
no. A habit without questions works as before. With them, tapping an
open day shows the questions, and Done records the answers and marks the
day. Tapping a day that is done shows its answers to change, like a
practice's session data, with Not done to open the day again. Counting
habits show their questions under the count steps.

Each answer keeps its question's words, so earlier days read the same
after a question is reworded or removed. Questions travel with the habit
and answers with the day to every device, only inside the encrypted
records; older versions of the app keep them.

The habit's statistics add up each question over the last 30 days: the
average and earliest to latest of times, with a dot per day, bedtimes
around midnight averaging correctly; the average and total of numbers
with a bar per day; how often the answer was yes; and the latest written
answers.
2026-10-13 13:56:21 -03:00
waozi 3aa5595fb4 Let habits repeat on a schedule that keeps their history
A habit's schedule now reads as one sentence in its editor: "Every week",
"Every 2 days", "Every month", "Every year", a formula, or no set days,
with - and + for how often. Weekly habits show the seven days as circles
lit in the habit's color; tap a day to turn it on or off. Monthly habits
pick days of the month, the last day, or a weekday such as the last
Friday; yearly habits pick a month and day. A formula plans days with
numbers such as days, weekday and nth, for example "days % 3 = 0".
"Remind me at" sends the habit's notification on its planned days, or is
Off.

A changed schedule plans the days from today on. Earlier days keep the
schedule they had and nothing recorded is removed. In the habit table
only planned days have a circle; a day off the schedule still opens, and
what was recorded on it shows faded. Schedules travel with the habit to
other devices; older versions of the app keep them and see a weekday
mask that matches where one can.

Lumi sets any of these schedules and the notification with the new
set_habit_schedule tool and reads each habit's schedule in her context.
The editor's sections are always open under plain headings, and the
icons show one row with ... for the rest. New and default habits start
without a notification instead of one at midnight. Habits 1.0.5 lets
days off the schedule be opened and counted.
2026-10-13 01:55:41 -03:00
waozi cc13c9d153 Fit the habit table to narrow screens and choose icons with GLM
On a narrow screen the habit table no longer runs past its edge: rows
show a smaller icon without the name, and when even that does not fit,
fewer past days. A habit without an icon of its own and no practice to
suggest one gets one chosen by the Waozi node's GLM service from the
habit icons, or keeps its first letter when none fits; an icon chosen in
the editor, including the letter, is never replaced.

Holding Backspace, Delete or an arrow key in a text field now repeats
like in any text editor instead of acting once.
2026-10-12 14:55:59 -03:00
waozi 32ce401f1e Let habits be deactivated and dragged back into the list
A habit's editor now has Deactivate beside Delete. A deactivated habit
keeps its days but leaves the habit list, today's count, reminders, the
desktop tray and Lumi. A button at the bottom of Habits shows the
deactivated habits; dragging one into the list makes it active again in
the place it is dropped.

The flag is a new habits.deactivated column (the upgrade adds it as 0)
and travels in the habit's sync record. The server does not store it
yet, so each device keeps its own choice, as with schedules and
reminders.

Requested in Inner Breeze feedback from the owner's account (2.1.29,
Pixel 3a).
2026-10-11 22:25:47 -03:00
waozi b5356aaac7 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.
2026-09-27 15:40:52 -03:00