Skip to content
Myr

project-page.tsx

This file

Path

apps/web/src/features/project/project-page.tsx

572 lines · 16.3 KiB · TypeScript

Last changed by

Merge redesign into mainoscabrielbefore adoptioncaedd21

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/imported-from into mainoscabrielbefore adoptionf224a14

line 1why, one step back
1import { IMPORTED_NOTE } from "@repo/agent-kit/docs/imported-note";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 2why, one step back
2import { Brand } from "@repo/brand";

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 3why, one step back
3import type { Ask, AskListing } from "@repo/protocol/domain/ask";

Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229

line 4why, one step back
4import type { FileView, TreeListing } from "@repo/protocol/domain/code";

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 5why, one step back
5import type { Glob } from "@repo/protocol/domain/common";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 6–7why, one step back
6import type { ProjectListing } from "@repo/protocol/domain/front-page";
7import type { LandingView } from "@repo/protocol/domain/landing";

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 8why, one step back
8import { StageName } from "@repo/protocol/domain/outcome";

Merge build/imported-from into mainoscabrielbefore adoptionf224a14

line 9why, one step back
9import type { ImportSource } from "@repo/protocol/domain/policy";

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 10–14why, one step back
10import { LedgerEntry } from "@repo/protocol/domain/visibility";
11import type { Ledger } from "@repo/protocol/domain/visibility";12import type { AreaName, AskId, Handle, ProjectName } from "@repo/protocol/ids";13import type { Posture } from "@repo/protocol/posture";14import { useRouter } from "@tanstack/react-router";

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 15why, one step back
15import { Predicate } from "effect";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 16why, one step back
16import type { DateTime } from "effect";

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 17why, one step back
17import { LockKeyhole } from "lucide-react";

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 18why, one step back
18import type { ReactNode } from "react";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 19why, one step back
19

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 20–21why, one step back
20import { ForAgents, Onward, plural } from "../front/facts.tsx";
21import { stillWaiting } from "../front/families.ts";

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 22–23why, one step back
22import { ProposeLink } from "../propose/propose-link.tsx";
23import type { AskProgress } from "../shared/ask-progress.ts";

Merge build/imported-from into mainoscabrielbefore adoptionf224a14

line 24why, one step back
24import { LINK } from "../shared/classes.ts";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 25–26why, one step back
25import { CommandLine } from "../shared/command.tsx";
26import { EmptyState } from "../shared/empty.tsx";

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 27why, one step back
27import { CommandSlotProvider } from "../shared/keys.tsx";

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 28why, one step back
28import { AppLink } from "../shared/link.tsx";

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 29–33why, one step back
29import {
30 ENVIRONMENT_ANCHOR,31 LEDGER_ANCHOR,32 visibilityPath,33} from "../shared/paths.ts";

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 34why, one step back
34import { ReadingRows, UnreachableNotice } from "../shared/pending.tsx";

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 35–37why, one step back
35import { MetaCode, useRowSelection } from "../shared/row.tsx";
36import { GUTTER } from "../shared/shell/gutter.ts";37import { stageNames, stageRuns } from "../shared/status-line.tsx";

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 38–39why, one step back
38import { AskList, askListIds, openAsks, openToTake } from "./asks.tsx";
39import { LandingList, recentShown } from "./landings.tsx";

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 40why, one step back
40import { CloneSteps } from "./project-header.tsx";

Draw every list and subject from one row, one status line, one family fan and one set of fact blocksoscabrielbefore adoption886b726

