The same Kryon and Ziran as CSS, Plot, Game2D, Entity, Apps and Auth,
with CSS 5120868d on that pair, so Werkzeug resolves Workbook against
one Kryon copy.
Local tests (no local overrides, through build-queue): ziran lock and
make test (service, grid, source audit, structure, conversion, Gnumeric,
hidden rows, menus, the private-Xvfb desktop app and 30 Gnumeric parity
fixtures), plus the hosted KRYON_HOSTED_UI bundle build.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The native engine's WorkbookAddSheet returns the new sheet and the
portable one returns 1 or 0, so the chart command's `== null` check did
not compile in hosted builds (Werkzeug's Workbook bundle). Check each
engine's own result, as the grid already does.
Local tests (no local overrides, through build-queue): the hosted
KRYON_HOSTED_UI bundle builds and src/app.zi passes ziran fmt --check;
make build, the private-Xvfb desktop test, grid test and source audit
pass.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The same Kryon and Ziran as CSS, Plot, Game2D, Entity, Apps and Auth,
with CSS a5ab2bbe on that pair, so Werkzeug resolves Workbook against one
Kryon copy.
Local tests (no local overrides, through build-queue): ziran lock, then
make test-ci (service, grid, source audit, structure, conversion,
Gnumeric, hidden rows, menus and the private-Xvfb desktop app) and make
parity (30 Gnumeric fixtures 1:1).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Kryon 0.4.0 removed the Widgets and Desktop modules, so the editor, grid
and tests import Kryon's public widget modules (kryon/box, kryon/text,
kryon/text_field, kryon/tab_bar, kryon/menu, kryon/desktop_runtime, ...)
and call their qualified Draw and Props names. Sources are formatted with
Ziran 0.6.0.
Pins: Kryon f123e8ba (v0.4.0), Ziran d17c7aa1 (v0.6.0) and CSS 3799bb09,
the same Kryon CSS, Plot, Game2D, Entity, Apps and Auth pin, so
Werkzeug resolves Workbook against one Kryon copy.
Local tests: ziran lock and make test (no local overrides) through
build-queue: service, grid, source audit, structure, conversion, Gnumeric,
the private-Xvfb desktop test and 30 Gnumeric parity fixtures.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Kryon's raylib library now builds libaom and dav1d, which need nasm,
Meson and Ninja, and links the system libopus. The Test job stopped at
libaom's missing assembler.
CodeQL's autobuild ran make -j4, so two ziran processes cloned the same
package into one cache directory at once and the cache was left
unusable. Build it with one manual make instead.
workbook/grid draws the editor's column letters, row numbers, cell
squares, theme colors and sheet tabs for a real workbook from
workbook/engine, read-only, with column widths and count or money
formats. The editor paints its grid through the same squares. It
replaces workbook/sheet_table.
Other apps show CSV-like tables through workbook/sheet_table: typed
count, money and text columns, a totals row, fitted widths, one screen
of cell rectangles and CSV text, with no UI toolkit dependency.
Ctrl+Z undoes and Ctrl+Y or Ctrl+Shift+Z redoes a finished cell edit,
paste, cut, clear, fill, and row or column insertion and deletion. Each
step keeps a whole copy of the workbook (Engine.WorkbookClone), so rows
and columns come back with the formula references they moved, and undo
selects the changed cells again on their sheet. While a cell is edited,
Ctrl+Z first takes its typing back a word at a time, or the last picked
reference; Escape leaves no step behind.
Typing after a toolbar button or sheet tab press kept only the last
character, because that control held Kryon's keyboard focus. The cell
editor now takes the focus when the grid starts an edit.
A press on any cell grew the grid to the window's edge and shrank it again
on release, so in a window larger than the sheet, such as Geld inside
Harmony, every click flashed empty rows and columns. The grid now grows
only as far as a selection, a dragged fill, or a picked reference reaches.
Saving is automatic, so the line under the sheet tabs no longer reports
loads, edits and saves. It appears only when a save fails and is being
retried.
While a formula is being written, a click on the grid writes that cell's
reference at the cursor and a drag writes a range; the next click
replaces it, and Shift extends it. Another sheet's tab can be opened to
pick a reference there. The edited cell shows the formula, with each
reference outlined in its own color on the grid.
Cells can be selected as ranges by dragging or Shift-clicking, and
Copy, Cut, Paste and Delete act on the range. The fill handle on the
selection's corner copies it down or across, and pasted or filled
formulas move their relative references and keep $-fixed ones.
A failed save is retried after two seconds rather than after a frame
count, which an idle window now draws more slowly.
WORKBOOK_PROFILE=NAME now gives every profile its own workbook in
$XDG_DATA_HOME/NAME, the way Geld already works. Harmony uses this for
Workbook profiles shown as their own apps.
`ziran check --lint` found 74 integer locals in the engine and quad.zi
that only ever hold 0 or 1 and are only compared with them (found,
negative, try_newton, the goto120/220/230 flags of the ported Bessel I
code, and others). They are bools now: set with true and false, or
directly with the comparison that used to be cast to s32, and tested
as `if found` and `if !found`.
Checked as described in the previous commit: fuzzing against the cell
built before both changes shows no differences, parity-test output is
identical, and make check passes on the pinned Ziran. With the current
Ziran the lint reports no flags left.
Five else-if chains that compare one value with constants are now Jai
if-cases, `if op == { case 1; ... case; }`: the comparison operator in
EvalCompare, the inverter's step in PFuncInverter, the factor mode in
NtFactorEach, the 14 weekend codes in IntlWeekendDecode, and the AGM
method in quad.zi.
The generated code changes, so this was checked by behavior: together
with the next commit, the new cell agrees with the one built before
either change on 12,800 fuzzed formulas and 960 fuzzed CSV, XML and
multi-sheet workbooks (make fuzz's four modes, eight seeds each), gives
identical parity-test output, and passes make check on the pinned Ziran
and the source audit, structure and conversion tests.
`ziran check --lint` found 52 casts that only widen a whole initializer,
assignment, argument, or result, mostly a byte read as s32. They are
removed, with the parentheses they no longer need. The cast on the value
snprintf formats stays, since variadic arguments are not widened.
The change is textual only: the cell binary built before and after is
byte-identical and the editor's generated C is unchanged.
This Ziran converts narrower numbers implicitly where no value can
change, so casts that only widen can go. `make check`, the source audit,
and the structure and conversion tests pass on it.
The editor and engine compared bytes with character codes written as
numbers (123, 34, 61, 47, ...). `ziran check --lint` found 16 such
comparisons; they now read #char "{", #char "\"", #char "=", #char "/"
and so on.
The change is textual only: the cell binary built before and after is
byte-identical, the editor's generated C is unchanged, and `make check`
passes with the pinned Ziran.
Kryon d41ead81 names the key codes every host reports (KeyEnter,
KeyBackspace, ...), so Workbook drops its own copies, which would now
collide, and keeps only the letters it uses.