Fix the sketch tabs and split main.ts into named sub-graphs #6
Loading…
Reference in a new issue
No description provided.
Delete branch "tidy-and-split-main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Housekeeping, plus a restructure of
main.tstoward the project's main goal: orchestration that can be read as dataflow.Sketch tabs and the UI audit
ui-choicesclass when the shared UI was unified, so it rendered as a vertical list over the formula and theme row. It is a segmented row again.check:uinow requiresui-choiceson everyrole="radiogroup"container. It fails without the fix and passes with it.main.tssplit intosrc/graph/*.graph.tsmain.tswas one 1,400-line closure whose parts reached each other through 20 scattereddefer(() => x$)forward references, so the app's one cycle ran through the whole file. It is now about 70 lines that call 13 modules in dependency order:chrome(mount andconnectChrome$),intents,history,projections,timekeeping,selection,navigation,state-mode,app-state(scopedOf),windows,workspace-actions,document-actions,persistence.Picks of other modules' records) to a record of the streams it makes. Return types are inferred.defers inmain.ts(the windows'signals$/inputs$, and the two action streams folded into history). The only otherdeferis internal to state mode.programList,programOfandinputsFormoved intoprograms.ts.Verification
check:ui), Prettier, and 507 tests pass.🤖 Generated with Claude Code
tidy-and-split-mainto Fix the sketch tabs and split main.ts into named sub-graphs