line 41why, one step back
41import { ReadmeSection } from "./readme-section.tsx";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 42why, one step back
42

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 43–46why, one step back
43export interface ProjectCode {
44 readonly readme?: FileView | undefined;45 readonly root: TreeListing;46}

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 47why, one step back
47

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 48–54why, one step back
48export interface Deciders {
49 readonly handles: readonly Handle[];50 readonly paths: Glob;51}5253export interface HeldBackArea {54 readonly area: AreaName;

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 55why, one step back
55 readonly checks: number;

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 56–77why, one step back
56 readonly detail: string;
57}5859const noCount = (): readonly (readonly [AreaName, number])[] => [];6061export const heldBackOf = (ledger: Ledger): readonly HeldBackArea[] => {62 const checks = new Map(63 ledger.entries64 .toSorted((a, b) => a.seq - b.seq)65 .flatMap((entry) =>66 LedgerEntry.match(entry, {67 Admitted: noCount,68 CommitmentPublished: ({ area, checks: count }) => [69 [area, count] as const,70 ],71 CountChanged: ({ area, count }) => [[area, count] as const],72 LayerDeclared: noCount,73 PostureChanged: noCount,74 Released: noCount,75 ValueSet: noCount,76 })77 )

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 78–79why, one step back
78 );
79

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 80–83why, one step back
80 return [...checks]
81 .toSorted(([a], [b]) => a.localeCompare(b))82 .map(([area, count]) => ({83 area,

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 84why, one step back
84 checks: count,

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 85–87why, one step back
85 detail: `${count} sealed ${count === 1 ? "check" : "checks"}`,
86 }));87};

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 88why, one step back
88

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 89why, one step back
89/**

Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72

lines 90–91why, one step back
90 * Until its own ledger has said it, the page says no posture, never one it was
91 * not told.

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 92–95why, one step back
92 */
93export type HomeListing = Omit<ProjectListing, "posture"> & {94 readonly posture?: Posture | undefined;95};

Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229

line 96why, one step back
96

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 97–99why, one step back
97export const homeListing = ({
98 asks,99 ledger,

Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229

lines 100–101why, one step back
100 project,
101}: {

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 102–118why, one step back
102 readonly asks: readonly AskListing[] | undefined;
103 readonly ledger: Ledger | undefined;104 readonly project: ProjectName;105}): HomeListing => ({106 openAsks: asks?.length ?? 0,107 posture: ledger?.posture,108 project,109});110111export interface ProjectViewProps {112 readonly asks: readonly AskListing[] | undefined;113 readonly unreachable?: boolean;114 readonly landings: readonly LandingView[];115 readonly listing: HomeListing;116 readonly lastLanded?: DateTime.Utc | undefined;117 readonly heldBack?: readonly HeldBackArea[] | undefined;118 readonly deciders?: readonly Deciders[] | undefined;

Merge build/imported-from into mainoscabrielbefore adoptionf224a14

line 119why, one step back
119 readonly importedFrom?: ImportSource | undefined;

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 120why, one step back
120 readonly now: DateTime.Utc;

Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229

line 121why, one step back
121 readonly platformUrl: string;

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 122–128why, one step back
122 readonly code?: ProjectCode | undefined;
123 readonly parents?: readonly Ask[];124 readonly states?: ReadonlyMap<AskId, AskProgress>;125 readonly stamps?: ReadonlySet<AskId>;126 readonly signedIn?: boolean;127}128

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 129–176why, one step back
129/** A plain bordered surface, its headline first (DESIGN.md "Cards"). */
130const AboutCard = ({131 children,132 id,133 title,134}: {135 readonly title: string;136 readonly id: string;137 readonly children: ReactNode;138}) => (139 <section140 aria-labelledby={id}141 className="border-rule bg-card flex min-w-0 flex-col gap-3 rounded-md border p-4"142 >143 <h2 className="text-ui scroll-mt-(--stick-toolbar) font-semibold" id={id}>144 {title}145 </h2>146 {children}147 </section>148);149150const HowItLands = () => (151 <AboutCard id="how-it-lands" title="How a change lands here">152 <p className="text-ui text-muted-foreground">153 Every answer is checked on the exact tree it would land as, by seven154 stages in turn.155 </p>156 <ol aria-label="Gate stages" className="flex flex-col gap-2">157 {StageName.literals.map((stage, at) => (158 <li className="flex min-w-0 gap-3" data-stage={stage} key={stage}>159 <span className="text-label text-muted-foreground w-4 shrink-0 pt-0.5 text-right tabular-nums">160 {at + 1}161 </span>162 <span className="flex min-w-0 flex-col">163 <span className="text-ui font-medium" data-term="">164 {stageNames(stage).label}165 </span>166 <span className="text-label text-muted-foreground font-normal">167 {stageRuns(stage)}168 </span>169 </span>170 </li>171 ))}172 </ol>173 <Onward to="/docs/landing">How a landing happens</Onward>174 </AboutCard>175);176

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 177–181why, one step back
177const WhoDecides = ({
178 deciders,179 project,180}: {181 readonly deciders: readonly Deciders[] | undefined;

Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229

line 182why, one step back
182 readonly project: ProjectName;

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 183–185why, one step back
183}) => {
184 const shown = deciders?.slice(0, 3) ?? [];185 const more = (deciders?.length ?? 0) - shown.length;

Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229

line 186why, one step back
186

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 187why, one step back
187 return (

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 188why, one step back
188 <AboutCard id="who-decides" title="Who decides">

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 189–209why, one step back
189 {deciders === undefined || deciders.length === 0 ? (
190 <p className="text-ui text-muted-foreground">191 Its policy names who decides for which paths.192 </p>193 ) : (194 <ul className="flex flex-col gap-1">195 {shown.map(({ handles, paths }) => (196 <li className="text-ui min-w-0" key={paths}>197 <MetaCode>{paths}</MetaCode>198 <span className="text-muted-foreground"> · </span>199 {handles.join(", ")}200 </li>201 ))}202 {more > 0 ? (203 <li className="text-ui text-muted-foreground">204 and {plural(more, "set of paths", "sets of paths")} more205 </li>206 ) : null}207 </ul>208 )}209 <Onward to={`/${project}/people`}>Policy</Onward>

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 210why, one step back
210 </AboutCard>

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 211–213why, one step back
211 );
212};213

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 214–273why, one step back
214/** The posture is the header's to say; this card says what is held back and where to read more. */
215const VisibilitySummary = ({216 heldBack,217 project,218}: {219 readonly heldBack: readonly HeldBackArea[] | undefined;220 readonly project: ProjectName;221}) => {222 let held: ReactNode;223224 if (heldBack === undefined) {225 held = null;226 } else if (heldBack.length === 0) {227 held = <p className="text-ui text-muted-foreground">Nothing held back</p>;228 } else {229 held = (230 <ul className="flex flex-col gap-1">231 {heldBack.map(({ area, detail }) => (232 <li233 className="text-ui text-sealed flex items-start gap-2"234 data-area={area}235 key={area}236 >237 <LockKeyhole238 aria-hidden="true"239 className="mt-0.5 size-4 shrink-0"240 strokeWidth={1.75}241 />242 <span className="min-w-0 [overflow-wrap:anywhere]">243 <span className="text-mono font-mono">{area}</span>: {detail}244 </span>245 </li>246 ))}247 </ul>248 );249 }250251 return (252 <AboutCard id="visibility" title="Visibility">253 {held}254 <p className="text-ui flex flex-wrap gap-x-4 gap-y-1">255 <AppLink256 className={LINK}257 hash={LEDGER_ANCHOR}258 to={visibilityPath(project)}259 >260 Ledger261 </AppLink>262 <AppLink263 className={LINK}264 hash={ENVIRONMENT_ANCHOR}265 to={visibilityPath(project)}266 >267 Environment268 </AppLink>269 </p>270 </AboutCard>271 );272};273

