fields.tsx
This file
Path
apps/web/src/features/ask/fields.tsx
71 lines · 1.7 KiB · TypeScript
Last changed by
Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72
History of this fileTake it
The walk stopped after 200 commits: lines older than 678c8b8 point at it.
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 1–11why, one step back1import type { ReactNode } from "react";23export const Fields = ({4 children,5 label,6}: {7 readonly children: ReactNode;8 readonly label: string;9}) => (10 <dl11 aria-label={label}Draw every list and subject from one row, one status line, one family fan and one set of fact blocksoscabrielbefore adoption886b726
line 12why, one step back12 className="border-rule text-ui grid grid-cols-[minmax(6.5rem,max-content)_minmax(0,1fr)] gap-x-6 border-t lg:grid-cols-[minmax(6.5rem,max-content)_minmax(0,1fr)_minmax(6.5rem,max-content)_minmax(0,1fr)]"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 13–25why, one step back13 >14 {children}15 </dl>16);1718export const Field = ({19 children,20 label,21}: {22 readonly children: ReactNode;23 readonly label: string;24}) => (25 <div className="border-rule col-span-2 grid grid-cols-subgrid items-baseline border-b py-2">Draw every list and subject from one row, one status line, one family fan and one set of fact blocksoscabrielbefore adoption886b726
line 26why, one step back26 <dt className="text-label text-muted-foreground">{label}</dt>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 27–30why, one step back27 <dd className="min-w-0 [overflow-wrap:anywhere]">{children}</dd>28 </div>29);30Draw every list and subject from one row, one status line, one family fan and one set of fact blocksoscabrielbefore adoption886b726
lines 31–55why, one step back31export const Definitions = ({32 children,33 label,34}: {35 readonly children: ReactNode;36 readonly label: string;37}) => (38 <dl aria-label={label} className="border-rule flex min-w-0 flex-col border-t">39 {children}40 </dl>41);4243export const Definition = ({44 children,45 term,46}: {47 readonly children: ReactNode;48 readonly term: ReactNode;49}) => (50 <div className="border-rule shell:grid shell:grid-cols-[minmax(8rem,12rem)_minmax(0,1fr)] shell:gap-4 flex min-w-0 flex-col gap-0.5 border-b py-2.5">51 <dt className="text-label text-muted-foreground shell:pt-px">{term}</dt>52 <dd className="text-ui min-w-0 [overflow-wrap:anywhere]">{children}</dd>53 </div>54);55Merge 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 56–65why, one step back56export const Region = ({57 children,58 id,59 title,60}: {61 readonly children: ReactNode;62 readonly id: string;63 readonly title: string;64}) => (65 <section aria-labelledby={id} className="flex min-w-0 flex-col gap-3">Draw every list and subject from one row, one status line, one family fan and one set of fact blocksoscabrielbefore adoption886b726
line 66why, one step back66 <h2 className="text-title" id={id}>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 67–71why, one step back67 {title}68 </h2>69 {children}70 </section>71);