Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 67 additions & 2 deletions docs/foundations.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ kept as a rule so both themes behave alike (DECISIONS 166). Four text levels wer
full-bleed band that holds its own control focuses that control. A band that is itself the link or button takes the
flush-field −2 inset above. A sortable table header is exactly that band (see the still table below). Navigation
items are focusable rows: their ring goes around the hugging pill (see [Navigation](#navigation)). So are the
notification centre's entries: links or buttons, which join the hover glide on navigation's rules (below). Otherwise Basalt ships none:
notification centre's entries: links or buttons, which join the hover glide on navigation's rules (below), and the disclosure row (see [The conversation stream](#the-conversation-stream)). Otherwise Basalt ships none:
the rows of Menu, Select, Combobox and CommandMenu are options and show the plate, breadcrumbs and pagination are
inline, and a settings or list row is the app's own markup. The accordion trigger is the one full-width band that is
itself a button; it keeps the ring it was built with
Expand Down Expand Up @@ -2110,6 +2110,68 @@ every page, every sort), the band, Previous, Next, the count's seat, the page si
(`packages/react/test/lists-modals.test.mjs`). Not checked: a real phone (on iOS the held foot sits under the keyboard while typing, as in any web form), WebKit, Firefox, a screen reader and a
Windows contrast theme.

## The conversation stream

**Status.** Decided and built by Opus on the no-council path (DECISIONS 226 and 265); the implementation is reviewed by Astra and the pixels by the
lead, and the owner sees the pictures (review round 56) before merge. Found by the first app built on Basalt (the second gaps batch, B2). React's
alone: the HTML skill has no stream module (a follow-up batch).

A stream is one column of entries, oldest first: a support thread, a team chat, a document's comments, an assistant's answer, a build's history
(`Stream`, an ordered list). It is not a live region and does not follow its end: an app that adds entries follows the end only while the reader is
at it, as a `Terminal` does, and says what must be heard through `StatusLine`. Basalt draws; what joins, the words and the data are the app's.

- **A message** (`StreamMessage`): the avatar's 32px gutter, `space-3`, then the text column. The head is the name at `text-base` and 500 in primary
and the time at `text-xs` in tertiary, tabular, on one baseline; meta (a `Presence`, a badge) follows the time, and controls sit at the head's end. The
words are `text-base` (14/20) in primary and wrap anywhere; they are in block flow, so a link or a badge stays in its sentence, and blocks inside
(a paragraph, a list, a quote, a disclosure row) stand `space-2` apart. The avatar is decoration (the name beside it is read). **Consecutive messages join** when
the app says so (`joined`: the author, the minutes between and an edit are the app's rules, never a number in Basalt): no avatar and no head are
drawn, and the name and time are said before the words. A new author starts `space-4` below the last entry, a joined message `space-1`.
- **A note** (`StreamNote`, "Lee joined", "Status set to Open") is a quieter row: a sentence at `text-sm` in secondary in the text column, its time
after it, and an optional icon at 16 centred in the gutter. Two notes stand `space-2` apart. A day is `EventLogRule`.
- **The other side of an exchange** (`StreamQuote`: what a person said to an assistant or a bot, the message a reply answers) is a fill one step from
its ground, radius 8, `space-2` by `space-3` inside, and **no rim**: the turn it sits in keeps the only frame. In dark the step is the level above
what it sits in (it is a well, with its own `data-level`); in light it is `surface-sunken-strong`, because light's levels 1 to 3 are one white. No
bar and no indent rule mark it. The words above it say whose it is ("Dana asked", "Replying to Sam", the app's), tertiary at 12 with the time, so the
fill never carries that alone; it is a `figure` with a `figcaption` and a `blockquote`.
- **The entry you came to** (`arrived` on a message, a note, an entry or a block). The entry a link, a search result or a notice opened is scrolled to
(to the middle of what scrolls it; one taller than most of that, a pane's visible height or the window's, to its top) and focused with no ring, as a page's title is after a route change: it is a place,
not a control (it is `tabindex="-1"` from then on, so the mark's going never drops focus). It is marked by the selected wash on its own ground and by
a word. A message, a note or a block that is not a panel takes a **plate**: one solid fill per level (the choice card's recipe), radius 8, reaching
`space-2` past the entry at the sides and `space-1` above and below, behind its content, so nothing in it moves. **A panel is never framed from
outside** (no outer frame, no outline, no bar): its own fill takes the wash, inside its one rim. The word ("Linked" by default; the app says why:
"From your notice", "Search result") is secondary at 12 at the end of the head; a panel entry's app puts it in the panel's head
(`StreamArrivedWord`); a block's message says it in its head, in the block's own words, and a block in a joined message (no head) draws it above
itself, so the word is always seen while the mark is on. Tertiary words on the wash step up to secondary. A joined message that arrives draws
its head, and keeps it. **It lasts until the reader acts**: a press anywhere, or a key that does not scroll (the arrows, Page Up and Down, Home, End
and Space outside a field read around it and leave it); then it goes over 0.75 of `duration-slow` on `ease-in`, and the word's room stays, so
nothing moves. It comes at once. An entry that has no box yet (in a hidden tab or pane) is not spent: it is scrolled to, focused and armed once it is
shown. One entry arrives at a time: placing another ends the one before (its `onArrivedEnd` is called). In forced colours the fill drops and the word stays; under reduced motion the fade is
the same, being colour and opacity. In a `LoadingShape` (and its twin) it does nothing.
- **A disclosure row** (`DisclosureRow`): one line that opens to its detail (a tool call, a thought, a folded stretch, a step's log). Lighter than
`Accordion`, which is for a page's sections: no heading, no divider, no wash. A button (`aria-expanded`, `aria-controls`) on Base UI's Collapsible: an
optional mark in a 16px seat, the line at `text-sm` in secondary, an optional meta in tertiary, and the core chevron at the end, which morphs from right
to down (a rotation group; under right-to-left it points left while closed). Closed, the line is cut with an ellipsis; open, it wraps, so it is read
whole in place (`wrap` keeps it wrapped while closed). Hover lifts the ink to primary and the meta to secondary, with no wash, as on a ruled list on
the page. It is a focusable row: the control ring at +2, radius 6. 28 tall, 44 on touch. The detail opens by height over `duration-slow` on
`ease-out` and closes at 0.75 on `ease-in`, at once under reduced motion; its clip reaches `space-1-5` past the detail, so a ring inside is whole.
- **An activity list** (`ActivityList`, `ActivityStep`): steps that run and report, a sentence each at `text-sm`, wrapping at any width. It is not
`Stepper` (a known sequence), not `EventLog` (links in mono with a time column and one tab stop) and not `LogLine` (a log's mono fields). Each step has
the plain badge's status seat (6, and a gap as wide): braille while it runs, the tertiary dot once done, the danger dot when it failed, the hollow ring
while it waits. A failed or waiting step draws its word ("Failed", "Waiting", or the app's) at 500 in primary before its sentence, as a refused
command's word is; a running or done step's word is said and not drawn, unless the app gives one ("Skipped"). The running, failed and waiting sentences
are primary and done ones secondary: ink marks where the work is, and colour is only the danger dot beside its word. A step with detail is a
disclosure row; when any step has detail, every step keeps the chevron's seat, so the metas line up. It is not a live region.
- **Presence with a duration** (`Presence`): a `Badge`, plain beside a name or in its outline: the success dot while active, the hollow ring while
away, the tertiary dot while offline, and always the state's word ("Active", "Away", "Offline", or the app's). With `since`, how long it has lasted
follows the word in its ink ("Away 6 min"): nothing under a minute (the element is there, empty and hidden, so a server's render and the
client's hydration agree), nothing for an invalid date, then "6 min", "1 hr 5 min", "3 days" (`formatElapsed`, US English; an app writing
another language passes `format`). **This is a duration, not a relative age:** it says how long something still true has been true, as a countdown
says the time left, so it stands without a date (a relative age, "11 days ago", is still written only beside its date). It is a `time` with an ISO
duration, ticks by the minute on the one shared timer, holds under `data-loops="held"`, is no live region and is not stopped by reduced motion.
`Elapsed` is the length alone, after any state's word ("Running 12 min").
- **Loading.** The stream's parts are drawn by `LoadingShape` like any others: an avatar is a bone in its disc, the name, time and words are bars as
long as their words, a mark is a bone in its box. Nothing in them is sized by hand for loading.

## Loading in the page's own shape

**Status.** Decided by Opus and approved by the owner (DECISIONS 247, 248, 249b and 258: the shape of what it stands for, known words kept and icons hidden,
Expand Down Expand Up @@ -2183,7 +2245,7 @@ as if it were known, which Basalt can't detect.

## What the HTML skill does not draw

The log slots, the status bar, the command block, the event log, the source stamp, the inline-label rows, the filter toolbar, the notice bar, the listbox, the open list, the drawer and `Reflow` are React's alone: the HTML skill has no module for them (DECISIONS 167, Q8). So are `Pagination` and `ListBand` (DECISIONS 222: the skill has no pagination module and none is added). The skill's modules draw the rest (DECISIONS 230, the owner approved the caps): `select` has `data-numeric` (the width of its widest option, measured once fonts are ready; cap 9,000), `filter` has a toolbar trigger that holds its widest value (cap 17,450), and the form dialog is a module of its own, `dialog-form` (`data-form`: the 480 box, the held head and foot, the scrolling body, full screen under 720, the top held as it opens and first focus by the input that opened it; cap 2,200), so the plain and alert dialog keep `dialog`'s 5,150. React's alone: `FormGrid` and the rest of Declare's gaps (DECISIONS 242: the form grid, a segmented control's `fullWidth`, `required`, `invalid` and its tab stop on the chosen value, a `Switch` description, `TextButton` keeping focus and underlining a `Reserve`), the held top's re-measure on a window resize, and the scrim closing a form only while nothing has been entered (the skill's scrim closes it). React's alone too: `LoadingShape` and its parts (DECISIONS 258; the skill's loading shape is a follow-up batch). React's alone too: `Composer`, `Mention` and `MentionPicker` (cimip-gaps-2, B3; see [Writing to someone](#writing-to-someone-the-composer-the-mention-and-the-picker)). Whether the skill gets the links and the charts is not decided.
The log slots, the status bar, the command block, the event log, the source stamp, the inline-label rows, the filter toolbar, the notice bar, the listbox, the open list, the drawer and `Reflow` are React's alone: the HTML skill has no module for them (DECISIONS 167, Q8). So are `Pagination` and `ListBand` (DECISIONS 222: the skill has no pagination module and none is added). The skill's modules draw the rest (DECISIONS 230, the owner approved the caps): `select` has `data-numeric` (the width of its widest option, measured once fonts are ready; cap 9,000), `filter` has a toolbar trigger that holds its widest value (cap 17,450), and the form dialog is a module of its own, `dialog-form` (`data-form`: the 480 box, the held head and foot, the scrolling body, full screen under 720, the top held as it opens and first focus by the input that opened it; cap 2,200), so the plain and alert dialog keep `dialog`'s 5,150. React's alone: `FormGrid` and the rest of Declare's gaps (DECISIONS 242: the form grid, a segmented control's `fullWidth`, `required`, `invalid` and its tab stop on the chosen value, a `Switch` description, `TextButton` keeping focus and underlining a `Reserve`), the held top's re-measure on a window resize, and the scrim closing a form only while nothing has been entered (the skill's scrim closes it). React's alone too: `LoadingShape` and its parts (DECISIONS 258; the skill's loading shape is a follow-up batch). React's alone too: `Composer`, `Mention` and `MentionPicker` (cimip-gaps-2, B3; see [Writing to someone](#writing-to-someone-the-composer-the-mention-and-the-picker)). So are the conversation stream's parts (`Stream` and its entries, `StreamQuote`, the arrived mark, `DisclosureRow`, `ActivityList` and `Presence`; round 56, a follow-up batch). Whether the skill gets the links and the charts is not decided.

## Logs, status and forms

Expand Down Expand Up @@ -2334,6 +2396,9 @@ read this from compatibility data and did not check it in Safari with the settin

## How these were decided

The conversation stream (messages, notes, quotes, the entry you came to, the disclosure row, the activity list and presence) was decided and built by Opus on the
no-council path (DECISIONS 226 and 265), with no council vote; its implementation is reviewed by Astra, and the owner sees round 56's pictures before merge.

Loading in the page's own shape (`LoadingShape` and its parts) was decided by Opus and approved by the owner (DECISIONS 247, 248, 249b and 258), with no
council vote; its implementation is reviewed by Astra.

Expand Down
2 changes: 2 additions & 0 deletions docs/motion.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ Pass `label` when the spinner is the status (`role="status"`). Omit it when a wo
| Toast | Enters on `duration-slow` and `ease-out`, leaves at 0.75 on `ease-in`. Running work shows braille in the mark seat and updates the same toast in place to its result: the title never moves, because the seat is kept. Swipe is Base UI's 40px, by distance alone, with no spring. | Opacity only, at the resting offsets |
| Toast drain | A countdown, not a loop, so the hold does not stop it. A 1px line, drawn on the straight part of the bottom rim, shrinks for the timeout (only a toast that is not the only copy of what it says has one). Hover, focus, a blurred window and a hidden tab pause it and the toast's own clock together. No glow. | The line is not drawn |
| `CommandMenu` | cmdk filters and selects. It loads the first time the menu opens, so an app that never opens one does not download it. No open or close animation. | No extra motion |
| `DisclosureRow` | The chevron morphs from right to down (a rotation group) over `slow`; the detail opens by height over `slow` on `ease-out` and closes at 0.75 on `ease-in`. Hover lifts the ink over `fast`, in at once. | The detail is there at once; the chevron swaps |
| The entry you came to (`arrived`) | Its plate (or a panel's wash) and its word come at once, and go over 0.75 of `slow` on `ease-in` when the reader acts. Nothing moves: the plate is behind the entry and the word's room is kept. | The same fade (colour and opacity only) |
| `LivePreview` | The draft is shown in a panel before Save commits it. | The preview text changes in place |

`SharedElement` was withdrawn from the public API by the panel: nothing in Basalt needs an element to keep its identity across places. It remains as an internal module.
Expand Down
Loading
Loading