spa modules and terminology: app.mjs split into flat es modules (router lifecycle, shared widgets, views own their state), mock smoke in test/; DICTIONARY.md rules the terms, four renames swept clean through the machinery - paper->status (run summary command is report now), window->session, wrap->housekeeping, context window->contwin; no dual-accepts by ruling, old data migrates once in the clerk (restore self-heals old dumps)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// web/state.mjs — the shared runtime state.
|
||||
//
|
||||
// Deliberately small: auth (me), the render sequence (seq — the
|
||||
// async race guard; a view captures it at enter and checks it after
|
||||
// every await), and the currently addressed run (runId — setup and
|
||||
// play both write here; saves address it). Everything else is
|
||||
// module-local to the view or widget that owns it.
|
||||
|
||||
export const state = {
|
||||
view: null, // the active view name ('claim' | 'home' | ...)
|
||||
seq: 0,
|
||||
me: null, // the signed-in user ({ id, name, superuser }) or null
|
||||
runId: null,
|
||||
};
|
||||
Reference in New Issue
Block a user