Merge build/imported-from into mainoscabrielbefore adoptionf224a14

line 274why, one step back
274const ImportedFrom = ({ source }: { readonly source: ImportSource }) => (

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 275why, one step back
275 <AboutCard id="imported-from" title="Imported from">

Merge build/imported-from into mainoscabrielbefore adoptionf224a14

lines 276–293why, one step back
276 <p className="text-ui">
277 <a278 className={`${LINK} [overflow-wrap:anywhere]`}279 href={source.url}280 rel="noreferrer"281 >282 {source.url}283 </a>284 {source.branch === undefined ? null : (285 <>286 {" "}287 · branch <MetaCode>{source.branch}</MetaCode>288 </>289 )}290 </p>291 <p className="text-ui text-muted-foreground">292 This project is {IMPORTED_NOTE}.293 </p>

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 294why, one step back
294 </AboutCard>

Merge build/imported-from into mainoscabrielbefore adoptionf224a14

lines 295–296why, one step back
295);
296

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 297–324why, one step back
297const About = ({ props }: { readonly props: ProjectViewProps }) => {
298 const { project } = props.listing;299300 return (301 <aside302 aria-label="About"303 className="flex min-w-0 flex-col gap-4"304 data-column="about"305 >306 <AboutCard id="clone" title="Clone">307 <CloneSteps platformUrl={props.platformUrl} project={project} />308 </AboutCard>309 <HowItLands />310 <WhoDecides deciders={props.deciders} project={project} />311 <VisibilitySummary heldBack={props.heldBack} project={project} />312 {props.importedFrom === undefined ? null : (313 <ImportedFrom source={props.importedFrom} />314 )}315 <ForAgents href={`/${project}/llms.txt`} />316 </aside>317 );318};319320const SectionHead = ({321 action,322 count,323 id,324 title,

Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229

line 325why, one step back
325}: {

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 326–329why, one step back
326 readonly id: string;
327 readonly title: string;328 readonly count?: string | undefined;329 readonly action?: ReactNode;

Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229

line 330why, one step back
330}) => (

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 331–341why, one step back
331 <div className="flex min-h-8 flex-wrap items-baseline gap-x-3 gap-y-1">
332 <h2 className="text-title scroll-mt-(--stick-toolbar)" id={id}>333 {title}334 </h2>335 {count === undefined ? null : (336 <span className="text-label text-muted-foreground tabular-nums">337 {count}338 </span>339 )}340 {action === undefined ? null : <span className="ml-auto">{action}</span>}341 </div>

Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229

lines 342–343why, one step back
342);
343

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 344why, one step back
344/**

Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72

lines 345–346why, one step back
345 * Adopting main is not a landing event, so the replay may hold no landing:
346 * never say "nothing landed".

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 347–349why, one step back
347 */
348const RecentLandings = ({349 landedAt,

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 350–352why, one step back
350 landings,
351 now,352 platformUrl,

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 353why, one step back
353 project,

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 354why, one step back
354}: {

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 355why, one step back
355 readonly landedAt: DateTime.Utc | undefined;

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 356–358why, one step back
356 readonly landings: readonly LandingView[];
357 readonly now: DateTime.Utc;358 readonly platformUrl: string;

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 359why, one step back
359 readonly project: ProjectName;

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 360why, one step back
360}) => {

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 361–372why, one step back
361 let shown: ReactNode;
362363 if (landings.length > 0) {364 shown = <LandingList landings={recentShown(landings)} now={now} />;365 } else if (landedAt === undefined) {366 shown = (367 <>368 <p className="text-ui">369 Nothing has landed yet. The first push to main, by whoever ran init,370 lands it.371 </p>372 <CommandLine

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 373why, one step back
373 command={`git push ${platformUrl}/${project}.git HEAD:main`}

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 374–379why, one step back
374 />
375 </>376 );377 } else {378 shown = (379 <p className="text-ui text-muted-foreground">

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 380why, one step back
380 No landings among the recent events of {project}.

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 381–384why, one step back
381 </p>
382 );383 }384

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 385why, one step back
385 return (

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 386–396why, one step back
386 <section
387 aria-labelledby="recent-landings"388 className="flex min-w-0 flex-col gap-2"389 >390 <SectionHead391 action={<Onward to={`/${project}/commits/main`}>Every landing</Onward>}392 id="recent-landings"393 title="Recent landings"394 />395 {shown}396 </section>

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

lines 397–399why, one step back
397 );
398};399

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 400–403why, one step back
400const countOf = (open: readonly AskListing[]) =>
401 `${plural(open.length, "open ask", "open asks")}, ${402 open.filter(openToTake).length403 } open to take`;

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 404–406why, one step back
404
405const AsksSection = ({406 asks,

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 407why, one step back
407 now,

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 408–415why, one step back
408 parents,
409 project,410 selected,411 stamps,412 states,413 unreachable,414}: {415 readonly asks: readonly AskListing[] | undefined;

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 416why, one step back
416 readonly now: DateTime.Utc;

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 417–431why, one step back
417 readonly unreachable: boolean;
418 readonly project: ProjectName;419 readonly parents: readonly Ask[];420 readonly states: ReadonlyMap<AskId, AskProgress>;421 readonly stamps: ReadonlySet<AskId>;422 readonly selected: string | undefined;423}) => {424 let list: ReactNode;425426 if (asks === undefined) {427 list = unreachable ? <UnreachableNotice /> : <ReadingRows />;428 } else if (asks.length === 0) {429 list = (430 <EmptyState431 command={`${Brand.cli} ask open <ask> --files <files>`}

Merge build/maintainer-wording into mainoscabrielbefore adoption4c1a571

line 432why, one step back
432 title="No open asks. A maintainer opens one from an ask file."

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 433–438why, one step back
433 />
434 );435 } else {436 list = (437 <AskList438 asks={asks}

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 439why, one step back
439 now={now}

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 440–453why, one step back
440 parents={parents}
441 project={project}442 selected={selected}443 stamps={stamps}444 states={states}445 />446 );447 }448449 return (450 <section451 aria-labelledby="open-asks"452 className="flex min-w-0 flex-col gap-2"453 >

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 454–458why, one step back
454 <SectionHead
455 count={asks === undefined ? undefined : countOf(openAsks(asks))}456 id="open-asks"457 title="Open asks"458 />

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 459–463why, one step back
459 {list}
460 </section>461 );462};463

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 464–470why, one step back
464/**
465 * The Proposals tab opens this region until a project's proposals have a466 * page of their own, so the tab keeps the project's header and tabs.467 */468const ProposalsSection = ({469 project,470 signedIn,

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 471why, one step back
471}: {

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 472–479why, one step back
472 readonly project: ProjectName;
473 readonly signedIn: boolean;474}) => (475 <section aria-labelledby="proposals" className="flex min-w-0 flex-col gap-2">476 <SectionHead477 action={signedIn ? <ProposeLink project={project} /> : undefined}478 id="proposals"479 title="Proposals"

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 480why, one step back
480 />

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 481–488why, one step back
481 <p className="text-ui text-muted-foreground max-w-(--measure)">
482 A proposal asks a maintainer to open an ask. An agent on the platform483 drafts its ask file and check, and it expires unless a maintainer accepts484 it.485 {signedIn ? null : " Sign in to propose one."}486 </p>487 </section>488);

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 489why, one step back
489

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 490–493why, one step back
490/**
491 * Overview: open asks, recent landings, proposals and the README in the main column,492 * and the about column beside it from `columns`, under it below.493 */

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 494–502why, one step back
494const ProjectPanes = ({
495 props,496 selected,497}: {498 readonly props: ProjectViewProps;499 readonly selected: string | undefined;500}) => {501 const { asks, code, listing } = props;502 const states = props.states ?? new Map<AskId, AskProgress>();

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 503–505why, one step back
503 const { project } = listing;
504505 return (

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 506–519why, one step back
506 <main
507 className="flex min-w-0 flex-1 flex-col outline-none"508 data-scroll-restoration-id="main"509 data-variant="overview"510 id="main"511 tabIndex={-1}512 >513 <CommandSlotProvider slot="main">514 <div515 className={`columns:grid columns:grid-cols-[minmax(0,1fr)_var(--column-about)] columns:items-start flex flex-col gap-10 pt-6 pb-16 ${GUTTER}`}516 >517 <div className="flex min-w-0 flex-col gap-8">518 <AsksSection519 asks={asks}

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 520why, one step back
520 now={props.now}

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 521why, one step back
521 parents={props.parents ?? []}

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 522why, one step back
522 project={project}

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 523–526why, one step back
523 selected={selected}
524 stamps={props.stamps ?? new Set()}525 states={states}526 unreachable={props.unreachable === true}

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

line 527why, one step back
527 />

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 528–548why, one step back
528 <RecentLandings
529 landedAt={props.lastLanded ?? listing.landedAt}530 landings={props.landings}531 now={props.now}532 platformUrl={props.platformUrl}533 project={project}534 />535 <ProposalsSection536 project={project}537 signedIn={props.signedIn === true}538 />539 {code?.readme === undefined ? null : (540 <div className="max-w-(--measure) min-w-0">541 <ReadmeSection file={code.readme} project={project} />542 </div>543 )}544 </div>545 <About props={props} />546 </div>547 </CommandSlotProvider>548 </main>

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 549–550why, one step back
549 );
550};

Merge build/1005oscabrielbefore adoptionb124cbb

line 551why, one step back
551

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 552why, one step back
552const Selectable = ({ props }: { readonly props: ProjectViewProps }) => {

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 553why, one step back
553 const { selected } = useRowSelection(

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 554–557why, one step back
554 props.asks === undefined ? [] : askListIds(props.asks),
555 "ask"556 );557

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 558why, one step back
558 return <ProjectPanes props={props} selected={selected} />;

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 559–560why, one step back
559};
560

Fix the finish review's findings: drafted code draws, counts agree, commands hangoscabrielbefore adoptionf7f6e49

lines 561–567why, one step back
561export const ProjectView = (given: ProjectViewProps) => {
562 const props = {563 ...given,564 asks: given.asks && stillWaiting(given.asks),565 };566567 return Predicate.isNotNullish(useRouter({ warn: false })) ? (

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 568–569why, one step back
568 <Selectable props={props} />
569 ) : (

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 570why, one step back
570 <ProjectPanes props={props} selected={undefined} />

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

line 571why, one step back
571 );

Fix the finish review's findings: drafted code draws, counts agree, commands hangoscabrielbefore adoptionf7f6e49

line 572why, one step back
572};