aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/sbbuilder
AgeCommit message (Collapse)AuthorFilesLines
2 daysSwitch: never set checked itself, report the new state insteadDanilo M.1-5/+5
The shared Switch flipped its own checked on click, which replaced the caller's binding with a constant. Every use binds checked, so after a click the switch stopped following its source: Discard on a settings draft reverted the value and left the switch showing the click. Four status rows and the headphones panel each carried a resync workaround for it. toggled now carries the new state and the switch moves only when the caller's binding does. Handlers that read checked as the new value take the argument instead; the workarounds are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 daysdocs: the sbbuilder settings pagesDanilo M.1-0/+34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 dayssbbuilder: fixes from reviewDanilo M.6-26/+66
Toml: a value followed by anything but a comment was parsed as if the line ended there, so a multi-line string (which opens with an empty one) or `x = "a" junk` read as valid and set() could write a duplicate or mangle it. entries() now skips such lines and set() refuses them with the existing "cannot edit" error. The ponytail comment names the ceilings. Store: a failed put left Save enabled with a stale draft; it now marks the key invalid. An empty manifest URL used to unset, which removed the row being typed in; it now marks the row invalid instead (Setting clears the mark just before set, so the one made inside set stays). Noted that list entries with spaces cannot be entered here. Sbb: refresh() ran an ssh fetch for the desktop page too and let two fetches overlap, or one run during a save. It is split into reloadDesktop() and fetch(false), and fetch() returns while busy. A successful config-get clears a stale VM error, and a missing text reads as empty. The put now writes and records the draft as sent, so typing during the save is not marked saved. SbbVmModule: fields are read-only while busy, a Reload button sits beside the status line, and the manifest URL field says Remove deletes the row. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2 dayssbbuilder: Desktop and Build VM settings pagesDanilo M.2-0/+322
Under SB Builder in the settings window. The desktop page edits sb-builder's config.toml in place; VM control is a switch because an emptied field means the default domain, not "". The VM page is read-only until the helper answers config-get. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 dayssbbuilder: the two config draftsDanilo M.2-0/+229
The desktop config is a watched local file; the VM one goes through the helper's config-get and config-set over ssh, so the helper validates what lands in root's file. Field text is typed after the key's default, the same check sb-builder makes on load. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2 dayssbbuilder: a line editor for sb-builder's TOML configsDanilo M.2-0/+247
Same shape as qtmaildir's Ini.js, so a file the user annotated keeps its comments: unset comments a key out, set reactivates it. A value spanning lines throws instead of gaining a duplicate key, which TOML rejects. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>