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 fileTake 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 back1import { 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 back2import { Brand } from "@repo/brand";Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
line 3why, one step back3import type { Ask, AskListing } from "@repo/protocol/domain/ask";Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229
line 4why, one step back4import type { FileView, TreeListing } from "@repo/protocol/domain/code";Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
line 5why, one step back5import 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 back6import 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 back8import { StageName } from "@repo/protocol/domain/outcome";Merge build/imported-from into mainoscabrielbefore adoptionf224a14
line 9why, one step back9import type { ImportSource } from "@repo/protocol/domain/policy";Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 10–14why, one step back10import { 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 back15import { 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 back16import type { DateTime } from "effect";Merge redesign into mainoscabrielbefore adoptioncaedd21
line 17why, one step back17import { LockKeyhole } from "lucide-react";Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
line 18why, one step back18import 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 back19Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 20–21why, one step back20import { 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 back22import { 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 back24import { 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 back25import { CommandLine } from "../shared/command.tsx";26import { EmptyState } from "../shared/empty.tsx";Merge redesign into mainoscabrielbefore adoptioncaedd21
line 27why, one step back27import { CommandSlotProvider } from "../shared/keys.tsx";Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7
line 28why, one step back28import { AppLink } from "../shared/link.tsx";Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 29–33why, one step back29import {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 back34import { ReadingRows, UnreachableNotice } from "../shared/pending.tsx";Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 35–37why, one step back35import { 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 back38import { AskList, askListIds, openAsks, openToTake } from "./asks.tsx";39import { LandingList, recentShown } from "./landings.tsx";Merge redesign into mainoscabrielbefore adoptioncaedd21
line 40why, one step back40import { 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 back41import { 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 back42Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 43–46why, one step back43export 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 back47Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 48–54why, one step back48export 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 back55 readonly checks: number;Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 56–77why, one step back56 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 back78 );79Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 80–83why, one step back80 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 back84 checks: count,Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 85–87why, one step back85 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 back88Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
line 89why, one step back89/**Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72
lines 90–91why, one step back90 * Until its own ledger has said it, the page says no posture, never one it was91 * not told.Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 92–95why, one step back92 */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 back96Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 97–99why, one step back97export const homeListing = ({98 asks,99 ledger,Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229
lines 100–101why, one step back100 project,101}: {Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 102–118why, one step back102 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 back119 readonly importedFrom?: ImportSource | undefined;Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
line 120why, one step back120 readonly now: DateTime.Utc;Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229
line 121why, one step back121 readonly platformUrl: string;Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 122–128why, one step back122 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}128Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 129–176why, one step back129/** 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);176Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 177–181why, one step back177const 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 back182 readonly project: ProjectName;Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 183–185why, one step back183}) => {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 back186Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
line 187why, one step back187 return (Merge redesign into mainoscabrielbefore adoptioncaedd21
line 188why, one step back188 <AboutCard id="who-decides" title="Who decides">Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 189–209why, one step back189 {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 back210 </AboutCard>Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 211–213why, one step back211 );212};213Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 214–273why, one step back214/** 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};273Merge build/imported-from into mainoscabrielbefore adoptionf224a14
line 274why, one step back274const ImportedFrom = ({ source }: { readonly source: ImportSource }) => (Merge redesign into mainoscabrielbefore adoptioncaedd21
line 275why, one step back275 <AboutCard id="imported-from" title="Imported from">Merge build/imported-from into mainoscabrielbefore adoptionf224a14
lines 276–293why, one step back276 <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 back294 </AboutCard>Merge build/imported-from into mainoscabrielbefore adoptionf224a14
lines 295–296why, one step back295);296Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 297–324why, one step back297const 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 back325}: {Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 326–329why, one step back326 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 back330}) => (Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 331–341why, one step back331 <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 back342);343Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
line 344why, one step back344/**Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72
lines 345–346why, one step back345 * 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 back347 */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 back350 landings,351 now,352 platformUrl,Merge redesign into mainoscabrielbefore adoptioncaedd21
line 353why, one step back353 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 back354}: {Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
line 355why, one step back355 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 back356 readonly landings: readonly LandingView[];357 readonly now: DateTime.Utc;358 readonly platformUrl: string;Merge redesign into mainoscabrielbefore adoptioncaedd21
line 359why, one step back359 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 back360}) => {Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 361–372why, one step back361 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 <CommandLineMerge redesign into mainoscabrielbefore adoptioncaedd21
line 373why, one step back373 command={`git push ${platformUrl}/${project}.git HEAD:main`}Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 374–379why, one step back374 />375 </>376 );377 } else {378 shown = (379 <p className="text-ui text-muted-foreground">Merge redesign into mainoscabrielbefore adoptioncaedd21
line 380why, one step back380 No landings among the recent events of {project}.Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 381–384why, one step back381 </p>382 );383 }384Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7
line 385why, one step back385 return (Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 386–396why, one step back386 <section387 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 back397 );398};399Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 400–403why, one step back400const 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 back404405const AsksSection = ({406 asks,Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7
line 407why, one step back407 now,Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 408–415why, one step back408 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 back416 readonly now: DateTime.Utc;Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 417–431why, one step back417 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 back432 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 back433 />434 );435 } else {436 list = (437 <AskList438 asks={asks}Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7
line 439why, one step back439 now={now}Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 440–453why, one step back440 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 back454 <SectionHead455 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 back459 {list}460 </section>461 );462};463Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 464–470why, one step back464/**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 back471}: {Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 472–479why, one step back472 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 back480 />Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 481–488why, one step back481 <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 back489Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 490–493why, one step back490/**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 back494const 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 back503 const { project } = listing;504505 return (Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 506–519why, one step back506 <main507 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 back520 now={props.now}Merge redesign into mainoscabrielbefore adoptioncaedd21
line 521why, one step back521 parents={props.parents ?? []}Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7
line 522why, one step back522 project={project}Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 523–526why, one step back523 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 back527 />Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 528–548why, one step back528 <RecentLandings529 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 back549 );550};Merge build/1005oscabrielbefore adoptionb124cbb
line 551why, one step back551Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
line 552why, one step back552const Selectable = ({ props }: { readonly props: ProjectViewProps }) => {Merge redesign into mainoscabrielbefore adoptioncaedd21
line 553why, one step back553 const { selected } = useRowSelection(Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 554–557why, one step back554 props.asks === undefined ? [] : askListIds(props.asks),555 "ask"556 );557Merge redesign into mainoscabrielbefore adoptioncaedd21
line 558why, one step back558 return <ProjectPanes props={props} selected={selected} />;Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
lines 559–560why, one step back559};560Fix the finish review's findings: drafted code draws, counts agree, commands hangoscabrielbefore adoptionf7f6e49
lines 561–567why, one step back561export 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 back568 <Selectable props={props} />569 ) : (Merge redesign into mainoscabrielbefore adoptioncaedd21
line 570why, one step back570 <ProjectPanes props={props} selected={undefined} />Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd
line 571why, one step back571 );Fix the finish review's findings: drafted code draws, counts agree, commands hangoscabrielbefore adoptionf7f6e49
line 572why, one step back572};