Skip to content
Myr

Count with the one plural helper, name a round's place by roundOf's type, and say the rail's posture form in DESIGN.md

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by oscabriel · committed by oscabriel · parent 424d181 · Browse files · 3 files+6 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+6 added−12 removed

  • other:+6 added−12 removed

3 files+6 added−12 removed

modified:apps/web/src/features/answer/answer-page.tsx+2 added-4 removed
339 unmodified lines
340/**341 * What a waiting answer's contributor needs, from its rounds: there is342 * nothing to run, and what another push would start.343 */344const waitingSentence = (345 round: { readonly number: number; readonly of: number } | undefined346) =>344const waitingSentence = (round: ReturnType<typeof roundOf>) =>345 round === undefined346 ? "Nothing for you to run."347 : `Nothing for you to run. Pushing again starts round ${round.of + 1}; this verdict stays as round ${round.number}.`;348
136 unmodified lines
485 readonly holds: ReturnType<typeof holdsOf>;486 readonly landing: LandingView | undefined;487 readonly now: DateTime.Utc;488 /** Which round the verdict is, of how many. */491 readonly round: { readonly number: number; readonly of: number } | undefined;489 readonly round: ReturnType<typeof roundOf>;490 readonly verdict: Verdict;491}) => (492 <>493 <Region id="answer-gate" title="Gate">
354 unmodified lines
modified:apps/web/src/features/project/project-page.tsx+3 added-7 removed
347 unmodified lines
348 <ForAgents href={`/${listing.project}/llms.txt`} />349 </>350);351352/** A count and its noun, with its plural: "1 path", "3 paths". */353const counted = (count: number, noun: string) =>354 `${count} ${noun}${count === 1 ? "" : "s"}`;355352/**353 * How a change lands here, in one sentence built only from typed facts:354 * the gate, the paths deciders are set for, what is held back (the ledger355 * linked from it), and when it last landed. The one place the project's
18 unmodified lines
374 heldBack === undefined ? undefined : (375 <AppLink className={LINK} key="ledger" to={ledgerPath(project)}>376 {heldBack.length === 0377 ? "nothing held back"382 : `${counted(checks, "sealed check")} in ${counted(heldBack.length, "area")}`}378 : `${plural(checks, "sealed check", "sealed checks")} in ${plural(heldBack.length, "area", "areas")}`}379 </AppLink>380 );381382 const parts = [387 `Gate: ${counted(StageName.literals.length, "stage")}`,383 `Gate: ${plural(StageName.literals.length, "stage", "stages")}`,384 deciders === undefined || deciders.length === 0385 ? undefined390 : `deciders set for ${counted(deciders.length, "path")}`,386 : `deciders set for ${plural(deciders.length, "path", "paths")}`,387 sealed,388 landedAt === undefined ? (389 "nothing landed yet"390 ) : (
301 unmodified lines
modified:DESIGN.md+1 added-1 removed
358 unmodified lines
359360### Rail (`Rail`)361362- **Character:** where you are, always in the same place.363- **Shape:** the wordmark row (44 px, linking `/`, the landing); the site's sections, each a 32 px row of a 16 px mark and its word (Home, Asks at `/asks`, Today with the count of decisions waiting for a signed-in decider, Docs, For agents); "Projects" over one 32 px row per project, its posture's mark and one short word at the row's end (the same short form the project's head uses, from `posture-label.ts`; "Sealed" in the rail where the head says "Open with sealed evidence" is the thing to fix, not a second form); the current project's sections indented under it (Asks with its open count, Code, Landings, Refs, Policy, Ledger, Env shape); "All projects" opening the switcher after the first eight; the session (handle or Sign in) and a Keys button pinned at the foot.363- **Shape:** the wordmark row (44 px, linking `/`, the landing); the site's sections, each a 32 px row of a 16 px mark and its word (Home, Asks at `/asks`, Today with the count of decisions waiting for a signed-in decider, Docs, For agents); "Projects" over one 32 px row per project, its posture's mark and one short word at the row's end (`postureWord` in `posture-label.ts`, the same short form the project's head says, such as "Sealed evidence", the platform's full label its title); the current project's sections indented under it (Asks with its open count, Code, Landings, Refs, Policy, Ledger, Env shape); "All projects" opening the switcher after the first eight; the session (handle or Sign in) and a Keys button pinned at the foot.364- **Current item:** the surface fill, ink at 600, `aria-current`. Never a coloured bar or an accent.365- **Code form:** a route that fills the rail's slot (`staticData.rail`: the tree on tree, blob and why; the changed files on a commit and a finish) folds the site's sections and projects into a Menu button on the wordmark row and the project's sections into a one-line disclosure, and the slot fills the rest.366367### Top bar and bottom bar
159 unmodified lines