Timeline
import { Timeline } from "@arcadia/ui/charts";| Name | Start | Due | Done | State | Blocked by |
|---|---|---|---|---|---|
| Lexer | Oct 5 | Oct 23 | 6 of 6 | Reached | |
| Parser | Oct 26, planned for Oct 19 | Nov 17 | 5 of 8 | Begun, late by 3 days | Lexer |
| Type checker | Nov 9 | Dec 11 | 2 of 9 | Begun | Parser |
| Emitter | Nov 30 | Dec 4 | Not begun | Type checker, due before the milestone that blocks it | |
| Release | Dec 18 | Not begun | Emitter | ||
| Docs and examples for the language server | Oct 12 | Nov 6 | 2 of 5 | Closed | |
| Plugin API | Not planned | Not begun | |||
| Benchmarks | Not planned | 0 of 4 | Not begun |
Not planned
Timeline
labelrequired- string
- Its name: the grid's, and the reader's table's caption with today ("Roadmap, today Nov 20").
todayrequired- Day
- The day it is, given by the product: never the machine's clock.
rows- readonly TimelineRow[]
- The rows in order, one group with no head.
groups- readonly TimelineGroup[]
- In place of
rows: groups of rows, each under a head (several roadmaps in one view). links- readonly TimelineLink[]
- Default:
NO_LINKS - "Blocked by" links:
tois blocked byfrom. unplaced- readonly TimelineBar[]
- Default:
NO_BARS - Items with no day, in the strip "Not planned".
zoom- "week" | "month" | "quarter"
"week","month"or"quarter", held by the product.defaultZoom- "week" | "month" | "quarter"
- Default:
"month" - The zoom it starts on, held by the part.
onZoomChange- (zoom: TimelineZoom) => void
- The zoom chosen.
editable- boolean
- Default:
false - Due days and planned starts change by their handles, where a callback is given. Never on a reached or closed bar.
onDueChange- (id: string, day: Day) => TimelineAnswer
- A due day moved and kept: answer nothing to accept, or a reason in the product's words to refuse.
onStartChange- (id: string, day: Day) => TimelineAnswer
- A planned start moved and kept, on the same terms; only a bar not begun has one.
onOpen- (id: string) => void
- A bar pressed, by the pointer or Enter: with it a bar is a button, without it a bar has its hint and nothing else.
noun- string
- Default:
"item" - The singular noun of a bar, in the product's words ("milestone").
legend- boolean
- Default:
true - The legend's one line: the shapes and marks the data holds, left out where one line cannot hold it.
locale- string
- The reader's locale, for the words of days. Default: the platform's.
loading- boolean
- Default:
false - Loading: the toolbar, the head with today and the labels known; after 200ms a still block where the bars go.
empty- { title: string; action?: ReactNode }
- Nothing given: the empty state's words, in the product's terms, and its one way to add.
error- { message: string; readout?: string }
- It failed: what happened and what to do, and the machine's own message as a readout, with Retry (
onRetry). missing- readonly string[]
- The groups that did not come, by name: one line names them, with Retry.
onRetry- () => void
- Retry after an error or for the groups missing.
rootStyle- RootStyle<TimelineKnobs>
- Typed StyleX override: where it sits, its height's bound and
--timeline-label.
Rest props go to HTMLAttributes<HTMLDivElement>.
State machine
| Name | Start | Due | Done | State |
|---|---|---|---|---|
| Plan release | Nov 2 | Nov 13 | Reached | |
| Run checks | Nov 16 | Dec 11 | 2 of 5 | Begun |
| Deploy | Dec 18 | Not begun |