@elaraai/east-codex-plugin 1.0.97 → 1.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ description: "e3 + UI bridge — build interactive, reactive decision surfaces a
5
5
 
6
6
  ## Detailed skill scope
7
7
 
8
- e3 + UI bridge — build interactive, reactive decision surfaces as e3 tasks, authored as JSX. Use when: (1) Declaring UI tasks with ui() (e3 tasks of kind 'ui' producing a UIComponentType), (2) Binding reactive workspace data with Data.bind (read/write/has/commit/discard/status against e3.input / task defs) inside a <Reactive>{$ => …}</Reactive> block, (3) Staged vs direct edit modes and reviewing pending changes with the <Diff> tag, (4) Graph/ontology editing with the <Ontology> tag, (5) Calling named package functions (e3.function) RPC-style with Func.bind (call/read/status/error/pending/cancel), (6) Wiring a manifest (reads/writes + bound functions auto-derived from a UI task's IR), (7) Interactive causal-experiment surfaces ('did X change Y?') with the <Experiment> tag, generic over a bound dataset's row and driven by e3.function estimators, (8) The Decide loop — Decision.bind unions reasoning-task decision outputs into one handle (shared selection + commit gate), <DecisionQueue> (urgency-sorted queue with evidence/options/judgement/modify facets, Apply/Reject, grouping, an author-bound Slice scope) and <DecisionJournal> (the resolved read-back), (9) The Studio — Studio.component declares a self-contained East UI function (written exactly like a ui() body) with what the palette shows; the pages operators build are one record of Studio.Types.Pages with one patch write; <Studio.Builder> is the builder — the open page's canvas under one toolbar (its status, the history, Desktop · Tablet, Save as template, Preview and Publish), the palette of the listed components and the project's pages before it, the inspector of the selected placement after it, and the publish preview in its place — every gesture a draft, Save one patch on the page, and a publish stamping each placement with the code it goes live with; <Studio.Library> is a project's templates and pages and where new pages start, opening pages in the builder; <Studio.Page> draws one page's live or draft layout with no chrome, (10) Rendering deployed surfaces in a React app with @elaraai/e3-ui-components — <E3Provider> (E3Config: apiUrl, repo, workspace, token, fetch), <ReactiveDatasetProvider> and <UITaskPreview> — over a server, or over an e3 running in the page (e3-web's createWebE3 and its e3.fetch), (11) Queries — operators build typed jq queries over the datasets a surface binds and save them to one record of Query.Types.Saved with one patch write; <Query.Builder> edits the open query as plain-word steps or as jq, checks it as it is edited, runs it on e3 as a one-shot call — or as a split call over the pieces of a dataset larger than one piece, its plan explained — and shows the result as a Table or a tree; <Query.Library> is the saved queries as a gallery of wireframes and where new queries start, opening them in the builder, (12) The Plan — <Plan>, the one planning canvas, always in its builder frame — one toolbar holding every control it has, the banners, the canvas, the footer's counts: heterogeneous rows on ONE shared { time | number | ordinal } axis from three sources — event kinds over records (Schedule.events placed on Schedule.resources, the kinds a Calendar takes), rows laid out by a series list over local data or a Data.bindPaged source and nested from the data's own structure, and read-only rows (Plan.over a dataset, hand-built rows) — its panes optional props — a library (every event kind's templates, the backlog by when it is due, the series a viewer shows and hides, and cards of the author's own whose drop sets a Schedule.patch) and an inspector of what is selected (one event, several, a row at a bucket, or the window's counts; an event kind's own inspector in place of its form) — with one Slice.bindRecords rail (its rows, each event kind, resource kind and templates record a source, one window), key search, links between runs or events, and an editing session — dropped cards and moved or resized runs, chips, tiles and marks as drafts with Undo / Redo and one checked Save — its authoring vocabulary on `Plan` (Plan.axis, Plan.series.*, Plan.over, Plan.eventRef, Plan.library.*, the value builders), (13) The Sheet — <Sheet>, the one planning spreadsheet, always in its builder frame — one toolbar holding every control it has, the banners, the grid with its docked strip, the footer — its panes optional props: a library (templates, columns, the author's cards) and an inspector of the selected row's every field or the author's own; its rows from an e3 record bound with its patch door (the record's entries, one entry's rows or groups with loose rows between them, or a large record a window at a time — Save one patch commit through the record) or the host's (an array, a bind handle, a Data.bindPaged source with a key search), or the `rows` source of its one Slice.bindRecords rail, paged from it, the rail narrowing its templates records too; typed columns (dates, quantities with units, register lookups, a directed link between register members, stamped codes), a blank tail that invites the next row, an East-function copilot that fills cells and proposes rows, saved-view tabs over every source's narrowing, groups with loose rows between them and read-only sub rows, drag and drop, Excel round-trip, and an editing session — drafts checked as they are made, Undo / Redo and one checked Save — its authoring vocabulary on `Sheet` (Sheet.column.*, Sheet.register.*, Sheet.driver, Sheet.group, Sheet.subRows, Sheet.library.*, Sheet.field, Sheet.apply). (14) Calendar — the record-backed scheduling builder in e3-ui: Calendar, Resources and Timeline layouts, bound resource and template records, the event record’s unscheduled backlog, one Slice.bindRecords rail — a source per event kind, resource kind and templates record, one date window — shared Toolbar/Library/FieldForm/EditSession behavior, and explicit agenda/card actions below 480px. BuilderFrame remains internal. (15) Roster — weekly staffing over the app's own records: its duties a Schedule.events kind (start, end, resource, shift, group, position?, activity?, hours?), its people and agencies Schedule.resources kinds, its weeks Schedule.periods for Publish, its cover Roster.targets, and its shifts, groups, positions, activities and proposals read through Roster.* accessors; Shifts and People layouts; pure coverage/rules over the duty row type; the app's pay in its own codes, asked a person at a time; Find fixes on the app's fit e3.function (Func.bind, Roster.fit(R)); the week's duties read through the slice's duty source; one Slice.bindRecords rail over the duties, targets, people and activities; one history over a session per record, Save per record and Publish saving first, then the week's status; and explicit mobile actions. (16) The Flowchart — <Flowchart>, the state-transition flowchart, always in its builder frame — one toolbar (find state, LR · TD, the freshness chip, the rail of its one Slice.bindRecords, and where it edits the history item), the canvas filling main, the footer's counts: states as nodes in ordered phase lanes (the layout derived, no coordinates), H/V-routed transitions, decision triggers and evidence-weighted links, over an e3 record of flows by name (Flowchart.Types.Flows, its value written with Flowchart.values and checked at build — a lone flow is a record of one entry) or the host's flows or one flow (data, the value's type picking the arm — Flowchart.over builds one flow from the host's own tables with row mappers); its library pane's Flows tab (Flowchart.library.flows()) lists the flows by name — over a record those its rail's `flows` source narrows it to, counted — and opens one, the open flow kept under the flowchart's name, and '+ New flow' starts one, beside state and transition templates, templates records (Flowchart.library.states / transitions), and the author's own cards (Flowchart.library.tab), each following the source of the rail it names, and each card dropped on the canvas — a state template onto a lane, a transition template onto a transition, an author's card where its drop's type says, ⏎ on a card onto the selection; every gesture on the canvas — '+ LANE', a lane renamed (a double-click on its header) or deleted, a state added, edited, moved or deleted, a handle dragged to connect, Del on the selection — one transaction of the open flow's editing session, each flow keeping its own drafts, with Undo / Redo and one checked Save through the record's patch mutation or the host's onApply; its inspector pane, on by default (inspector={false} takes it away) — Details for the state, transition, decision, lane (a click on its header) or several states selected, or the open flow, each through the shared form, a state's or a transition's own Details in its place with inspector={{ state, transition }}, and Issues, each selecting what it names; with selection and path tracing — its types on Flowchart.Types, a row patch from Flowchart.patch. (17) The Allocation — <Allocation>, a day's arrivals booked into timed lane slots and each bin's quantity allocated to resources with room and time for its hold, always in its builder frame, as a Timeline (lanes, links, resource rows) or a Table (a row per slot), over the app's own records: its bins an instant Schedule.events kind (at, resource, arrival, quantity, parts, hold, kind?), its lanes and resources Schedule.resources kinds (offset; min, max, note, hold, jobs), what it books from Allocation.arrivals (each arrival's values a booked bin's own fields), and its days Schedule.periods for Publish — one history over the bins' and the days' sessions, every gesture a draft, Save per record and Publish saving first, then the day's status — the app's fit an e3.function bound with Func.bind (a place or a take question about the drafted day, FitRequest(R) over the bin row type, built on Allocation.answer / fit / lookahead), split loads and Find a fit, the app's bin fields as columns and its own check over CheckContext(R), one Slice.bindRecords rail over the day's bins, its lanes, resources and arrivals, the shared Library, Inspector and session, explicit-action cards below 480px, and pure loads / candidates / check / slots over Day(R) a task runs too.
8
+ e3 + UI bridge — build interactive, reactive decision surfaces as e3 tasks, authored as JSX. Use when: (1) Declaring UI tasks with ui() (e3 tasks of kind 'ui' producing a UIComponentType), (2) Binding reactive workspace data with Data.bind (read/write/has/commit/discard/status against e3.input / task defs) inside a <Reactive>{$ => …}</Reactive> block, (3) Staged vs direct edit modes and reviewing pending changes with the <Diff> tag, (4) Graph/ontology editing with the <Ontology> tag, (5) Calling named package functions (e3.function) RPC-style with Func.bind (call/read/status/error/pending/cancel), (6) Wiring a manifest (reads/writes + bound functions auto-derived from a UI task's IR), (7) Interactive causal-experiment surfaces ('did X change Y?') with the <Experiment> tag, generic over a bound dataset's row and driven by e3.function estimators, (8) The Decide loop — Decision.bind unions reasoning-task decision outputs into one handle (shared selection + commit gate), <DecisionQueue> (urgency-sorted queue with evidence/options/judgement/modify facets, Apply/Reject, grouping, an author-bound Slice scope) and <DecisionJournal> (the resolved read-back), (9) The Studio — Studio.component declares a self-contained East UI function (written exactly like a ui() body) with what the palette shows; the pages operators build are one record of Studio.Types.Pages with one patch write; <Studio.Builder> is the builder — the open page's canvas under one toolbar (its status, the history, Desktop · Tablet, Save as template, Preview and Publish), the palette of the listed components and the project's pages before it, the inspector of the selected placement after it, and the publish preview in its place — every gesture a draft, Save one patch on the page, and a publish stamping each placement with the code it goes live with; <Studio.Library> is a project's templates and pages and where new pages start, opening pages in the builder; <Studio.Page> draws one page's live or draft layout with no chrome, (10) Rendering deployed surfaces in a React app with @elaraai/e3-ui-components — <E3Provider> (E3Config: apiUrl, repo, workspace, token, fetch), <ReactiveDatasetProvider> and <UITaskPreview> — over a server, or over an e3 running in the page (e3-web's createWebE3 and its e3.fetch), (11) Queries — operators build typed jq queries over the datasets a surface binds and save them to one record of Query.Types.Saved with one patch write; <Query.Builder> edits the open query as plain-word steps or as jq, checks it as it is edited, runs it on e3 as a one-shot call — or as a split call over the pieces of a dataset larger than one piece, its plan explained — and shows the result as a Table or a tree; <Query.Library> is the saved queries as a gallery of wireframes and where new queries start, opening them in the builder, (12) The Plan — <Plan>, the one planning canvas, always in its builder frame — one toolbar holding every control it has, the banners, the canvas, the footer's counts: heterogeneous rows on ONE shared { time | number | ordinal } axis from three sources — event kinds over records (Schedule.events placed on Schedule.resources, the kinds a Calendar takes), rows laid out by a series list over local data or a Data.bindPaged source and nested from the data's own structure, and read-only rows (Plan.over a dataset, hand-built rows) — its panes optional props — a library (every event kind's templates, the backlog by when it is due, the series a viewer shows and hides, and cards of the author's own whose drop sets a Schedule.patch) and an inspector of what is selected (one event, several, a row at a bucket, or the window's counts; an event kind's own inspector in place of its form) — with one Slice.bindRecords rail (its rows, each event kind, resource kind and templates record a source, one window; an event kind on paged resources read a cell at a time through a series index and shaded from a summary index zoomed out), key search, links between runs or events, and an editing session — dropped cards and moved or resized runs, chips, tiles and marks as drafts with Undo / Redo and one checked Save — its authoring vocabulary on `Plan` (Plan.axis, Plan.series.*, Plan.over, Plan.eventRef, Plan.library.*, the value builders), (13) The Sheet — <Sheet>, the one planning spreadsheet, always in its builder frame — one toolbar holding every control it has, the banners, the grid with its docked strip, the footer — its panes optional props: a library (templates, columns, the author's cards) and an inspector of the selected row's every field or the author's own; its rows from an e3 record bound with its patch door (the record's entries, one entry's rows or groups with loose rows between them, or a large record a window at a time — Save one patch commit through the record) or the host's (an array, a bind handle, a Data.bindPaged source with a key search), or the `rows` source of its one Slice.bindRecords rail — the record's rows, the source's narrowing drawn over them as the lens (a filtered spreadsheet: only the rows it keeps, one after another, each at its row number, e3 placing them from the index) — the rail narrowing its templates records too; typed columns (dates, quantities with units, register lookups, a directed link between register members, stamped codes), a blank tail that invites the next row, an East-function copilot that fills cells and proposes rows, saved-view tabs over every source's narrowing, groups with loose rows between them and read-only sub rows, drag and drop, Excel round-trip, and an editing session — drafts checked as they are made, Undo / Redo and one checked Save — its authoring vocabulary on `Sheet` (Sheet.column.*, Sheet.register.*, Sheet.driver, Sheet.group, Sheet.subRows, Sheet.library.*, Sheet.field, Sheet.apply). (14) Calendar — the record-backed scheduling builder in e3-ui: Calendar, Resources and Timeline layouts, bound resource and template records, the event record’s unscheduled backlog paged through its source, one Slice.bindRecords rail — a source per event kind, resource kind and templates record, one date window — a resource kind paged a window at a time (Data.bindPaged), the events on it read a cell at a time through a series index and shaded from a summary index past 10,000, shared Toolbar/Library/FieldForm/EditSession behavior, and explicit agenda/card actions below 480px. BuilderFrame remains internal. (15) Roster — weekly staffing over the app's own records: its duties a Schedule.events kind (start, end, resource, shift, group, position?, activity?, hours?), its people and agencies Schedule.resources kinds, its weeks Schedule.periods for Publish, its cover Roster.targets, and its shifts, groups, positions, activities and proposals read through Roster.* accessors; Shifts (Day · Week) and People (Week · Month) layouts — the People week a tile a duty in the shift's colour token (Roster.shifts' color, east-ui's ColorTokenType), the month a column a week, and the app's week patterns (Roster.patterns, Roster.library.patterns()) dropped on a person's week as one step; pure coverage/rules over the duty row type; the app's pay in its own codes, asked a person at a time; Find fixes on the app's fit e3.function (Func.bind, Roster.fit(R)); the week's duties read through the slice's duty source; one Slice.bindRecords rail over the duties, targets, people and activities; one history over a session per record, Save per record and Publish saving first, then the week's status; and explicit mobile actions. (16) The Flowchart — <Flowchart>, the state-transition flowchart, always in its builder frame — one toolbar (find state, LR · TD, the freshness chip, the rail of its one Slice.bindRecords, and where it edits the history item), the canvas filling main, the footer's counts: states as nodes in ordered phase lanes (the layout derived, no coordinates), H/V-routed transitions, decision triggers and evidence-weighted links, over an e3 record of flows by name (Flowchart.Types.Flows, its value written with Flowchart.values and checked at build — a lone flow is a record of one entry) or the host's flows or one flow (data, the value's type picking the arm — Flowchart.over builds one flow from the host's own tables with row mappers); its library pane's Flows tab (Flowchart.library.flows()) lists the flows by name — over a record those its rail's `flows` source narrows it to, counted — and opens one, the open flow kept under the flowchart's name, and '+ New flow' starts one, beside state and transition templates, templates records (Flowchart.library.states / transitions), and the author's own cards (Flowchart.library.tab), each following the source of the rail it names, and each card dropped on the canvas — a state template onto a lane, a transition template onto a transition, an author's card where its drop's type says, ⏎ on a card onto the selection; every gesture on the canvas — '+ LANE', a lane renamed (a double-click on its header) or deleted, a state added, edited, moved or deleted, a handle dragged to connect, Del on the selection — one transaction of the open flow's editing session, each flow keeping its own drafts, with Undo / Redo and one checked Save through the record's patch mutation or the host's onApply; its inspector pane, on by default (inspector={false} takes it away) — Details for the state, transition, decision, lane (a click on its header) or several states selected, or the open flow, each through the shared form, a state's or a transition's own Details in its place with inspector={{ state, transition }}, and Issues, each selecting what it names; with selection and path tracing — its types on Flowchart.Types, a row patch from Flowchart.patch. (17) The Allocation — <Allocation>, a day's arrivals booked into timed lane slots and each bin's quantity allocated to resources with room and time for its hold, always in its builder frame, as a Timeline (lanes, links, resource rows) or a Table (a row per slot), over the app's own records: its bins an instant Schedule.events kind (at, resource, arrival, quantity, parts, hold, kind?), its lanes and resources Schedule.resources kinds (offset; min, max, note, hold, jobs), what it books from Allocation.arrivals (each arrival's values a booked bin's own fields), and its days Schedule.periods for Publish — one history over the bins' and the days' sessions, every gesture a draft, Save per record and Publish saving first, then the day's status — the app's fit an e3.function bound with Func.bind (a place or a take question about the drafted day, FitRequest(R) over the bin row type, built on Allocation.answer / fit / lookahead), split loads and Find a fit, the app's bin fields as columns and its own check over CheckContext(R), one Slice.bindRecords rail over the day's bins, its lanes, resources and arrivals, the shared Library, Inspector and session, explicit-action cards below 480px, and pure loads / candidates / check / slots over Day(R) a task runs too. (18) The Schematic — <Schematic>, the 2D world-coordinate drawing of the app's own records: a kind per record, keyed by String, its fields mapped to the Schematic's roles and its shapes made by accessors over the row's own fields — items (Schematic.items: a centre, a box, a footprint drawn about the centre, a label, a status, a meter, a figure), zones (Schematic.zones: a box, outlined or hatched, a geometry about its centre), links between two items (Schematic.links: from and to naming item slots) and nets joining many to many (Schematic.nets: sources and destinations) — each kind editable bound with its patch door (Record.bind) or read only (Data.bind), read whole or complete through its source of one Slice.bindRecords rail (entries: Data.bindPaged) — a window at a time where that source lists an area index (e3.recordIndex.area), its density shaded past 5,000 rows in view — its details a record keyed as it is (Schematic.details), its templates a record (Schematic.templates), its layers the app's rows (Schematic.layers), the library's tabs over every kind (Schematic.library.templates() / backlog() / index() / layers() / tab), each card dropped on the canvas — an item template adds an item at the point, a backlog row is placed there, a link or net template gives a link or a net of its kind its values, an author's card sets its Schematic.patch's fields, ⏎ onto the selection or at the view's centre — the inspector opted into: Details through the shared form over each kind's fields and its details', an item's position, a link's ends and a net's sides, and Issues, each selecting what it names; below 480px of main nothing drags, Details' Connect to… and the Backlog card's Place taking the gestures' place; a camera with a minimap, selection by a tap, Shift and the marquee, and every gesture — Move, Connect and a Shift session growing a net, an end retargeted, a net extended, Del — one step of one history over a session per record it writes, with Undo / Redo and Save sending each record's changes through its patch door, canConnect answering each pair with none or the refusal's words; onSelect hears the whole selection, each entity by its kind's slot and its key — its shapes and types on Schematic (Schematic.circle / polyline / polygon / rect about the anchor, outline / hatch, solid / dashed, Schematic.patch, Schematic.Types).
9
9
 
10
10
  # e3-ui — e3 + UI Bridge
11
11
 
@@ -17,7 +17,7 @@ and commit / discard, a view becomes a place a user commits a decision with its
17
17
  evidence — not a read-only report.
18
18
 
19
19
  The public surface is **JSX tags + platform helpers**, all from one import
20
- (`@elaraai/e3-ui`): the e3-specific tags `<Diff>`, `<Ontology>`, `<Experiment>`, `<Plan>`, `<Sheet>`, `<Calendar>`, `<Roster>`, `<Allocation>` and `<Flowchart>`, the `Data` and `Func`
20
+ (`@elaraai/e3-ui`): the e3-specific tags `<Diff>`, `<Ontology>`, `<Experiment>`, `<Plan>`, `<Sheet>`, `<Calendar>`, `<Roster>`, `<Allocation>`, `<Flowchart>` and `<Schematic>`, the `Data` and `Func`
21
21
  binding helpers, `Studio` and `Query` components, and the `ui()` task factory. Base UI tags (`<VStack>`, `<Text>`,
22
22
  `<Stat>`, …) come from `@elaraai/east-ui`. The factories (`Diff.Root(…)`) are an
23
23
  implementation detail under `@elaraai/e3-ui/internal` (also the e3-free,
@@ -137,12 +137,15 @@ Task → What do you need?
137
137
  │ ├─ Its axis: time, number or ordinal → Plan.axis / Plan.axis.number / Plan.axis.ordinal
138
138
  │ ├─ Rows, nested by what the data holds → Plan.series.span / buckets / chart / heat / table / cards / events / group / section / views / rows
139
139
  │ ├─ Data too large to hold whole → data={paged}, a Data.bindPaged handle
140
- │ ├─ Narrow its rows, event kinds, resources, templates → slice={{ slice: Slice.bindRecords(key, { rows?, job?, presses?, jobTemplates? }) }} (one window; Schedule.templates(rows, { …, source }))
141
- │ ├─ Event kinds over records too large to read whole → a kind's source over its interval index (range: "start") + Schedule.events(record, { entries }); with no rail, { window, backlogWindow, entries }; Schedule.resources(Data.bindPaged(record), {…})
140
+ │ ├─ Narrow its rows, event kinds, resources, templates → slice={{ slice: Slice.bindRecords(key, { rows?, job?, presses?, jobTemplates? }) }} (one window, which the rows never follow; Schedule.templates(rows, { …, source }))
141
+ │ ├─ Event kinds over records too large to read whole → a kind's source over its interval index (range: "start") + Schedule.events(record, { entries }), counted first and drawn within 10,000 events; with no rail, { window, backlogWindow, entries } over resources read whole, counted first by the days its events run on; Schedule.resources(Data.bindPaged(record), {…})
142
+ │ ├─ …on paged resources: read a cell at a time → the kind's source lists e3.recordIndex.series + e3.recordIndex.summary beside its interval index, shaded from the summary zoomed out; any other form is refused, naming both
143
+ │ ├─ …its paged resources narrowed by the rail → a source named after the paged kind's slot, Data.bindPaged(record, { indexes }) over its own record: the canvas pages the narrowing's rows
142
144
  │ ├─ A link between two runs, or two events → Plan.link({ from: Plan.ref(…), fromRun, … }) / Plan.link({ from: Plan.eventRef(kind, key), … })
143
145
  │ ├─ Its library pane: templates, backlog, series, cards → library={[Plan.library.events(), Plan.library.backlog(), Plan.library.series(), Plan.library.tab(rows, {…})]}
144
146
  │ ├─ Its inspector pane: what is selected → inspector (+ an event kind's own: Schedule.events(record, { inspector }))
145
147
  │ ├─ Event kinds dragged: templates, backlog, moves → built in with resources + events (+ library); canDrop={fn(Schedule.Types.Candidate) => Option<String>}
148
+ │ ├─ The app's optimiser over the window and the backlog: the Elara eye → optimise={Func.bind(e3.function)} from Plan.Types.OptimiseRequest({ job: Job }, { presses: Press }) to Plan.Types.OptimiseResult({ job: Job }); its answer lands as ONE step of the history (#1409)
146
149
  │ ├─ Overlap warnings, without dropping overlapping events → Schedule.events(record, { overlaps: "warn" | "allow" }); the chip selects the first pair
147
150
  │ ├─ Save each changed event kind through its patch door → applyMode="batch" (default); "auto" commits each ready gesture
148
151
  │ └─ Dropped cards and moves as drafts → a series' edit + editing={{ onUpdate | onApply }}
@@ -152,11 +155,12 @@ Task → What do you need?
152
155
  │ │ ├─ One entry's rows, groups or loose rows → entry={{ key, rows: "field", id: "id" }} (+ group)
153
156
  │ │ └─ A large record, a window at a time → window={Data.bindPaged(r)}
154
157
  │ ├─ The host's rows → <Sheet data={…} id="id" columns={{…}} />
155
- │ ├─ Narrow its rows and templates — one rail → slice={{ slice: Slice.bindRecords(key, { rows, rowTemplates, … }) }} (rows paged from `rows`; Sheet.templates(rows, { …, source }))
158
+ │ ├─ Narrow its rows and templates — one rail → slice={{ slice: Slice.bindRecords(key, { rows, rowTemplates, … }) }} (the record's rows, `rows`' narrowing drawn over them as the lens; Sheet.templates(rows, { …, source }))
156
159
  │ ├─ Its panes, each optional → library={[Sheet.library.rows(), Sheet.library.columns(), Sheet.library.tab(…)]} · inspector (+ fields)
157
160
  │ ├─ Its columns, registers and the driver → Sheet.column.* / Sheet.register.* / Sheet.driver
158
161
  │ ├─ Groups, loose rows between them, read-only sub rows → Sheet.group / Sheet.Types.Entry / Sheet.subRows
159
162
  │ ├─ Data too large to hold whole → data={paged}, a Data.bindPaged handle
163
+ │ ├─ The app's optimiser over the rows in view: the Elara eye → optimise={Func.bind(e3.function)} from Sheet.Types.OptimiseRequest(R) to Sheet.Types.OptimiseResult(R); its answer lands as ONE step of the history (#1409)
160
164
  │ └─ Drafts checked as they are made, one checked Save → onUpdate | onApply, ready, newRow
161
165
  │
162
166
  ├─ Draw a state-transition or process flow — the Flowchart (see The Flowchart below)
@@ -174,6 +178,22 @@ Task → What do you need?
174
178
  │ ├─ A card dropped on the canvas, or ⏎ on it → a state template onto a lane, a transition template onto a transition, an author's card where its drop's type says; ⏎ onto the selection
175
179
  │ └─ Edit a flow: lanes, states, transitions — Undo, one Save → record={…}, or data={…} + onApply (every canvas gesture a draft; canConnect vetoes a pair)
176
180
  │
181
+ ├─ Draw the app's records at world coordinates — a floor, a site — the Schematic (see The Schematic below)
182
+ │ ├─ A kind per record, under its slot → <Schematic extent={{ width, height }} items={{ racks: Schematic.items(record, { name, icon, x, y, label, … }) }} zones={{ … }} links={{ … }} nets={{ … }} />
183
+ │ ├─ Editable, or read only → Record.bind(record, [e3.mutation.patch(record)]) · Data.bind(record)
184
+ │ ├─ Every gesture one step: Undo, Save per record → built in over an editable kind: Move, Connect (Shift grows a net), an end retargeted, a net extended, Del
185
+ │ ├─ Narrow its kinds and templates — one rail → slice={{ slice: Slice.bindRecords(key, { <a kind's slot>: { source: Data.bindPaged(record, { indexes }) }, … }) }} (+ the kind's entries: Data.bindPaged(record)) · narrowed="dim"
186
+ │ ├─ A floor too large to read whole: a window at a time → its source lists e3.recordIndex.area(name, record, { x, y, width, height, at: "centre", cell }) (+ ones led by the rail's fields); past 5,000 rows in view, their density
187
+ │ ├─ Find an item by its key, wherever it stands → built in: Find seeks every item kind's record; a pick flies to the item and selects it
188
+ │ ├─ On a phone: below 480px of main, nothing drags → built in: Details' Connect to… and the Backlog card's Place, beside an item's x and y, a link's ends, a net's sides and Delete
189
+ │ ├─ Shapes from the row's own fields → footprint: (u) => some(Schematic.circle(u.radius)) · a zone's geometry: (a) => some(Schematic.polygon(a.corners))
190
+ │ ├─ What a card draws from another record → Schematic.items(…, { details: Schematic.details(record, { status, meter, metric, sublabel }) })
191
+ │ ├─ The layers, from the app's record → layers={Schematic.layers(systems.read(), { label, order?, tone?, color?, visible?, locked?, opacity? })}
192
+ │ ├─ Templates, the backlog, the index, the layers → Schematic.templates(rows, { …, source }) · library={[Schematic.library.templates(), .backlog(), .index(), .layers()]}
193
+ │ ├─ A card dropped on the canvas, or ⏎ on it → an item template adds an item at the point, a backlog row is placed there, a link or net template onto one of its kind; an author's card onto an entity: Schematic.library.tab(rows, { …, drop: (r) => Schematic.patch(R, { … }) }); ⏎ onto the selection
194
+ │ ├─ The inspector, a kind's form and its own Details → inspector · Schematic.items(record, { …, fields?: { f: Fields.* }, ready?: (row, key) => Readiness, inspector?: East.function([R, FunctionType([R], NullType)], UIComponentType, …) })
195
+ │ └─ What the host hears, and the connect veto → onSelect={fn(Array<Schematic.Types.Ref>)} · canConnect={fn(Schematic.Types.Candidate) → Option<String>}
196
+ │
177
197
  ├─ Staff a week's shifts from the app's own duties — the Roster (see Roster below)
178
198
  │ ├─ The duties: the app's record, a span kind → events={{ duty: Schedule.events(Record.bind(duties, [dutiesPatch]), { start, end, resource: { field, of }, shift, group, position?, activity?, hours? }) }}
179
199
  │ ├─ Who is rostered → resources={{ people: Schedule.resources(staff.read(), { name, icon, label, group, … }), agencies? }}
@@ -181,7 +201,10 @@ Task → What do you need?
181
201
  │ ├─ Publish, and the targets: the app's weeks and cover → periods={Schedule.periods(Record.bind(weeks, [weeksPatch]), { every: "week", status, dismissed? })} · targets={Roster.targets(Record.bind(cover, [coverPatch]), { day, group, shift, positions, hours })}
182
202
  │ ├─ Costs in the app's own pay codes → pay={fn(Roster.Types.PayRequest(R)) → Roster.Types.Pay} currency="…"
183
203
  │ ├─ Who fits a Find fix: the app's fit, on e3 → fit={Func.bind(e3.function)} from Roster.Types.FitRequest(R) to FitResult, over Roster.answer(R) + Roster.fit(R)
184
- │ ├─ Narrow its duties, targets, people and activities → slice={{ slice: Slice.bindRecords(key, { duty: { source, range: "start" }, targets?, people?, activities? }) }}
204
+ │ ├─ The app's optimiser over the week: the Elara eye → optimise={Func.bind(e3.function)} from Roster.Types.OptimiseRequest(R) to Roster.Types.OptimiseResult(R); its answer lands as ONE step of the history (#1409)
205
+ │ ├─ Narrow its duties, targets, people, activities and patterns → slice={{ slice: Slice.bindRecords(key, { duty: { source, range: "start" }, targets?, people?, activities?, patterns? }) }}
206
+ │ ├─ People by week or by month, its tiles' and marks' words → view={{ layout: "people", period: "week" | "month", date }} · tileTimes="always" | "different" · letters
207
+ │ ├─ The shifts' colours, and the app's week patterns → shifts={Roster.shifts(rows, { …, color: s => s.colour })} (an Option<ColorToken>) · patterns={Roster.patterns(rows, { name, icon?, label, days, order? })} · library={[…, Roster.library.patterns()]}
185
208
  │ └─ The week's figures in a task → Roster.coverage / check / weekHours / rest (R)
186
209
  │
187
210
  ├─ Book a day's arrivals into lane slots, each bin on its resources — the Allocation (see Allocation below)
@@ -190,6 +213,7 @@ Task → What do you need?
190
213
  │ ├─ What it books from → arrivals={Allocation.arrivals(rows, { label, quantity, hold, kind?, values?, … })}
191
214
  │ ├─ Publish: the app's days → periods={Schedule.periods(Record.bind(days, [daysPatch]), { every: "day", status })}
192
215
  │ ├─ Who fits where: the app's fit, on e3 → fit={Func.bind(e3.function)} from Allocation.Types.FitRequest(R) to FitResult, over Allocation.answer(R) + Allocation.fit (+ Allocation.lookahead(R))
216
+ │ ├─ The app's optimiser over the day: the Elara eye → optimise={Func.bind(e3.function)} from Allocation.Types.OptimiseRequest(R) to Allocation.Types.OptimiseResult(R); its answer lands as ONE step of the history (#1409)
193
217
  │ ├─ Narrow its bins, lanes, resources and arrivals — one rail → slice={{ slice: Slice.bindRecords(key, { bin: { source, range: "at" }, <lanes>?, <resources>?, arrivals? }) }}
194
218
  │ ├─ Its panes → library={[Allocation.library.arrivals(), Allocation.library.resources()]} · inspector (+ the bin kind's own inspector)
195
219
  │ ├─ The app's bin fields on the board, and its own issues → columns={[{ key, label, text }]} · check={fn(CheckContext(R)) → Array<Issue>}
@@ -325,7 +349,10 @@ key order. `keys` accepts a scalar or a single-field Struct and permits one
325
349
  exact member, keeping pages and counts unique by primary ID. Arbitrary
326
350
  compound fan-out remains available through `{ index }`; Slice refuses it.
327
351
  `Data.bindPaged(record, { indexes: [declarations...] })` carries their field/key
328
- types and joins rows by default.
352
+ types and joins rows by default. The indexes a binding lists carry one
353
+ projection, or each carries the whole row — as an area index does — or
354
+ nothing: one that carries the row is read without a join, the others with one,
355
+ and any other mix is refused at build, naming the index.
329
356
 
330
357
  **A builder narrows through `Slice.bindRecords` alone** (#1340): one rail on
331
358
  its toolbar, `Slice.bindRecords(key, { [source]: { source:
@@ -333,15 +360,19 @@ Data.bindPaged(record, { indexes }), label?, icon?, fields, range?, search?,
333
360
  initial? } }, { presets? })`, passed as `slice={{ slice, affordances?,
334
361
  persist? }}`. Each source is named after what it narrows and filters every
335
362
  place its records appear — the main area, the Choosers and the Library tab
336
- that lists them — and the builder reads each source's keys itself. Every
337
- source with a `range` shares the builder's one time window. Calculations —
363
+ that lists them; the Sheet's `rows` source draws its narrowing over the
364
+ record's rows as the lens instead (#1349) — and the builder reads each
365
+ source's keys itself. Every
366
+ source with a `range` shares the builder's one time window; a Plan's `rows`
367
+ source and its resource kinds' take none, so the dates on screen never decide
368
+ which rows it lists. Calculations —
338
369
  coverage, costs, loads, checks, totals — read every record, whatever the
339
370
  rail hides. Refused at build, each naming the change: `Slice.bind`, a single
340
371
  `Slice.bindRecord`, a source the builder does not take,
341
372
  `data={Slice.rows(slice)}` or `window={Slice.rows(slice)}`, the Roster's
342
373
  `visiblePeople`, and an event kind's own `slice` or `filter`. Every
343
374
  builder has moved: the Allocation, the Roster, the Calendar, the Plan, the
344
- Sheet and the Flowchart.
375
+ Sheet, the Flowchart and the Schematic.
345
376
 
346
377
  Templates are records: each templates list reads a templates record and names
347
378
  its source of the rail (`source`), and a list written in the code is refused.
@@ -349,7 +380,7 @@ A record a builder reads whole beside its pages — a templates list, the
349
380
  resources a check reads — binds with `Data.bind`: a UI task's manifest
350
381
  preloads it, but never a record `Record.bind` reads beside `Data.bindPaged`,
351
382
  whose `read()` then fails on e3. `Record.bind` stays the mutation door a Save
352
- commits through. east-ui's own Table, Library, charts and Schematic keep
383
+ commits through. east-ui's own Table, Library and charts keep
353
384
  `Slice.bind`. Existing single-index `Data.bindPaged(record, { index, join })`
354
385
  remains separate.
355
386
 
@@ -366,15 +397,38 @@ Local arrays use `Slice.bind(key, rows, options?)`; neither arm needs a type
366
397
  argument for `Slice.rows(slice)`.
367
398
 
368
399
  Calendar event windows preserve overlap with `[from, to)`, including carry-in
369
- and whole-window spans. Declare `interval: { from: "start", to: "end" }` on an
370
- index (optional leading `on` fields), name the event kind's source after its
371
- slot with `range: "start"` (`job: { source: Data.bindPaged(jobs, { indexes:
372
- [jobsByTime] }), range: "start" }`), and give the kind `entries:
373
- Data.bindPaged(jobs)` for its original-key reads. A kind narrowed through its
374
- source takes no `window` or `backlogWindow`. Do not replace it with a
375
- start-only query or guessed lookback. Optional missing ends are instants;
376
- an instant at `from` is included and one at `to` is excluded. Backlog remains
377
- part of the same authoritative record.
400
+ and whole-window spans. Declare an interval index, `e3.recordIndex.interval(name,
401
+ record, { on?, from: "start", to: "end" })` (optional leading `on` fields), name
402
+ the event kind's source after its slot with `range: "start"` (`job: { source:
403
+ Data.bindPaged(jobs, { indexes: [jobsByTime] }), range: "start" }`), and give
404
+ the kind `entries: Data.bindPaged(jobs)` for its original-key reads. A kind
405
+ narrowed through its source takes no `window` or `backlogWindow`. Do not
406
+ replace it with a start-only query or guessed lookback. Optional missing ends
407
+ are instants; an instant at `from` is included and one at `to` is excluded.
408
+ Backlog remains part of the same authoritative record.
409
+
410
+ A **window over a drawing** — the rows whose box meets a viewport — reads
411
+ through an area index (`e3.recordIndex.area`, the **e3** skill) listed in a
412
+ source's binding: `Data.bindPaged(racks, { indexes: [racksByArea,
413
+ racksByHallArea] })`. The Schematic reads a kind so wherever the kind's source
414
+ of its rail lists one, the window its view shows (see The Schematic below,
415
+ `schematicRecordIndexes`). A read of the source takes the viewport as a `window`
416
+ choice, `variant("window", { minX, minY, maxX, maxY })` in world units, under
417
+ the index's `__area` field of its `where` (a source's `pageWhere` and
418
+ `countWhere`), beside exact choices of the fields the index leads with. The
419
+ record slice plans it as at most 266 searches a combination of those choices,
420
+ sent in one request, and reads every row whose box meets the viewport grown by
421
+ an eighth of its larger side, each once — beside rows of the searched cells
422
+ that it misses, which the reader draws or not. `variant("values", ["-1"])`
423
+ under `__area` is the unplaced clause: the rows not yet placed, on an index
424
+ whose `x` and `y` are Options. The window is the reader's, never the rail's:
425
+ `Slice.bindRecord` offers no `__area` field, and a window under any other
426
+ field is refused. A read no listed area index serves — choices beside the
427
+ window no area index is led by exactly, a range or a prefix beside it, or more
428
+ than one value of a Set field, which would read a row twice — is refused,
429
+ naming why. An area index carries its rows,
430
+ so a window reads the index alone, without a join, each entry's `value` its
431
+ row.
378
432
 
379
433
  Sessions retain original-key drafts across paging, narrowing and remount in the
380
434
  same UI store. Save includes hidden edits and confirms primary rows at the
@@ -384,11 +438,15 @@ unsaved drafts. The Roster and the Allocation keep a session for each record
384
438
  they write — the Roster's duties, weeks and targets, the Allocation's bins and
385
439
  days — under one history: Save sends each record's drafts as its own request,
386
440
  and their figures read every person, resource and event of the period,
387
- whatever the rail shows.
441
+ whatever the rail shows. The Schematic keeps one for each kind it writes, and
442
+ a kind read by area keeps its drafts by key wherever the window goes: a row
443
+ moved off the window draws where its draft places it while the narrowing holds
444
+ its stored row, and Save writes it through the kind's patch door.
388
445
 
389
446
  Search examples: `planRecordIndexes`, `sheetRecordIndexes`,
390
- `calendarRecordIndexes`, `rosterRecordIndexes`, their Mobile counterparts,
391
- and `flowchartRecordIndexes` (scalar, compound and membership computed keys).
447
+ `calendarRecordIndexes`, `rosterRecordIndexes`, `schematicRecordIndexes` (a
448
+ window read by area), their Mobile counterparts, and `flowchartRecordIndexes`
449
+ (scalar, compound and membership computed keys).
392
450
  Each shows its full reactive bindings and JSX inline.
393
451
 
394
452
  ### `Func.bind(fn)`
@@ -954,10 +1012,10 @@ return <Plan axis={axis} data={rows} series={series} />;
954
1012
 
955
1013
  ```
956
1014
  <Plan axis={Plan.axis({…})} data={rows} series={[Plan.series.span(Row, {…}), …]} /> — the planning canvas: ONE shared axis — { time | number | ordinal } (#631): a UTC window ÷ resolution, a numeric window ÷ step, or an ordinal list = n bucket columns — over heterogeneous rows — the eight row kinds: span state-runs, bucket allocation lanes, chart measures, heat cells, bucketed table numerals, cards shift chips, event marks, and group strips — sliced, searched and picked as one surface. Rows derive from `data` through `series` as an ordered STREAM (#822): the series list IS the layout (one contiguous block per series, top to bottom), a parent is followed by its subtree, and hierarchy comes only from the data's own nesting — never from a field value. Every row carries a typed id, `Plan.Types.RowId` = { series, path } (the series that made it and the entry keys that lead to it; `Plan.ref` builds one), which every callback reports and `links` address. Nothing behaves differently because `data` is inline or paged
957
- ├─ The frame (#1193): ONE toolbar holding every control the Plan draws outside its canvas, in this order — the rail of its one `Slice.bindRecords` (each source's field chips and the presets, #1344), the key search, Expand/Collapse all, the shared date navigator (on a number axis the leading source's range is a chip of the rail), the configured resolution, the diagnostics; at its end the rail's summary, naming each source a narrowing hides rows of in its own words (#1358), the overlaps chip and the history item (a Plan with none of them has no toolbar). It is one row at every width: the rail folds first, its summary after every step of it, then the date navigator compacts, the resolution folds into a menu and Expand/Collapse all keeps its icon, the key search folds into its icon (which opens the box in a popover, the focus in it), then the time-axis view controls — the fold toggle, the resolution and the overlaps chip — share the date popover, one move, and the history item folds last, to its buttons; on a touch screen every control there is a 44px tap target. The banners — each session's, an event kind's titled with its name (#1194): a Save's conflict, a refusal, an unknown outcome with Retry, a source out of date with Discard. Main — the canvas: the horizon, the ruler, pinned rows and the rows. The footer — the counts: the event kinds' events in the window, their backlog, the changes pending and when an event kind's record was last saved; then the author's `footer`, the transport line, and after a Save what left each source's narrowing (`1 print job event left this view`). ⌘Z undoes and ⇧⌘Z redoes from anywhere in the frame; a field being typed into keeps its own undo. The Plan draws no border
1015
+ ├─ The frame (#1193): ONE toolbar holding every control the Plan draws outside its canvas, in this order — the rail of its one `Slice.bindRecords` (each source's field chips and the presets, #1344), the key search, Expand/Collapse all, the shared date navigator (on a number axis the leading source's range is a chip of the rail), the configured resolution, the diagnostics; at its end the rail's summary, naming each source a narrowing hides rows of in its own words (#1358), the overlaps chip and the history item (a Plan with none of them has no toolbar). It is one row at every width: the rail folds first, its summary after every step of it, then the date navigator compacts, the resolution folds into a menu and Expand/Collapse all keeps its icon, the key search folds into its icon (which opens the box in a popover, the focus in it), then the time-axis view controls — the fold toggle, the resolution and the overlaps chip — share the date popover, one move, and the history item folds last, to its buttons — below that, where the row is still too wide, the rail's icon drops its caret, so the history and Save stay in the row at a phone's width; on a touch screen every control there is a 44px tap target. The banners — each session's, an event kind's titled with its name (#1194): a Save's conflict, a refusal, an unknown outcome with Retry, a source out of date with Discard. Main — the canvas: the horizon, the ruler, pinned rows and the rows. The footer — the counts: the event kinds' events in the window, their backlog, the changes pending and when an event kind's record was last saved; then the author's `footer`, the one loading line — what the view waits for (`Loading rows 201–400`), a source's new narrowing, or a read that failed with its reason and Retry; nothing while nothing is in flight — and after a Save what left each source's narrowing (`1 print job event left this view`). ⌘Z undoes and ⇧⌘Z redoes from anywhere in the frame; a field being typed into keeps its own undo. The Plan draws no border
958
1016
  ├─ Props:
959
- │ ├─ axis (required) — ONE of three kinds; every element instant on the canvas must ride its arm. The kind is also a TYPE: `Plan.axis.number(…)` fixes the tag's `K`, every builder result carries the kind its instants' STATIC types imply (a `DateTimeType` accessor ⇒ `"time"`, a `FloatType` field ⇒ `"number"`, `Plan.at.ordinal(…)` ⇒ `"ordinal"`), a series collects its elements' kinds, and a series (or literal row) on another arm FAILS TO COMPILE at the tag — no wire change, the brand is phantom. Kind-erased values (a stored record, an `Expr<Plan.Types.Instant>`, an East-mapped element list, a `$.let`-bound axis or `$.const`-bound series list, chart rows) constrain nothing at compile time and are held to the axis at render — a row on another arm is a render-time diagnostic naming the row and the arm, never a silent misplacement. Plan.axis({ window?, resolution, resolutions?, now?, format? }) — the TIME shorthand (= Plan.axis.time): half-open [min, max) UTC window; omit window ⇒ the range the sources of its `slice` hold — there is NO fit to the data (#822): a canvas that neither states a window nor has a source holding a range is refused, at build when the axis is written in the tag, else as the render-time NO WINDOW diagnostic (a bound or stored axis); `resolutions` lists the WEEK/DAY segment options; `now` draws the observed/plan divider; `format` overrides tick labels (date tokens; defaults: week ⇒ "W27", day ⇒ "MON"); at a resolution coarser than a row's data a bucket shows ONE value per row — the fold of those in it (#824) · Plan.axis.number({ window?, step, now?, format? }) — a numeric window ÷ `step` (bucket edges on whole steps; omit window ⇒ the leading source's float / integer range, under the same no-fit rule; `format` a Chart.format.* spec; no resolution segment — step IS the declaration) · Plan.axis.ordinal({ values, now? }) — the declared values ARE the buckets, in order (the list is the window: no source's range holds it, no brush, the window keys idle; an unlisted value positions nowhere; an interval END names its LAST bucket, inclusive)
960
- │ ├─ data (required unless `events`, `rows` or `slice`'s `rows` source, which gives the rows and refuses `data` beside it — a Plan with no rows from any source is refused at build) — a KEYED collection: a `Dict<K, R>` value/expression for the inline arm, or a `$.let`-bound `Data.bindPaged(…)` handle for a WINDOWED arm, recognised by its East type: `pinned` when it names its snapshot, which `editing.onApply` needs; `paged` when it is the shape a UI exported before `revision` / `refresh`, which names none. Any key type `K` — a row's path starts with its entry's key, a String as it is, any other key as its `.east` text (`3`, `(hall="H1", bin=3)`) — and any entry type `R`: a struct, a `RecursiveType` node, or a collection (a `groupToDicts` group). A positional collection is refused — key it at the call site with `rows.toDict((_$, r) => r.id)`. A paged canvas pages by PARENTS (#823): a window is N top-level entries, each with its whole subtree, so a parent never straddles two windows and its bands, means, subtotals and member count are exact — nest children in the source, and group a flat paged source in its dataflow (a group is one entry holding its members; a parent is bounded by a page). Each top-level series is a BLOCK, exactly as inline: a paged canvas pages every block on its own over the same windows (its own bands and resident run; one read of a window serves every block), draws a section's header and hand-built rows once (FIXED blocks), and rebases only the block a far jump lands in; a window landing above the rows in view at a height its estimate missed moves the scroll, never the rows. A paged source may serve SHORT windows (e3 trims pages of wide entries to a byte budget) and the canvas still reads WHOLE ones — its derived source re-requests what a trimmed page left out. When the source's `revision()` moves (`Data.bindPaged` follows each write to its dataset), the canvas re-reads its resident windows at the new snapshot IN PLACE: the rows on screen stay until theirs land (no remount, no empty frame), the scroll position holds, and a standing key search is asked again at the new snapshot, its text kept and the view where it is (its matches named rows of the old one, #1199)
1017
+ │ ├─ axis (required) — ONE of three kinds; every element instant on the canvas must ride its arm. The kind is also a TYPE: `Plan.axis.number(…)` fixes the tag's `K`, every builder result carries the kind its instants' STATIC types imply (a `DateTimeType` accessor ⇒ `"time"`, a `FloatType` field ⇒ `"number"`, `Plan.at.ordinal(…)` ⇒ `"ordinal"`), a series collects its elements' kinds, and a series (or literal row) on another arm FAILS TO COMPILE at the tag — no wire change, the brand is phantom. Kind-erased values (a stored record, an `Expr<Plan.Types.Instant>`, an East-mapped element list, a `$.let`-bound axis or `$.const`-bound series list, chart rows) constrain nothing at compile time and are held to the axis at render — a row on another arm is a render-time diagnostic naming the row and the arm, never a silent misplacement. Plan.axis({ window?, resolution, resolutions?, now?, format? }) — the TIME shorthand (= Plan.axis.time): half-open [min, max) UTC window; omit window ⇒ the range the sources of its `slice` holding the window hold — an event kind's, a tab's, never the `rows` source's or a resource kind's (#1344) — there is NO fit to the data (#822): a canvas that neither states a window nor has a source holding a range is refused, at build when the axis is written in the tag, else as the render-time NO WINDOW diagnostic (a bound or stored axis); `resolutions` lists the WEEK/DAY segment options; `now` draws the observed/plan divider; `format` overrides tick labels (date tokens; defaults: week ⇒ "W27", day ⇒ "MON"); at a resolution coarser than a row's data a bucket shows ONE value per row — the fold of those in it (#824) · Plan.axis.number({ window?, step, now?, format? }) — a numeric window ÷ `step` (bucket edges on whole steps; omit window ⇒ the leading source's float / integer range, under the same no-fit rule; `format` a Chart.format.* spec; no resolution segment — step IS the declaration) · Plan.axis.ordinal({ values, now? }) — the declared values ARE the buckets, in order (the list is the window: no source's range holds it, no brush, the window keys idle; an unlisted value positions nowhere; an interval END names its LAST bucket, inclusive)
1018
+ │ ├─ data (required unless `events`, `rows` or `slice`'s `rows` source, which gives the rows and refuses `data` beside it — a Plan with no rows from any source is refused at build) — a KEYED collection: a `Dict<K, R>` value/expression for the inline arm, or a `$.let`-bound `Data.bindPaged(…)` handle for a WINDOWED arm, recognised by its East type: `pinned` when it names its snapshot, which `editing.onApply` needs; `paged` when it is the shape a UI exported before `revision` / `refresh`, which names none. Any key type `K` — a row's path starts with its entry's key, a String as it is, any other key as its `.east` text (`3`, `(hall="H1", bin=3)`) — and any entry type `R`: a struct, a `RecursiveType` node, or a collection (a `groupToDicts` group). A positional collection is refused — key it at the call site with `rows.toDict((_$, r) => r.id)`. A paged canvas pages by PARENTS (#823): a window is N top-level entries, each with its whole subtree, so a parent never straddles two windows and its bands, means, subtotals and member count are exact — nest children in the source, and group a flat paged source in its dataflow (a group is one entry holding its members; a parent is bounded by a page). Each top-level series is a BLOCK, exactly as inline: a paged canvas pages every block on its own over the same windows (its own bands and resident run; one read of a window serves every block), draws a section's header and hand-built rows once (FIXED blocks), and rebases only the block a far jump lands in; a window landing above the rows in view at a height its estimate missed moves the scroll, never the rows. A paged source may serve SHORT windows (e3 trims pages of wide entries to a byte budget) and the canvas still reads WHOLE ones — its derived source re-requests what a trimmed page left out. When the source's `revision()` moves (`Data.bindPaged` follows each write to its dataset), the canvas re-reads its resident windows at the new snapshot IN PLACE: the rows on screen stay until theirs land (no remount, no empty frame), the scroll position holds, and a standing key search is asked again at the new snapshot, the view where it is (its matches named rows of the old one, #1199) — a match its box shows kept while the new snapshot holds it in place, else its query shown again
961
1019
  │ ├─ series (required unless `pick`) — the row recipes over `data`; the list IS the layout (#822): each series contributes one contiguous block, top to bottom in declared order, its rows in source order, each parent followed by its subtree. Data series: Plan.series.span/buckets/chart/heat/table/cards/events(Row, { key, title, subtitle?, icon?, keyType?, match?, label, id?, stacked?, sub?, value?, status?, expand?, children?, collapsed?, edit?, …kind fields }) — every accessor receives (entry, key); a `RecursiveType` entry arrives as its node. What a gesture WRITES is declared on the series (#880): `edit: { items: "jobs", create: (drop, entry, key) => item }` (span / buckets / cards / events) names the entry's `Array` field a dropped card joins and builds the item from the `Plan.Types.Drop` — see `editing`. Naming the item's `String` key field and its instant fields as well — `edit: { items: "jobs", key: "key", start: "start", end: "end" }` (span / cards) or `{ items, key, at }` (buckets / events) — makes its runs, chips, tiles and marks MOVE, and its runs and chips RESIZE (#825): an element's key is its item's key — its identity across every row it can move to, since a row's list keeps its keys unique (a card or a move that would repeat one is refused, the drag showing ⊘) — an instant field is a `DateTime`, a `Float` / `Integer` (number axis), a `String` (ordinal) or a `Plan.Types.Instant`, and `create` becomes optional. `children` nests, to any depth: a bare accessor `(r) => r.children` walks more of THIS series (a recursive entry's own children), `Plan.children(of, [series…])` steps down to a child collection of another entry type (an `Array` in data order, a `Dict` in key order — its series laid out like a top-level list), an array of step-downs gives several child collections in order (a gesture on a nested row writes back through them, so where a series below takes gestures they read a FIELD of the entry — `r => r.children`, `Plan.children(r => r.presses, …)` — or are the entry itself, `g => g`; a computed collection is refused at build); `collapsed: true | (r, k) => …` is a parent's initial state. A parent derives exactly, because its whole subtree rides in its entry: span bands over the subtree's runs (`rollup` "union" | "byStatus" | "sum"; a band sums its runs' quantities unit by unit — the unit rides each `Plan.quantity`), a heat parent with no cells of its own the children's per-bucket `aggregate` (default "mean") painted on its `scale` ({ min?, max?, warnAt? }; default the scale its members share), a table parent with no values per-position subtotals (`aggregate` default "sum", `format`) — each summarising what its children SHOW, their values already folded to the resolution · Plan.series.group(Row, { key, title, label, children, summaryAggregate?, summary?, collapsed? }) — one strip PER ENTRY, its members the entry's children (derived member count; collapsed it rests as its summary strip — explicit `summary` cells OR a `summaryAggregate` of the members' heat cells, never both) · Plan.series.section(Row, { key, title, collapsed?, meta?, value?, status?, summary?, summaryAggregate? }, [series…]) — a fixed titled block over series (it adds no path segment; its header's id is `Plan.sectionRef(key, …parentPath)`) · Plan.series.views(Row, { key, title, match?, children?, collapsed? }, [series…]) — ONE entity shown several ways: one row per member series per entry, ADJACENT and in declared order (a member's own `match` decides whether its row shows; members declare no `children`), the entry's children following its view rows under the first — more of the views' own entries too (a bare accessor), each drawn as the members' rows, to any depth, a span member's `rollup` rolling them up — and a seek on the entry landing on its first view row · Plan.series.rows(Row, identity, rows) — hand-built rows (the kind factories below) placed as one block. Series keys are unique across the WHOLE series tree — a repeat is a build-time Error naming both sites (a list bound as an East value is checked at render: a repeated id draws as a row diagnostic, never a silent drop). There is no `groupBy`: to group a flat source, reshape it first — inline, one `groupToDicts` in the canvas function (`rows.groupToDicts(($, r) => r.hall, ($, _r, k) => k)`, entries `Dict<String, Row>` whose key is the group); a paged source in the dataflow. A source keyed by another type (`Dict<Integer, R>`) works with series whose accessors ignore the key; one that reads it declares `keyType` and, bound as a list, types it `Plan.Types.Series(R, KeyType)`
962
1020
  │ ├─ pick (optional, exclusive with `series`) — Plan.pick(key, allSeries, { hidden? }): the bound series library — the toolbar has no Series button (#1193): the library pane's Series tab (#1195, when `library` lists `Plan.library.series()`) lists the series by title, subtitle and kind icon in the list's order (that order is the canvas layout); hidden series drop from the canvas (a hidden section, group or views takes its whole block); there are no row counts (#822 — a count means something only with every entry in hand); a pick is STATE, so the Plan must sit inside a <Reactive>
963
1021
  │ ├─ resources + events (optional) — event kinds over records (#1191), `Schedule`'s — the very values a Calendar takes: `resources={{ presses: Schedule.resources(rows, { name, icon, label, … }) }}` are the rows events are placed on, in this order — `rows` a `Dict`, or a `Data.bindPaged` read of one, which pages the kind (#1199, see Large records, a window at a time) — and `events={{ job: Schedule.events(Record.bind(jobs, [jobsPatch]), { name, icon, title, start, end | at, resource: { field, of }, … }) }}` the kinds, each a record of its own committed through its patch mutation. Their rows come first, then `data`'s, then `rows`'. Each resource kind is a block (#1192): every resource a row per way the kinds placed on it draw — bars, tiles, chips, marks, in that order — then its `measures`, under its `group` strips and nested by its `parent`; a row's id is `entry { series: "<slot>.<draw>", path: [group?, …parents, key] }`, an element's key its event's `Schedule.Types.EventRef` as East prints it, and an event no resource holds draws on its kind's Unassigned row after every resource kind. The rows are read over the window the canvas draws, and read again when a record commits. Each kind is a session over its record, under ONE history with `data`'s (#1194): every gesture one transaction, drawn as Save would leave it; Undo and Redo (the history item, ⌘Z / ⇧⌘Z / ⌘Y anywhere in the frame but a field being typed into) step through the gestures in the order they were made, whatever their kind; Discard drops every kind's drafts; Save commits each kind with a change as one patch through its patch mutation, checked against what its drafts began from — one kind's conflict, refusal or unanswered write (Save turns into Retry, the same request) leaving the others' commits, each kind's banner titled with its name. Their events drag (#1196), each gesture one step of that history: a template from the library's Events tab, or an unscheduled event from its Backlog tab, drops on a resource's row at the bucket under the pointer — the template's event made under a new key for its duration (from its `at` on a day or longer) and selected, the backlog event scheduled for its own; an element moves along its row or onto another resource's row, writing the resource field, a selected element moving the selection with it, and a bar's or a chip's edge resizes it, never shorter than one snap; an event dropped on the Backlog tab is unscheduled (a kind whose times are Options); the ghost says what lands where (`Brochure run · Press A1 · Mon, Oct 12, 2026`) or, in red, why not (`Needs presses`, `canDrop`'s message); and an element of an event its drafts changed wears the brand tint in a brand border. An event is scheduled in time, so event kinds on a number or ordinal axis are refused at build, naming the axis and the kinds (an axis held in a variable is refused in the same words as the Plan is evaluated); `resources` without `events`, and a kind's `resource` naming a slot `resources` has not, are refused too. `applyMode` ("batch" default | "auto") says when the kinds' drafts go — on Save, or each ready gesture as it lands; `data`'s session takes `editing.mode` — and `date` the date brought into view first
@@ -968,16 +1026,17 @@ return <Plan axis={axis} data={rows} series={series} />;
968
1026
  │ ├─ popover / hover (optional) — generalized element resolvers fn(Plan.Types.ElementRef) => Option<UIComponent> over EVERY element (run / event / chip / mark / cell refs, each carrying the row's id — compare with `East.equal(ev.row, Plan.ref(…))` — and link refs { key, from, to }, a ribbon belonging to no one row); resolved lazily at click/hover time — a `none` result opens nothing
969
1027
  │ ├─ expandRender / expandGutter (optional) — the R2 expand-in-place renders fn(Plan.Types.RowId) => UIComponent for rows declaring `expand` (per-row DATA: `{ height?: "168px", axis?: "keep" | "dim" | "off" }` — the render's height, and whether the shared grid + now-line run through it, wash to 40%, or hide inside that row); the focused row GROWS to hold the render (its marks keep their band at the top, its gutter cell grows with it and takes `expandGutter`); every other data row compresses to a 16px strip — never removed: bars / tiles / chips shrink to 7px marks, chart and table rows re-encode as a tone strip, event marks keep their silhouette; a strip click or Esc returns
970
1028
  │ ├─ editing (optional) — the editing session (#880), the Sheet's (#879) over the source's TOP-LEVEL entries: { onApply? | onUpdate?, onPatch?, mode?, ready? }. Every dropped card, move and resize drafts the entry its row came from (a gesture on a nested row drafts the entry its whole subtree rides in), drawn at once where it was made — the entry's rows derived again, marked pending, or incomplete / invalid while a check refuses that entry — each gesture ONE undoable transaction. The history item (issues · Undo · Redo · Discard · Save, and its status line) ends the frame's toolbar; ⌘Z / Ctrl+Z undo, ⌘⇧Z / Ctrl+Shift+Z / Ctrl+Y redo. `onApply` fn(Editing.Types.ChangeSet(R, K)) => Editing.Types.ApplyResult (sync or async) commits one checked batch against the base the drafts began from — the inline `Dict`'s snapshot, or a paged source's revision (a paged `onApply` needs the source's `revision` and `refresh`): a batch against a source that moved is refused, never rebased, and a banner says "Source changed — review or discard these drafts"; a Save that throws leaves the outcome unknown, and the banner's "Retry request" resends the SAME request (dedupe by its `requestId`); drafts retire only when the source reads back at the committed revision. `onUpdate` fn(Dict<K, R>) => Null is the inline adapter instead (exclusive with `onApply`): pass `data={handle}` and `onUpdate={handle.write}`, and each batch applies with `Editing.apply` over the handle's LATEST `Dict` and writes the whole result once — idempotent across retries. `onPatch` fn(Plan.Types.PatchEvent(R)) => Null hears every gesture (origin drop / move / resize / undo / redo / discard). `mode` "batch" (default — Save sends) | "auto" (each ready gesture goes at once). `ready` fn(R, K) => Editing.Types.Readiness checks a drafted entry — a refusal names the entry and holds Save (a check that throws refuses its own entry only). Without `editing` the canvas takes no gesture
971
- │ ├─ slice (optional, #1344) — slice={{ slice: Slice.bindRecords(key, { rows?, <an event kind's slot>?, <a resource kind's slot>?, <a templates list's or a tab's source>? }, { presets? }), affordances?, persist? }}: ONE rail on the toolbar (affordances default ["fields","presets","summary","brush"]), each source named after what it narrows. `rows` gives the canvas its rows, paged from it in its index's order — `data` beside it is refused — edits reaching the record through `editing.onApply` (`Record.onApply(record, { keyed: true })`), the session the record's, a Save that takes rows out of the narrowing said in the footer. A source named after an event kind's slot reads that kind's events in the window and its backlog through its interval index (`e3.recordIndex(name, jobs, { on?, interval: { from: "start", to: "end" } })`, `range: "start"`), the kind giving `entries: Data.bindPaged(record)` for its reads by key; a draft of an event its narrowing does not hold never shows, and Save sends it. One named after a resource kind's slot narrows that kind's rows and the bulk edit's Chooser, which keeps the resources the selected events are on — over resources read whole and keyed by String. One a templates list (`Schedule.templates(rows, { …, source })`) or a library tab names narrows that tab's cards: each tab counts what it shows (`Customers 6 of 16`) and, emptied, says so with Clear filters; the Backlog counts `N of M`, its Clear filters keeping the window. Every source holding a range of the axis's arm holds ONE window — on a time axis the date navigator's, the leading source's range editor its Range panel and every source's range out of the rail; on a number axis the leading source's range a chip of the rail: the date navigator, the horizon brush, `[` / `]` / `n` and the resolution write each source, and a record's resolution only re-buckets, fetching nothing. `brush` mounts the horizon band on time and number axes: an OVERVIEW of the sources' range in whole periods, with a lens joining its window to the plot's edges (drag its body to slide the window, an edge to resize it, empty track to draw one), committing once a gesture, with no histogram; `resolution` the WEEK/DAY segment (time axis); `summary` the rail's counts. Calculations — the footer's counts, the overlaps — read every event the kinds read. Refused at build, each naming the change: the bare handle, `Slice.bind`, a single `Slice.bindRecord`, a source nothing names, `data` beside `rows`, a paged resource kind or one keyed otherwise than by String as a source, a kind's own `slice` or `filter`, and a templates list written in the code or naming no source. With a `rows` source there is no key search: the rail narrows the rows. On a PAGED `data` the toolbar's KEY SEARCH seeks over the source's `seek` — the box, folding to its icon on a row short of room; the jump REBASES residency at the match (windows in between are never fetched); the query is a whole-key literal, a prefix, leading struct fields, or a `from..to` RANGE over a leading prefix of the key's flattened fields (`late, 3..ok`), which is what a time window or a status band asks for — quoting is the escape: a quoted value is exact and a `..` inside it is text (`"../config"`)
1029
+ │ ├─ slice (optional, #1344) — slice={{ slice: Slice.bindRecords(key, { rows?, <an event kind's slot>?, <a resource kind's slot>?, <a templates list's or a tab's source>? }, { presets? }), affordances?, persist? }}: ONE rail on the toolbar (affordances default ["fields","presets","summary","brush"]), each source named after what it narrows. `rows` gives the canvas its rows, paged from it in its index's order — `data` beside it is refused — edits reaching the record through `editing.onApply` (`Record.onApply(record, { keyed: true })`), the session the record's, a Save that takes rows out of the narrowing said in the footer. A source named after an event kind's slot reads that kind's events in the window and its backlog through its interval index (`e3.recordIndex.interval(name, jobs, { on?, from: "start", to: "end" })`, `range: "start"`), the kind giving `entries: Data.bindPaged(record)` for its reads by key; a draft of an event its narrowing does not hold never shows, and Save sends it. A kind placed on a paged resource kind is read a cell at a time (#1039) — the events of the resources around the rows in view over the tiles the window touches, two requests a change — and shaded from the summary past what it draws: its source lists a series index and a summary index beside the interval index, and any other form is refused, naming both. Every other kind is counted before one of its events is read, and past 10,000 events in the range the canvas reads none is read or drawn (see Large records below). One named after a resource kind's slot narrows that kind's rows: of resources read whole and keyed by String, the rows and the bulk edit's Chooser, which keeps the resources the selected events are on; of a paged kind (`Schedule.resources(Data.bindPaged(record), …)`), its windows — the canvas pages the narrowing's rows themselves, the source `Data.bindPaged(record, { indexes })` over the kind's own record, in its index's order, the counts the narrowing's, so a choice reads only the narrowed resources in view and their cells (`planSeriesByHall`, `planRecordIndexes`). One a templates list (`Schedule.templates(rows, { …, source })`) or a library tab names narrows that tab's cards: each tab counts what it shows (`Customers 6 of 16`) and, emptied, says so with Clear filters; the Backlog counts `N of M`, its Clear filters keeping the window. Every source holding a range of the axis's arm — an event kind's, a tab's that lists what is in the dates on screen — holds ONE window — on a time axis the date navigator's, the leading source's range editor its Range panel and every source's range out of the rail; on a number axis the leading source's range a chip of the rail: the date navigator, the horizon brush, `[` / `]` / `n` and the resolution write each source, and a record's resolution only re-buckets, fetching nothing. The canvas's rows never follow the dates on screen: the `rows` source and a resource kind's take no `range` — refused as the Plan is evaluated, naming the change — so a date field there is a field of the rail the viewer sets, and a pan reads no row; a slice none of whose sources holds the window leaves the canvas its own, which the same controls move, kept for the viewer as the canvas's folds are, so a reload opens on the dates the viewer left. `brush` mounts the horizon band on time and number axes: an OVERVIEW of the sources' range in whole periods (with no source holding the window, the axis's stated window and the window shown, as long again either side, so its lens slides either way), with a lens joining its window to the plot's edges (drag its body to slide the window, an edge to resize it, empty track to draw one), committing once a gesture, with no histogram; `resolution` the WEEK/DAY segment (time axis); `summary` the rail's counts. Calculations — the footer's counts, the overlaps — read every event the kinds read. Refused at build, each naming the change: the bare handle, `Slice.bind`, a single `Slice.bindRecord`, a source nothing names, `data` beside `rows`, a resource kind keyed otherwise than by String as a source, a paged one's source over another record, a kind's own `slice` or `filter`, and a templates list written in the code or naming no source — and, as the Plan is evaluated, a `range` on the `rows` source or a resource kind's. With a `rows` source there is no key search: the rail narrows the rows — nor over a paged resource kind its source narrows, whose searches run in the source's index's order. On a PAGED `data` the toolbar's KEY SEARCH seeks over the source's `seek` — the box, folding to its icon on a row short of room; the jump REBASES residency at the match (windows in between are never fetched); the query is a whole-key literal, a prefix, leading struct fields, or a `from..to` RANGE over a leading prefix of the key's flattened fields (`late, 3..ok`), which is what a time window or a status band asks for — quoting is the escape: a quoted value is exact and a `..` inside it is text (`"../config"`)
972
1030
  │ ├─ grain (optional) — initial grain "resource" (default) | "group" (root groups collapse to summary strips); the `g` key cycles it, and a canvas with a root group mounts the toolbar's GROUP · RESOURCE segment for it — slice or no slice (#632; the narrow layout's tabs own the grain there); onGrainChange observes
973
1031
  │ ├─ ui (optional) — the interaction state, held by the HOST (#824): State.bind([Plan.Types.UiState], key, Plan.uiState({ selected?, collapsed?, expanded?, charts?, focus? })) — the canvas draws it from its first frame, takes every outside write (a selection, rows folded or opened, charts expanded) and writes the user's own actions back, once per action; `collapsed` / `expanded` list the rows folded / opened AGAINST their declaration (a row in neither follows it; in both, folded); `focus` is a REQUEST — the canvas opens the rows it nests under, scrolls it to the top of the view, makes it the tab stop (DOM focus stays put) and writes `focus: none` back; a paged row it has not loaded is opened by its window, or sought by its entry's key where the source can seek. Bound, the canvas persists no toggles of its own under its `storageKey`
974
1032
  │ ├─ id + sources + canDrop (optional) — DnD TARGET (the shared grammar): cards — an author's tab's in the Plan's own library panel (`Plan.library.tab`, #1259), or a Library's beside the Plan, which reaches it by its `id` when `sources` lists the Library — `add` onto rows whose series declares `edit` — span / buckets / events / cards only (chart / heat / table render DERIVED values, and section headers and group strips are wayfinding — they register no cell) — and only with `editing`: a drop is a DRAFT of the session (#880), its item built by the series' `create` from the `Plan.Types.Drop` ({ from: { library, key }, row, at, duplicate } — `at` the start of the bucket it landed in, on the axis arm). `canDrop` sees the drag grammar's `add`: its `into.row` is the row id's canonical TEXT — key host tables by `East.print(Plan.ref(series, …path))`, or read it back with `row.parse(Plan.Types.RowId)`; slot = the bucket start instant per the axis arm — time: Z-less ISO (`slot.parse(DateTimeType)`), number: a decimal (`slot.parse(FloatType)`), ordinal: the value; drop verdicts resolve LIVE where the drag rests — `canDrop` is asked of the event a drop there would deliver (an `add`'s `duplicate` is whether Alt is held), renders the ⊘ stage, and is asked again before the drop becomes a draft — and the landing band previews WHERE the card lands. A moved or resized element (#825) is vetoed the same way: `canDrop` sees the grammar's `move` ({ from, to } cells, `from.event` the element's key) or `resize` ({ event, edge }). The canvas's own elements, and its own panel's cards, need no `id` — only a Library beside the Plan does. A card held at a bounded canvas's edge scrolls it to the rows beyond; by keyboard (#608) → / ← step onto a row and along its buckets and ↑ / ↓ between rows, each bucket announced ("Poster run is over H1-P03, Week of Jul 6, 2026."). `onDrag` is removed (#880) and throws at build. With event kinds, `canDrop` may instead be fn(Schedule.Types.Candidate) => Option<String>, vetting an event kind's drop with its message on the ghost, as the Calendar's — the arm is read from the function's type; it is asked where a drag rests and again of the drop, `from` the template's key, the backlog event's or the moved event's (#1196)
1033
+ │ ├─ optimise (optional, #1409) — `Func.bind` of the app's `e3.function` from `Plan.Types.OptimiseRequest(E, S)` — the plan window in view, the run's number, every event kind's rows in the window and the backlog by key as the session holds them (base plus every unapplied draft, every row whatever the rail shows), and every resource kind's rows read whole as context (a kind paged a window at a time carries none) — to `Plan.Types.OptimiseResult(E)`, the events complete. The Elara eye in the toolbar, immediately before the history item: one call per run; while it is out the history and every gesture are locked, a change of window stops it (Stop too), and a late answer is ignored. Its answer is diffed by key and recorded as ONE step of the history — Undo in one, Redo replays it, Save with everything else — each event it placed from the backlog an add on the canvas, one it moved a change with a ghost where it stood, one it took back a remove; each marked until Apply with its provenance on hover (`Added by Elara · run #7`), the Backlog count and the footer's counts flashing; a result equal to the request records nothing and says so
975
1034
  │ ├─ onSelect / onElementClick / onGroupToggle (optional) — row selection, ONE element callback and section toggles; payloads are row ids + element keys + instants, never indices: onSelect the `Plan.Types.RowId`; onElementClick a `Plan.Types.ElementRef` — the SAME ref the popover resolver receives, its arm the element kind (run { row, run } · event { row, event } · mark { row, mark } · chip { row, chip } · cell { row, at } — `at` a Plan.Types.Instant on the axis arm, a folded bucket's start · link { key, from, to }), so `ref.match({ run: …, link: … }, …)` handles the kinds it cares about; onGroupToggle { row, expanded } for any row with children
976
- │ ├─ footer (optional) — [{ text, tone?, end? }] status-footer items, in the frame's footer after its counts; a paged canvas adds the transport line ("N loaded of M · Loading…", counted in source ELEMENTS); until the source is exhausted a TOP-LEVEL section's member count prints `~`-marked (its members are entries the windows share out) — every other parent's numbers are exact, its subtree riding whole in one entry
1035
+ │ ├─ footer (optional) — [{ text, tone?, end? }] status-footer items, in the frame's footer after its counts; a paged canvas adds the one loading line (what the view waits for, or why a window could not be read, with Retry); rows not read draw as the shared run — label bars and the plot washed, at the rows' pitch — and until the source is exhausted a TOP-LEVEL section's member count is a placeholder bar (its members are entries the windows share out) — every other parent's numbers are exact, its subtree riding whole in one entry
977
1036
  │ └─ style (optional) — { height ("fill" fills the parent) and maxHeight — the whole Plan's, its frame's, the canvas filling main and scrolling its own rows; with neither, a host that gives the Plan a height bounds it the same way, and one that gives none lets it grow with its rows — density ("compact" ⇒ dense 24px rows), gutterWidth ("168px", CSS px) }; a bounded canvas pins the PARENT of the rows in view under its header — with its ancestors' path on a deep tree — once the parent's own row scrolls off, inline and paged (a click goes to it, #823)
978
- ├─ Narrow (below 480px of CONTAINER width — a phone, a splitter pane, a task preview; §10): the same definition reflows to a review tool — the frame's toolbar keeps its items, folded to fit (the GROUP · RESOURCE segment leaves: the tabs own the grain), no horizon brush, and Groups · Rows · Measures tabs (the `<Tabs>` line grammar, counts as plain numerals) over ONE slice, then the card list with the shared ruler as its sticky first row (a separator per bucket, labels thinned to what fits): Groups = the group grain as hottest-first strip cards (tap opens its rows) — the LANDING only when it is a map (three or more groups, or any strip); Rows = every data row as a card SECTIONED by group (a section header scopes to that group; `← All rows` returns) with the gutter identity as the card head and the row's plot — the same kind renderer — as the body on the shared window; Measures = chart rows full-width at expanded density; tap selects, a second tap on an `expand` row drills it in place (~148px; neighbours keep their size), a two-finger horizontal drag pans the window; a bounded `height` pins the header and scrolls the list; a paged source shows its resident prefix. Wrap a Plan in `<Box width="360px">` to see it on a desktop page
979
- ├─ Keyboard (#819): the body is a TREEGRID with ONE tab stop that roves between its rows — every row, group band, ⋯ gap band and paged-window band (loading or failed) is a `row` with aria-level / aria-expanded / aria-selected and an `aria-rowindex` that stays exact under virtualization, collapse and paging · ↑ / ↓ step, Home / End go to the first / last, PgUp / PgDn move a viewport · → opens a closed section (a group band, a nesting parent, an `expandable` chart) and steps into an open one's first child; ← closes an open one, else steps to the parent · Enter does the row's click (select; a group band toggles; a rail, strip or ⋯ band returns from the row focus) · Space toggles the section / chart · a step onto an UNLOADED band asks the source for that window and moves on to the row once it lands (Home / End reach the source's own first / last row) · Tab walks the row's widgets — its controls, its elements in time order, tabbables in the expand render — then leaves the canvas; ← / → (Home / End) step between elements in time order; Enter / Space on an element does its click (the popover, the selection — an event kind's element selects its event, Shift+Enter adds it, #1197 — the element callback) · Esc ladder, one rung per press: popover → element back to its row → brush → focus → deselect (the row, its bucket and the events at once) · n recenters the window on `now` · [ / ] pan one period · g cycles the grain — window keys write the window into the sources holding it, so a canvas whose slice holds no range idles them · with `editing`, ⌘Z / Ctrl+Z undo the last gesture and ⌘⇧Z / Ctrl+Shift+Z / Ctrl+Y redo it (#880) · with `editing`, Space on a movable element picks it up (#825): ← / → move it one bucket, Shift+← / → its end and Alt+← / → its start, ↑ / ↓ carry it to the nearest row above / below that takes it, Space / Enter drop it, Esc / Tab cancel — each step said in the canvas's live region; an event kind's element is carried the same way (#1196), ↑ / ↓ along the rows its kind draws on, a refusal said with why · the toolbar's GROUP · RESOURCE and WEEK · DAY segments are radio groups: one tab stop each, ← / → (Home / End) move and pick
980
- ├─ Screen readers (#819): a polite live region says what changed — a selection, a section or chart opening / closing, a row focus coming or going, the grain, the resolution, each window a paged source lands ("Loaded elements 201–400 of 5,000", counted in source elements like the transport line); every element is named in words — label, span or bucket ("Week of Jul 6, 2026"), state, tone — a chart row reads as an image with a min / max / last summary per layer, and colour-only cells (heat depth, booked weight, segment composition, compressed strips) carry their value as text; narrow, the Groups · Rows · Measures tabs are a real tablist (arrow keys, one tabpanel each)
1037
+ ├─ Narrow (below 480px of CONTAINER width — a phone, a splitter pane, a task preview; §10): the same definition reflows to a review tool — the frame's toolbar keeps its items, folded to fit (the GROUP · RESOURCE segment leaves: the tabs own the grain), no horizon brush, and Groups · Rows · Measures tabs (the `<Tabs>` line grammar, counts as plain numerals) over ONE slice, then the card list with the shared ruler as its sticky first row (a separator per bucket, labels thinned to what fits): Groups = the group grain as hottest-first strip cards (tap opens its rows) — the LANDING only when it is a map (three or more groups, or any strip); Rows = every data row as a card SECTIONED by group (a section header scopes to that group; `← All rows` returns) with the gutter identity as the card head and the row's plot — the same kind renderer — as the body on the shared window; Measures = chart rows full-width at expanded density, its count `not counted` over a paged source whose entries make no fixed number of chart rows; tap selects, a second tap on an `expand` row drills it in place (~148px; neighbours keep their size), a two-finger horizontal drag pans the window; a bounded `height` pins the header and scrolls the list; a paged source shows its resident prefix. Wrap a Plan in `<Box width="360px">` to see it on a desktop page
1038
+ ├─ Keyboard (#819): the body is a TREEGRID with ONE tab stop that roves between its rows — every row, group band, ⋯ gap band and paged-window band (loading or failed) is a `row` with aria-level / aria-expanded / aria-selected and an `aria-rowindex` that stays exact under virtualization, collapse and paging · ↑ / ↓ step, Home / End go to the first / last, PgUp / PgDn move a viewport · → opens a closed section (a group band, a nesting parent, an `expandable` chart) and steps into an open one's first child; ← closes an open one, else steps to the parent · Enter does the row's click (select; a group band toggles; a rail, strip or ⋯ band returns from the row focus) · Space toggles the section / chart · a step onto an UNLOADED band asks the source for that window and moves on to the row once it lands (Home / End reach the source's own first / last row) · Tab walks the row's widgets — its controls, its elements in time order, tabbables in the expand render — then leaves the canvas; ← / → (Home / End) step between elements in time order; Enter / Space on an element does its click (the popover, the selection — an event kind's element selects its event, Shift+Enter adds it, #1197 — the element callback) · Esc ladder, one rung per press: popover → element back to its row → brush → focus → deselect (the row, its bucket and the events at once) · n recenters the window on `now` · [ / ] pan one period · g cycles the grain — window keys write the window into the sources holding it, else into the canvas's own; a canvas with no slice keeps the axis's stated window and idles them · with `editing`, ⌘Z / Ctrl+Z undo the last gesture and ⌘⇧Z / Ctrl+Shift+Z / Ctrl+Y redo it (#880) · with `editing`, Space on a movable element picks it up (#825): ← / → move it one bucket, Shift+← / → its end and Alt+← / → its start, ↑ / ↓ carry it to the nearest row above / below that takes it, Space / Enter drop it, Esc / Tab cancel — each step said in the canvas's live region; an event kind's element is carried the same way (#1196), ↑ / ↓ along the rows its kind draws on, a refusal said with why · the toolbar's GROUP · RESOURCE and WEEK · DAY segments are radio groups: one tab stop each, ← / → (Home / End) move and pick
1039
+ ├─ Screen readers (#819): a polite live region says what changed — a selection, a section or chart opening / closing, a row focus coming or going, the grain, the resolution; what a paged source reads is the footer's loading line, a polite live region that speaks once a load; every element is named in words — label, span or bucket ("Week of Jul 6, 2026"), state, tone — a chart row reads as an image with a min / max / last summary per layer, and colour-only cells (heat depth, booked weight, segment composition, compressed strips) carry their value as text; narrow, the Groups · Rows · Measures tabs are a real tablist (arrow keys, one tabpanel each)
981
1040
  ├─ Localization (#820): every word the canvas says itself — toolbar, ruler, footer, diagnostics, bands, narrow tabs and cards, the history bar (the table carries the editing session's words, #880), element names, live-region announcements — comes from ONE typed message table, and every number and date it prints is in the LOCALE: react-aria's `<I18nProvider locale="de-DE">` above the app sets it (the browser's language otherwise), and derived numbers ("2.234,5 k sheets"), ruler ticks ("MO · DI"), the words a reader hears ("29. Juni 2026") and a Chart.format.* axis all follow it. Host React code overrides any subset of the words for a subtree with `<PlanMessagesProvider messages={GERMAN}>` (@elaraai/e3-ui-components; `planMessages` is the English table — each message a function of named, already-formatted parameters, plus the raw `n` for plurals; define the overrides ONCE, not per render — providers nest). What the AUTHOR wrote is data and never translated: labels, footer items, and a date `format` pattern on the axis (East tokens, as written); the label a patch event carries to the host stays in English, as the Sheet's does
982
1041
  └─ Factories:
983
1042
  ├─ Plan.axis({ … }) = Plan.axis.time / Plan.axis.number({ window?, step, now?, format? }) / Plan.axis.ordinal({ values, now? }) — the shared axis declaration, one of three kinds (Plan.Types.Axis); Plan.at.time(d) / Plan.at.number(n) / Plan.at.ordinal(s) build ONE INSTANT explicitly (Plan.Types.Instant) — needed only for element RECORDS written as data (a Plan.Types.HeatCell array, a stored Plan.Types.Run): every element builder below takes a Date / number / string, or a DateTime / Float / Integer / String expression, and wraps it to the arm by its type, so a `start: r.start` DateTime accessor and a `day: FloatType` field both need nothing written
@@ -998,6 +1057,7 @@ return <Plan axis={axis} data={rows} series={series} />;
998
1057
  ├─ Plan.eventRef(kind, key) — an event of one of the Plan's event kinds, named for a link's end (Plan.Types.RunRef) · Plan.over(data, [series…]) — series over a dataset, read only, for `rows` (#1191)
999
1058
  ├─ Plan.library.events() / backlog() / series() / tab(rows, config) — the library pane's tabs (#1195, see `library`) · Schedule.patch(R, { field: value, … }) — a patch over an event kind's row type (Schedule.Types.Patch(R): every field an `Option`, the fields left out `none`), what an author's card dropped on an event sets
1000
1059
  ├─ Plan.uiState({ selected?, collapsed?, expanded?, charts?, focus? }) — the seed of a bound `ui` state (Plan.Types.UiState): rows named by id (`Plan.ref`), omitted fields empty
1060
+ ├─ Plan.Types.OptimiseRequest(E, S) / Plan.Types.OptimiseResult(E) — what the app's optimiser is asked and answers (#1409): `E` and `S` the event and resource kinds' row types by slot (`Plan.Types.OptimiseRequest({ job: Job }, { presses: Press })`, a kind keyed otherwise than by String `{ key, row }`); the request `{ from, to, run, events, resources }`, each kind's rows by key; the result `{ events }`, the events complete, a new event's key the optimiser's own
1001
1061
  └─ Plan.Types.PatchEvent(R) — what `editing.onPatch` receives for entries of `R` · Plan.Types.Drop ({ from: { library, key }, row: RowId, at: Instant, duplicate }) — what an `edit.create` builds its item from · Plan.Types.Gesture (drop(Drop) | move(Move)) and Plan.Types.RowEdits ({ drop, move: Option<MoveEdits> } — the gestures a row takes) · Plan.Types.Move ({ key, from: RowId, to: RowId, start, end } — a moved or resized element, #825) — the editing wire (#880); the session's contracts are the shared `Editing.Types.*` (ChangeSet(R, K), ApplyResult, Readiness)
1002
1062
  ```
1003
1063
 
@@ -1087,7 +1147,7 @@ Plan.series.views(OpsRow, { key: "presses", title: "Presses", match: r => r.pick
1087
1147
  | `onSelect` / `expandRender` / `expandGutter`: `fn(Plan.Types.RowId)`; element refs, `onGroupToggle`, a drop (`Plan.Types.Drop`): `{ row: RowId, … }` | Every callback names a row by its id. | `planVariants`, `planTargetState`, `planRowDrop` |
1088
1148
  | series keys unique across the whole tree **❗** | A repeated key is a build-time error naming both series; a repeated run-time id draws a DUPLICATE ID row diagnostic. | — |
1089
1149
  | **Window** | | |
1090
- | `Plan.axis({ window: { min, max }, … })` or a source of `slice={{ slice }}` holding a `range` **❗** | The window is stated, or it is the range its sources hold (#1344). A canvas with neither is refused, and nothing fits the axis to the data. | `planTargetState`, `planNumberAxis` |
1150
+ | `Plan.axis({ window: { min, max }, … })` or a source of `slice={{ slice }}` holding a `range` — an event kind's or a tab's, never the `rows` source's or a resource kind's **❗** | The window is stated, or it is the range its sources hold (#1344); while no source holds it the canvas holds its own, which its navigation moves without reading a row. A canvas with neither is refused, and nothing fits the axis to the data; a `range` on the `rows` source or a resource kind's is refused as the Plan is evaluated, naming the change. | `planTargetState`, `planNumberAxis`, `planRecordIndexes`, `slicePlanChrome` |
1091
1151
 
1092
1152
  A paged canvas pages by parents, block by block (#823): a window holds its
1093
1153
  entries whole, so every parent derives exactly, and each top-level series is a
@@ -1291,12 +1351,13 @@ unmapped fields hold their type's default.
1291
1351
  | Event `fields`, `Schedule.field.*` | The shared `Fields` vocabulary: `text`, `number`, `select`, `tags`, `checklist`, `reference`, `readonly`, `hidden`; other editors derive from the field type. | `planEvents`, `planPrintWorks` |
1292
1352
  | Event `ready`, `inspector` | Readiness returns `Editing.Types.Readiness` and can hold Save. A custom inspector receives the typed row and its session writer. | `planPrintWorks` |
1293
1353
  | Event source, `entries` | The builder's `Slice.bindRecords` narrows a kind through a source named after its slot, over an interval index: its events in the window and its backlog read through it (the Calendar, #1343; the Plan, #1344), and the Roster's week of duties and the Allocation's day of bins, the range their own navigation writes (#1368, #1371). `entries: Data.bindPaged(record)` supplies original-key reads for editing. A kind's own `slice` and `filter` are refused at build, naming the change. See Indexed records and shared Slice above. | `calendarRecordIndexes`, `calendarOperations`, `planPrintWorks`, `planWindows`, `rosterWindowed`, `allocationWindowed` |
1294
- | Event `window`, `backlogWindow`, `entries` | The separate single-index paging form, described under Large records below. A kind narrowed through a source of its builder's rail takes neither `window` nor `backlogWindow`. | `calendarWindowed` |
1354
+ | Event `window`, `backlogWindow`, `entries` | The separate single-index paging form, described under Large records below. A kind narrowed through a source of its builder's rail takes neither `window` nor `backlogWindow`, and a Plan refuses it on a kind placed on a paged resource kind, which is read a cell at a time through its source (#1039). | `calendarWindowed` |
1295
1355
  | `Schedule.periods(Record.bind(r, [patch]), { every, status: { field, draft, published }, dismissed?, entries? })` **❗** | What a builder publishes (#1367): the app's record of periods, `Dict<DateTime, P>`, a row each keyed by its start — a UTC midnight, a week's first day by the builder's week start for `"week"`, or a `"day"`. `status.field` names a variant field of `P`, not an Option, and `draft` and `published` two of its cases; the published case holds `Null` or `{ at: DateTime }`. `dismissed`, the Roster's, names a `Set<String>` field: the proposals a week dismissed. `entries: Data.bindPaged(r)` reads the periods by key — the period, the one before it, the open picker's span, each one key search and one page — else the record is read whole. Without `periods`, a builder has no status chip and no Publish. | `rosterWarehouse`, `rosterWindowed`, `allocationKilnYard`, `allocationWindowed` |
1296
1356
 
1297
1357
  A period whose status is the published case is read-only in every layout,
1298
1358
  phones included, and so is one in a case that is neither, its chip naming the
1299
- case; a period with no row is Not started. Publish saves the period's drafts
1359
+ case; a period with no row is Not started once its read lands; until then the
1360
+ status chip is a placeholder in its slot. Publish saves the period's drafts
1300
1361
  first, and once every record reads back as saved writes the published case —
1301
1362
  the time in `at` when the case holds one — and saves the period: a Save that
1302
1363
  fails leaves the period a draft with its drafts kept, so a published period
@@ -1421,9 +1482,9 @@ places it bare.
1421
1482
 
1422
1483
  | Signature | Description | Example |
1423
1484
  | --- | --- | --- |
1424
- | the toolbar | Every control the Plan draws outside its canvas, one row at every width: the rail of its one `Slice.bindRecords` folds first, its summary after every step of it, then the Plan's own steps and the key search into its icon; the fold toggle, the resolution and the overlaps chip into the date navigator's View, one move; the history item folds last. | `planTargetState`, `planRowDrop`, `planPrintWorks` |
1485
+ | the toolbar | Every control the Plan draws outside its canvas, one row at every width: the rail of its one `Slice.bindRecords` folds first, its summary after every step of it, then the Plan's own steps and the key search into its icon; the fold toggle, the resolution and the overlaps chip into the date navigator's View, one move; the history item folds last, and below that, at a phone's width, the rail's icon drops its caret, the history and Save staying in the row. | `planTargetState`, `planRowDrop`, `planPrintWorks` |
1425
1486
  | the banners | Each session's — `data`'s, and each event kind's titled with its name (#1194): a Save's conflict, a refusal, an unknown outcome with Retry, a source out of date with Discard; each leaves when what it reports does, and one kind's leaves the other kinds' commits standing. | `planRowDrop`, `planPrintWorks` |
1426
- | the footer | The counts — the event kinds' events in the window, their backlog, the changes pending and the last save of an event kind's record — then the author's `footer` and the transport line. | `planPrintWorks` |
1487
+ | the footer | The counts — the event kinds' events in the window, their backlog, the changes pending and the last save of an event kind's record — then the author's `footer` and the one loading line. | `planPrintWorks` |
1427
1488
  | `style={{ height: "fill" }}` / `maxHeight` | The whole Plan's: the canvas fills main and scrolls its own rows. | `planTargetState` |
1428
1489
  | a host's height, and no `style.height` | The canvas fills main and scrolls there; a host that gives none lets it grow with its rows. | — |
1429
1490
 
@@ -1441,6 +1502,14 @@ query moves once a gesture), a resolution's rewrite of the window (it
1441
1502
  re-buckets) and templates written in the code (`Schedule.templates` over a
1442
1503
  record). Each form still written is refused at build, naming the change.
1443
1504
 
1505
+ Changed with #1344 too: the canvas's rows never follow the dates on screen. A
1506
+ `range` on the `rows` source or a resource kind's — which held the window, so
1507
+ every pan narrowed the rows again — is refused as the Plan is evaluated,
1508
+ naming the change: leave it out, and the field stays a field of the rail the
1509
+ viewer sets. A slice with no source holding the window leaves the canvas its
1510
+ own window, which the date navigator, the brush and the keys move, and which a
1511
+ reload opens on, as the canvas's folds are kept.
1512
+
1444
1513
  #### The library pane (#1195)
1445
1514
 
1446
1515
  `library` lists the start pane's tabs, in order, each a `Plan.library.*`
@@ -1485,7 +1554,7 @@ const slice = $.let(Slice.bindRecords("ops.plan", {
1485
1554
  | --- | --- | --- |
1486
1555
  | `Plan.library.events()` **❗** | Every event kind's templates, under the kind's name and then the template's `group` (`Print job · Jobs`). A card is its kind's icon, its name and `Print job · 6 h · presses`: its kind, how long it runs (an instant kind's runs no time) and the resource kinds it is placed on. Dropped on a resource's row it makes its event there (#1196). Each kind's list follows its source of the rail (#1344): the tab counts what it shows (`Events 8 of 12`) and, when the rail leaves a list none, says so with Clear filters for it. Refused on a Plan with no event kinds. | `planEvents`, `planPrintWorks` |
1487
1556
  | `Plan.library.backlog()` **❗** | Every event kind's unscheduled events (a kind with Option times and a `backlog`), grouped by when they are due: Due this week (overdue included), Due next week, Later, No date — UTC weeks, from the Monday of the week the axis's `now` is in, else the week the Plan mounted in. A card is `6 h · Press A · due Fri 16` (`Unassigned` on no resource). It is read again as a kind's record commits, with every kind's drafts in place (#1196): a card dropped on a resource's row is scheduled and leaves it, an event dropped on the tab is unscheduled and joins it. Collapsed, the pane's rail counts it. A kind narrowed through its source (#1344) shows its narrowing's backlog, the tab counting `N of M` — what shows beside the stored events the choices hide — and its Clear filters keeping the window. Refused on a Plan with no event kinds. | `planEvents`, `planPrintWorks` |
1488
- | `Plan.library.series()` **❗** | `Pick.Panel`'s list in the order the canvas draws: each resource kind and its measures, the event kinds, `data`'s series when they are picked (`pick`), and the Plan's `rows` — a hand-built row by its key, a `Plan.over` series by its own. Hiding an event kind hides its elements everywhere, its Unassigned row and any row only it draws on with them (a resource's first row is its own, and stays); a resource kind its rows; a measure, or one of `rows`, its rows — a `Plan.over` series' nested series with it. `data`'s series hide through their pick. The rest are kept per viewer under the Plan's `id`, and only while the library lists this tab. Refused on a Plan with nothing a viewer can hide. | `planPrintWorks` |
1557
+ | `Plan.library.series()` **❗** | `Pick.Panel`'s list in the order the canvas draws: each resource kind and its measures, the event kinds, `data`'s series when they are picked (`pick`), and the Plan's `rows` — a hand-built row by its key, a `Plan.over` series by its own. Hiding an event kind hides its elements everywhere, its Unassigned row and any row only it draws on with them (a resource's first row is its own, and stays), and leaves it out of every figure of the canvas's — the footer's counts, the inspector's stats and a row's facts — nothing saying so, its backlog the Backlog tab's still; a resource kind its rows; a measure, or one of `rows`, its rows — a `Plan.over` series' nested series with it. `data`'s series hide through their pick. The rest are kept per viewer under the Plan's `id`, and only while the library lists this tab. Refused on a Plan with nothing a viewer can hide. | `planPrintWorks` |
1489
1558
  | `Plan.library.tab(rows: Dict<K, R>, { name, icon?, label, meta?, group?, drop?, source? })` **❗** | `source` names the rail's source it follows, by its rows' keys (`Customers 6 of 16`, #1344). A card per row, its rows read as `Schedule.resources` reads them, accessors `(row, key)`: its label, its meta, the tab's icon, grouped by `group`, searched by key, label and meta. A click selects a card, and a click on the selected card lets it go. A key of another type than String is its card's key as East prints it. Its cards drag onto the rows of `data` whose series makes an item of a card (`edit.create`) — the drop's `from.key` the card's key, so `canDrop` and `create` read it as a Library card's — and the Plan takes them with no `id` or `sources` (#1259). | `planEvents`, `planPrintWorks`, `planRowDrop` |
1490
1559
  | `drop: (row, key) => Schedule.patch(KindRowType, { … })` **❗** | With it, each card drags onto an event too, while one of the patch's kind is on the canvas. What a card dropped on an event sets (#1196): the patch's type names the event kind it lands on, so a patch over no kind's row type, or over one two kinds share, is refused at build, naming the tab. Dropped on the event under the pointer it sets the patch's fields as one step (`Harbour Arts Society → Spring catalogue` on the ghost); refused between events (`Drop a customer onto an event`) and on another kind's (`Stops take no customer`). | `planEvents`, `planPrintWorks` |
1491
1560
  | `Schedule.patch(R, { field: value, … })` / `Schedule.Types.Patch(R)` | A patch over an event kind's row type: every field an `Option`, each field left out `none`; one set to `none` clears an Option field. | `planEvents` |
@@ -1529,7 +1598,7 @@ const inspectStop = $.const(East.function([PrintStop, FunctionType([PrintStop],
1529
1598
 
1530
1599
  | Signature | Description | Example |
1531
1600
  | --- | --- | --- |
1532
- | `inspector` (`inspector={true}`) **❗** | The end pane, 320px. One event: its kind, its title, when it runs and its status; its resource, its start and end or its instant, its lane, its state and its quantity; its kind's form over `fields`, the fields its roles read left to their own lines; Duplicate and Delete; an overlaps banner lists this event's pairs. Several: how many, each kind's count, the list, and the bulk edit — the state, the resource, a shift of a day or an hour. A row: its resource's name, its lines and its group, its events in the window — how many, their hours, their quantities by unit — its overlapping pairs, and its measures at the bucket a click on its plot named; an Unassigned row, its kind's events on no resource; any other row, what it draws at that bucket. Nothing: the window's events, hours and backlog, and three hints. Collapsed, a rail naming what is selected. Refused on a Plan with no event kinds; `false`, or left out, no pane. | `planPrintWorks` |
1601
+ | `inspector` (`inspector={true}`) **❗** | The end pane, 320px. One event: its kind, its title, when it runs and its status; its resource, its start and end or its instant, its lane, its state and its quantity; its kind's form over `fields`, the fields its roles read left to their own lines; Duplicate and Delete; an overlaps banner lists this event's pairs. Several: how many, each kind's count, the list, and the bulk edit — the state, the resource, a shift of a day or an hour. A row: its resource's name, its lines and its group, its events in the window — how many, their hours, their quantities by unit; a paged resource's placeholders until its cells land, never 0 — its overlapping pairs, and its measures at the bucket a click on its plot named; an Unassigned row, its kind's events on no resource; any other row, what it draws at that bucket. Nothing: the window's events, hours and backlog — the hours those of the kinds it reads — and three hints. Collapsed, a rail naming what is selected. Refused on a Plan with no event kinds; `false`, or left out, no pane. | `planPrintWorks` |
1533
1602
  | `Schedule.events(record, { …, inspector: fn(R, fn(R) => Null) => UIComponentType })` **❗** | The kind's own inspector for one event, in place of its form, over the event's row; `update(edited)` writes the edited event back. Passed through untouched, called only where the pane draws it. A function over another row type, or with no writer, fails the build. Plan and Calendar use it when their optional `inspector` pane is present; read-only Calendar never calls its editing callback. | `planPrintWorks` |
1534
1603
  | the edits | Each one transaction of the Plan's history (#1194): a field of the kind's form, tinted while the record holds it otherwise; the kind's own inspector's `update`; Duplicate — each copy under a new key (a `String` key `-2`, `-3`, … after its own, an `Integer` key past the largest; a kind keyed otherwise has none), the copies then selected; Delete; and the bulk edit across kinds — the state, the resource (each event placed on that resource's kind), a shift of a day or an hour. They are off while a selected event's kind is saving or its record is not yet read. | `planPrintWorks` |
1535
1604
 
@@ -1562,27 +1631,35 @@ A record too large to read whole is read a window at a time: an event kind
1562
1631
  through its record's indexes, and a resource kind paged as the canvas
1563
1632
  scrolls. An event kind narrowed through its source of the Plan's slice
1564
1633
  (#1344) reads its window and its backlog through the source's interval index,
1565
- as `planWindows`' jobs do; what follows is the form for a kind with no rail
1566
- (`calendarWindowed`). An event kind given `window` — a paged read of a day index over its
1567
- record, keyed by `Schedule.days` — reads only the days the canvas draws;
1568
- given `backlogWindow`, a paged read of an index keyed by
1634
+ as `planPrintWorks`' jobs do — counted first, and read only within 10,000
1635
+ events (#1039, below) — and one placed on a paged resource kind is read a cell
1636
+ at a time through its source, as `planWindows`' jobs are (below); what follows
1637
+ is the form for a kind with no rail, over resources read whole
1638
+ (`calendarWindowed`). An event kind given `window` — a paged read of a day
1639
+ index over its record, keyed by `Schedule.days` — reads only the days the
1640
+ canvas draws, on a Plan counted first by the entries the index files under
1641
+ them and read only within 10,000 (#1039, below); given `backlogWindow`, a paged read of an index keyed by
1569
1642
  `Schedule.unscheduled`, its backlog; and given `entries`, a paged read of the
1570
1643
  record's own entries, one event by its key. A resource kind given its
1571
1644
  resources as a paged read pages them, 200 to a window, the key search seeking
1572
- one. Neither record is ever read whole: not to draw, not to edit, not to save.
1645
+ one — and every event kind placed on it is read a cell at a time: one with no
1646
+ source of the slice, read whole or through its day index, is refused at
1647
+ build, naming the series and the summary index to declare over its own
1648
+ fields. Neither record is ever read whole: not to draw, not to edit, not to
1649
+ save.
1573
1650
 
1574
1651
  ```tsx
1575
1652
  // Package side: the jobs record and its two indexes (e3.recordIndex), each keyed by Schedule's own function.
1576
1653
  // export const jobsByDay = e3.recordIndex("jobs_by_day", jobs, { keys: … Schedule.days(start, end) … });
1577
1654
  // export const unscheduled = e3.recordIndex("jobs_unscheduled", jobs, { keys: … Schedule.unscheduled(job.start, job.due) … });
1578
1655
  <Reactive>{$ => {
1579
- const presses = $.let(Data.bindPaged(pressesTask)); // a window of presses at a time
1656
+ const presses = $.let(Data.bind(pressesTask)); // read whole: a paged kind's jobs are read a cell at a time (below)
1580
1657
  const jobs = $.let(Record.bind(jobsRecord, [jobsPatch]));
1581
1658
  const days = $.let(Data.bindPaged(jobsRecord, { index: jobsByDay, join: true }));
1582
1659
  const backlog = $.let(Data.bindPaged(jobsRecord, { index: unscheduled, join: true }));
1583
1660
  const entries = $.let(Data.bindPaged(jobsRecord)); // one job by its key
1584
1661
  return <Plan axis={axis}
1585
- resources={{ presses: Schedule.resources(presses, { name: "Presses", icon: "print", label: p => p.name, sub: p => some(p.hall) }) }}
1662
+ resources={{ presses: Schedule.resources(presses.read(), { name: "Presses", icon: "print", label: p => p.name, sub: p => some(p.hall) }) }}
1586
1663
  events={{ job: Schedule.events(jobs, {
1587
1664
  name: "Print job", icon: "file-lines", title: "title", start: "start", end: "end",
1588
1665
  resource: { field: "press", of: "presses" },
@@ -1594,10 +1671,11 @@ one. Neither record is ever read whole: not to draw, not to edit, not to save.
1594
1671
 
1595
1672
  | Signature | Description | Example |
1596
1673
  | --- | --- | --- |
1597
- | `Schedule.events(record, { …, window: Data.bindPaged(record, { index, join: true }) })` **❗** | The kind's events over the days the canvas draws, read through a day index keyed by `Schedule.days` (a scheduled event filed under every day it runs into): the first day sought and the index's pages read from it; a pan seeks the day it brings in. An event filed under several days draws once, and the drafts draw over the window. Refused at build: an index of another record, or keyed otherwise; a `window` over Option times without `backlogWindow`; a `window` without `entries`; and either beside a source of the rail. An index read without `join: true` is refused as it is read. | `calendarWindowed` |
1674
+ | `Schedule.events(record, { …, window: Data.bindPaged(record, { index, join: true }) })` **❗** | The kind's events over the days the canvas draws, read through a day index keyed by `Schedule.days` (a scheduled event filed under every day it runs into): the days sought from the first's midnight to the window's end — where they start in the index and how many entries they hold — and the index's pages read from there; a pan seeks the days it brings in. On a Plan that count comes first, and past 10,000 entries no page is read (#1039, below). An event filed under several days draws once, and the drafts draw over the window. Refused at build: an index of another record, or keyed otherwise; a `window` over Option times without `backlogWindow`; a `window` without `entries`; either beside a source of the rail; and, on a Plan, a kind so read placed on a paged resource kind, naming the source to name after it and its series and summary indexes (#1039). An index read without `join: true` is refused as it is read. | `calendarWindowed` |
1598
1675
  | `backlogWindow: Data.bindPaged(record, { index, join: true })` **❗** | The kind's backlog — the library's Backlog tab and the footer's count — read through an index keyed by `Schedule.unscheduled`. Refused on a kind whose times are plain `DateTime`s. | `calendarWindowed` |
1599
1676
  | `entries: Data.bindPaged(record)` **❗** | The record's own entries: one event by its key — the inspector's, a gesture's before its first draft, a Save's read back, a conflict's — its key sought and a one-row page read. Required beside `window` or a source of the rail, refused without either. The kind's editing is a session over the record's revision: each change checked by the record against what it began from, and a Save's conflict naming each event another write moved, read by its key at the record's new revision, with who changed the record last. | `planWindows` |
1600
- | `Schedule.resources(Data.bindPaged(record), { name, icon, label, … })` **❗** | A resource kind paged as the canvas scrolls: a window of resources at a time, the events on them drawn with them, the key search seeking a resource by its key, its types its page's `Dict`'s. Its resources keyed by `String`, with no `group` or `parent`; one paged kind per Plan, and none beside a paged `data`. A link's end on its rows is named by the row's id; the inspector and the backlog's cards name a resource once it is read by its key. An event on a resource it does not have draws on no row, and the bulk edit offers none of its resources. The Calendar refuses a paged read: it reads a kind's resources whole. | `planWindows` |
1677
+ | `Schedule.resources(Data.bindPaged(record), { name, icon, label, … })` **❗** | A resource kind paged as the canvas scrolls: a window of resources at a time, the events on them drawn with them, the key search seeking a resource by its key, its types its page's `Dict`'s. Its resources keyed by `String`, with no `group` or `parent`; one paged kind per Plan, and none beside a paged `data`. Every event kind placed on it is read a cell at a time through its source of the slice (#1039, below): one read whole, one read through its day index (`window`) and one placed beside another resource kind are refused at build, the refusal naming the series and the summary index to declare over the kind's own fields. A link's end on its rows is named by the row's id; the inspector and the backlog's cards name a resource once it is read by its key. An event on a resource it does not have draws on no row, and the bulk edit offers none of its resources. The Calendar takes one too, under the same rules (#1424; see Calendar below). | `planWindows` |
1678
+ | a source of the slice named after the paged kind's slot **❗** | The narrowing's rows are the kind's windows (#1344): `Data.bindPaged(record, { indexes })` over the kind's own record, paged in the source's index's order, 200 to a window — never every resource read, nor a window of them filtered by key — the rail and the canvas counting the narrowing's, the frame following none of its keys. A choice keeps the last view standing, retained, until its first window lands; a bounded canvas puts the resource at its top back where the narrowing's first windows draw it, and else starts at the top. It has no key search: a narrowing's searches run in its index's order. A source over another record's rows is refused at build. | `planSeriesByHall`, `planRecordIndexes` |
1601
1679
  | `Schedule.resources(rows, { window })` **❗** | Gone (#1199): refused at build, naming the paged form. | — |
1602
1680
  | a `ui()` task over them | A record bound with `Record.bind` and read with `Data.bindPaged` too is in its manifest's `records` and `pages`, never its `paths`: it is never preloaded or polled whole. | `planWindows` |
1603
1681
 
@@ -1606,6 +1684,73 @@ to the jobs reads the presses' windows again over the same snapshot, and the
1606
1684
  search keeps its text, its matches and the view. Only a new snapshot of the
1607
1685
  presses asks it again, there.
1608
1686
 
1687
+ #### A cell at a time, shaded zoomed out (#1039)
1688
+
1689
+ An event kind placed on a paged resource kind reads only the events of the
1690
+ resources around the rows in view: its source lists a **series index** of its
1691
+ record beside the interval index, and a **summary index** with it
1692
+ (`planWindows`). A series index files each event under its resource and each
1693
+ time tile it touches, carrying its row; a summary holds, under each resource
1694
+ and tile, how many events touch it and the milliseconds of it they cover (the
1695
+ **e3** skill). A kind on a paged resource kind read any other way — its source
1696
+ listing its interval index alone, or a summary and no series; no source, its
1697
+ record read whole or the days in view through its day index; or placed
1698
+ beside another resource kind — is refused, naming both declarations over the
1699
+ kind's own fields: `e3.recordIndex.series(name, jobs, { key: "press", from:
1700
+ "start", to: "end", tile: "week" })` and `e3.recordIndex.summary(name, jobs,
1701
+ { key: "press", from: "start", to: "end", tile: "month" })`. Nothing else in
1702
+ the Plan changes:
1703
+
1704
+ ```tsx
1705
+ // Package side, beside the interval index:
1706
+ // export const jobsByPressWeek = e3.recordIndex.series("jobs_by_press_week", jobs, { key: "press", from: "start", to: "end", tile: "week" });
1707
+ // export const jobsByPressMonth = e3.recordIndex.summary("jobs_by_press_month", jobs, { key: "press", from: "start", to: "end", tile: "month" });
1708
+ const slice = $.let(Slice.bindRecords("ops.plan", {
1709
+ job: { source: Data.bindPaged(jobs, { indexes: [jobsByTime, jobsByPressWeek, jobsByPressMonth] }), range: "start" },
1710
+ }));
1711
+ ```
1712
+
1713
+ A **cell** is the events of a block of fifty of the paged kind's resources in
1714
+ one tile — of a kind its source of the slice narrows, fifty of the narrowing's,
1715
+ in its index's order, so only the narrowed resources in view have their events
1716
+ read, and a choice reads none before its own rows are drawn
1717
+ (`planSeriesByHall`, #1344). The Plan wants the blocks meeting the rows in view and twenty-five
1718
+ resources either side, by the tiles the range it reads touches — its window
1719
+ and the periods laid out beyond each edge — and one tile either side: every
1720
+ wanted cell's searches in one request, which counts its entries before one is
1721
+ read, and the entries of the cells it does not hold in one more. A pan or a
1722
+ scroll within the cells it holds reads nothing, and a commit reads the wanted
1723
+ cells again, the old standing in until they land. The rail's window and its
1724
+ exact count stay the interval index's.
1725
+
1726
+ | Signature | Description | Example |
1727
+ | --- | --- | --- |
1728
+ | a source listing `e3.recordIndex.series` + `e3.recordIndex.summary` beside the interval index **❗** | The kind read a cell at a time, two requests a change. A long event is in every tile it touches and draws once; the drafts draw where they place their events, read or not; a link's event end the cells do not hold is read by its key, in one read. | `planWindows`, `planRecordIndexes` |
1729
+ | past 10,000 events in the cells wanted | The summary's cells instead, at the largest of its tiles that divides the canvas's bucket — a day, an ISO week (which divides no month), a month, a quarter or a year — each resource's share of each bucket booked for bars and chips, how many events touch it for tiles and marks. With none that divides it, the events over the window while their count there is within the cap; past it the rows are hatched, and a banner names how many events there are and the resolution that shades them. | `planWindows` |
1730
+ | a narrowing | A series index led by the narrowed fields serves it exactly; any other field is asked of the cells' events in one read. A summary shades a narrowing only when led by its fields. | `planWindows` |
1731
+ | the footer and the inspector | The window's events counted exactly from the source, as the rail counts them; their hours and overlaps over the rows drawn — "Hours in view", once the cells have landed — and the backlog read whole through the source's unset start. A resource selected while its cells are not read — scrolled out of the blocks read, or before the first read lands — shows its figures as placeholders until they land, never 0. | `planWindows` |
1732
+ | a kind on a paged resource kind whose source lists its interval index alone, or a summary and no series; one read whole, or through its day index; one placed beside another resource kind **❗** | Refused, each naming the series and the summary index to declare over the kind's own fields — as the payload builds where the indexes are known there, else as the Plan is evaluated, in the same words. | — |
1733
+ | a series index without a summary; an index filed by another field than the kind's resource field, or over other times than its own; a series index for a kind placed on resources read whole, or on none; two series or two summaries of one tile over the same fields **❗** | Refused as the payload builds, each naming the change. | — |
1734
+
1735
+ Every other event kind is **counted first** (#1039): before one of its events
1736
+ is read, it is counted over the range the canvas reads — its window and the
1737
+ periods it lays out beyond each edge, for every resource. A kind read through
1738
+ its source is counted through its interval index, the count its window's read
1739
+ asks first, so counting asks e3 nothing of its own; a kind read through its
1740
+ day index by the entries the index files under the days of the range, in the
1741
+ search its read asks first — an event under each day it runs on, so an upper
1742
+ bound on its events, never their number; and a kind whose record is read
1743
+ whole in memory. Within 10,000 it is read over the window as ever; past them
1744
+ none of its events is read or drawn:
1745
+
1746
+ | Signature | Description | Example |
1747
+ | --- | --- | --- |
1748
+ | a kind past 10,000 events, its source listing a summary **❗** | Its rows shade from the summary as a kind read by its cells does, at the largest of its tiles that divides the canvas's bucket, and no event of the range is read. | — |
1749
+ | a kind past 10,000 events with no summary that shades the bucket **❗** | Its rows are hatched, and the banner says how many events there are and the resolution its summary shades at — with none, to narrow the filters or zoom in. A pan, a zoom, a narrowing or a commit that brings the range within the cap reads its events again. | — |
1750
+ | a kind read whole, past 10,000 events | Counted in memory, and drawn the same: hatched, with the banner. | — |
1751
+ | the footer and the inspector over a kind past the cap | Its events in the window counted — through the source as the rail counts them, or in memory — never read; a counted kind is read over the window only once its count over the range the canvas reads is within the cap. A resource's row counts none of its events: the inspector says so (`Print jobs not counted: too many to draw at this resolution`), never 0. With nothing selected it counts its events but not their hours — the hours those of the kinds it reads, none where no kind's are — and names it, in one line with any kind it counts none of (`Print job hours not counted: too many to draw at this resolution`). A kind hidden in the Series tab is in no figure, and nothing says so. | — |
1752
+ | a kind read through its day index (`window`), past 10,000 entries **❗** | Counted first through its day index, its count the days its events run on: none of its days is read, its rows are hatched, and its events are not counted anywhere — the banner says so (`Print job events in view: not counted`), the footer (`13 events, print jobs not counted`) and the inspector too, never a number it does not have. Within 10,000 entries its days are read as ever. | `calendarWindowed` |
1753
+
1609
1754
  ### The Sheet — `<Sheet>`
1610
1755
 
1611
1756
  `<Sheet>` is the planning spreadsheet, and there is one: it renders in its
@@ -1623,8 +1768,11 @@ sources:
1623
1768
  through `onApply`, `onUpdate` and `onPatch`; with none of them the sheet is
1624
1769
  read only.
1625
1770
  - the **`rows` source of its `slice`** — `slice={{ slice: Slice.bindRecords(key,
1626
- { rows, … }) }}` (#1345): the rows that source narrows to, paged from it in
1627
- its index's order, each row's id its record key. Save commits through
1771
+ { rows, … }) }}` (#1345): the source's record's rows, every one in the
1772
+ record's order, each row's id its record key. While the source narrows them
1773
+ the sheet draws the narrowing over them as the **lens** (#1349), a filtered
1774
+ spreadsheet: only the rows the narrowing keeps, one after another in the
1775
+ record's order, each at its row number. Save commits through
1628
1776
  `onApply={Record.onApply(record, { keyed: true })}` by original primary key.
1629
1777
 
1630
1778
  Its columns are typed — a date, a quantity with its unit, an integer, text, a
@@ -1633,9 +1781,9 @@ register lookup, reference or enum, a set of register members, a directed
1633
1781
  read-only code, a custom parse / print pair — with a blank tail that invites
1634
1782
  the next row, typed parsing with a docked candidate strip, a copilot that
1635
1783
  fills cells and proposes whole rows from author East functions, one rail over
1636
- its `Slice.bindRecords` — its rows, its templates records and the tabs that
1637
- name a source — with saved-view tabs, drag and drop, Excel round-tripping, and
1638
- a key search over a paged source. Every change is a draft
1784
+ its `Slice.bindRecords` — its rows, whose narrowing it draws as the lens, its
1785
+ templates records and the tabs that name a source — with saved-view tabs, drag
1786
+ and drop, Excel round-tripping, and a key search over a paged source. Every change is a draft
1639
1787
  of an editing session, checked as it is made and applied as one checked
1640
1788
  batch. Where east-ui's `<Table>` displays rows, the Sheet is where a planner
1641
1789
  types them: reach for it when the rows are authored in place and written back.
@@ -1671,12 +1819,12 @@ import { Record, Sheet } from '@elaraai/e3-ui';
1671
1819
  ```
1672
1820
 
1673
1821
  ```
1674
- <Sheet record={Record.bind(r, [patch])} | data={rows} id="id" | slice={{ slice: Slice.bindRecords(key, { rows, … }) }} columns={{ start: Sheet.column.date(Row, {…}), qty: Sheet.column.quantity(Row, Driver, {…}), … }} library?={[…]} inspector? /> — the planning SPREADSHEET in its builder frame: typed columns over its rows (date · quantity + unit · integer · text · register lookup / reference / enum · a set of register members · a directed `from > to` LINK between register members as a TYPED value · stamped read-only codes · a custom parse / print pair), a blank tail that invites the next row, typed parsing with a docked candidate strip (nothing ever floats over the grid), a copilot that fills cells and proposes whole rows from author East functions, one rail over its Slice.bindRecords with saved-view tabs over every source's narrowing (the lens, which drew a narrowing over the resident rows, is off until #1349), drag and drop, Excel round-tripping, and a key search over a paged source. Declared the way east-ui's Table and the Plan are: every per-row fact is an accessor, the builders take the row type FIRST, and nothing at the author's side is addressed by a string name
1675
- ├─ The frame: ONE toolbar holding every control the sheet has, in this order — the view tabs, the key search, the rail over its `Slice.bindRecords` and its summary (each source a narrowing hides rows of, named in its own words, #1358), the scope badge and the history item (a sheet with none of them, read only with no slice, has no toolbar). It is one row at every width: the rail folds first, then its summary, then the sheet's own steps — the tabs into `+n`, the strip closing up — then the key search into its icon (which opens the box in a popover, the focus in it) and the view tabs into one chip naming the open view, its menu every view, `+ TAB` and the open view's close (#1221); where the sheet has a key search, the chip folds last into the search's popover, its views over the box (#1345); and the history item last, to its buttons; on a touch screen every control there is a 44px tap target. The banners — a Save's conflict naming its rows and who changed the record last, a refusal with its reason, an unknown outcome and a failed confirmation read each with Retry, the out-of-date notice with Discard, each source the library follows whose narrowing could not be read, with Retry, and an `entry` the record does not hold; main — the grid, filling the room the panes leave and scrolling its own rows, the strip docked under it; the footer — the sheet's, over a record its last save, and over the slice's `rows` source the rows a Save took out of the narrowing. ⌘Z undoes and ⇧⌘Z / ⌘Y redo from anywhere in the frame; a field being typed into keeps its own undo. The sheet fills its parent and draws no border: give it a box of its own height
1822
+ <Sheet record={Record.bind(r, [patch])} | data={rows} id="id" | slice={{ slice: Slice.bindRecords(key, { rows, … }) }} columns={{ start: Sheet.column.date(Row, {…}), qty: Sheet.column.quantity(Row, Driver, {…}), … }} library?={[…]} inspector? /> — the planning SPREADSHEET in its builder frame: typed columns over its rows (date · quantity + unit · integer · text · register lookup / reference / enum · a set of register members · a directed `from > to` LINK between register members as a TYPED value · stamped read-only codes · a custom parse / print pair), a blank tail that invites the next row, typed parsing with a docked candidate strip (nothing ever floats over the grid), a copilot that fills cells and proposes whole rows from author East functions, one rail over its Slice.bindRecords with the LENS — the `rows` source's narrowing drawn over the record's rows, only the rows it keeps, each at its row number (#1349) — and saved-view tabs over every source's narrowing, drag and drop, Excel round-tripping, and a key search over a paged source. Declared the way east-ui's Table and the Plan are: every per-row fact is an accessor, the builders take the row type FIRST, and nothing at the author's side is addressed by a string name
1823
+ ├─ The frame: ONE toolbar holding every control the sheet has, in this order — the view tabs, the lens's count line (while the `rows` source narrows the rows, #1349), the key search, the rail over its `Slice.bindRecords` and its summary (each source a narrowing hides rows of, named in its own words, #1358), the scope badge and the history item (a sheet with none of them, read only with no slice, has no toolbar). It is one row at every width: the rail folds first, then its summary, then the sheet's own steps — the tabs into `+n`, the count line, the strip closing up — then the key search into its icon (which opens the box in a popover, the focus in it) and the view tabs into one chip naming the open view, its menu every view, `+ TAB` and the open view's close (#1221); where the sheet has a key search, the chip folds last into the search's popover, its views over the box (#1345); and the history item last, to its buttons — below that, where the row is still too wide, the rail's icon drops its caret, so the history and Save stay in the row at a phone's width; on a touch screen every control there is a 44px tap target. The banners — a Save's conflict naming its rows and who changed the record last, a refusal with its reason, an unknown outcome and a failed confirmation read each with Retry, the out-of-date notice with Discard, each source the library follows whose narrowing could not be read, with Retry, and an `entry` the record does not hold; main — the grid, filling the room the panes leave and scrolling its own rows, the strip docked under it; the footer — the sheet's, over a record its last save, and over the slice's `rows` source the rows a Save took out of the narrowing. ⌘Z undoes and ⇧⌘Z / ⌘Y redo from anywhere in the frame; a field being typed into keeps its own undo. The sheet fills its parent and draws no border: give it a box of its own height
1676
1824
  ├─ Rows — ONE of three sources (two, or none, is refused):
1677
1825
  │ ├─ record — `Record.bind(r, [e3.mutation.patch(r)])` over a `Dict` record: its entries are the rows, in key order, each row's id its key's text (any key type: a non-String key by its `.east` text). `window={Data.bindPaged(r)}` reads the same record a window at a time. `entry={{ key, rows: F, id: I }}` is one entry's Array field `F`, in its own order, each row identified by the `String` field `I`; each entry keeps its own drafts, and a key the record does not hold opens empty and read only, named in a banner. With `group`, the entry's field holds groups, or `Sheet.Types.Entry(P, "lines")` entries with loose rows between them (`id` then names a field of both types); a record of groups is grouped the same way. Save is ONE patch commit, checked against what each row was when its edit began, confirmed by the rows the record reads back. Over a record `id`, `onApply` and `onUpdate` are refused (the record identifies and commits its rows); `entry` and `window` need a record
1678
- │ ├─ data — the host's rows: an `Array<R>` value / expression or a `$.let`-bound whole-value handle (`State.bind` / `Data.bind`) for the INLINE arm; a paged source for a WINDOWED arm — a `$.let`-bound `Data.bindPaged(…)` handle, recognised by its East type: `pinned` when it names its snapshot, which `onApply` needs, `paged` when it is the shape a UI exported before `revision` / `refresh`, which names none — positional (`Array<R>` windows) or keyed (`Dict<String, R>` windows; the key is the row id). When a pinned source's `revision()` moves (`Data.bindPaged` follows each write to its dataset), the sheet re-reads its resident windows at the new snapshot IN PLACE: the rows on screen stay until theirs land (no remount, no empty frame), the scroll position and row heights hold, and a standing key search is cleared. A failure stays where it happened: a window the source cannot read is ONE band where its rows would be — the elements it covers, the reason and a Retry — while the windows around it keep working and the rows after it keep their numbers; a `total()` or `revision()` that throws is said on the footer's transport line with a Retry while the rows stay; only a source that fails before anything lands replaces the grid, with a Retry. A row that throws while it draws is a one-row diagnostic. A `Dict` inline is refused (a sorted map would sit rows in key order, not the planner's) — a record's entries come through `record`. `id` (required on a positional source) names the `String` field that identifies a row; over entries of groups and loose rows, a field of BOTH types
1679
- │ └─ the `rows` source of `slice` — slice={{ slice: Slice.bindRecords(key, { rows: { source: Data.bindPaged(r, { indexes }), fields, range?, search? }, … }) }} (#1345): the rows that source narrows to, paged from it in its index's order, each row's id its record key, a grouped sheet's groups its records; edits through `onApply={Record.onApply(record, { keyed: true })}`, a Save that takes rows out of the narrowing said in the footer; the key search seeks in the source's order. `record`, `data`, `window` and `entry` beside it are refused, each naming the change
1826
+ │ ├─ data — the host's rows: an `Array<R>` value / expression or a `$.let`-bound whole-value handle (`State.bind` / `Data.bind`) for the INLINE arm; a paged source for a WINDOWED arm — a `$.let`-bound `Data.bindPaged(…)` handle, recognised by its East type: `pinned` when it names its snapshot, which `onApply` needs, `paged` when it is the shape a UI exported before `revision` / `refresh`, which names none — positional (`Array<R>` windows) or keyed (`Dict<String, R>` windows; the key is the row id). When a pinned source's `revision()` moves (`Data.bindPaged` follows each write to its dataset), the sheet re-reads its resident windows at the new snapshot IN PLACE: the rows on screen stay until theirs land (no remount, no empty frame), the scroll position and row heights hold, and a standing key search is cleared. Rows not read draw as the shared run — the sheet's own rows at its pitch, a flat sheet's real row numbers — and a failure stays where it happened: a window the source cannot read is said once, in its run's first row in view (`Couldn't read rows 201–400`, Retry), its reason on the footer's loading line, while the windows around it keep working and the rows after it keep their numbers; a `total()` or `revision()` that throws is said on the footer's loading line with a Retry while the rows stay; only a source that fails before anything lands replaces the grid, with a Retry. A row that throws while it draws is a one-row diagnostic. A `Dict` inline is refused (a sorted map would sit rows in key order, not the planner's) — a record's entries come through `record`. `id` (required on a positional source) names the `String` field that identifies a row; over entries of groups and loose rows, a field of BOTH types
1827
+ │ └─ the `rows` source of `slice` — slice={{ slice: Slice.bindRecords(key, { rows: { source: Data.bindPaged(r, { indexes }), fields, range?, search? }, … }) }} (#1345): the source's record's rows, every one in the record's order, each row's id its record key, a grouped sheet's groups its records; while the source narrows them, the sheet draws the narrowing over them as the LENS (#1349), a filtered spreadsheet — only the rows the narrowing keeps, one after another in the record's order, each at its row number, its number marked; nothing stands between them for the rows it leaves out. e3 places the narrowing's rows from its index alone, and the lens reads only the record's segments that hold matches near the view — a page and one ask of which of its rows the narrowing holds, each — so rows with no match are never read, whatever the record's size; a segment not read yet is one band of its matches at the rows' pitch, so the sheet is as tall as its matches before their rows land and after, and they land where the band stood. The count line says `n matches`, n e3's count. A segment whose rows disagree with where e3 placed the narrowing's is one failed band saying the record changed, with a Retry — never a match the index does not hold. A grouped sheet's lens narrows its groups: a matching group's every line shows. Edits through `onApply={Record.onApply(record, { keyed: true })}`, a Save that takes rows out of the narrowing said in the footer; the key search seeks in the record's order and lists the rows its key finds wherever they are, a row the narrowing leaves out naming the choices that hide it as the rail words them — `· hidden by Status: Ready — picking it clears that filter`, which of them hide it asked of e3 through the record's indexes, `· hidden by the filters` until it says — and a pick of it clears just those choices, every other one kept (every choice of the source, before e3 has said), and goes to the row at its number; a choice cleared so is a change of the rail like any other, a saved view's tab marked changed and Esc putting it back. `record`, `data`, `window` and `entry` beside it are refused, each naming the change
1680
1828
  ├─ Props:
1681
1829
  │ ├─ columns (required) — keyed by the row's fields and checked per key (a key that is not a field, a date under a `String` field, a builder over another row type: type errors): Sheet.column.text(R, cfg) · date(R, { base?, format?, level?, actual? }) — the common date field (`dd / mm / yyyy` segments); pasted text takes the B§3 grammar (`+3d`, `4d` from `base`, `fri`, ISO, `d/m[/yy]`); `level: r => …` reads each row's date at a Sheet.Types.DateLevel ("week" | "day" | "range" | "time" — no shifts: a host with shifts uses a `custom` kind) and `actual: r => Option<DateTime>` is when the work really happened (the cell then prints it with its difference, the wanted date becoming the cell's detail) · quantity(R, cfg) or quantity(R, D, { uom: d => d.uom, format? }) — a float with the DRIVER row's unit in the common number field, in the viewer's language (#852): the cell groups (1,234.5 — German 1.234,5; through `format` when declared), the edit box and copy are bare (1234.5 — German 1234,5), typed and pasted text reads the viewer's separators (pasted `1.2k` / `1.2m`, German `1,5k`, still parse; a typed quantity rounds to a whole number), and ⏎ on an unchanged edit box writes nothing · integer(R, cfg) · lookup(R, { options? }) — the DRIVER column only (scored candidates from its register) · reference(R, register, cfg) — a lookup over a flat member list · enum(R, register, { options? }) — an upper-cased register word with a valence dot · set(R, register, { members?, multiple?, store? }) — comma members, the link grammar without an arrow · link(R, D, register, { to? | from?, members, multiple?, sides?, arity?, check?, store?, options? }) — `from > to`, the split cell; `members: [{ kind, identified?, countable?, resolvesTo?, ranged? }]` — `ranged` offers and prints runs of consecutive codes as one range. `options` (enum / lookup / link) is fn(Sheet.Types.DraftContext(R, D)) => Option<Array<String>> — the member keys the row is OFFERED (`none` = the whole register; typed text still resolves against the whole register) · stamped(R, { owner? }) — read-only, skipped by paste and clear · custom(R, { accepts, parse, print }) — an author parse / print pair over the field's payload. Every kind takes { header, sub, width, editable?, fill?, detail? } (`header` + `sub` are the two header lines; `fill` = providers, the first that yields wins; `detail: r => String | Option<String>` is the text the hover and the strip show beyond the value); text / date / quantity / integer also take `value: r => …` for a derived READ-ONLY projection on any field. A set / link column sits on a `Sheet.Types.Link` field, an `Array<Sheet.Types.Member>` field (the other half named by `to` / `from`), or a `String` field the grammar parses on read and prints on commit per `store` ("asTyped" | "canonical" — the register's labels)
1682
1830
  │ ├─ group (optional) — Sheet.group(P, "lines", { title, sub?, cells?, folded?, noun? }): the rows are GROUPS whose lines live in one `Array<L>` field; `columns` are declared over `L`; `cells` = band cells (Sheet.group.cell.*) keyed by the line column they sit under; `noun: { singular, plural }` is the word the renderer prints for a group (omitted, the sheet says its own in the viewer's language — "group" / "groups" in English, #861). LOOSE rows between the groups (#846): rows of Sheet.Types.Entry(P, "lines") entries — each `variant("group", P)` or `variant("row", L)` — and a row entry draws as a plain row: no band or rail, numbered in the groups' sequence, its own cells. The seam above a band or beside a loose row inserts a loose row (a line's seam and a group's blank line still insert a line); loose rows delete, paste and count on their own ("2 groups · 3 lines · 3 loose rows"), fold-all passes them by and no band sticks over them. A new line there gets its `id` field minted unless `newRow` supplies one; drafts, checks and the change set carry the entry (a draft is `variant("group", …)` or `variant("row", …)`, a loose row's DraftContext has `group: none`)
@@ -1685,27 +1833,28 @@ import { Record, Sheet } from '@elaraai/e3-ui';
1685
1833
  │ ├─ registers (optional) — { name: Sheet.register.members(rows, { kind, key, label, aliases?, meta?, parent?, tone? }) | Sheet.register.concat([…]) }: the lookup tables reference / enum / set / link columns resolve against; accessors receive `(value, key)` (a `Dict<String, T>` register reads its key as the second argument; an Array's key is its index); duplicate keys fold, first wins — so a family kind ("CNC router" from every router) declares one member per distinct value
1686
1834
  │ ├─ owned (optional) — accessor r => Bool: rows the upstream system owns — no copilot, stamped columns read-only
1687
1835
  │ ├─ suggest (optional) — { ahead?, triggers?, ghost?, propose: [fn] }: the copilot's row proposers — East functions (sync, or async for a model call) over Sheet.Types.DraftContext(R, D) — current draft row and neighbours, rowIndex, driver: Option<D> and today; draft fields are missing | value(T) | invalid(String), so guard with hasTag("value") before unwrap("value") — returning Array<Sheet.Types.Proposal(R)> ({ patch: Sheet.patch(R, { … }), meta }); a column's `fill` providers are the same shape returning Option<Sheet.Types.Fill(T)> ({ value, meta }). The first that yields wins; fills CHAIN in column order (a later column sees the earlier fills as if taken); an async one shows a pending chip in the strip and the newest context wins; a rejected fill / proposal is remembered for the session
1688
- │ ├─ slice (optional) — slice={{ slice: Slice.bindRecords(key, { rows?, <a templates list's source>…, <a tab's source>… }, { presets? }), affordances?, persist? }} (#1345): ONE rail on the toolbar over its sources — `rows` narrows the sheet's rows (above), each templates list's source its cards in the Rows tab, and an author's tab's source that tab's cards; a sheet over `record` or `data` takes a slice of templates sources alone. The bare handle, `Slice.bind`, a single `Slice.bindRecord`, a source nothing names, `affordances` / `persist` outside `slice` and the `brush` affordance (the sheet has no axis) are refused, each naming the change. The lens is off until e3 can place a narrowing's rows (#1349): the rail filters the rows. Over a keyed paged source the key search seeks over `seek` (the jump rebases residency and, once the match's window is in, lands the ring on the match and scrolls to it — until then the jump owns the viewport, so a scroll report from where the sheet was cannot undo it; a match whose window cannot be read shows its failed band instead). The ring, a range and an open editor stay on their rows as windows land around them
1836
+ │ ├─ slice (optional) — slice={{ slice: Slice.bindRecords(key, { rows?, <a templates list's source>…, <a tab's source>… }, { presets? }), affordances?, persist? }} (#1345): ONE rail on the toolbar over its sources — `rows` narrows the sheet's rows (above), each templates list's source its cards in the Rows tab, and an author's tab's source that tab's cards; a sheet over `record` or `data` takes a slice of templates sources alone. The bare handle, `Slice.bind`, a single `Slice.bindRecord`, a source nothing names, `affordances` / `persist` outside `slice` and the `brush` affordance (the sheet has no axis) are refused, each naming the change. While `rows` narrows the rows, the sheet draws the narrowing over the record's rows as the lens (above, #1349). Over a keyed paged source the key search seeks over `seek` (the jump rebases residency and, once the match's window is in, lands the ring on the match and scrolls to it — until then the jump owns the viewport, so a scroll report from where the sheet was cannot undo it; a match whose window cannot be read shows its failed band instead). The ring, a range and an open editor stay on their rows as windows land around them
1689
1837
  │ ├─ views / activeView (optional) — `views` is a whole-value bind handle of Array<Sheet.Types.RecordView> (`State.bind` keeps them per viewer, `Data.bind` shares them): saved views, each every source's narrowing by the source's name (#1345), as TABS — the pinned whole-sheet tab, which clears every source, `+ TAB` snapshot (named from the sources' searches), each tab's count its `rows` narrowing's through the record's index, the dirty dot when the rail drifts from the tab, × or middle-click close, double-click rename, drag reorder — on a row short of room, one chip naming the open view, its menu every view, `+ TAB` and the open view's close (#1221), and with a key search last folded into its popover (#1345); every change lands at once and is written back through the handle (`onViewsChange` is refused); `activeView` opens a tab and is followed when the host moves it. The tabs show on a sheet with a `rows` source; a sheet without one takes `views` and shows none
1690
1838
  │ ├─ onUpdate (optional, `data` only, INLINE arm) — fn(Array<R>) => Null over a LIVE data bind handle: reads the latest collection, checks the batch base and writes the complete result once. Hidden fields survive. Pass data={rows} and onUpdate={rows.write}; a captured array is refused for this adapter
1691
1839
  │ ├─ onPatch / onApply (optional) — onPatch: fn(Sheet.Types.PatchEvent(E)) => Null observes one draft gesture including incomplete values (either source); onApply (`data` only): sync/async fn(Sheet.Types.ChangeSet(E)) => Sheet.Types.ApplyResult persists a complete checked batch. Paged writes require revision/refresh, atomic host application and request-id deduplication
1692
1840
  │ ├─ applyMode (optional) — "batch" (default: the history item's Save sends the batch) | "auto" (each ready gesture goes at once, through the same acknowledgement path)
1841
+ │ ├─ optimise (optional, #1409) — `Func.bind` of the app's `e3.function` from `Sheet.Types.OptimiseRequest(R)` (`OptimiseRequest(R, K)` over a record keyed otherwise than by String) — the run's number and the rows in view by key as the session holds them, base plus every unapplied draft, the lens's rows read whole — to `Sheet.Types.OptimiseResult(R)`, the rows complete. The Elara eye before the history item: one call per run, the history and every edit locked while it is out, a change of view or tab stopping it. Its answer is diffed by key and recorded as ONE step of the history — Undo in one, Save with everything else — a row added or changed marked cell by cell until Apply (a blank filled an add, a value changed a change, its provenance on hover), the toolbar's count flashing; a result equal to the request records nothing and says so
1693
1842
  │ ├─ newRow / newGroup / ready (optional) — newRow: fn(NewRow) => Patch(R) supplies defaults, including hidden fields; newGroup: fn(NewGroup) => Patch(G) a new group's; ready.row: fn(Draft(R), DraftContext(R, D)) => Readiness adds business rules; ready.group: fn(DraftGroup(G, "rows")) => Readiness checks grouped drafts. Required fields and valid parsing are always checked; optional absence becomes none
1694
1843
  │ ├─ edits (optional) — insertRows / removeRows gate structure independently of cell edits; insertGroups / removeGroups require grouping. moveRows: "none" | "within" | "between" and moveGroups say what a grip may move. Keyed top-level creation uses key order; positional insertion uses gutter buttons, the selection strip or Alt+Insert / Alt+Shift+Insert
1695
1844
  │ ├─ onSelect / selection (optional) — the ring reported as { rowId, line, key }; give `selection` and the ring is CONTROLLED (follows the value, scrolls into view, every move still reports)
1696
1845
  │ ├─ newRowId (optional) — fn() => String minting inserted rows' ids (else the renderer mints one); over a record keyed by a non-String key, the new row's key as its `.east` text — required there unless `edits` inserts no row
1697
1846
  │ ├─ readOnly / blanks / density (optional) — the whole sheet read-only · padding rows below the last real one (default 18; typing into one INSERTS a row after the last real one — blanks are padding, never rows) · row rhythm
1698
- │ ├─ footer (optional) — [{ text, tone? }] counts; a paged source adds the transport line ("N loaded of M · Loading…")
1847
+ │ ├─ footer (optional) — [{ text, tone? }] counts; a paged source adds the one loading line (what the view waits for, or why a read failed, with Retry)
1699
1848
  │ ├─ style (optional) — { gutterWidth } — the sheet fills the box it is given and scrolls its own rows there
1700
1849
  │ └─ name (optional) — names the sheet when a surface holds two: its panes' open tab and collapsed state, the columns a viewer hides, its library's drag source and its drop target are kept under it
1701
1850
  ├─ Panes — optional props, each its own; the examples show every combination (none, a library, an inspector, both):
1702
1851
  │ ├─ library (optional) — the start pane's tabs, in order, each a `Sheet.library.*` call: `rows()` — the templates, by their group, each card saying what it sets, each list following its source of the rail — the tab counting what it shows (`Rows 5 of 11`) and, when its sources leave it none, saying so with Clear filters for them; `columns()` — the declared columns, each with its kind and an eye that hides it from the grid per viewer (the last shown stays; a sheet whose library lists no Columns tab hides none); `tab(data, { name, icon?, key, label, meta?, group?, drop?, source? })` — the author's own cards from an Array or a `Dict<String, T>` (its key the accessors' second argument), searched by key, label and meta, following the rail's `source` it names as the Rows tab does; `drop: (row, key) => Sheet.patch(R | G, …)` sets a row's fields where a card lands, or a band's when the patch is over the group type. Left out, or empty, no library pane (SB59). Collapsed, the pane is a rail with the templates' count
1703
1852
  │ ├─ templates (optional) — Sheet.templates(templates.read(), { name, group?, values, source }), or a list of them: templates RECORDS (#1345), bound with `Data.bind`, one card per row in the record's key order, each list naming its source of `slice` — a grouped sheet's row templates and group templates two records and two sources, a group template's `values` over the group type; a dropped card is `newRow`'s (`newGroup`'s) defaults with the template's fields over them. A list written in the code, one naming no source of the slice or one it lacks, one naming `rows`, two naming one source, and values over another type are refused, each naming the change
1704
- │ ├─ inspector (optional) — given alone (`inspector`, `inspector={true}`): the end pane's Details shows the selected row's every field — through its column's kind, or by its type (a field no column shows included) — tinted where it differs from what the source holds, each edit ONE transaction; several rows selected, a column set across them as one step; a band, the group's own fields, Add line, Duplicate and Delete with its lines; Issues lists the batch's issues by row, each going to its cell (over a paged source, sought by its key). `inspector={East.function([R, FunctionType([R], NullType)], UIComponentType, ($, row, update) => …)}` — the author's own Details for a complete row (SB58), passed through untouched and called where Details draws; `update(edited)` is one transaction; a row whose draft is still incomplete shows the form. With nothing selected, Details counts the rows, the pending drafts and the issues, and over a record says the last commit and who made it. Left out, no inspector pane
1853
+ │ ├─ inspector (optional) — given alone (`inspector`, `inspector={true}`): the end pane's Details shows the selected row's every field — through its column's kind, or by its type (a field no column shows included) — tinted where it differs from what the source holds, each edit ONE transaction; several rows selected, a column set across them as one step; a band, the group's own fields, Add line, Duplicate and Delete with its lines; Issues lists the batch's issues by row, each going to its cell (over a paged source, sought by its key) — an issue on a row the `rows` source's narrowing hides naming the choices that hide it, and a click clearing just those and going to its cell, as a pick of the key search does. `inspector={East.function([R, FunctionType([R], NullType)], UIComponentType, ($, row, update) => …)}` — the author's own Details for a complete row (SB58), passed through untouched and called where Details draws; `update(edited)` is one transaction; a row whose draft is still incomplete shows the form. With nothing selected, Details counts the rows, the pending drafts and the issues, and over a record says the last commit and who made it. Left out, no inspector pane
1705
1854
  │ └─ fields / groupFields (optional, with `inspector`) — the inspector form's hints by field — `Sheet.field.*`, east-ui's `Fields`: a label, a help line, an editor, read only or hidden; a column's kind is its field's default (SB10). Given without an inspector they are refused
1706
1855
  ├─ Drag and drop: a template lands on the seam it is dropped on — a row beside a row, a line in the group under the pointer, a group between groups, or, on a keyed source, where its key sorts; an author's card sets its patch's fields on the row or band it lands on; a row's, a line's or a band's grip moves it, as `edits` allows (a keyed source's rows and groups have no grip). The ghost's caption says where, and turns red where a drop is refused; ⏎ on a card does what a drop below the ring would; each drop is one transaction. On a coarse pointer a frame too narrow for the touch gutter beside the first column folds it (#1215): each row's actions go into one 44px row-actions button — the row's grip and its menu
1707
1856
  ├─ Keyboard (B§6): arrows / ⇧arrows (↓ on the last row appends — on a flat sheet, once a paged source is exhausted) · ⇥ / ⇧⇥ walk the copilot's fills, then take rows, then move · ⏎ takes the next suggestion, else edits with the value selected (F2 too); a printable key seeds a fresh edit · ⌘⏎ fills the row (one undo step), ⌘⇧⏎ takes everything · esc ladder, one rung per press: editor → chip selection → selected proposal → row fill → every suggestion → range → dirty tab revert → the whole sheet · ⌫ clears cells (never a stamped one) or deletes whole selected rows · ⌘C / ⌘V round-trip with Excel (a link cell as two columns) · ⌘/ and ⌘F reach the key search — its box, or, folded to its icon, the box in its popover, opened (#1221) — else the row's first search box. In a link editor: `,` resolves a member, `>` hops From → To, ⇥ takes the ghost → a predicted chip → hops → commits right, ⌫ pops the last chip
1708
- ├─ Localization (#861): every word the sheet says itself — the toolbar and the view tabs, the header, the rows, bands and gap pills, the strip and the editor, the footer and the history item, the banners, the panes, the insertion chips, and the message each gesture leaves — comes from ONE typed message table, its counts in the LOCALE react-aria's `<I18nProvider locale="de-DE">` sets (the browser's language otherwise). Host React code overrides any subset of the words for a subtree with `<SheetMessagesProvider messages={GERMAN}>` (@elaraai/e3-ui-components; `sheetMessages` is the English table — each message a function of named, already-formatted parameters, plus the raw `n` for plurals; define the overrides ONCE, not per render — providers nest). The message a gesture leaves is kept as data and worded as it shows, so a new table re-words it. What the AUTHOR wrote is data and never translated: headers and subs, a group's `noun`, register labels and metas, lock tags, footer items, library tab names; the date and link GRAMMARS keep their forms (day-first dates, `TBC`, `N x kind`), and the issues a patch event carries to the host stay in English (the sheet shows them in its words)
1857
+ ├─ Localization (#861): every word the sheet says itself — the toolbar and the view tabs, the header, the rows and bands, the strip and the editor, the footer and the history item, the banners, the panes, the insertion chips, and the message each gesture leaves — comes from ONE typed message table, its counts in the LOCALE react-aria's `<I18nProvider locale="de-DE">` sets (the browser's language otherwise). Host React code overrides any subset of the words for a subtree with `<SheetMessagesProvider messages={GERMAN}>` (@elaraai/e3-ui-components; `sheetMessages` is the English table — each message a function of named, already-formatted parameters, plus the raw `n` for plurals; define the overrides ONCE, not per render — providers nest). The message a gesture leaves is kept as data and worded as it shows, so a new table re-words it. What the AUTHOR wrote is data and never translated: headers and subs, a group's `noun`, register labels and metas, lock tags, footer items, library tab names; the date and link GRAMMARS keep their forms (day-first dates, `TBC`, `N x kind`), and the issues a patch event carries to the host stay in English (the sheet shows them in its words)
1709
1858
  └─ Factories:
1710
1859
  ├─ Sheet.column.text / date / quantity / integer / lookup / reference / enum / set / link / stamped / custom(R, …) — the column builders (see `columns`); Sheet.driver(column, rows, accessors) — the driver; Sheet.register.members(rows, accessors) / Sheet.register.concat([…]) — registers
1711
1860
  ├─ Sheet.link.parse(text, members) / Sheet.link.print(link) — the link grammar as East functions (`R2140, Bay 2 > 4 x CNC router`: codes and aliases, ranges `R2140-45`, counted `N x kind`, `TBC`, free text kept as a `text` member — never a refusal) · Sheet.link.arity(half, implied) — how many members a half should hold, `implied: fn(Context(R, D)) => Option<Sheet.Types.Counted>` (the strip reads "n × kind implied · k named") · Sheet.link.check.exists() and author checks fn(Sheet.Types.CheckContext(R)) => Option<String> — a `some(message)` FLAGS the member (warn chip + title), never blocks
@@ -1713,6 +1862,7 @@ import { Record, Sheet } from '@elaraai/e3-ui';
1713
1862
  ├─ Sheet.subRows(R, sources) / Sheet.subRow({ code?, name, chips?, facets?, id? }) — sub rows (see `subRows`); a left-out `code` / `id` is "", `chips` / `facets` []
1714
1863
  ├─ Sheet.library.rows() / columns() / tab(data, config) — the library's tabs; Sheet.templates(rows, { name, group?, values, source }) — a templates record's cards for the Rows tab (#1345); Sheet.field.* — the inspector's hints (east-ui's `Fields`)
1715
1864
  ├─ Sheet.apply(E, idField) — the checked batch applier as an East function: fn(entries, Sheet.Types.ChangeSet(E), revision: Option<String>) => Sheet.Types.Applied(E) — the base (snapshot or revision) is checked first, then the whole batch applies or none of it does (`conflict` says why); `E` is the row struct or a Sheet.Types.Entry(G, "rows") union of groups and ungrouped rows. Request deduplication stays with the host's `onApply`. It IS east-ui's shared `Editing.apply` (#879); a keyed Dict source applies with `Editing.apply(DictType(K, E))` — entries addressed by key, placed `keyOrder`
1865
+ ├─ Sheet.Types.OptimiseRequest(R, K?) / Sheet.Types.OptimiseResult(R, K?) — what the app's optimiser is asked and answers (#1409): `{ run, rows }`, the rows in view by key as the session holds them; `{ rows }`, the rows complete, a new row's key the optimiser's own
1716
1866
  └─ Sheet.Types.DraftContext(R, D) / Draft(R) / Fill(T) / Patch(R) / Proposal(R) / PatchEvent(E) / ChangeSet(E) / Applied(E) / Entry(G, "rows") / ApplyResult / Readiness / CheckContext(R) — typed contracts for providers, drafts, checked application and checks; grouped contexts use (G, "rows", D). The transaction and draft types are east-ui's shared editing contract's (`Editing.Types.*`, #879) under their Sheet names — the same values. Sheet.Types.Link / Member / Cell / Row / Line / SubRow / Facet / DateLevel / Noun / RecordView / Selection / Counted / Sides / RegisterMember are shared value and wire types.
1717
1867
  ```
1718
1868
 
@@ -1820,7 +1970,8 @@ the row projection, so they follow the host's rows, not an open edit.
1820
1970
  | `entry` + `group: Sheet.group(P, "lines", …)` | `F` holds groups, or `Sheet.Types.Entry(P, "lines")` entries, loose rows between the groups. | `sheetBatches`, `sheetLoose` |
1821
1971
  | `group` over the record's entries | Each entry a group, its lines its Array field. | `sheetWorkshop` |
1822
1972
  | `data` + `id` (+ `onApply` / `onUpdate`) | The host's rows: an array, a bind handle or a paged source. | `sheetVariants` |
1823
- | `slice={{ slice: Slice.bindRecords(key, { rows, … }) }}` + `onApply={Record.onApply(record, { keyed: true })}` **❗** | The rows the `rows` source narrows to, paged from it, each row's id its record key (#1345); `record`, `data`, `window` and `entry` beside it are refused. | `sheetWorkshop`, `sheetStress`, `sheetRecordIndexes` |
1973
+ | `slice={{ slice: Slice.bindRecords(key, { rows, … }) }}` + `onApply={Record.onApply(record, { keyed: true })}` **❗** | The `rows` source's record's rows, in the record's order, each row's id its record key (#1345); `record`, `data`, `window` and `entry` beside it are refused. | `sheetWorkshop`, `sheetStress`, `sheetRecordIndexes` |
1974
+ | the lens: the `rows` source narrowed **❗** | Its narrowing drawn over the record's rows (#1349), a filtered spreadsheet: only the rows it keeps, one after another, each at its row number, and the count line, its matches — e3 placing them from the index, the lens reading only the segments near the view. | `sheetRecordIndexes` |
1824
1975
  | `record` with `data`, or neither; `id` / `onApply` / `onUpdate` over a record; `entry` / `window` with `data` **❗** | Refused, naming the prop and the fix. | — |
1825
1976
  | **The panes** | | |
1826
1977
  | `library: [Sheet.library.rows(), Sheet.library.columns(), Sheet.library.tab(data, { name, key, label, drop?, … })]` **❗** | The start pane's tabs, in order; none, no pane. A tab's `drop` patch over the row type lands on rows, over the group type on bands. | `sheetLibrary`, `sheetWorkshop` |
@@ -1829,7 +1980,7 @@ the row projection, so they follow the host's rows, not an open edit.
1829
1980
  | `inspector: fn(R, fn(R) => Null) => UIComponentType` **❗** | The author's own Details for a complete row; a row still missing a field shows the form. | `sheetWeeks` |
1830
1981
  | `fields: { f: Sheet.field.readonly() \| Sheet.field.hidden() \| … }` / `groupFields` **❗** | The inspector form's hints, by field; refused without an inspector. | `sheetWorkshop`, `sheetBatches` |
1831
1982
  | **The frame** | | |
1832
- | the toolbar | Every control the sheet has, one row at every width: the rail folds first, then its summary, then the sheet's own steps, then the key search into its icon and the view tabs into one chip (#1221) — with a key search, last into its popover (#1345); the history item folds last. ⌘F reaches the key search in either form. | `sheetWorkshop`, `sheetPaged` |
1983
+ | the toolbar | Every control the sheet has, one row at every width: the rail folds first, then its summary, then the sheet's own steps, then the key search into its icon and the view tabs into one chip (#1221) — with a key search, last into its popover (#1345); the history item folds last, and below that, at a phone's width, the rail's icon drops its caret, the history and Save staying in the row. ⌘F reaches the key search in either form. | `sheetWorkshop`, `sheetPaged` |
1833
1984
  | `views: State.bind([ArrayType(Sheet.Types.RecordView)], key, [])` **❗** | The saved views, each every source's narrowing by name (#1345), as a bind handle; `onViewsChange` is refused. | `sheetWorkshop`, `sheetStress` |
1834
1985
  | `name: String` | Names the sheet when a surface holds two; its panes' state, the columns hidden, its drag source and its drop target follow it. | every example but `sheetBasic` |
1835
1986
 
@@ -1842,8 +1993,16 @@ Removed with #1345: the bare `slice={slice}`, `data={Slice.rows(slice)}` and
1842
1993
  `affordances` and `persist` outside `slice`, `Slice.bind` and a single
1843
1994
  `Slice.bindRecord` (`Slice.bindRecords`), `Sheet.Types.View`
1844
1995
  (`Sheet.Types.RecordView`) and templates written in the code (`Sheet.templates`
1845
- over a record) — each refused at build, naming the change. The lens's context
1846
- switch, count line and bands are off until #1349.
1996
+ over a record) — each refused at build, naming the change.
1997
+
1998
+ Changed with #1349: the `rows` source's rows are its record's, every one in the
1999
+ record's order, the source's narrowing drawn over them as the lens — where they
2000
+ were the narrowing's rows alone, in its index's order. The lens is a filtered
2001
+ spreadsheet: it draws only the rows the narrowing keeps, each at its row
2002
+ number, with no rows beside them, no gaps and no context switch, and a saved
2003
+ view keeps no `context` and no `reveals` — `Sheet.Types.Reveal` is gone. An
2004
+ application's own record of saved views changes type with it: a view saved
2005
+ before reads no more, and resets.
1847
2006
 
1848
2007
  ### The Flowchart — `<Flowchart>`
1849
2008
 
@@ -1852,10 +2011,9 @@ phase lanes — its layout derived from the lanes and the links, never from
1852
2011
  coordinates — H/V-routed transition arrows, optional per-link decision
1853
2012
  triggers (lettered diamonds) and evidence-weighted strokes. The dim-ladder
1854
2013
  highlight and the selection grammar are built in, and what is selected shows
1855
- in its inspector. Where east-ui's
1856
- `<Schematic>` places items at
1857
- world coordinates, the Flowchart lays its states out itself, for reading a
1858
- process flow.
2014
+ in its inspector. Where the Schematic (below) places items at world
2015
+ coordinates, the Flowchart lays its states out itself, for reading a process
2016
+ flow.
1859
2017
 
1860
2018
  There is one Flowchart, and it renders in its builder frame wherever it is
1861
2019
  used (#1245): one toolbar — find state, LR · TD, the freshness chip, the rail
@@ -2022,7 +2180,7 @@ const onApply = $.const(East.asyncFunction([StringType, PatchType(Flowchart.Type
2022
2180
 
2023
2181
  ```
2024
2182
  <Flowchart record={…} | data={…} /> — state-transition flowchart in its builder frame: states as nodes in ORDERED phase lanes (layout derived — no coordinates), H/V-routed transition arrows, optional per-link decision triggers (lettered diamonds); dim-ladder highlight built in; the inspector, on by default, shows what is selected
2025
- ├─ The frame (#1245): ONE toolbar holding every control the flowchart has — find state (a search over the open flow's states by key and by label; a pick selects the state and scrolls it into view), LR · TD, the freshness chip, at its end the rail of its one `Slice.bindRecords` and its summary, naming each source a narrowing hides rows of in its own words (#1346, #1358), and where it edits the history item (#1246, #1247: the open flow's session — its status, its issues, Undo, Redo, Discard and Save). It is one row at every width: the rail folds first, its summary after every step of it, then the freshness chip goes, LR · TD folds into one chip naming the orientation (its menu both) and find state's box into its icon (which opens the box in a popover, the focus in it) — with a rail, LR · TD then folds into that popover, its View, one move, so a phone's row keeps the rail and Save — and the history item last, to its buttons; on a touch screen every control there is a 44px tap target. The banners — the open flow's session's: a Save's conflict or refusal, an unknown outcome and a failed confirmation read, each with Retry, and the source changed under its drafts, with Discard; a source of the rail whose narrowing could not be read, with Retry; and a `flow` the flowchart doesn't hold, named with the flow shown in its place (`Gone isn't a flow here — showing Inbound parcels`) until the viewer opens a flow or the record gains that name. Main — the canvas, filling it and scrolling both ways inside it, its lanes running main's whole height; over flows by name with none — an empty record — the shared empty state, with "+ New flow" where it edits. The footer — the counts: over many flows the open flow's name first, the transitions and their planned · observed · unresolved split, where it edits the changes waiting on Save (`3 pending` — each lane, state, transition and decision the drafts add, change or remove), and over a record its last save. The start pane is `library`'s, an optional prop; the end pane is the inspector, on by default. The flowchart fills its parent and draws no border: give it a box of its own height
2183
+ ├─ The frame (#1245): ONE toolbar holding every control the flowchart has — find state (a search over the open flow's states by key and by label; a pick selects the state and scrolls it into view), LR · TD, the freshness chip, at its end the rail of its one `Slice.bindRecords` and its summary, naming each source a narrowing hides rows of in its own words (#1346, #1358), and where it edits the history item (#1246, #1247: the open flow's session — its status, its issues, Undo, Redo, Discard and Save). It is one row at every width: the rail folds first, its summary after every step of it, then the freshness chip goes, LR · TD folds into one chip naming the orientation (its menu both) and find state's box into its icon (which opens the box in a popover, the focus in it) — with a rail, LR · TD then folds into that popover, its View, one move, so a phone's row keeps the rail and Save — and the history item last, to its buttons, and below that, where the row is still too wide, the rail's icon drops its caret, the history and Save staying in the row; on a touch screen every control there is a 44px tap target. The banners — the open flow's session's: a Save's conflict or refusal, an unknown outcome and a failed confirmation read, each with Retry, and the source changed under its drafts, with Discard; a source of the rail whose narrowing could not be read, with Retry; and a `flow` the flowchart doesn't hold, named with the flow shown in its place (`Gone isn't a flow here — showing Inbound parcels`) until the viewer opens a flow or the record gains that name. Main — the canvas, filling it and scrolling both ways inside it, its lanes running main's whole height; over flows by name with none — an empty record — the shared empty state, with "+ New flow" where it edits. The footer — the counts: over many flows the open flow's name first, the transitions and their planned · observed · unresolved split, where it edits the changes waiting on Save (`3 pending` — each lane, state, transition and decision the drafts add, change or remove), and over a record its last save. The start pane is `library`'s, an optional prop; the end pane is the inspector, on by default. The flowchart fills its parent and draws no border: give it a box of its own height
2026
2184
  ├─ Its flows — ONE of two sources (both, or neither, is refused):
2027
2185
  │ ├─ record — Record.bind(r, [e3.mutation.patch(r)]): r of Flowchart.Types.Flows, flows by name (the canvas opens the flow the viewer opened last, kept in the UI store under `name`; else `flow`; else the first by name). Each flow keeps its own session (#1246): its drafts stay while another flow is open, and Save sends the open flow's as ONE patch through the record's patch mutation — `Record.onApply(record, { keyed: true })`, the flow's insert, update or delete by name; the drafts retire once the record reads it back. A record always holds flows by name — e3's patch mutation writes only keyed records — so a lone flow is a record of one entry, or `data`; a record of one flow is refused
2028
2186
  │ └─ data — a value, an expression or a bind handle of Flowchart.Types.Flows (+ `flow`) or Flowchart.Types.Flow, the value's type picking the arm; read only unless given onApply (async, (String, PatchType(the value's type)) → Editing.Types.ApplyResult — `East.asyncFunction([StringType, PatchType(T)], Editing.Types.ApplyResult, ($, requestId, patch) => …)`), the host's commit: Save hands it the session's request id — the same again on a Retry, so a host that keys its write by it (`commit.patch(requestId, patch)`) writes once (#1275) — and one patch of the value — over flows by name the open flow's insert, update or delete by name, never the whole value replaced; over one flow the flow's own patch — and the drafts retire once the host's value holds what it was handed
@@ -2109,6 +2267,563 @@ Removed with #1346: `window={Slice.rows(slice)}` (the `flows` source of
2109
2267
  read from an Array or an input (templates records) and a templates list's
2110
2268
  `key` — each refused at build, naming the change.
2111
2269
 
2270
+ ### The Schematic — `<Schematic>`
2271
+
2272
+ `<Schematic>` is the 2D world-coordinate drawing of the app's own records:
2273
+ placed items (racks, cooling units, power distribution units), zones (halls,
2274
+ cages, hot and cold aisles), links between two items (fibre runs) and nets
2275
+ joining many to many (a power distribution unit feeding a row of racks), each
2276
+ where its row places it and the canvas scaled to fit the extent. Where the
2277
+ Flowchart lays its states out itself, the Schematic draws what the records
2278
+ place.
2279
+
2280
+ It stores nothing in a shape of its own (#1386): each kind is a record of the
2281
+ app's, keyed by String, its fields mapped to the Schematic's roles —
2282
+ `Schematic.items`, `zones`, `links` and `nets`, each under a slot of its
2283
+ sort's prop. A role names a field of the row: its type is checked when the
2284
+ code compiles and again at build, refused naming the role, the field and its
2285
+ type (`` `x` names a Float field, or an Option of one — "name" holds .String ``).
2286
+ A role the app computes — a second line, a meter, a tone — is an accessor
2287
+ `(row, key) => …`, reified once and called per row. A shape is one too
2288
+ (#1401): a footprint, or a zone's geometry, is built from the row's own fields
2289
+ with `Schematic.circle`, `polygon`, `polyline` or `rect`, so no field of the
2290
+ app's record holds a type of the Schematic's — a shape role naming a field is
2291
+ refused, naming the accessor to write. The layers are the app's rows as well,
2292
+ read through `Schematic.layers` as the Roster reads its lists, an entity's
2293
+ `layer` field naming one by its record's key. A gesture writes only the
2294
+ fields its roles map: every other field of the row reads back as it was.
2295
+
2296
+ A kind's binding says whether it is editable and how it is read; any other
2297
+ binding is refused, naming the one to use:
2298
+
2299
+ | Read | Editable | Read only |
2300
+ | --- | --- | --- |
2301
+ | whole | `Record.bind(record, [e3.mutation.patch(record)])` | `Data.bind(record)` |
2302
+ | complete, through its source of the slice | `Record.bind(…)` + `entries: Data.bindPaged(record)` | `Data.bindPaged(record)` |
2303
+ | a window at a time, by area — its source lists an area index | the same, its source `Data.bindPaged(record, { indexes: [byArea, …] })` | the same |
2304
+
2305
+ A source of `slice={{ slice: Slice.bindRecords(key, { … }) }}` named after a
2306
+ kind's slot reads that kind through it — `Data.bindPaged(record, { indexes })`
2307
+ over the kind's record — every row of its narrowing; an indexed read is the
2308
+ source, never the kind's record. A kind's details (`Schematic.details`) are
2309
+ bound as their kind is read: whole beside a kind read whole, by key beside one
2310
+ read through its source — and beside one read by area, by the runs its
2311
+ window's cells are of the area index, e3 reading the keys from the index so
2312
+ none is sent, each cell's once, at every zoom, so a dot draws its item's
2313
+ status as a card does. Bound with their patch door —
2314
+ `Record.bind(record, [e3.mutation.patch(record)])`, with `entries:
2315
+ Data.bindPaged(record)` beside a kind read through its source — the inspector
2316
+ edits them beside their kind's row; `Data.bind` or `Data.bindPaged` alone
2317
+ reads them only.
2318
+
2319
+ A kind whose source lists an area index — `e3.recordIndex.area(name, record,
2320
+ { x, y, width, height, at: "centre", cell })`, the **e3** skill — is read by
2321
+ area (#1393), a window at a time: the rows whose box meets the view and a
2322
+ margin about it, read from the index alone. Past 5,000 rows in the view it
2323
+ draws their density from the index's counts, in the theme's heat steps, the
2324
+ footer saying how many it shades; zoomed in, the rows themselves, their
2325
+ details read by the runs the window's cells are of the area index. A choice
2326
+ of the rail reads through an area index led by its fields, else through the
2327
+ one led by none, the rest asked of the window's rows in one request; a source
2328
+ whose area indexes are all led by fields, or box the rows otherwise than the
2329
+ kind's roles place them, is refused as the kind is read: its read fails, with
2330
+ Retry, the reason naming what to declare. Its
2331
+ Backlog reads the index's rows with no position, and the Index tab a zone's
2332
+ items by the zone's box, each with the drafts in place wherever the window
2333
+ goes: a row a draft unplaces is in the Backlog, and one a draft moves is under
2334
+ the zone it now stands in. Every edit is a draft by the row's key, whatever
2335
+ the window: a row moved off the window it was read in draws where its draft
2336
+ places it while the narrowing holds its stored row, and Save writes it
2337
+ through the kind's patch door — the index moving it, so a window there reads
2338
+ it back (`schematicRecordIndexes`, `schematicRecordIndexesMobile`). A selected
2339
+ row stays selected as the window moves off it — Details reads it by its key,
2340
+ Del deletes it, and `onSelect` hears no camera move — and is let go of only as
2341
+ a read shows it gone (its record holds none of it, it has no position, or the
2342
+ narrowing leaves it out), as a draft deletes or unplaces it, or as a layer
2343
+ hides or locks it. The drawing's counts take such a kind from its source,
2344
+ never its window, and Issues checks the rows read around the view and every
2345
+ unsaved change (below).
2346
+
2347
+ The canvas draws each kind's rows: an item at its centre, as a card, a
2348
+ labelled pin or a dot by the zoom, its footprint about its centre; a zone in
2349
+ its box, outlined or hatched, its shape about the box's centre; a link routed
2350
+ between its ends, two of one pair fanning into lanes; a net as a bus. An item
2351
+ draws as its card only where the card draws whole — one held to the item's
2352
+ `width` once that width holds its words — and clear of its neighbours, else as
2353
+ a pin, its dot on the item and its words after it, clear of every other
2354
+ item's mark, else as a dot (ruled 23 Oct 2026): what an item draws as follows
2355
+ where the items stand, never a pan. Fit frames the drawing inside a margin,
2356
+ centred, and the zoom reaches in until its smallest item held to its own
2357
+ width draws as its card. A kind drawn as its density shades it in the theme's
2358
+ five heat steps. Its links and
2359
+ nets draw in the Plan's and the Allocation's links look (#1403): cased in the
2360
+ paper, in the muted ink or their style's tone, each ending on the edges of the
2361
+ items it joins where they draw at the zoom — a card's side, a labelled pin's
2362
+ edge, a dot's rim — a link's head where it arrives at its `to` item and a
2363
+ net's on each of its destination legs, a caption — its `label` and its
2364
+ `metric`, `uplink · 100G` — on a knockout at its middle from the label zoom;
2365
+ the one under the pointer lit, and a selected one, in the strong ink, their
2366
+ ends ringed. An item kind
2367
+ whose `x` and `y` are Options keeps its rows with no position as its backlog,
2368
+ drawn nowhere. A record another session commits is drawn again. `onSelect`
2369
+ hears the whole selection after each change — items, zones, links and nets
2370
+ alike, each a `Schematic.Types.Ref`, `{ kind, key }`, and `[]` once it is
2371
+ cleared — one call a change, however many entities it selects, and none for a
2372
+ change that leaves the selection as it was. Its frame came with #1387: one
2373
+ toolbar — the rail of its `slice`, the tools, the zoom and Fit, Find, the
2374
+ steps and, where it edits, the history item — over the canvas, and the
2375
+ footer, which says only what is live (below); its library pane with #1389, its
2376
+ inspector with #1391, its
2377
+ narrowing with #1392 and Find over every item kind's record with #1404
2378
+ (below).
2379
+
2380
+ Its narrowing (#1392) is the one rail of its `slice`, each source narrowing
2381
+ its kind wherever the kind appears: on the canvas, in the library's Backlog,
2382
+ its Index and the templates the source names, in the inspector's Choosers and
2383
+ what an item is joined to, and in the drawing's counts; a link or a net draws
2384
+ only while its ends do. By default a row the narrowing leaves out is hidden:
2385
+ its kind reads only what its narrowing holds. With `narrowed="dim"`, or
2386
+ `{ show: "dim", … }`, the kind reads every row through its source, never the
2387
+ narrowing, so a choice reads no row again, and a row the narrowing leaves out
2388
+ draws as context — faded to `opacity` (0.35), drained of colour while
2389
+ `desaturate` (on by default), a bare marker with `dot` — as do a link to one
2390
+ and a net whose members on a side are all context. Context takes no tap, no
2391
+ marquee, no step and no drop, and leaves every list and count but Find's.
2392
+ Whatever `show` is, `emphasis` rings each match — `halo`, or `pulse`, which
2393
+ breathes — `frame` boxes the matches, and `fit` flies the camera to them when
2394
+ the narrowing changes, once what it flies to is read, never as a zoom or a
2395
+ Move changes what matches — to a kind read by area's matches by the box its
2396
+ narrowing's rows stand in, as its area index's counts answer it. Which rows
2397
+ match is each source's shown keys, never a predicate over the rows, and a
2398
+ choice builds the Schematic no more.
2399
+
2400
+ Find (#1404) seeks every item kind's record by key, never what the canvas
2401
+ draws, as the Sheet's Search Records seeks its record: a kind read through
2402
+ its source is sought through e3 in its record's own order — a find of its keys
2403
+ and a page of the rows its list shows, never the record read whole — and a
2404
+ kind read whole in its rows. Its box takes a key's start, a quoted key or a
2405
+ range, keys case-sensitive, and asks again as what its lines say moves — a
2406
+ record, a narrowing, the layers — never as the canvas reads a window. A pick
2407
+ shows the item's key in the box and its place among the matches (`3 of 7`),
2408
+ and Next and Previous step on from it, each showing its match; asked again,
2409
+ the box keeps a match wherever the matches still hold it. Each line reads
2410
+ the item's key, its label where it is not its key, its kind's name, what
2411
+ keeps it off the canvas — `on a hidden layer`, or `no position` — and, where
2412
+ the rail's filters leave it out, the choices that do, as every builder's
2413
+ Search Records names them: `· hidden by Owner: Northwind Media — picking it
2414
+ clears that filter`, asked of e3 through the kind's indexes, `· hidden by the
2415
+ filters` until it has said — and, under `narrowed="dim"`, which draws the item
2416
+ as context, `· dimmed by Owner: Northwind Media — picking it clears that
2417
+ filter` and `· dimmed by the filters`. A pick of such an
2418
+ item clears just those choices — every choice of its kind's source while e3
2419
+ has not said — then goes to it as any pick does, and selects it once the
2420
+ narrowing they leave draws it as itself. A pick flies to an item drawn as
2421
+ itself and selects it; to one on a hidden layer it flies to where it stands,
2422
+ selects nothing, and the footer says why — `A04 is on a hidden layer`; `A06
2423
+ has no position: it is in the Backlog`. In a toolbar's row the box is 28px, as
2424
+ every builder's key search is there.
2425
+
2426
+ The footer says only what is live, and nothing while nothing is (ruled 23 Oct
2427
+ 2026): a kind drawn as its density in place of items — a kind read by area
2428
+ (#1393) past the rows a window draws — how many rows it shades in the view and
2429
+ that zooming in draws them (`Density: 20,000 racks — zoom in to draw them`,
2430
+ `about` that many where the view cuts a cell, `the filters not applied` under a
2431
+ narrowing its area index doesn't lead); why the last gesture was refused,
2432
+ until the viewer's next action — a pan, a zoom, Fit or a fly, a Find pick, or
2433
+ a press on the canvas — a resize alone keeping it; each Save's notice of what
2434
+ left a source's narrowing; and where Find's last pick landed off the canvas.
2435
+ The drawing's counts and each record's last save are the inspector's Details',
2436
+ and whether changes wait on Save the history's.
2437
+
2438
+ The library (#1389) is the frame's start pane, 272px open, holding the tabs
2439
+ `library` lists, in its order, each with its count; its open tab and whether
2440
+ it is collapsed are kept per viewer under the Schematic's `id`, collapsed it
2441
+ is a rail counting the backlog (else the first tab's cards), and below 560px
2442
+ of frame it opens from its rail over the canvas:
2443
+
2444
+ - **Templates** — every kind's templates, item, link and net kinds alike, each
2445
+ card its template's name over its kind's, grouped by its kind and then its
2446
+ template's `group`. Each kind's list follows the source its templates record
2447
+ names: the tab counts what it shows (`3 of 5`) and, when the rail leaves a
2448
+ list none, says so above the rest, with Clear filters.
2449
+ - **Backlog** — every item kind's rows with no position, the drafts in place,
2450
+ each card its label, its kind's name and its second line, grouped by its
2451
+ kind. A kind read through its source lists the rows its narrowing holds, and
2452
+ a narrowing that leaves none says so, with Clear filters.
2453
+ - **Index** — the zones nested by containment, each counting the items it
2454
+ holds, its nested zones' among them; an open zone lists its items, then its
2455
+ nested zones, and the items in no zone come last; a hatched zone is an
2456
+ annotation, holding none. A zone's row flies to the zone, selects it and
2457
+ opens it; an item's flies to the item and selects it; the zone the viewport
2458
+ is in is marked. Its search keeps the items whose label, key or kind's name
2459
+ holds it, under their zones. The tree is one tab stop — ↑ ↓ Home End move,
2460
+ → opens a zone or goes in, ← closes it or goes up, Enter does a row's click
2461
+ — and only the rows in view are mounted.
2462
+ - **Layers** — each layer in its order: its swatch in its colour token, else
2463
+ its tone, its name and how many entities it holds, with Isolate, Lock and
2464
+ Show or Hide, and Show all while a layer is hidden (the layers its author
2465
+ hides at first among them; the locks stay). The viewer's choices are kept
2466
+ under the Schematic's `id`, over the author's defaults: a hidden layer's
2467
+ entities never draw, and a locked one's never select — a tap, the marquee
2468
+ and the steps pass them by, and Find and the Index fly to them and select
2469
+ nothing — and locking a layer lets go of what is selected on it.
2470
+ - **An author's tab** — its cards, each its label and its meta, grouped by its
2471
+ `group`, following the source of the rail it names (`Racks 2 of 7`).
2472
+
2473
+ A card tab's search finds within that tab alone, never writing the rail; a
2474
+ click picks a card and a second lets it go.
2475
+
2476
+ The cards drop on the canvas (#1390) through the shared drag engine, as the
2477
+ Flowchart's do, each drop one step of the history and the ghost's caption
2478
+ saying where the card lands, or why it can't:
2479
+
2480
+ - **An item template** lands at the drop point: a new item, its key minted
2481
+ unique, its `x` and `y` the point's and every other field the template's
2482
+ `values`. The point is written at the screen's resolution, so the caption
2483
+ says what is written, after the zone holding it (`Cage A · 12.00, 1.00 m`).
2484
+ The item is selected.
2485
+ - **A backlog row** lands at the drop point, its `x` and `y` written, and is
2486
+ selected.
2487
+ - **A link or a net template** lands on a link or a net of its kind: its
2488
+ `values` over the row, never its ends, its sides or its key (`onto A03 →
2489
+ ODF-1`).
2490
+ - **An author's card** — a tab whose `drop` is `(row) => Schematic.patch(R, {
2491
+ … })` — lands on an entity of the kind whose row type is `R` and sets those
2492
+ fields (`onto A03`). A tab without `drop` doesn't drag.
2493
+ - **⏎ on a card** drops it on the selection — an author's card on every
2494
+ selected entity of its kind, one step — or a template or a backlog row at
2495
+ the view's centre; on a touch screen, a tap on the selected card does the
2496
+ same and leaves it selected. Refused, the footer says why.
2497
+
2498
+ A drop is refused — the caption red, the cursor not allowed — outside the
2499
+ drawing (`Outside the drawing`), with no entity of the card's kind under it
2500
+ (`Drop onto a rack`), or on a kind bound read only (`Racks are read only`); a
2501
+ locked layer's entities and a hatched zone take no drop, and an item's card
2502
+ covers the zones and links beneath it. The canvas marks where a card lands:
2503
+ the zone holding the point tinted, a link's or a net's line washed, a ring
2504
+ round the marker or the point, and a card in the brand. A drop that changes
2505
+ nothing records nothing. While a link or net template is picked in the
2506
+ library, Connect draws that kind's links with its values.
2507
+
2508
+ Every gesture is one step of one history over a session per record it writes
2509
+ (#1388) — each kind bound with its patch door, and each such kind's details —
2510
+ as the Roster's and the Allocation's are:
2511
+
2512
+ - **Move** — the tool, over an editable item kind — drags the item under the
2513
+ pointer, or the selection with it when the item is selected, by the mouse
2514
+ or a touch, every centre kept within the extent; Esc mid-drag puts it back.
2515
+ - **Connect** — the tool, over an editable link kind, its menu picking the
2516
+ kind (the first, until the viewer picks) — drags from an item onto another:
2517
+ a link of that kind between them. Shift held on the next drag grows them
2518
+ into a net of the first editable net kind whose sides take their items —
2519
+ the first drag's two items one each side, an item joined from a member
2520
+ downstream, one joined into a member upstream, a member never changing side
2521
+ — which absorbs the links the drags drew; with no such kind, each drag adds
2522
+ a link. A Shift-drag from a selected link's end starts the session with
2523
+ that link.
2524
+ - A selected link's **end** drags onto another item, retargeting that end;
2525
+ with Connect, a Shift-drag from a selected net's member onto an item
2526
+ **extends** the net's destinations.
2527
+ - **Del** (or Backspace) deletes the selection: a link or a net; a net's leg,
2528
+ its item taken off that side, the net deleted once a side holds none; and
2529
+ items, with every link and every net leg naming one. Refused, in the
2530
+ footer's words, when a link or a net bound read only names an item it
2531
+ would delete (`A01 isn't deleted: Fibre run u1 names it, and is read only`).
2532
+
2533
+ `canConnect` is asked of each pair a draft would join, as a
2534
+ `Schematic.Types.Candidate` — the slot of the link or net kind the gesture
2535
+ writes, and its two items — and answers `none`, which allows it, or the
2536
+ refusal's words; a pair whose end or side holds no item of that slot is
2537
+ refused the same way (`Fibre run can't end at PDU-B`). A refused draft never
2538
+ snaps: the item rings danger, the draft says why in the drag caption, and
2539
+ letting go records nothing. A gesture writes only the fields its roles map —
2540
+ an item's `x` and `y`, a link's ends, a net's sides — every other field of the
2541
+ row as it was; a new link or net is made under a key minted unique
2542
+ (`crypto.randomUUID()`), its other fields its type's default. The canvas draws
2543
+ the drafts where Save would leave them; a draft of a row the rail's narrowing
2544
+ leaves out waits in its session until the rail lets it back, and a new row
2545
+ draws always. Undo and Redo — the history item, or ⌘Z, ⇧⌘Z and ⌘Y anywhere in
2546
+ the frame but a field being typed into — step through the gestures in the
2547
+ order they were made, whatever their kind; Discard drops every draft; Save
2548
+ sends each record's changes as its own request through its patch door,
2549
+ checked against what its drafts began from: one record's conflict or refusal
2550
+ keeps its drafts under a banner titled with its kind's name, the others'
2551
+ commits standing, and a write with no answer turns Save into Retry, which
2552
+ resends the same request. After a Save the footer says what left each kind's
2553
+ narrowing. A kind bound read only, and every
2554
+ kind under `readOnly`, takes no gesture; with nothing editable there is no
2555
+ history item.
2556
+
2557
+ The inspector (#1391), given `inspector`, is the frame's end pane, 320px open:
2558
+ its tabs Details and Issues, Issues with its count; collapsed, a rail counting
2559
+ the issues and naming what is selected. Whether it is collapsed, and its open
2560
+ tab, are kept per viewer under the Schematic's `id`, and below 560px of frame
2561
+ it opens from its rail over the canvas. Enter, or a double-click on an
2562
+ entity, opens what is selected in Details. Details draws each field through
2563
+ the shared form, by the input its type takes — a field the drafts changed
2564
+ tinted, the head's chip Pending (New for a row its record holds none of):
2565
+
2566
+ - **An item** — its kind's form over the fields no role writes (the kind's
2567
+ `fields`, `Fields` hints over its row), or the kind's own `inspector` in its
2568
+ place; its details record's form, or the details' own; its position, `x`
2569
+ and `y`, with Unplace where the kind keeps a backlog; Delete; and what it is
2570
+ joined to, each link and net a control that selects it.
2571
+ - **A zone** — its form.
2572
+ - **A link** — its ends, each a Chooser over the items of the slots its role
2573
+ names, and its form; Delete.
2574
+ - **A net** — its sides, each tags over its slot's items' keys, a side never
2575
+ emptied (Delete takes the net), and its form; Delete. **A net's leg** — the
2576
+ stub a tap selected — its item, and Remove, which takes it off its side.
2577
+ - **Several** — how many of each kind, and Delete.
2578
+ - **Nothing** — the drawing's counts, and each record's last save with who
2579
+ made it. A kind read by area is counted from its source's indexes, never its
2580
+ window, its drafts laid over the count and a placeholder while it is read;
2581
+ what no read can count is named on a line of its own, with why (`Links not
2582
+ counted: what they join is read as the view moves`).
2583
+
2584
+ Every edit is one step of the history: a field through its record, an own
2585
+ Details' `update(edited)` with the whole row, a position, the ends or the
2586
+ sides through the kind's roles, and Delete as Del. Read only — a kind bound
2587
+ read only, or `readOnly` — every field is printed and none edits, an own
2588
+ Details giving way to the form. Issues lists the drawing's issues — an item
2589
+ outside the drawing, a shape reaching past its box, a colour naming no theme
2590
+ colour, a link or a net naming an item no kind holds — and its sessions': a
2591
+ drafted row the kind's `ready` refuses, which holds Save, and a Save refused
2592
+ or in conflict. Each issue selects what it names and flies to it. Over a kind
2593
+ read by area, Issues checks the rows read around the view and every unsaved
2594
+ change, and one line says the kind's other rows are checked only as the view
2595
+ reaches them (`Racks out of view are checked only as the view reaches them`).
2596
+
2597
+ Below 480px of main (#1394) — a phone, or a narrow pane in a wide window — the
2598
+ canvas pans with one finger, pinches with two and selects with a tap, and
2599
+ nothing drags: the View's tools hold no Move or Connect, no library card
2600
+ drags, the canvas is no drop cell and a selected link draws no handles.
2601
+ Details takes the gestures' place, beside an item's `x` and `y`, a link's
2602
+ ends, a net's sides and Delete:
2603
+
2604
+ - **Connect to…** — on an item, a Chooser of the items a link may end at,
2605
+ beside the link kind while more than one editable kind starts at the item:
2606
+ a choice records the link as a drag of Connect would, a picked template's
2607
+ values with it.
2608
+ - **Place** — a Backlog card picked shows its row in Details, `Not placed`,
2609
+ and Place puts it at the view's centre, selected; a tap on the selected card
2610
+ does the same.
2611
+
2612
+ Every route that connects — Connect to…, a link's ends, a net's sides — is
2613
+ held to `canConnect`, its words said in the footer. The layout follows main's
2614
+ width, not the window's: a box narrowed and widened again keeps its selection
2615
+ and its drafts (`schematicRecordIndexesMobile`; `schematicDataCentre` on a
2616
+ phone).
2617
+
2618
+ ```tsx
2619
+ /** @jsxImportSource @elaraai/e3-ui */
2620
+ import { DictType, East, FloatType, StringType, StructType } from '@elaraai/east';
2621
+ import { Box, Reactive, UIComponentType } from '@elaraai/east-ui';
2622
+ import { Data, Schematic } from '@elaraai/e3-ui';
2623
+ import e3 from '@elaraai/e3';
2624
+
2625
+ // The app's racks: a record keyed by String — each rack's centre, box, name, model and power.
2626
+ export const FloorRack = StructType({ name: StringType, x: FloatType, y: FloatType, w: FloatType, h: FloatType, model: StringType, kw: FloatType, capacity: FloatType });
2627
+ export const floorRacks = e3.record("floor_racks", DictType(StringType, FloorRack), new Map([
2628
+ ["A01", { name: "A01", x: 2.4, y: 2.9, w: 3.2, h: 1.2, model: "42U · 8 kW", kw: 5.2, capacity: 8.0 }],
2629
+ ["A02", { name: "A02", x: 6.0, y: 2.9, w: 3.2, h: 1.2, model: "42U · 8 kW", kw: 7.4, capacity: 8.0 }],
2630
+ ]));
2631
+
2632
+ const floor = East.function([], UIComponentType, (_$) => (
2633
+ <Reactive>{$ => {
2634
+ const racks = $.let(Data.bind(floorRacks)); // read only, and read whole
2635
+ return (
2636
+ <Box height="440px">
2637
+ <Schematic id="floor" extent={{ width: 18, height: 12 }} scaleUnit="m"
2638
+ items={{ racks: Schematic.items(racks, {
2639
+ name: "Rack", icon: "server", x: "x", y: "y", width: "w", height: "h", label: "name",
2640
+ sublabel: (r) => r.model,
2641
+ meter: (r) => ({ value: r.kw, max: r.capacity }),
2642
+ }) }} />
2643
+ </Box>
2644
+ );
2645
+ }}</Reactive>
2646
+ ));
2647
+ ```
2648
+
2649
+ A floor over several records, its racks editable and read through their
2650
+ source of the rail, their loads a details record keyed as they are, edited in
2651
+ the inspector, their templates a record of their own, its cooling units round by their own radius,
2652
+ its fibre trunks a net kind a Shift session grows runs into, its layers a
2653
+ record of systems, its tenants an author's tab whose cards set a rack's owner,
2654
+ what is selected kept by the host and a run between two frames refused in the
2655
+ veto's words (`schematicDataCentre`):
2656
+
2657
+ ```tsx
2658
+ // Inside Reactive: the racks through their patch door, read by key beside their source of the rail.
2659
+ const racks = $.let(Record.bind(dcRacks, [dcRacksPatch]));
2660
+ const rackEntries = $.let(Data.bindPaged(dcRacks)); // one rack by its key
2661
+ const loads = $.let(Record.bind(dcRackLoads, [dcRackLoadsPatch])); // the racks' loads, edited in the inspector
2662
+ const loadEntries = $.let(Data.bindPaged(dcRackLoads)); // by key, beside a kind read through its source
2663
+ const frames = $.let(Data.bind(dcFrames));
2664
+ const cooling = $.let(Record.bind(dcCooling, [dcCoolingPatch]));
2665
+ const areas = $.let(Data.bind(dcAreas)); // read only, and read whole
2666
+ const fibre = $.let(Record.bind(dcFibre, [dcFibrePatch]));
2667
+ const trunks = $.let(Record.bind(dcTrunks, [dcTrunksPatch])); // none yet: a Shift session grows one
2668
+ const systems = $.let(Data.bind(dcSystems)); // the layers: a record of the app's
2669
+ const rackTemplates = $.let(Data.bind(dcRackTemplates));
2670
+ const owners = $.let(Data.bind(dcOwners)); // the tenants: an author's tab whose cards set a rack's owner
2671
+ // coolingDetails: a cooling unit's own Details — East.function([DcCooling, FunctionType([DcCooling], NullType)], UIComponentType, …)
2672
+ // The whole selection after each change, each entity by its kind's slot and key, kept where the app reads it.
2673
+ const selected = $.let(State.bind([ArrayType(Schematic.Types.Ref)], "ops.floor.selected", []));
2674
+ const onSelect = $.const(East.function([ArrayType(Schematic.Types.Ref)], NullType, ($2, refs) => { $2(selected.write(refs)); }));
2675
+ // Two frames are joined by a cross-connect, never a fibre run: the veto's words refuse the pair.
2676
+ const canConnect = $.const(East.function([Schematic.Types.Candidate], OptionType(StringType), ($2, candidate) => {
2677
+ const reason = $2.let(none, OptionType(StringType));
2678
+ $2.if(candidate.from.kind.equal("network").and(() => candidate.to.kind.equal("network")), ($3) => {
2679
+ $3.assign(reason, some("Two frames are joined by a cross-connect"));
2680
+ });
2681
+ return reason;
2682
+ }));
2683
+ // One rail: the racks by name, hall and owner, and their templates by group.
2684
+ const slice = $.let(Slice.bindRecords("ops.floor", {
2685
+ racks: { source: Data.bindPaged(dcRacks, { indexes: [racksByName, racksByHall, racksByOwner] }), search: ["name", "owner"],
2686
+ fields: { name: { label: "Rack" }, hall: { label: "Hall", hints: ["Cage A"] }, owner: { label: "Owner", hints: ["Harbour Labs"] } } },
2687
+ rackTemplates: { source: Data.bindPaged(dcRackTemplates, { indexes: [rackTemplatesByGroup] }), fields: { group: { label: "Group", hints: ["Racks"] } } },
2688
+ }));
2689
+ <Schematic id="floor" inspector extent={{ width: 28, height: 14 }} scaleUnit="m" slice={{ slice }} narrowed="dim"
2690
+ onSelect={onSelect} canConnect={canConnect}
2691
+ items={{
2692
+ racks: Schematic.items(racks, {
2693
+ name: "Rack", icon: "server", x: "x", y: "y", width: "w", height: "h", label: "name", layer: "system", entries: rackEntries,
2694
+ details: Schematic.details(loads, { // what each card draws from the rack's load
2695
+ entries: loadEntries,
2696
+ meter: (l) => ({ value: l.kw, max: l.capacity }),
2697
+ status: { field: "alarm", cases: {
2698
+ ok: { label: "OK", tone: variant("success", null), ring: false },
2699
+ hot: { label: "Hot", tone: variant("danger", null), ring: false },
2700
+ } },
2701
+ }),
2702
+ templates: Schematic.templates(rackTemplates.read(), { // every field of a rack but x and y
2703
+ name: (t) => t.name, group: (t) => some(t.group), values: (t) => t.values, source: "rackTemplates",
2704
+ }),
2705
+ }),
2706
+ network: Schematic.items(frames, { name: "Network frame", icon: "network-wired", x: "x", y: "y", width: "w", height: "h", label: "name", layer: "system" }),
2707
+ cooling: Schematic.items(cooling, {
2708
+ name: "Cooling unit", icon: "fan", x: "x", y: "y", width: "w", height: "h", label: "name", layer: "system",
2709
+ footprint: (c) => some(Schematic.circle(c.radius)), // a circle of the unit's own radius, about its centre
2710
+ inspector: coolingDetails, // its own Details, in place of its form
2711
+ }),
2712
+ }}
2713
+ zones={{ areas: Schematic.zones(areas, {
2714
+ name: "Area", icon: "vector-square", x: "x", y: "y", width: "w", height: "h", label: "name", layer: "system",
2715
+ pattern: (a) => a.kind.match({ // outlined or hatched by what the area is
2716
+ room: (_$) => Schematic.outline(), cold: (_$) => Schematic.hatch({ tone: "brand" }), hot: (_$) => Schematic.hatch({ tone: "warning" }),
2717
+ }),
2718
+ }) }}
2719
+ links={{ fibre: Schematic.links(fibre, {
2720
+ name: "Fibre run", icon: "bolt", layer: "system", via: "path", // an Array of { x, y } Floats field
2721
+ from: { field: "from", of: { rack: "racks", frame: "network" } }, to: { field: "to", of: { rack: "racks", frame: "network" } },
2722
+ label: (f) => f.label,
2723
+ style: (f) => f.cable.match({ fibre: (_$) => Schematic.solid(), logical: (_$) => Schematic.dashed() }),
2724
+ }) }}
2725
+ nets={{ trunks: Schematic.nets(trunks, { // racks to a frame: what a Shift session grows its runs into
2726
+ name: "Fibre trunk", icon: "diagram-project", layer: "system",
2727
+ sources: { field: "racks", of: "racks" }, destinations: { field: "frames", of: "network" }, // Array<String> fields of keys
2728
+ label: (t) => t.label,
2729
+ }) }}
2730
+ layers={Schematic.layers(systems.read(), { // a layer per system, an entity's `layer` naming it by key
2731
+ label: (s) => s.label, color: (s) => some(s.colour), order: (s) => s.order, locked: (s) => s.fixed, opacity: (s) => s.dim,
2732
+ })}
2733
+ library={[Schematic.library.templates(), Schematic.library.backlog(), Schematic.library.index(), Schematic.library.layers(),
2734
+ Schematic.library.tab(owners.read(), { // a card dropped on a rack sets its owner
2735
+ name: "Owners", icon: "building", label: (o) => o.name, meta: (o) => some(o.contact),
2736
+ drop: (o) => Schematic.patch(DcRack, { owner: o.name }),
2737
+ })]} />
2738
+ ```
2739
+
2740
+ ```
2741
+ <Schematic extent={{ width, height }} items={{ <slot>: Schematic.items(record, { … }) }} /> — the 2D world-coordinate drawing of the app's own records: a kind per record, under its slot
2742
+ ├─ Props:
2743
+ │ ├─ extent (required) — the drawing's world bounds, { width, height }, each a positive number of world units; the canvas fits them
2744
+ │ ├─ items (required) — the item kinds, by slot, one at least: Schematic.items(record, { name, icon, x, y, label, width?, height?, footprint?, layer?, sublabel?, metric?, meter?, status?, tone?, color?, weight?, fillOpacity?, details?, templates?, entries?, fields?, inspector?, ready? }) — `x` and `y` Float fields, the item's centre, or both Options of Float: a row with neither has no position, the kind's backlog, drawn nowhere; `width` and `height` Float fields, its box about its centre; `footprint` an accessor `(row, key) => Option<Schematic.Types.Geometry>` built from the row's own fields with Schematic.circle / polygon / polyline / rect, drawn about its centre, refused without the box or naming a field; `label` a String field, or an accessor; `icon` a Font Awesome solid icon, or an accessor; `layer` a String field naming a layer by its record's key; `status: { field, cases }` a variant field, a Status per case; `fields` the inspector form's hints over the fields no role writes (`Fields`); `inspector` the kind's own Details, fn(R, fn(R) => Null) => UIComponentType, in place of its form; `ready` the app's check of a drafted row, fn(R, String) => Editing.Types.Readiness, its refusal listed in Issues and holding Save — each typed over the kind's own row; the rest accessors `(row, key) => …`
2745
+ │ ├─ zones (optional) — the zone kinds, by slot: Schematic.zones(record, { name, icon, x, y, width, height, label, pattern?, geometry?, layer?, tone?, color?, fillOpacity?, weight?, details?, entries?, fields?, inspector?, ready? }) — `x`, `y`, `width` and `height` the Float fields of its box, its top-left corner and its size; `pattern` an accessor, outline (the default) or hatch — a hatched zone is an annotation, holding no items and taking no tap; `geometry` an accessor `(row, key) => Option<Schematic.Types.Geometry>` built from the row's own fields, drawn about its box's centre, refused naming a field. A zone takes no templates and no gesture on the canvas
2746
+ │ ├─ links (optional) — the link kinds, by slot: Schematic.links(record, { name, icon, from: { field, of }, to: { field, of }, via?, label?, metric?, style?, route?, layer?, details?, templates?, entries?, fields?, inspector?, ready? }) — an end is a String field holding a key of the item slot `of` names, or a variant of String cases with an item slot per case (`of: { rack: "racks", frame: "network" }`) — never an Option: a link has both its ends; `via` an `Array` of `{ x, y }` Floats field, its waypoints
2747
+ │ ├─ nets (optional) — the net kinds, by slot: Schematic.nets(record, { name, icon, sources: { field, of }, destinations: { field, of }, via?, label?, metric?, style?, route?, layer?, details?, templates?, … }) — each side a `Set<String>` or `Array<String>` field of keys of the item slot `of` names; drawn as a bus — a header bar over each side of many members, a stub per member, the trunk between them, a dot only where a tap joins a bar; a press on the trunk, a bar or a junction selects the net wherever its bus draws, one on a stub its leg
2748
+ │ ├─ scaleUnit (optional) — the scale bar's unit
2749
+ │ ├─ slice (optional) — slice={{ slice: Slice.bindRecords(key, { <a kind's slot>?, <a templates list's or a tab's source>? }, { presets? }), affordances?, persist? }}: ONE rail, each source named after what it narrows — a kind's slot, that kind, read complete through it, or a window at a time where it lists an area index; a templates list's or a tab's, its cards. The brush is refused: a 2D canvas has no axis
2750
+ │ ├─ narrowed (optional) — how a row the narrowing leaves out draws: "hide" (the default — its kind reads only what its narrowing holds), "dim" (its kind reads every row; what the narrowing leaves out draws as context), or { show, opacity? (0.35), desaturate? (on), dot?, emphasis?: "halo" | "pulse", frame?, fit? } — `emphasis`, `frame` and `fit` take the matches whatever `show` is
2751
+ │ ├─ layers (optional) — Schematic.layers(rows, { label, order?, tone?, color?, visible?, locked?, opacity? }): the app's own rows, a `Dict` keyed by String (a record's `read()`), each row a layer under its key, through accessors `(row, key) => …` as the Roster's lists are — in their `order`, lowest first, then key order; `color` an Option of a theme colour token over `tone`; `visible`, `locked` and `opacity` the author's defaults, which the viewer's choices in the Layers tab override. An entity's `layer` field names one by its key; a locked layer's entities never select, a hidden one's never draw
2752
+ │ ├─ library (optional) — the library pane's tabs, in order, each over every kind as the Calendar's are: Schematic.library.templates() (every kind's templates, each kind's under its name) · backlog() (every item kind's rows with no position, each kind's under its name) · index() (the zones, with zone kinds) · layers() (with layers) · tab(rows, { name, icon?, label, meta?, group?, drop?, source? }) (`drop` a `Schematic.patch(R, …)` over one kind's row type: the fields a card dropped on an entity of that kind sets); each listed once
2753
+ │ ├─ inspector (optional) — `inspector` (true) shows the end pane, 320px: Details of what is selected and Issues (below); left out, or `false`, no pane, as the Plan's. A kind's own Details is its kind's `inspector`, its details' their own `inspector`
2754
+ │ ├─ readOnly / grid / minimap / id (optional) — every kind read only, taking no gesture; the metric grid (on); the minimap (from 25 items); `id` keeps the Schematic's panes, layers and tools apart when one surface holds two, as the Plan's does
2755
+ │ ├─ canConnect (optional) — fn(Schematic.Types.Candidate) => Option<String>: asked of each pair a connect drag would join — `{ kind, from, to }`, the slot of the link or net kind it writes and its two items, each a `Schematic.Types.Ref` — before the draft snaps; `none` allows it, and words refuse it — the draft says them in its caption, and letting go records nothing; a veto that throws allows the pair and logs it
2756
+ │ └─ onSelect (optional) — fn(Array<Schematic.Types.Ref>) => Null: the whole selection after each change — items, zones, links and nets alike, each { kind: its slot, key: its row's key }, `[]` once cleared — one call a change, none for a change that leaves it as it was
2757
+ ├─ Editing (#1388) — every gesture ONE step of one history over a session per record it writes, each kind bound with its patch door and each such kind's details: Move (the tool, over an editable item kind) drags the item under the pointer, or the selection with it, every centre kept within the extent, Esc mid-drag putting it back; Connect (the tool, over an editable link kind, its menu picking the kind) drags from an item onto another, a link of that kind, and Shift held on the next drag grows the drags into a net of the first editable net kind whose sides take their items, absorbing their links (with none, each drag adds a link); a selected link's end drags onto another item; with Connect, a Shift-drag from a selected net's member extends its destinations; Del or Backspace deletes the selection — a link, a net, a net's leg, items with every link and net leg naming one — refused in the footer's words where a link or a net bound read only names an item it would delete. An end or a side holding no item of a slot refuses the pair as `canConnect` does (`Fibre run can't end at PDU-B`). A gesture writes only the fields its roles map; a new link's or net's key is minted unique (`crypto.randomUUID()`), its other fields their type's defaults. The canvas draws the drafts where Save would leave them; a draft of a row the narrowing leaves out waits in its session, and a new row draws always. The history item ends the toolbar — Undo, Redo, Discard and Save, and ⌘Z, ⇧⌘Z and ⌘Y anywhere in the frame but a field being typed into; Save sends each record's changes as its own request through its patch door, one record's conflict or refusal kept under a banner titled with its kind's name while the others' commits stand, a write with no answer turning Save into Retry, the same request. After a Save the footer says what left each kind's narrowing
2758
+ ├─ Drops (#1390) — each card dropped on the canvas ONE step of the history, the ghost's caption saying where it lands or why it can't: an item template adds an item at the point (its key minted, its `x` and `y` the point's at the screen's resolution, every other field the template's `values`), selected; a backlog row is placed at the point, selected; a link or net template gives a link or a net of its kind its `values`, never its ends, sides or key; an author's card sets its `drop`'s `Schematic.patch` on an entity of that patch's kind. ⏎ on a card — on a touch screen a tap on the selected card — drops it on the selection (an author's card on every selected entity of its kind) or a template or backlog row at the view's centre, refused in the footer's words. Refused outside the drawing, with no entity of the card's kind under it, or on a kind bound read only; a locked layer's entities and a hatched zone take none, and an item's card covers the zones and links beneath it. A picked link or net template gives Connect its values
2759
+ ├─ Inspector (#1391) — the end pane, its tabs Details and Issues (Issues with its count), opened on Details by Enter or a double-click on an entity: Details through the shared form, each field by the input its type takes, a field the drafts changed tinted and the head's chip Pending (New for a row its record holds none of) — an item's kind's form over the fields no role writes, or the kind's own `inspector`, its details' form or own Details, its position (`x`, `y`) and Unplace (a kind with a backlog), Delete, and what it is joined to, each selecting it; a zone's form; a link's ends as Choosers over the items of their slots, its form, Delete; a net's sides as tags over its slot's keys (a side never emptied: Delete takes the net), its form, Delete; a net's leg, its item and Remove; several, how many of each kind, and Delete; nothing, the drawing's counts — a kind read by area counted from its source's indexes, never its window, a line naming what no read can count — and each record's last save with who made it — each edit ONE step of the history; read only, every field printed. Issues: an item outside the drawing, a shape past its box, a colour naming no theme colour, a link or net naming an item no kind holds, a drafted row `ready` refuses (holding Save), a Save refused or in conflict — each selecting what it names; over a kind read by area, the rows read around the view and every unsaved change, one line saying its rows out of view are checked only as the view reaches them
2760
+ ├─ Narrowing (#1392) — each source of the rail narrows its kind on the canvas, in the Backlog, the Index and the templates it names, in the inspector's Choosers and what an item is joined to, and in the drawing's counts; a link or a net draws only while its ends do. Hidden by default; dimmed, its kind reads every row and draws what the narrowing leaves out as context — faded, greyed or a bare marker, a link to it and a net all of whose members on a side are it among it — which selects by no path and counts nowhere. A match — a row its source's shown keys hold — wears `emphasis` (a ring on its card or marker, an edge on a zone, a halo under a link's or a net's line), `frame` boxes two or more, and `fit` flies the camera to them when the narrowing changes, once what it flies to is read, never as a zoom or a Move changes what matches — a kind read by area's by the box its narrowing's rows stand in, from its area index's counts. A draft the narrowing leaves out waits in its session, hidden, or draws where its draft has it, dimmed; Save sends it either way
2761
+ ├─ Reading by area (#1393) — a kind whose source lists e3.recordIndex.area(name, record, { x, y, width, height, at: "centre", cell }): a window at a time, the rows whose box meets the view and its margin, read from the index alone; past 5,000 rows in view their density from the index's counts, the footer saying how many it shades (`Density: 20,000 racks — zoom in to draw them`); its details by the runs the window's cells are of the index; a choice of the rail through an area index led by its fields, else the one led by none, the rest asked of the window's rows; its Backlog through the index's rows with no position. Refused as the kind is read, its read failing with Retry: area indexes all led by fields, or one boxing the rows otherwise than the kind's roles place them, the reason naming what to declare. A draft is kept by the row's key whatever the window, drawn where it places its row while the narrowing holds its stored row — the Backlog listing a row it unplaces, the Index a row it moves under the zone it now stands in — and Save writes it through the kind's patch door. A selected row stays selected off the window — Details reads it by its key, Del deletes it, `onSelect` hears no camera move — until a read shows it gone, a draft deletes or unplaces it, or a layer hides or locks it. The drawing's counts take the kind from its source, never its window
2762
+ ├─ Narrow (#1394) — below 480px of main: one finger pans, two pinch, a tap selects, and nothing drags — no Move or Connect among the View's tools, no library card drags, no drop cell, no link handles. Details takes the gestures' place: an item's Connect to… (a Chooser of the items a link may end at, the link kind beside it while several editable kinds start at the item) and a Backlog card's Place (at the view's centre), beside x and y, a link's ends, a net's sides and Delete, every route that connects held to `canConnect`; a resize keeps the selection and the drafts
2763
+ └─ Factories:
2764
+ ├─ Schematic.items / zones / links / nets(record, config) — the kinds · Schematic.details(record, { status?, meter?, metric?, sublabel?, fields?, inspector?, entries? }) — a kind's details · Schematic.templates(rows, { name, group?, icon?, values, source }) — a kind's templates record, `values` every field but what a drop places · Schematic.layers(rows, config) — the layers
2765
+ ├─ Schematic.circle(r) / .polyline(verts, { width? }) / .polygon(verts) / .rect() — geometry about the entity's anchor, each vertex an offset from it: the row's own points, `{ x, y }` (no bulge) or `{ x, y, bulge }`; a radius and a width a Float of the row's
2766
+ ├─ Schematic.outline() / .hatch() — zone patterns · Schematic.solid() / .dashed() — link and net styles
2767
+ └─ Schematic.patch(R, { … }) — a patch over a kind's row type, what an author's card dropped on an entity sets · Schematic.Types.* — the value types the accessors return, and what the host hears (Ref, Candidate)
2768
+ ```
2769
+
2770
+ | Signature | Description | Example |
2771
+ | --- | --- | --- |
2772
+ | `items={{ racks: Schematic.items(Data.bind(racks), { name, icon, x, y, width?, height?, label, … }) }}` **❗** | An item kind over the app's record, read only and read whole; its card's second line and bar from accessors. A role naming a field the row lacks, or one of another type, is refused, naming the role, the field and its type. | `schematicFloor` |
2773
+ | `Schematic.items(Record.bind(r, [patch]), { …, entries: Data.bindPaged(r) })` + a source of `slice` named after its slot **❗** | Editable, read complete through its source. `Data.bind` there, or a `Record.bind` without `entries`, is refused, naming the binding to use. | `schematicDataCentre` |
2774
+ | `x` / `y` Options of Float | The rows with no position are the kind's backlog: drawn nowhere, and listed by `Schematic.library.backlog()`. | `schematicDataCentre` |
2775
+ | `slice={{ slice: Slice.bindRecords(key, { racks: { source: Data.bindPaged(racks, { indexes }) }, … }) }}` · `narrowed="dim"` **❗** | One rail (#1392): each source narrows its kind everywhere it appears — the canvas, the Backlog, the Index, the templates it names, the inspector's Choosers and the drawing's counts — a link or a net only while its ends draw. Hidden by default, the kind reading only its narrowing; `dim` reads every row and draws what the narrowing leaves out as context, faded and greyed, never selected. `emphasis`, `frame` and `fit` take the matches whatever `show` is. | `schematicDataCentre` |
2776
+ | a kind's source listing `e3.recordIndex.area(…)`, beside area indexes led by the rail's fields **❗** | Read by area, a window at a time from the index alone; past 5,000 rows in view their density, the footer saying how many; drafts kept by key wherever the window goes, and Save read back through the index; a selected row kept off the window, read by its key; the drawing's counts its source's. Area indexes all led by fields, or one boxing the rows otherwise than the kind's roles, are refused, naming what to declare. | `schematicRecordIndexes` |
2777
+ | below 480px of main | Nothing drags; Details' Connect to… and the Backlog card's Place take the gestures' place, beside an item's `x` and `y`, a link's ends and a net's sides, each held to `canConnect`. | `schematicRecordIndexesMobile`, `schematicDataCentre` |
2778
+ | an editable kind, and no `library` or `inspector` | The frame is its toolbar — the tools, Move among them, and the history — its canvas and its footer; every gesture still one step Save writes. | `schematicHandover` |
2779
+ | `footprint: (u) => some(Schematic.circle(u.radius))` + `width` / `height`; `Schematic.polygon` / `.circle` / `.polyline` **❗** | An accessor over the row's own fields, returning an `Option<Schematic.Types.Geometry>`: geometry about the item's centre, or a zone's `geometry` about its box's centre, each vertex an offset from it — the row's own `{ x, y }` points, or `{ x, y, bulge }`. A footprint without the box, and a shape role naming a field, are refused, naming the accessor to write. | `schematicShapes`, `schematicDataCentre` |
2780
+ | `zones={{ areas: Schematic.zones(…, { x, y, width, height, label, pattern?, geometry? }) }}`, `pattern: (a) => a.kind.match({ … })`, `Schematic.outline()` / `.hatch()` | Zones in their boxes under the items, outlined or hatched by what the row says it is. | `schematicShapes`, `schematicDataCentre` |
2781
+ | `links={{ fibre: Schematic.links(…, { from: { field, of }, to: { field, of }, via? }) }}`, `Schematic.solid()` / `.dashed()` | Links between items, routed orthogonally, two of one pair fanning into lanes, in the shared links look: each from its `from` item's edge to its `to` item's, its head there, in the links' muted ink or its style's tone; an end of a variant field takes its slot from its case. | `schematicDataCentre` |
2782
+ | `nets={{ feeds: Schematic.nets(…, { sources: { field, of }, destinations: { field, of } }) }}` | A bus joining many items to many. | `schematicDataCentre` |
2783
+ | a kind bound with its patch door — `Record.bind(record, [e3.mutation.patch(record)])` **❗** | Every gesture one step of one history over a session per record (#1388): Move, Connect, Shift growing a net of the first editable net kind that takes its items, an end retargeted, a net extended, Del; Undo, Redo and Discard; Save sending each record's changes through its patch door, one refused leaving the others' commits standing. A gesture writes only the fields its roles map, a new row under a minted key. | `schematicDataCentre` |
2784
+ | `details: Schematic.details(record, { status?, meter?, metric?, sublabel?, fields?, inspector?, entries? })` **❗** | A record keyed as its kind is, its roles drawn on the cards; a role given by the kind too is refused. Bound with its patch door — `entries` beside it where the kind is read through its source — the inspector edits it beside the kind's row. | `schematicDataCentre` |
2785
+ | `templates: Schematic.templates(rows, { name, group?, values, source })` **❗** | A templates record, its `source` one of the slice's; `values` gives every field but what a drop places — an item's `x` and `y`, a link's ends, a net's sides. A list written in the code is refused. | `schematicDataCentre` |
2786
+ | `library={[Schematic.library.templates(), .backlog(), .index(), .layers(), .tab(rows, {…})]}` **❗** | The library pane's tabs, each over every kind as the Calendar's are, each checked against the kinds: Templates and Backlog are refused when no kind has any, naming the change. The frame's start pane draws them, each with its count, each card tab following its source of the rail (#1389). | `schematicDataCentre` |
2787
+ | the Layers tab's Isolate, Lock, Show or Hide and Show all | The viewer's layer choices, kept under the Schematic's `id` over the author's defaults: a hidden layer's entities never draw, a locked one's never select. | `schematicDataCentre` |
2788
+ | a template's or a backlog row's card dropped on the canvas **❗** | One step (#1390): an item template adds an item at the point, its key minted, selected; a backlog row is placed there, selected; a link or net template gives a link or a net of its kind its values, never its ends, sides or key. The caption says where (`Cage A · 12.00, 1.00 m`, `onto A03 → ODF-1`), or why not (`Outside the drawing`, `Drop onto a fibre run`, `Racks are read only`). | `schematicDataCentre` |
2789
+ | `Schematic.library.tab(owners.read(), { name, label, meta?, drop: (o) => Schematic.patch(DcRack, { owner: o.name }) })` **❗** | An author's card dropped on an entity of the patch's kind sets those fields, one step; ⏎ — on a touch screen a tap on the selected card — sets them on every selected entity of that kind. A tab without `drop` doesn't drag. | `schematicDataCentre` |
2790
+ | `layers={Schematic.layers(rows, { label, order?, tone?, color?, visible?, locked?, opacity? })}` **❗** | The layers, the app's own rows in their `order`, then key order, each keyed by its row's key; an accessor of another type, and a list written in the code, are refused, naming them. | `schematicShapes`, `schematicDataCentre` |
2791
+ | `color` / `tone` / `fillOpacity` / `weight` | Colour overrides on an item's footprint, a zone and a layer — a theme colour token or a tone. | `schematicShapes` |
2792
+ | `inspector` · a kind's `fields`, `ready` and own `inspector` **❗** | The inspector pane, opted into as the Plan's is (#1391): Details — an item's form and its details', its position and Unplace, what it is joined to; a zone's form; a link's ends as Choosers; a net's sides as tags, a leg's Remove; several and Delete; with nothing selected the drawing's counts and saves — each edit one step; and Issues, each selecting what it names. `fields` hints a kind's form, `ready` checks a drafted row, and a kind's own `inspector` is its Details in place of its form. `inspector={{ <slot>: … }}` is refused, naming the kind's `inspector`. | `schematicDataCentre` |
2793
+ | `onSelect={fn(Array<Schematic.Types.Ref>) => Null}` | The whole selection after each change, items, zones, links and nets alike, each `{ kind, key }`; `[]` once cleared. | `schematicDataCentre` |
2794
+ | `canConnect={fn(Schematic.Types.Candidate) => Option<String>}` | A connect drag's candidate, `{ kind, from, to }`: `none` lets it snap, and words refuse it — the draft says them in its caption, and letting go records nothing; a veto that throws allows the pair. | `schematicDataCentre` |
2795
+ | `id="floor"` | Keeps the Schematic's panes, layers and tools apart when one surface holds two. | every example |
2796
+
2797
+ Removed with #1401, each still written refused at build, naming its
2798
+ replacement: `name` (`id`); `inspector={{ <slot>: Details }}` (the kind's own
2799
+ `inspector`); `Schematic.library.templates(slot)` and `unplaced(slot)`
2800
+ (`templates()` and `backlog()`, over every kind); `onSelectionChange`,
2801
+ `onZoneSelectionChange` and `onSelectLink` (`onSelect`, the whole selection);
2802
+ `onViewportChange` (the canvas reads its own window); `onItemOpen` (Enter or a
2803
+ double-click opens the selection in the inspector's Details); `selectZoomFocus`
2804
+ (a tap selects in place; Find, the Index tab and the arrow keys fly); a
2805
+ `layers` list written in the code (`Schematic.layers` over the app's rows);
2806
+ and a `footprint` or a `geometry` naming a field that holds
2807
+ `Schematic.Types.Geometry` (an accessor over the row's own fields). The
2808
+ selection, zone selection and viewport event types are gone, and
2809
+ `canConnect` hears a `Schematic.Types.Candidate` where it heard two
2810
+ references.
2811
+
2812
+ Removed with #1386, each still written refused at build, naming its
2813
+ replacement: rows and their mappers — `items` as rows with `item`, and `zone`,
2814
+ `link` and `net` — (kinds over the app's records, by slot); `onMoveItem`,
2815
+ `onCreateLink`, `onEditLink`, `onDeleteLink` and `onEditNet` (the editing
2816
+ session's gestures: bind a kind with its patch door to edit it); `linkMode`;
2817
+ `readOnlyLinks` and `readOnlyItems` (a kind bound read only); the hover cards
2818
+ `itemHover`, `zoneHover` and `linkHover` (the inspector); `affordances`
2819
+ outside `slice`; the slice's effect props `sliceHidden`, `sliceOpacity`,
2820
+ `sliceDesaturate`, `sliceDot`, `sliceEmphasis`, `sliceFrame` and
2821
+ `sliceFrameFit` (`narrowed`); `sliceSelectField`; `selectionMode` (a tap
2822
+ selects, Shift extends it, and the marquee boxes); `navigator` (the library's
2823
+ Index tab); `height` and `maxHeight` (the Schematic fills the box it is given);
2824
+ and `onSelectZone` (`onSelect`, over the whole selection since #1401). A prop
2825
+ the Schematic doesn't take is refused, naming those it does.
2826
+
2112
2827
  ## Rendering surfaces in an app — `<E3Provider>`
2113
2828
 
2114
2829
  A deployed `ui()` task renders in a React app through
@@ -2232,8 +2947,8 @@ Tested examples live in `test/*.examples.tsx`:
2232
2947
  folds, its weeks source holding the window; `planRowDrop` edits nested
2233
2948
  record entries through one session; `planVariants`, `planNumberAxis` (its
2234
2949
  orders source on the integer arm), `planOrdinalAxis` and `slicePlanChrome`
2235
- (the `rows` source of its rail) retain their distinct axis, configuration
2236
- and Slice examples.
2950
+ (the `rows` source of its rail, the canvas holding its own window) retain
2951
+ their distinct axis, configuration and Slice examples.
2237
2952
  - `plan/plan-events.examples.tsx` — `planEvents` is the smallest builder,
2238
2953
  with a bound backlog, a customer-card tab and an Unassigned row.
2239
2954
  `planPrintWorks` covers grouped presses and crews, nested bindery resources,
@@ -2245,18 +2960,26 @@ Tested examples live in `test/*.examples.tsx`:
2245
2960
  `planEventLinks` keeps the individual link-routing cases.
2246
2961
  - `plan/plan-windows.examples.tsx` — `<Plan>` over records too large to read
2247
2962
  whole (`planWindows`): 2,000 presses a task generates, paged as the canvas
2248
- scrolls, and the jobs narrowed through the rail's `job` source over their
2249
- interval index — the window and the backlog — and read by key through their
2250
- own entries, edited and saved without the record read whole.
2963
+ scrolls, and the jobs on them narrowed through the rail's `job` source —
2964
+ read a cell at a time through their series index, shaded from their summary
2965
+ zoomed out, their backlog through their interval index — and read by key
2966
+ through their own entries, edited and saved without the record read whole;
2967
+ and its presses a record the rail narrows by hall through an index of it,
2968
+ the canvas paging the narrowing's presses and reading the cells of those in
2969
+ view alone (`planSeriesByHall`).
2251
2970
  - `plan/plan-records.examples.tsx` — the Sheet's 50,000 work orders on a Plan
2252
- (`planRecordIndexes`, `planRecordIndexesMobile`): the `rows` source of its
2253
- one rail gives the canvas its rows, paged from it, its Due range the window,
2254
- each move saved through `Record.onApply` by the order's key.
2971
+ (`planRecordIndexes`, `planRecordIndexesMobile`): the work orders a paged
2972
+ resource kind its rail's `orders` source narrows through their indexes —
2973
+ their Due a field of the rail, so a pan keeps the rows where they are — and
2974
+ their 50,000 operations a record of their own placed on them, the source
2975
+ holding the window, read a cell at a time through its series index and
2976
+ shaded from its summary zoomed out; each move saved through the operations'
2977
+ patch door by the operation's key.
2255
2978
  - `sheet/sheet.examples.tsx` — `<Sheet>`, each in its frame, its rows bound
2256
2979
  from e3: the smallest sheet over a record; the configurator over the host's
2257
2980
  rows, committed through `onApply`; two thousand jobs of a record, read only,
2258
- paged through the indexes its rail narrows them by, with saved views; a
2259
- library of the author's own cards; the workshop's orders, the flagship
2981
+ the narrowing its rail makes through the record's indexes drawn over them as
2982
+ the lens, with saved views; a library of the author's own cards; the workshop's orders, the flagship
2260
2983
  (groups, the driver and registers, the link grammar, the copilot's fills and
2261
2984
  proposers, readiness, one rail over the orders and two templates records,
2262
2985
  the library, the inspector and views); one week's rows with every column
@@ -2266,6 +2989,11 @@ Tested examples live in `test/*.examples.tsx`:
2266
2989
  every pane combination: none, a library, an inspector, and both. A sheet
2267
2990
  paged from a dataset is `data.examples.tsx`'s, and one over a record's own
2268
2991
  entries through `Record.onApply` `record.examples.tsx`'s `recordSheetApply`.
2992
+ - `sheet/sheet-records.examples.tsx` — the lens over 50,000 work orders
2993
+ (`sheetRecordIndexes`, `sheetRecordIndexesMobile`): the `rows` source of the
2994
+ sheet's rail narrows them through the record's indexes, and the sheet draws
2995
+ only the orders the narrowing keeps, each at its row number, read a segment
2996
+ at a time near the view, each Save through `Record.onApply` by the order's key.
2269
2997
  - `sheet/sheet-link.examples.ts` — the link grammar: `Sheet.link.parse` and
2270
2998
  `Sheet.link.print`.
2271
2999
  - `sheet/sheet-transactions.examples.ts` — `Sheet.apply` over rows, and over
@@ -2290,6 +3018,36 @@ Tested examples live in `test/*.examples.tsx`:
2290
3018
  commit, a `canConnect` veto — with a state's and a transition's own Details
2291
3019
  (`flowchartDetail`). Between them, every pane combination: none, a library,
2292
3020
  an inspector, and both.
3021
+ - `schematic/schematic.examples.tsx` — `<Schematic>` over the app's records:
3022
+ one hall's racks, read only and read whole, each card's second line and
3023
+ power meter from its row (`schematicFloor`); the same hall handed over to
3024
+ its install crew, its racks moved and deleted, with no pane — the toolbar,
3025
+ the canvas and the footer (`schematicHandover`); footprints and zone shapes
3026
+ built by accessors from the rows' own fields and drawn about their anchors
3027
+ — a unit's outline corners and a tower's radius about each unit's centre,
3028
+ a hall's corners and a duct bank's arcing band about each area's box centre
3029
+ — with theme colour tokens, tones and layers from a systems record
3030
+ (`schematicShapes`); and a data centre floor over several records — racks
3031
+ editable and read through their source of the rail, their loads as details
3032
+ on each card, edited in the inspector, network frames, round cooling units with their own Details,
3033
+ power distribution units, halls, cages and aisles outlined or hatched by
3034
+ what they are, fibre runs between racks and frames, solid or dashed by
3035
+ their cable, a run between two frames refused in the veto's words, power
3036
+ feeds and fibre trunks as nets — no trunk until a Shift session grows one —
3037
+ every gesture a step of one history and Save per record, rack and fibre
3038
+ templates records, the racks with no position, the whole selection kept by
3039
+ the host, the inspector, and the library's tabs over every kind
3040
+ (`schematicDataCentre`).
3041
+ - `schematic/schematic-records.examples.tsx` — a floor of 20,000 racks in ten
3042
+ halls read a window at a time (`schematicRecordIndexes`): the racks bound
3043
+ with their patch door and read through their source of the rail by area, an
3044
+ area index at a 1 cm cell beside one led by the hall and an index of their
3045
+ models; their density past 5,000 racks in view; their loads read by the runs
3046
+ of the window's cells; a rack moved, a draft kept wherever the window goes
3047
+ and saved through the door. The same floor in a phone-width frame with its
3048
+ inspector, a rack found by its key and moved by its `x` and `y`
3049
+ (`schematicRecordIndexesMobile`). Its records are seeded by the pure
3050
+ generator that also runs as an e3 task.
2293
3051
  - `query/query.examples.tsx` — queries as a solution writes them: the shared
2294
3052
  fixture's datasets; the saved queries record, its value seven queries from
2295
3053
  `Query.value`; the builder open on three of them and over an empty record; an
@@ -2333,7 +3091,7 @@ index, with `range: "start"`, and the kind gives `entries`, the record's own
2333
3091
  entries, beside it:
2334
3092
 
2335
3093
  ```tsx
2336
- // Package side: jobsByTime = e3.recordIndex("jobs_by_time", jobs, { interval: { from: "start", to: "end" } }),
3094
+ // Package side: jobsByTime = e3.recordIndex.interval("jobs_by_time", jobs, { from: "start", to: "end" }),
2337
3095
  // jobsByStatusTime the same `on: ["status"]`, machinesByArea `on: ["area"]`, jobTemplatesByGroup `on: ["group"]`.
2338
3096
  // Inside Reactive: jobs has optional start/end and a machine reference.
2339
3097
  const machines = $.let(Data.bind(d.machines));
@@ -2369,21 +3127,54 @@ return <Calendar slice={{ slice }}
2369
3127
 
2370
3128
  The runnable examples `calendarQuickstart`, `calendarOperations`,
2371
3129
  `calendarMinimal`, `calendarMobile`, `calendarWindowed`, `calendarReadOnly`,
2372
- `calendarCustomInspector`, `calendarRecordIndexes` and
2373
- `calendarRecordIndexesMobile` include their record declarations and seeds.
2374
- Search those names in the example index. Their bindings become the UI task's
3130
+ `calendarCustomInspector`, `calendarRecordIndexes`,
3131
+ `calendarRecordIndexesMobile`, `calendarWindows`, `calendarWindowsByHall` and
3132
+ `calendarWindowsMobile` include their record declarations and seeds. Search
3133
+ those names in the example index. Their bindings become the UI task's
2375
3134
  read/write manifest.
2376
3135
 
3136
+ A record too large to read whole is read the Plan's way (#1424): a resource
3137
+ kind may be paged — `Calendar.resources(Data.bindPaged(record), …)` — and an
3138
+ event kind placed on it is read a cell at a time through a series index and
3139
+ shaded from a summary index, its source listing both beside its interval
3140
+ index; every other kind is counted before one of its events is read, and none
3141
+ past 10,000 over the window is read or drawn. Its Backlog is paged through
3142
+ each kind's source, a page at a time; nothing reads a record whole:
3143
+
3144
+ ```tsx
3145
+ // Package side, beside the jobs' interval index (the e3 skill):
3146
+ // export const jobsByPressWeek = e3.recordIndex.series("jobs_by_press_week", jobs, { key: "press", from: "start", to: "end", tile: "week" });
3147
+ // export const jobsByPressMonth = e3.recordIndex.summary("jobs_by_press_month", jobs, { key: "press", from: "start", to: "end", tile: "month" });
3148
+ // Inside Reactive: 2,000 presses a task generates, paged 200 to a window; the jobs a cell at a time.
3149
+ const presses = $.let(Data.bindPaged(pressesTask));
3150
+ const jobs = $.let(Record.bind(jobsRecord, [jobsPatch]));
3151
+ const entries = $.let(Data.bindPaged(jobsRecord));
3152
+ const slice = $.let(Slice.bindRecords("ops.calendar", {
3153
+ job: { source: Data.bindPaged(jobsRecord, { indexes: [jobsByTime, jobsByPressWeek, jobsByPressMonth] }), range: "start" },
3154
+ }));
3155
+ return <Calendar slice={{ slice }} inspector library={[Calendar.library.backlog()]}
3156
+ view={{ layout: "timeline", period: "week", date: new Date("2026-10-05T00:00:00Z") }}
3157
+ resources={{ presses: Calendar.resources(presses, { name: "Presses", icon: "print", label: p => p.name, meta: p => some(p.hall) }) }}
3158
+ events={{ job: Calendar.events(jobs, {
3159
+ name: "Print job", icon: "file-lines", title: "title", start: "start", end: "end",
3160
+ resource: { field: "press", of: "presses" }, entries,
3161
+ backlog: { duration: j => variant("hours", j.sheets.divide(8000.0)), due: j => j.due },
3162
+ }) }} />;
3163
+ ```
3164
+
2377
3165
  | Signature | Description | Example |
2378
3166
  | --- | --- | --- |
2379
- | `<Calendar events resources? slice? library? inspector? view? hours? week? density? now? readOnly? canDrop? onSelect? id? />` **❗** | One shared frame: a toolbar with the time navigator, the rail over its `Slice.bindRecords` and its summary, and the history; the schedule; the shared footer rail. Calendar day/week/month, Resources day, Timeline day/week/month. Panes are optional. Empty event maps, invalid working hours and duplicate library tab names are refused. | `calendarOperations`, `calendarMinimal` |
3167
+ | `<Calendar events resources? slice? library? inspector? view? hours? week? density? now? readOnly? canDrop? optimise? onSelect? id? />` **❗** | One shared frame: a toolbar with the time navigator, the rail over its `Slice.bindRecords` and its summary, and the history; the schedule; the shared footer rail. Calendar day/week/month, Resources day, Timeline day/week/month. Panes are optional. Empty event maps, invalid working hours and duplicate library tab names are refused. | `calendarOperations`, `calendarMinimal` |
2380
3168
  | `Calendar.events(record, config)` **❗** | `Schedule.events`: span fields, resource references, status cases, shared `field` editors, `ready`, custom `inspector`, overlap policy and record patch writes. Narrowed through its source of `slice`, named after its slot, it gives `entries: Data.bindPaged(record)` beside it for its original-key reads. A kind's own `slice` or `filter`, and `window` / `backlogWindow` beside a source, are refused, naming the change. Whole-row edits use one EditSession per kind and one shared EditHistory. | `calendarOperations` |
2381
- | `slice={{ slice: Slice.bindRecords(key, { [kind]: { source, fields, range: "start" }, [resources]: …, [templates]: … }), affordances?, persist? }}` **❗** | One rail, a source per record (#1343). An event kind's reads its events in the window and its backlog through an interval index, as one, so a draft moves an event between them by its times alone. A resource kind's narrows its columns, the timeline's rows and the resource Choosers, which keep a placement's own resource and the resources an event's fields name. A templates list's and an app tab's narrow their cards. One date window: the first event source with a range leads, its range the time navigator's Range panel, never a chip of the rail, and navigation writes the window into every event source. Overlaps, checks and commands read every event and every resource. `Slice.bind`, a single `Slice.bindRecord` and a source nothing names are refused. | `calendarOperations`, `calendarRecordIndexes` |
2382
- | `Calendar.resources(rows, config)` | `Schedule.resources` over a dictionary, usually a record bound with `Data.bind`; the Calendar reads resource kinds whole, and refuses a paged read. | `calendarOperations` |
3169
+ | `slice={{ slice: Slice.bindRecords(key, { [kind]: { source, fields, range: "start" }, [resources]: …, [templates]: … }), affordances?, persist? }}` **❗** | One rail, a source per record (#1343). An event kind's reads its events in the window through an interval index — the window's rows alone — and the Backlog tab pages its backlog through it, its start Unset, never with the window (#1424); a draft draws where it places its event, so a backlog event scheduled shows where it lands, and the draft of an event the kind's narrowing does not hold draws nowhere. A resource kind's narrows its columns, the timeline's rows and the resource Choosers, which keep a placement's own resource and the resources an event's fields name; a paged kind's pages the narrowing's resources in its index's order. A templates list's and an app tab's narrow their cards. One date window: the first event source with a range leads, its range the time navigator's Range panel, never a chip of the rail, and navigation writes the window into every event source. Overlaps, checks and commands read every event and every resource. `Slice.bind`, a single `Slice.bindRecord` and a source nothing names are refused. | `calendarOperations`, `calendarRecordIndexes` |
3170
+ | `Calendar.resources(rows, config)` | `Schedule.resources` over a dictionary, usually a record bound with `Data.bind`, read whole. | `calendarOperations` |
3171
+ | `Calendar.resources(Data.bindPaged(record), { name, icon, label, meta? })` + a kind's source listing `e3.recordIndex.series` and `e3.recordIndex.summary` beside its interval index **❗** | A resource kind paged a window at a time (#1424): 200 resources to a window, the timeline's rows and the Resources view's columns the pages around the view — never every resource read — and each Chooser seeking a resource by its key through the paged read (`Press 1460 · P-1460 · Hall 4`). Where a view lays its resources out, an event kind placed on it is read a cell at a time — the events of the blocks of fifty resources around those in view, over the tiles the window touches, two requests a change — and past 10,000 events in the cells wanted shades each resource from the summary, the share of each period booked; the time grids and the agenda count it over the window first. A source named after the paged kind's slot (`Data.bindPaged(record, { indexes })` over its own record) pages the narrowing's resources in its index's order, the last view standing, retained, until its windows land. A kind on it whose source lists its interval index alone, or a summary and no series, one read whole or through its day index, and one placed beside another resource kind, are refused, naming both declarations over the kind's own fields. | `calendarWindows`, `calendarWindowsByHall`, `calendarWindowsMobile` |
3172
+ | every other event kind, past 10,000 events over the window | Counted before one of its events is read — through its source's interval index, through its day index (the days its events run on, an upper bound) or in memory — and none of them read or drawn but its drafts: a resource's row or column shades from its source's summary at the view's period, else is hatched, the banner says how many events there are and where they show, and every figure that would count them says they are not counted, never 0. | `calendarRecordIndexes`, `calendarWindowed` |
2383
3173
  | `Calendar.templates(rows, { name, group?, at?, duration, values, source })` **❗** | A templates record, bound with `Data.bind`, its `source` the rail's source over it, whose shown keys filter the Templates tab; typed `values` supplies exactly the event fields other than its scheduling roles. A list written in the code, one naming no source of the slice, and templates on a Calendar with no slice are refused, naming the change. Template changes do not rewrite existing event rows. | `calendarOperations` |
2384
- | `Calendar.library.templates()` / `.backlog()` / `.tab(rows, { …, source? })` **❗** | Shared Library cards and search, each tab following its sources: it counts what it shows (`5 of 6`) and, when the rail leaves it none, says so with Clear filters for them. The Backlog counts `N of M`, what its kinds' narrowing shows beside the stored events their choices hide; its Clear filters keeps each window. An author's tab names the source it follows (`source`) and may apply `Calendar.patch(RowType, fields)` to a compatible selected event. Invalid or ambiguous patch row types, and a `source` the slice lacks, are refused. | `calendarOperations` |
3174
+ | `Calendar.library.templates()` / `.backlog()` / `.tab(rows, { …, source? })` **❗** | Shared Library cards and search, each tab following its sources: it counts what it shows (`5 of 6`) and, when the rail leaves it none, says so with Clear filters for them. The Backlog counts `N of M`, what its kinds' narrowing shows beside the stored events their choices hide — `…` until its counts are read, never a bare `Backlog` — and its Clear filters keeps each window. A kind narrowed through its source has its backlog paged through it (#1424), a page a request, its count the index's: never every unscheduled event read, no step of the dates reads it again, and a new narrowing keeps its cards and count standing, retained, until its own land. That paged list has no search of its own, as the Schematic's Backlog has none: the rail's choices narrow it. An author's tab names the source it follows (`source`) and may apply `Calendar.patch(RowType, fields)` to a compatible selected event. Invalid or ambiguous patch row types, and a `source` the slice lacks, are refused. | `calendarOperations` |
2385
3175
  | the summary and the footer | The rail's summary names each source a narrowing hides rows of, in its own words (`6 of 10 production events`), and folded, the Filters popover heads each source's fields with its count (`4`, `6 of 10`, #1358); the window's own event count shows only with no slice. After a Save, a notice per event kind says, in its words, what left its narrowing. | `calendarOperations` |
2386
3176
  | `Calendar.days(start, end)` / `.unscheduled(start, due)` | UTC half-open day keys and the unscheduled index key, for a kind with no source of `slice`: supply paged `window`, `backlogWindow` when applicable, and `entries` for selection and draft baselines by key. | `calendarWindowed` |
3177
+ | `optimise={Func.bind(fn: FunctionDef<[Calendar.Types.OptimiseRequest(E, S)], Calendar.Types.OptimiseResult(E)>)}` **❗** | The app's optimiser (#1409): `E` and `S` the event and resource kinds' row types by slot (`Calendar.Types.OptimiseRequest({ job: Job }, { machines: Machine })`). The Elara eye in the toolbar, immediately before the history item, names the window (`Optimise Sep 28 – Oct 4`): one call per run with the window, the run's number, every event kind's rows in the window and the backlog by key as the session holds them — base plus every unapplied draft, every row whatever the rail shows — and every resource kind's rows read whole; the history and every gesture locked while it is out, a change of period stopping it. Its answer — the events complete — is diffed by key and recorded as ONE step: Undo in one, Redo replays the landing, Save commits it with everything else. A backlog event given a time is an add on the canvas, its Backlog count flashing; a moved event a change with a ghost at its old slot; one taken back a remove; each marked until Apply with its provenance on hover. A result equal to the request records nothing and says so; a failed call is a banner until the next run. | `calendarOptimise` |
2387
3178
  | `readOnly` | Same layouts, filters, selection and overlaps, without sessions, mutation actions or editing callbacks. | `calendarReadOnly` |
2388
3179
  | Narrow layout | Below 480px of main-panel width, chronological agenda cards replace the grid. Create, Schedule, Move, Resize, Duplicate, Delete, Return to backlog and author-card actions use shared anchored forms and the same commands as desktop gestures. No dragging. Desktop view, date, filters, selection and drafts survive resizing. | `calendarMobile` |
2389
3180
 
@@ -2444,7 +3235,7 @@ its check, Publish, one rail and its fit (`rosterWarehouse`):
2444
3235
  // Inside Reactive: what the Roster writes, each through its patch door.
2445
3236
  const rota = $.let(Record.bind(rosterDuties, [rosterDutiesPatch]));
2446
3237
  const entries = $.let(Data.bindPaged(rosterDuties)); // one duty by its key
2447
- const byTime = $.let(Data.bindPaged(rosterDuties, { indexes: [rosterDutiesByTime] })); // interval: { from: "start", to: "end" }
3238
+ const byTime = $.let(Data.bindPaged(rosterDuties, { indexes: [rosterDutiesByTime] })); // e3.recordIndex.interval(…, { from: "start", to: "end" })
2448
3239
  const weeks = $.let(Record.bind(rosterWeeks, [rosterWeeksPatch]));
2449
3240
  const cover = $.let(Record.bind(rosterCover, [rosterCoverPatch]));
2450
3241
  // What it reads whole — every person and activity is the calculation scope — and their indexes for the rail.
@@ -2573,25 +3364,28 @@ export const rosterStaffFit = e3.function("roster_staff_fit", East.function([Ros
2573
3364
  | Signature | Description | Example |
2574
3365
  | --- | --- | --- |
2575
3366
  | **Builder and records** | | |
2576
- | `<Roster events resources shifts groups periods? targets? positions? activities? proposals? pay? currency? rules? check? fit? slice? library? inspector? view? week? density? chipSkills? requirements? readOnly? id? />` **❗** | Shifts day/week and People week. Refused at build, each naming the change: a removed prop (below); `events` holding other than one kind; `resources` other than `people` and `agencies`; a duty kind whose resource names no `people`; a resource kind read a page at a time; a `people` kind with no `group`; `positions` beside a duty kind with no `position` role; `pay` without `currency`; a `pay`, a `check` or a `fit` over another row type; and a library tab listed twice. The renderer validates live configuration. | `rosterWarehouse`, `rosterMinimal` |
3367
+ | `<Roster events resources shifts groups periods? targets? positions? activities? proposals? patterns? pay? currency? rules? check? fit? optimise? slice? library? inspector? view? tileTimes? letters? week? density? chipSkills? requirements? readOnly? id? />` **❗** | Shifts by day or week, People by week or month (#1406). Refused at build, each naming the change: a removed prop (below); `events` holding other than one kind; `resources` other than `people` and `agencies`; a duty kind whose resource names no `people`; a resource kind read a page at a time; a `people` kind with no `group`; `positions` beside a duty kind with no `position` role; `pay` without `currency`; a `pay`, a `check` or a `fit` over another row type; a `view.period` its layout does not take (Shifts takes `"day"` or `"week"`, People `"week"` or `"month"`); `Roster.library.patterns()` without `patterns`; and a library tab listed twice. The renderer validates live configuration. | `rosterWarehouse`, `rosterMinimal`, `rosterPeopleMonth` |
2577
3368
  | `events={{ duty: Schedule.events(Record.bind(duties, [patch]), { start, end, resource, shift, group, position?, activity?, hours?, fields?, inspector?, ready?, entries? }) }}` **❗** | Exactly one kind, the duties: a span kind of plain DateTime times, keyed by String. `resource` names a `people` key, or a variant whose cases name `people` and `agencies`: a person, or an agency asked to send someone. `hours` is what a duty counts for coverage, skill hours, contract hours, rest and pay; its length when omitted. The inspector shows a duty's times, position and activity, then the kind's form over the fields no role writes (`fields` hints) or the kind's own `inspector`; `ready` is the app's check on a draft. | `rosterWarehouse`, `rosterCustomInspector` |
2578
3369
  | `resources={{ people: Schedule.resources(rows, { name, icon, label, group, position?, skills?, contract?, agency?, trainer?, trainee?, usual? }), agencies?: Schedule.resources(rows, { name, icon, label }) }}` | Every person and agency, read whole: the calculation scope. A person's key is what a duty's resource holds; `group` is their home group. | `rosterWarehouse` |
2579
3370
  | `periods={Schedule.periods(Record.bind(weeks, [patch]), { every: "week", status, dismissed?, entries? })}` | The app's weeks, each keyed by its first day by the Roster's week start: the status chip, Publish and the picker's Published · Draft · Not started. `dismissed` keeps the proposals a week rejected; without it, a proposal offers Accept only. Without `periods`, no Publish. | `rosterWarehouse`, `rosterPublished` |
2580
3371
  | `targets={Roster.targets(Record.bind(cover, [patch]), { day, group, shift, positions, hours, inspector?, entries? })}` **❗** | The app's cover targets, a row per slot, which its forecast fills: `day` a DateTime (a UTC midnight), `group` and `shift` Strings, `positions` an Integer, `hours` a `Dict<String, Float>` by activity. A slot with no row has no target; a target edit on one inserts a row under a minted key, its other fields their type's default. `inspector` is the app's own form for one target. | `rosterWarehouse`, `rosterCustomInspector` |
2581
- | `Roster.shifts(rows, { label, code, start, hours, order? })` · `Roster.groups(rows, { label, order? })` · `Roster.positions(rows, { label, code, lead, order? })` **❗** | The lists the Roster reads over the app's rows, each a `Dict` keyed by String, in its `order`, then key order. A shift's `start` is a `Schedule.Types.Clock` and its `hours` what a new duty runs and a skill holder's capacity; a position that leads satisfies the lead rule, which needs the duty kind's `position` role. An accessor returning another type is refused, naming what it returns. | `rosterWarehouse`, `rosterMinimal` |
3372
+ | `Roster.shifts(rows, { label, code, start, hours, order?, color? })` · `Roster.groups(rows, { label, order? })` · `Roster.positions(rows, { label, code, lead, order? })` **❗** | The lists the Roster reads over the app's rows, each a `Dict` keyed by String, in its `order`, then key order. A shift's `start` is a `Schedule.Types.Clock` and its `hours` what a new duty runs and a skill holder's capacity; its `color` (#1406) returns an `Option<ColorToken>` — east-ui's `ColorTokenType`, `Style.ColorToken("teal", "500")` — the People week's tiles' and the month's marks' fill, resolved through the theme, the same in both colour modes, the words on it in the ink the shade takes; `none`, neutral. A position that leads satisfies the lead rule, which needs the duty kind's `position` role. An accessor returning another type is refused, naming what it returns (`color`, naming `ColorTokenType`). | `rosterWarehouse`, `rosterMinimal`, `rosterPeople` |
2582
3373
  | `Roster.activities(rows, { label, code?, group?, order? })` | Every activity from a keyed activities record (`Roster.Types.Activity` rows, or the app's own through the accessors): a group's skills are the activities of that group, and an activity of no group is a duty every group may assign. Coverage and checks read every one. | `rosterWarehouse` |
2583
3374
  | `Roster.proposals(rows, { person, day, group, shift, reason })` | The app's suggestions, a person for a slot, each keyed by its row's key: Accept places the duty and keeps the key in the week's `dismissed`, one step; Reject keeps it there alone. A stale or already rostered proposal is hidden. | `rosterWarehouse` |
3375
+ | `patterns={Roster.patterns(rows, { name, icon?, label, days, order? })}` **❗** | The app's week patterns (#1406), a keyed record read through accessors as the other lists are: `label` the card's name and the drop's words; `days` seven `Option<String>` shift keys from the week's first day, `none` a day off; `order` where it shows. `name` titles the tab `Roster.library.patterns()` lists them under — required, as `Schedule.events`' `name` is — and `icon` is its cards' Font Awesome solid icon (`calendar-week` by default). A pattern dropped on a person's week — a row's day in Week, a cell in Month, or chosen through a phone card's `Apply pattern…` — replaces its seven days as one `Apply pattern` step: a day it changes runs the pattern's shift in the person's home group at the shift's own times, position kept, activity kept within the group and cleared across one; a day off removes the duties, struck through until Save; a day it leaves as it is keeps its duty. The caption names the pattern, the person and the first warning (`Early · Mon–Fri → A. Alder · 6 h rest`), `Already matches …` where nothing changes, or the refusal: a published or read-only week, the Agency requests row (`Drop a pattern on a person's week.`), a shift not configured. A pattern with other than seven days or naming a shift the Roster has not configured is listed greyed with the reason and dragged by no one. Without `patterns` the People layout is as it is; the slice may narrow the tab through a `patterns` source. | `rosterPeople`, `rosterPeopleMonth` |
3376
+ | `view={{ layout?, period?, date? }}` · `tileTimes="always" \| "different"` · `letters` | The first view (#1406): Shifts takes `"day"` (default) or `"week"`, People `"week"` (default) or `"month"`; each layout keeps its own period per viewer, and ‹ › and `[` `]` step it. A month is the four to six weeks touching it, a column each, from the configured week start; a week cell holds seven marks in the shifts' colours, lettered where a day is 13px or wider while `letters` is on (`true` by default); a column's header opens its week in Week. `tileTimes` says whether a tile shows the shift's hours (`06–14`) always (default) or only a duty's own times where they differ. Below 480px of main People offers Week alone, and a persisted month opens on its first week. | `rosterPeople`, `rosterPeopleMonth` |
2584
3377
  | `slice={{ slice: Slice.bindRecords(key, { <duty slot>?, targets?, people?, activities?, <a tab's source>? }) }}` **❗** | One rail. The duty kind's source reads the week's duties through an interval index from `start` to `end`, `range: "start"`, the range the Roster's own navigation writes — no chip picks the week — the kind given `entries`; `targets` reads the week's targets the same way, `Roster.targets` given `entries`; `people` narrows the grid's and the People layout's people, the People tab and the person choices; `activities` the Activities tab and the activity choices. Without the duty source the duties are read whole. Coverage, pay and rules read every duty of the week and every person; filters never drop hidden drafts from Save. | `rosterWarehouse`, `rosterWindowed`, `rosterRecordIndexes` |
2585
3378
  | **Pay, checks and fits** | | |
2586
3379
  | `pay={fn(Roster.Types.PayRequest(R)) => Roster.Types.Pay}` + `currency` **❗** | The app's pay in its own codes: asked once per person with that person's duties for the week — `{ who, start, duties, context }` — and once per agency with its requests, each duty's cost by code back; asked again only for those whose duties, or whose duties' rows, changed. The Roster sums the costs by duty, slot, day, week, person and code, printed in `currency`; a call that throws is a warning banner naming the person, whose duties show no cost. Without `pay`, no costs show. | `rosterWarehouse` |
2587
3380
  | `check={fn(Roster.Types.CheckContext(R)) => Array<Roster.Types.Issue>}` | The app's issues after the built-in ones, over `{ start, week, context, coverage, pay }`: each assignment carries its duty's own row (`a.row`), so a check reads the app's own fields. | `rosterWarehouse` |
2588
3381
  | `fit={Func.bind(fn: FunctionDef<[Roster.Types.FitRequest(R)], Roster.Types.FitResult>)}` **❗** | The app's fit, beside `check`. A Find fix asks it who fits its issue's need on its slot, over the drafted week and the complete staff, whatever the rail shows; the People tab shows its fits among what the rail shows, best first, each card with the fit's reason, under a `Find · Leads` chip that clears it. One question is in flight at a time, answers are kept by question and drafts, and a find asks again when the drafts change. While asked, the fix reads `Finding…`; a failure is a warning banner, `Fits couldn't be checked`, with Retry. Omitted, no Find fix is offered, though `Roster.check` still reports the issue. A fit bound over another row type is refused, naming both. | `rosterWarehouse`, `rosterRecordIndexes` |
3382
+ | `optimise={Func.bind(fn: FunctionDef<[Roster.Types.OptimiseRequest(R)], Roster.Types.OptimiseResult(R)>)}` **❗** | The app's optimiser (#1409). The Elara eye in the toolbar — between the issues item and the history item, as tall as the row's other controls, and at a phone's width, where the row's floor needs its room once the rail's icon has dropped its caret, the View's entry beside the issues, never out of the toolbar: `Stop optimising` while a run is out, off and saying why (`Read-only`) while the week's reads are in flight; listed only where the week can be optimised, never in Month — names the week (`Optimise W11`): one call per run with the week (`from`, `to`), the run's number, the week's duties by key as the session holds them — base plus every unapplied draft, every row whatever the rail shows — its targets by slot and `Roster.Types.Context`, the complete staff and configuration; whatever the layout. The history and every gesture are locked while it is out; a change of week stops it. Its answer — the duties complete — is diffed by key and recorded as ONE step: Undo in one, Redo replays the landing, Save commits it with everything else. Off → shift is an add, shift → another a change, shift → Off a remove struck on its tombstone for the highlight, each marked on the People tiles and the Shifts chips alike with its provenance on hover (`Was Mon Early · Elara run #7`); the changed people's hours and meter and the issues item flash. A result equal to the request records nothing and says so. | `rosterOptimise` |
2589
3383
  | **Library and inspector** | | |
2590
- | `Roster.library.people()` / `.activities()` | Shared Library cards, avatars, search and explicit placement, each tab following its source of the rail: it counts what it shows and, emptied, says so with Clear filters. Neither has a filter of its own: leads, trainers, agency and skill are rail fields of the staff record, and a Find fix's result — the app's fit's answer — is shown in the People tab, with a chip that clears it. Named staff and unnamed agency requests stay distinct. | `rosterWarehouse`, `rosterMobile` |
3384
+ | `Roster.library.people()` / `.activities()` / `.patterns()` | Shared Library cards, avatars, search and explicit placement, each tab following its source of the rail: it counts what it shows and, emptied, says so with Clear filters. Neither People nor Activities has a filter of its own: leads, trainers, agency and skill are rail fields of the staff record, and a Find fix's result — the app's fit's answer — is shown in the People tab, with a chip that clears it. Named staff and unnamed agency requests stay distinct. `patterns()` (#1406) lists the app's week patterns under the declaration's `name`, each card its name, `5 shifts · 40 h` and a strip of seven marks in the shifts' colours under a header of the days' initials, dragged onto a person's week; refused without `patterns`. | `rosterWarehouse`, `rosterMobile`, `rosterPeople` |
2591
3385
  | `Roster.library.tab(rows, { name, icon?, label, meta?, group?, drop?, source? })` **❗** | Reified typed card accessors over a bound dictionary, following the rail's `source` it names. `drop(row, key)` returns `Schedule.patch(DutyRowType, { … })`: the duty's own fields a card dropped on it sets, as Plan's tabs do. A card never replaces a duty's person. A `source` the slice lacks is refused. | `rosterWarehouse` |
2592
3386
  | `inspector` | The end pane: a duty's times, position and activity, its kind's form or own `inspector`, and its costs by code; a slot's coverage and its targets, or `Roster.targets`' `inspector`. Every edit is a command of the same session as a drag or a card's action. | `rosterWarehouse`, `rosterCustomInspector` |
2593
3387
  | **Domain functions and values** | | |
2594
- | `Roster.Types.{Week(R), Assignment(R), PayRequest(R), CheckContext(R), FitRequest(R), Pay, Status, Slot, Who, Requirements, Requirement, Person, Activity, Group, Skill, Shift, Position, Agency, Rules, Context, Coverage, CoverageLine, Proposal, Issue, Fix, Need, FitResult, Fit, Refusal, Clock}` | The Roster's reading of the app's rows, carried in requests and stored nowhere. Each `(R)` is a constructor of the app's duty row type: the same `R`, the same East type. An `Assignment(R)` is `{ slot, who, position, activity, start, end, hours, row }`, `row` the duty's own; a `Week(R)` `{ status, assignments, requirements, dismissed }`, its status Schedule's period status (`draft`, `published { at }` or `other`). `Pay` is duty key → pay code → cost. A `Need` (leads, trainers, a skill) is a Find fix's; a `FitResult` `{ need, slot, people: Dict<String, Fit> }` echoes its question. `Fit` and `Refusal` are `Schedule.Types`', the Allocation's too. | `rosterWarehouse`, `rosterCoverage` |
3388
+ | `Roster.Types.{Week(R), Assignment(R), PayRequest(R), CheckContext(R), FitRequest(R), OptimiseRequest(R), OptimiseResult(R), Pay, Status, Slot, Who, Requirements, Requirement, Person, Activity, Group, Skill, Shift, Position, Agency, Rules, Context, Coverage, CoverageLine, Proposal, Issue, Fix, Need, FitResult, Fit, Refusal, Clock}` | The Roster's reading of the app's rows, carried in requests and stored nowhere. Each `(R)` is a constructor of the app's duty row type: the same `R`, the same East type. An `Assignment(R)` is `{ slot, who, position, activity, start, end, hours, row }`, `row` the duty's own; a `Week(R)` `{ status, assignments, requirements, dismissed }`, its status Schedule's period status (`draft`, `published { at }` or `other`). `Pay` is duty key → pay code → cost. A `Need` (leads, trainers, a skill) is a Find fix's; a `FitResult` `{ need, slot, people: Dict<String, Fit> }` echoes its question. `Fit` and `Refusal` are `Schedule.Types`', the Allocation's too. | `rosterWarehouse`, `rosterCoverage` |
2595
3389
  | `Roster.coverage(R): (week, context, pay) => Dict<Slot, Coverage>` | Positions, named people, permanent, agency and requested hours — each duty's own hours — skill capacity and assigned hours, leads and trainers for every configured slot; its cost the app's pay summed, zero without it. Requests fill positions but never supply skills or a lead. | `rosterCoverage` |
2596
3390
  | `Roster.check(R): (week, context) => Array<Issue>` | The built-in checks: missing lead, double booking, within-week rest, trainee without trainer, skill compatibility, open positions and skill gaps, each with its fix — a rest breach's moves the duty to another shift of its day, or to a later start. | `rosterChecks` |
2597
3391
  | `Roster.fit(R): (request, person) => Fit` | The ready-made rule: refused `Not a lead` / `Not a trainer` / `Not skilled` without the need, `Rostered` that day, `Rest too short` (its measure the rest); else it fits, scored by spare contract hours this week and a week's 168 more in the slot's group, its reason `Dispatch · 14 h spare` or `from Inbound · 2 h over contract`. | `rosterFitTrainer` |
@@ -2619,10 +3413,18 @@ and a lost response retries the same request. Drafts of every week stay in
2619
3413
  their sessions, and Save includes them. Publish saves first, then writes the
2620
3414
  week's status once every record reads back as saved; a failed save leaves the
2621
3415
  week a draft, its drafts kept. A published week is read-only in every layout.
2622
- Below 480px of **main** width, Shifts and People use cards with explicit
3416
+ The People week (#1406) is a row a person under their group's band: the name
3417
+ cell with the week's hours against the contract (and the cost, with `pay`)
3418
+ over a meter, then a tile a duty in each day cell — the shift's label, its
3419
+ hours by `tileTimes`, a duty's own times where they differ or the group where
3420
+ it is not the person's, a warning mark where an issue names it — `+1` for a
3421
+ second duty the same day, and `+ Assign` on a day off, a menu of the shifts
3422
+ whose choice places the person as one gesture; a name selects the person-week,
3423
+ which the inspector's Details read. Below 480px of **main** width, Shifts and
3424
+ People use cards with explicit
2623
3425
  Assign/Move/Edit/Remove/Restore/Request/Accept/Reject/target actions and no
2624
- drag. The `rosterMobile` example demonstrates the complete inline authoring
2625
- pattern.
3426
+ drag; a People card gains `Apply pattern…` where `patterns` are given. The
3427
+ `rosterMobile` example demonstrates the complete inline authoring pattern.
2626
3428
 
2627
3429
  Removed with #1368, each still written refused at build, naming its
2628
3430
  replacement: `weeks` and `window` (`events={{ <slot>: Schedule.events(…) }}`
@@ -2643,8 +3445,9 @@ fields, the app's `pay` and its `check`). `Roster.Types.Weeks` and
2643
3445
  weeks and targets records. `visiblePeople` and `duties` stay refused (#1342).
2644
3446
 
2645
3447
  The runnable examples `rosterMinimal`, `rosterWarehouse`, `rosterMobile`,
2646
- `rosterPeople`, `rosterWeek`, `rosterWindowed`, `rosterPublished`,
2647
- `rosterCustomInspector`, `rosterRecordIndexes` and `rosterRecordIndexesMobile`
3448
+ `rosterPeople`, `rosterPeopleMonth`, `rosterWeek`, `rosterWindowed`,
3449
+ `rosterPublished`, `rosterCustomInspector`, `rosterRecordIndexes` and
3450
+ `rosterRecordIndexesMobile`
2648
3451
  include their record declarations and seeds; `rosterCoverage`, `rosterChecks`,
2649
3452
  `rosterWeeklyHours`, `rosterRest`, `rosterFitTrainer` and `rosterAnswerLeads`
2650
3453
  run the pure functions over a small staff. Search those names in the example
@@ -2705,7 +3508,7 @@ own fields, one rail and its library (`allocationKilnYard`):
2705
3508
  // Inside Reactive: what the board writes, each through its patch door.
2706
3509
  const bins = $.let(Record.bind(kilnBins, [kilnBinsPatch]));
2707
3510
  const entries = $.let(Data.bindPaged(kilnBins)); // one bin by its key
2708
- const byTime = $.let(Data.bindPaged(kilnBins, { indexes: [kilnBinsByTime] })); // interval: { from: "at", to: "at" }
3511
+ const byTime = $.let(Data.bindPaged(kilnBins, { indexes: [kilnBinsByTime] })); // e3.recordIndex.interval(…, { from: "at", to: "at" })
2709
3512
  const days = $.let(Record.bind(yardDays, [yardDaysPatch]));
2710
3513
  // What it reads whole — every bay, kiln and load is the calculation scope — and their indexes for the rail.
2711
3514
  const yard = $.let(Data.bind(kilns));
@@ -2787,7 +3590,7 @@ export const yardFit = e3.function("yard_fit", East.function([Allocation.Types.F
2787
3590
  | Signature | Description | Example |
2788
3591
  | --- | --- | --- |
2789
3592
  | **Builder and records** | | |
2790
- | `<Allocation events resources arrivals fit periods? every? check? columns? slice? rules? library? inspector? view? horizon? title? readOnly? labels? table? id? />` **❗** | One toolbar row at every width — the day's navigator, its picker marking each day Published · Draft · Not started; Table · Timeline; the status chip; the focus; the rail and its count; the issues; the history and Publish — folding into one View in the narrowest frame; then the Timeline or the Table, the panes the props ask for, and the footer's legend. Refused at build, each naming the change: a removed prop (below); `events` holding other than one kind; a bin kind with no lane or no parts; a resource kind that is neither the lanes' nor the resources'; resources read a page at a time or keyed by anything but String; a resources kind with no `min` or `max`; `arrivals` not from `Allocation.arrivals`, and its `values` of another struct than the bin kind's own fields; `periods` not from `Schedule.periods`; a `fit` bound over another row type, naming both; a `check` of another type; a library tab or a column given twice; an empty label; and Table bands that don't start at 0 and rise within the day. | `allocationMinimal`, `allocationKilnYard`, `allocationTable` |
3593
+ | `<Allocation events resources arrivals fit optimise? periods? every? check? columns? slice? rules? library? inspector? view? horizon? title? readOnly? labels? table? id? />` **❗** | One toolbar row at every width — the day's navigator, its picker marking each day Published · Draft · Not started; Table · Timeline; the status chip; the focus; the rail and its count; the issues; with `optimise`, the Elara eye; the history and Publish — folding into one View in the narrowest frame, and below that, where the row is still too wide, the rail's icon dropping its caret and then the eye going into the View as its entry, the history and Save always in the row; then the Timeline or the Table, the panes the props ask for, and the footer's legend. Refused at build, each naming the change: a removed prop (below); `events` holding other than one kind; a bin kind with no lane or no parts; a resource kind that is neither the lanes' nor the resources'; resources read a page at a time or keyed by anything but String; a resources kind with no `min` or `max`; `arrivals` not from `Allocation.arrivals`, and its `values` of another struct than the bin kind's own fields; `periods` not from `Schedule.periods`; a `fit` bound over another row type, naming both; a `check` of another type; a library tab or a column given twice; an empty label; and Table bands that don't start at 0 and rise within the day. | `allocationMinimal`, `allocationKilnYard`, `allocationTable` |
2791
3594
  | `events={{ bin: Schedule.events(Record.bind(bins, [patch]), { at, resource: { field, of }, arrival, quantity: { field, unit? }, parts: { field, of }, hold, kind?, fields?, inspector?, ready?, entries? }) }}` **❗** | Exactly one kind, the bins: an instant kind keyed by String. A bin's UTC day is its plan day, and a batch's bins follow one minute apart. `resource` names its lane, a String key of the lanes' kind; `arrival` the arrival it books, `none` a reservation; `quantity`'s unit shows everywhere a quantity does; `parts` holds its quantity on each resource of the slot `of` names, empty while it is not linked; `hold` and `kind` are kept from booking. The inspector shows the kind's form over the fields no role writes (`fields` hints), or the kind's own `inspector`. | `allocationKilnYard`, `allocationCustomBin` |
2792
3595
  | `resources={{ <lanes>: Schedule.resources(rows, { name, icon, label, offset? }), <resources>: Schedule.resources(rows, { name, icon, label, min, max, group?, meta?, note?, hold?, jobs? }) }}` **❗** | The lanes' kind under the slot the bin kind's `resource.of` names, each lane taking a bin each `every` at its `offset` past it, in key order; the resources' kind under the slot its `parts.of` names, each with its range in the quantity's unit. `jobs` is a resource's other work: one covering the day's start makes it busy, the first after it is its next job; `hold` is how long a reservation on it is checked for. Both are read whole and keyed by String. | `allocationKilnYard` |
2793
3596
  | `arrivals={Allocation.arrivals(rows: Dict<String, R>, { label, quantity, hold, kind?, meta?, due?, window?, details?, values? })}` **❗** | Every arrival the day may book, each accessor `(row, key) => …`. Booking one writes the bin's roles — `arrival` its key, `quantity`, `kind` and `hold` from these accessors, `parts` empty, `at` and the lane where it is booked — and `values`' struct into the row's other fields: the bin kind's fields no role maps, held to them at build. Without `values` they take their type's default, as a reservation's always do. `due` before the day makes it overdue. | `allocationKilnYard` |
@@ -2808,11 +3611,12 @@ export const yardFit = e3.function("yard_fit", East.function([Allocation.Types.F
2808
3611
  | `Allocation.candidates(R): (FitRequest(R)) => Array<Candidate>` | A place's subject on every resource, in key order; a take's every bin (its unallocated quantity, with its part there), every arrival the day has not booked, then a reservation. | `allocationRules` |
2809
3612
  | `Allocation.lookahead(R): (FitRequest(R), Candidate, fit: fn(Candidate) => Fit) => Fit` | A greedy look-ahead: it places the candidate, then the day's unbooked arrivals largest first, each on its best fit, and lowers the score by one for each left with nowhere to go (`· leaves 1 load with no fit`); a refusal passes through. | `allocationLookahead` |
2810
3613
  | a rule over the ready-made fit | An `e3.function` that refuses what the app refuses, then gives `Allocation.fit`'s verdict: the board's ranks and reasons are its. | `allocationFitRule` |
3614
+ | `optimise={Func.bind(fn: FunctionDef<[Allocation.Types.OptimiseRequest(R)], Allocation.Types.OptimiseResult(R)>)}` **❗** | The app's optimiser (#1409). The Elara eye in the toolbar, after the issues item and immediately before the history item — at a phone's width, where the row's floor needs its room once the rail's icon has dropped its caret, the View's entry beside the issues, never out of the toolbar: `Stop optimising` while a run is out, off and saying why (`Read-only`) while the day's reads are in flight — names the day (`Optimise Tue, May 11, 2027`): one call per run with the day, the run's number, the day's bins by key as the session holds them — base plus every unapplied draft, every row whatever the rail shows — every arrival as the board reads them and `Allocation.Types.Context`. The history, the drags and every gesture are locked while it is out; a step to another day stops it. Its answer — the bins complete — is diffed by key and recorded as ONE step: Undo in one, Redo replays the landing, Save commits it with everything else. A bin added is an add (its arrival leaves the Arrivals to book), one moved a change with a ghost card at its old lane slot, one dropped a remove with its ghost (its arrival back in Arrivals), one linked or relinked a change with no ghost; each marked on the Timeline's cards, the Table's chips and the narrow cards with its provenance on hover; the lane heads' figures, the Arrivals count and the issues chip flash; for the highlight the Timeline draws the links the run added or changed with nothing selected, outlined in the Elara tone, and the loads of the kilns they land on glow with the cards. A result equal to the request records nothing and says so. The optimisation is joint — a result decides both a bin's slot and its links — and the yard's example optimiser is: a kiln over its maximum gives the excess of its latest bin to the kilns `Allocation.fit` ranks best, a bin not linked or partly allocated is linked, and every load not yet booked is booked into the day's first free bay slot and onto the kilns the fit ranks best, whole on the best fit or split when no one kiln takes it; what no kiln has room for is booked on none. | `allocationOptimise` |
2811
3615
  | **Domain functions and values** | | |
2812
3616
  | `Allocation.loads(R): (day, Day(R), Context) => Dict<String, Load>` | Every resource's fill, bins, hold and state on the day: free, loading or busy. | `allocationDayLoads` |
2813
3617
  | `Allocation.check(R): (day, Day(R), Context) => Array<Issue>` | The built-in checks — Not linked, Partly allocated, Overlaps the next job, Over max, and Under minimum when `rules.under` — each with its fix; the app's `check` follows them wherever issues show. | `allocationChecks` |
2814
3618
  | `Allocation.slots(R): (day, Day(R), Context) => Array<Slot>` | The day's lane slots, one per lane per `every`, in time then lane order, each free, booked or reserved, with its bins; a booking takes the first free one. | `allocationSlots` |
2815
- | `Allocation.Types.{Lane, Status, Bin(R), Day(R), Interval, Job, Detail, Arrival, Resource, Rules, Context, LoadState, Load, Candidate, Refusal, Fit, FitAsk, FitRequest(R), FitResult, Fix, IssueKind, Issue, CheckContext(R), SlotStatus, Slot, Layout}` | The board's reading of the app's rows, carried in requests and stored nowhere. A type over a bin is a constructor of the app's bin row type: the same `R`, the same East type. A bin is `{ lane, at, arrival, quantity, kind, hold, parts, row }`, its roles beside the app's row, `parts` its quantity on each resource, empty while it is not linked; a reservation books no arrival. A day is `{ status, bins }`, its status Schedule's period status. `FitAsk` is `place { subject: bin \| arrival, quantity }` or `take { resource }`, and `FitResult` `{ ask, resources, bins, arrivals, reserve, basis }`. `Fit` and `Refusal` are `Schedule.Types`', the Roster's too. | `allocationKilnYard`, `allocationAnswerTake` |
3619
+ | `Allocation.Types.{Lane, Status, Bin(R), Day(R), Interval, Job, Detail, Arrival, Resource, Rules, Context, LoadState, Load, Candidate, Refusal, Fit, FitAsk, FitRequest(R), FitResult, OptimiseRequest(R), OptimiseResult(R), Fix, IssueKind, Issue, CheckContext(R), SlotStatus, Slot, Layout}` | The board's reading of the app's rows, carried in requests and stored nowhere. A type over a bin is a constructor of the app's bin row type: the same `R`, the same East type. A bin is `{ lane, at, arrival, quantity, kind, hold, parts, row }`, its roles beside the app's row, `parts` its quantity on each resource, empty while it is not linked; a reservation books no arrival. A day is `{ status, bins }`, its status Schedule's period status. `FitAsk` is `place { subject: bin \| arrival, quantity }` or `take { resource }`, and `FitResult` `{ ask, resources, bins, arrivals, reserve, basis }`. `Fit` and `Refusal` are `Schedule.Types`', the Roster's too. | `allocationKilnYard`, `allocationAnswerTake` |
2816
3620
 
2817
3621
  Every gesture — a drop, a Chooser's choice, a lane or a time step, a quantity,
2818
3622
  a split, a fix, Back to Arrivals, Revert — is one step of one history over the