A personal, self-modifiable, agent-native computing environment: Emacs's soul, reborn web-native, mobile-first, and realtime. Built on Sigil.
- HTML 100%
|
David Wilson
2e6b1d30df
slate: drive the log "tick" button through an on-*: closure
Prove the native event bridge end to end (slate-core.md §9 gap 1): convert one event path off the data-slate-* delegation onto an on-click: Sigil closure that dispatches into the reducer. - New (slate dispatch): a settable dispatcher hook (set-slate-dispatch! / slate-dispatch!) so view modules can build closures that route into the reducer without a dependency cycle with (slate main); main installs the reducer at boot. - button-on component: emits (on-click: <closure>) for local, trusted views (server-sent UI stays on the capability-safe event-string form). - The log buffer's "tick" button now dispatches "tick" via a closure; "note" and "clear" keep the delegated path, so both coexist. - Export sigil_wasm_dom_dispatch_event from the web build so the JS bridge can call the trampoline. Validated headless (CDP): clicking the on-click: button fires the closure and increments the reducer (0->1->2 events, tick #N lines), the delegated buttons still work, zero console errors, desktop + mobile. |
||
|---|---|---|
| assets | Fix mobile selector typing (IME) + add C-x prefix chord keys | |
| design | Add UI direction proposal (Fable): 'Inscribed stone' visual + interaction spec | |
| src/slate | slate: drive the log "tick" button through an on-*: closure | |
| .gitignore | Move Slate onto the framework spine (root-state, render, dispatch) | |
| package.sgl | slate: drive the log "tick" button through an on-*: closure | |
| sigil.lock | Move Slate onto the framework spine (root-state, render, dispatch) | |