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
26 changes: 26 additions & 0 deletions packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,32 @@ import { ActivityList, ActivityStep, DisclosureRow, EventLogRule, Presence, Stre
| `ActivityList`, `ActivityStep` | A sentence a step: `status` (`running`, `done`, `failed`, `waiting`), `word`, `meta`, `detail` (then the step is a disclosure row). |
| `Presence`, `Elapsed`, `formatElapsed` | "Away 6 min": `status` (`active`, `away`, `offline`), `label`, `since`, `now`, `format`, `variant` (`plain` or `outline`). `Elapsed` is the length alone after any word; `formatElapsed` writes it (plain, safe on a server). |

## Stages and runs

A run's stages, its steps and its one voice (DECISIONS 316; `docs/foundations.md`, "Stages and runs"). Seven states: `queued`, `running`, `success`,
`failed`, `skipped`, `canceled`, `retrying`. The state's word always carries the state; the mark never does alone. Basalt draws; the app owns the run.

| Part | Notes |
|---|---|
| `StageMark` | One mark a state at 16, 20 or 24, `aria-hidden`, in a seat that never changes size: queued a circle that breathes by opacity, running and retrying the ring, passed `CheckCircle`, failed `XCircle` in danger, skipped `MinusCircle`, canceled `Prohibit`. A change of state crossfades in the one seat. |
| `STAGE_WORDS`, `formatRunTime(ms)` | The default word for each state, US English ("Queued", "Running", "Passed", "Failed", "Skipped", "Canceled", "Retrying"); the app may change any. `formatRunTime` returns `{ text, dateTime }`: "12.3 s" (tenths, cut and never rounded up), "12 min 34 s", "12 hr 34 min", with its ISO 8601 duration. Plain values a Server Component can read. |
| `RunTimer` | A run's time: tabular Geist Mono at `text-xs`, tertiary, a `time` element, never a live region. `start`, `end` (frozen at `end - start`), `carried` (earlier attempts, so a retry counts on), `since`, and `scale` (`seconds`, `minutes`, `hours`: the longest form its seat holds, so the column never moves). |
| `StageBadge` | A `Badge` bound to the seven states: `state`, `words`, `variant` (`outline` in a run's head, `plain` in a list or table), `size`. Its seat is as wide as its widest face, so a change in place moves nothing. |
| `StageList`, `StageRail`, `RunStage` | The same `RunStage` data drawn as a list (`label`, `timeScale`, `reserveDetail` to hold a failure's room from the first frame) or as a rail of two to six nodes on one line (five or six from 480 of its own width, drawn as the list under it). A `RunStage` is `name`, `state`, `word`, `meta`, its times, and a `detail` with an action (a failure's reason and Retry) that opens under a list's stage; focus is never dropped when it closes. |
| `RunTimeline`, `RunStep` | A run's own view: an append-only list of steps, a sentence each (`state` or `mark`, `word`, `meta`, times, `detail`, `action`). The newest `keep` steps stay in full; older finished steps roll into a tail that recedes a step a row, with a toggle above it that opens the whole record at full ink (`open`, `defaultOpen`, `onOpenChange`, `toggleLabel`). It follows new steps only while the reader is at its end. Nothing in it speaks. |
| `RunAnnouncer` | A run's one voice: a visually hidden polite `role="log"`, additions only: `label` and `events` (append-only, each `{ id, text }`). Each event is said once, in order; an `id` already said is quiet, and events present at mount are not said. Never `role="alert"`; it draws nothing. |

## Versions and release notes

A version is SemVer with its ship date, one link to the release notes (DECISIONS 320; `docs/foundations.md`, "Versions and release notes"). Nothing
marks a release as new, and there is no "What's new" item.

| Part | Notes |
|---|---|
| `VersionLink` | "Version 1.4.0 · Nov 23, 2026" as one link: `version`, `date` (an ISO calendar date, never moved by a time zone), `href` ("/release-notes#v1.4.0"), `label` (default "Version"; a site's footer gives the product), `destinationLabel`, `current` (on the release notes: the number at 600, its width reserved), `locale`. Its place sets its form: the sidebar's foot, the number alone in the rail, the last row of More's sheet, after the legal line in a footer. |
| `ReleaseNotes` | A page of releases from their records: `releases`, `form` (`reference`, a package's changelog with its list open; `notes`, a product's, audience paragraphs first and the list in one fold), `product`, `running` and `runningBuild` (the release this session runs carries "Your version" and Build details), `baseHref`, `headingLevel`, `arrived` and `onArrivedEnd`, `words` (the page's fixed words, for another language), `locale`. Counts, order, folds and the "Action needed" callout come from the record. |
| `ReleaseIndex` | The versions as a `nav` ("Versions"): `releases`, `form` (`pane` for `PaneLayout`'s pane, `fold` for a closed fold above the first release where the pane is not beside the page), `label`, `unreleasedLabel`, `locale`. A page draws both forms; each shows only where it belongs. |

## Writing to someone

The composer, the mention and the mention picker (cimip-gaps-2, B3; decided and built by Opus on the no-council path, not yet reviewed). See foundations, "Writing to
Expand Down
12 changes: 9 additions & 3 deletions packages/react/test/audit-fix-c3.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { pathToFileURL } from "node:url";
import * as esbuild from "esbuild";
import stylelint from "stylelint";

import { withGlyphMasks } from "../glyph-mask.mjs";
import { minifyCss } from "../minify-css.mjs";
import { bundleFixture, bundleFixtureFromScratch, pkg, sourceStyles } from "./support.mjs";

Expand All @@ -18,12 +19,17 @@ const read = (...parts) => fs.readFileSync(path.join(...parts), "utf8");

// ---- A1-12: the shipped style sheets are the sources without their comments and whitespace ----

test("styles.css and components.css are the sources with their comments and whitespace taken out, and nothing else", () => {
test("styles.css and components.css are the sources with their glyph masks written in and their comments and whitespace taken out, and nothing else", () => {
const tokens = read(repo, "packages", "tokens", "dist", "css", "tokens.css");
const components = `${read(pkg, "src", "styles", "components.css")}\n${read(repo, "packages", "tokens", "dist", "css", "accents.css")}`;
const accents = read(repo, "packages", "tokens", "dist", "css", "accents.css");
const written = read(pkg, "src", "styles", "components.css");
// `%glyph-mask:name%` is a core glyph's drawing as a data URI (glyph-mask.mjs), written in by the build before the sheet is minified (build.mjs).
const components = `${withGlyphMasks(written)}\n${accents}`;
assert.ok(/%glyph-mask:[\w-]+%/.test(written), "the source names a glyph mask (else this test no longer needs withGlyphMasks)");
assert.equal(read(dist, "styles.css"), minifyCss(`${tokens}\n${components}`));
assert.equal(read(dist, "components.css"), minifyCss(components));
assert.equal(sourceStyles(), `${tokens}\n${components}`, "the helper the text tests read is the sheet as it was written");
for (const name of ["styles.css", "components.css"]) assert.ok(!read(dist, name).includes("%glyph-mask:"), `${name} holds a glyph-mask placeholder`);
assert.equal(sourceStyles(), `${tokens}\n${written}\n${accents}`, "the helper the text tests read is the sheet as it was written");
for (const name of ["styles.css", "components.css"]) {
const css = read(dist, name);
assert.ok(!/\/\*(?!!)/.test(css), `${name} holds a comment`);
Expand Down
7 changes: 5 additions & 2 deletions packages/react/test/browser-floor.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,19 @@ const ALLOWED = {
"prefers-reduced-transparency": "The query is the opaque fallback for the sticky header; a browser that does not evaluate it (Safari, Firefox) keeps the smoked header. Text on the bar holds 4.5:1 over any backdrop, so this is comfort and not legibility (foundations, Browser support).",
"text-wrap: pretty": "A hint for the last line of a paragraph; a browser without it wraps as it always did.",
"field-sizing": "The Composer's field grows with its text (cimip-gaps-2, B3). Where CSS.supports(\"field-sizing\", \"content\") is false (Safari before 26.2, Firefox), composer.tsx measures the field's scrollHeight and sets its height within the same rows, so it grows there too (foundations, Writing to someone).",
"the round(), mod() and rem() functions": "The plain badge's dot margin (components.css, .basalt-badge[data-variant=\"plain\"] > .basalt-badge-dot). Chrome 123 and 124 drop the declaration, so the dot sits in its seat to the half pixel and not on whole pixels. A fix changes a pixel, so it is the council's: found by this check, reported on the pull request that added it.",
"the round(), mod() and rem() functions": "The plain badge's dot margin (components.css, .basalt-badge[data-variant=\"plain\"] > .basalt-badge-dot), and the 1px connector's inline start in StageList, StageRail at five or six and RunTimeline (.basalt-run-stages, .basalt-run-rail, .basalt-run-steps: ::after). Chrome 123 and 124 drop the declaration, so the dot sits in its seat to the half pixel and not on whole pixels, and the connector, at `inset-inline-start: auto`, stands at the row's start edge and not on the marks' centre line, 7px from it. A fix changes a pixel, so it is the council's: found by this check, reported on the pull request that added it (the dot) and in the main-green report (the connector, #127).",
"@starting-style": "The diagram viewer's opening motion (components.css, dialog.basalt-dialog.basalt-diagram-viewer, a native modal dialog: DECISIONS 310). Firefox before 129 opens it with no animation, and it still opens.",
"transition-behavior (allow-discrete)": "The diagram viewer's closing motion, which transitions the dialog's and its backdrop's `display` and `overlay` (Firefox before 129). Without it the viewer closes at once, with no animation, and it still closes.",
};

/** The skill's own uses above its floor, with why: the three it shares with the package, and the two that are its alone. */
/** The skill's own uses above its floor, with why: the three whose reason is the package's, and the skill's own reasons for the rest. */
const SKILL_ALLOWED = {
"scrollbar-gutter": ALLOWED["scrollbar-gutter"],
"prefers-reduced-transparency": ALLOWED["prefers-reduced-transparency"],
"text-wrap: pretty": ALLOWED["text-wrap: pretty"],
"@starting-style": "The opening motion of the dialog, the sheet, the popover and the select's list (Firefox before 129). Without it they appear with no animation, and they still open.",
"transition-behavior (allow-discrete)": "The closing motion of the dialog, the popover and the select's list, which transitions `display` and `overlay` (Firefox before 129). Without it they close at once, with no animation, and they still close.",
"the round(), mod() and rem() functions": "The 1px connector's inline start in the runs module (runs.css, `--_cx` on .run-stages, .run-rail and .run-steps). Chrome 123 and 124 do not know round(), so the custom property is invalid where it is used and the connector, at `inset-inline-start: auto`, stands at the row's start edge and not on the marks' centre line, 7px from it. A fix changes a pixel, so it is the council's: found by this check, reported in the main-green report (#127).",
};

const sheets = () => {
Expand Down
Loading