@rtkelly-labs/design-system 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/components/BracketText.js +3 -2
  3. package/dist/components/BracketText.js.map +1 -1
  4. package/dist/components/Button.js.map +1 -1
  5. package/dist/components/Card.js +2 -1
  6. package/dist/components/Card.js.map +1 -1
  7. package/dist/components/DataTable.js.map +1 -1
  8. package/dist/components/Divider.js +21 -14
  9. package/dist/components/Divider.js.map +1 -1
  10. package/dist/components/InlineAction.js.map +1 -1
  11. package/dist/components/PageTitle.js +5 -1
  12. package/dist/components/PageTitle.js.map +1 -1
  13. package/dist/components/ResourceState.js.map +1 -1
  14. package/dist/components/SocialIcon.js.map +1 -1
  15. package/dist/components/StatCard.js +2 -2
  16. package/dist/components/StatCard.js.map +1 -1
  17. package/dist/components/StatusPage.js.map +1 -1
  18. package/dist/components/docs/figures/ActivityGrid.js.map +1 -1
  19. package/dist/components/docs/figures/ChangeSummary.js +68 -25
  20. package/dist/components/docs/figures/ChangeSummary.js.map +1 -1
  21. package/dist/components/docs/figures/FigureFrame.js.map +1 -1
  22. package/dist/components/docs/figures/index.js.map +1 -1
  23. package/dist/components/experiments/ExperimentsView.js.map +1 -1
  24. package/dist/components/marketing/FeatureGrid.js.map +1 -1
  25. package/dist/components/marketing/Hero.js +2 -2
  26. package/dist/components/marketing/Hero.js.map +1 -1
  27. package/dist/components/marketing/PricingGrid.js.map +1 -1
  28. package/dist/components/review/ChangeBar.js +29 -0
  29. package/dist/components/review/ChangeBar.js.map +1 -0
  30. package/dist/components/review/ChangeCount.js +27 -0
  31. package/dist/components/review/ChangeCount.js.map +1 -0
  32. package/dist/components/review/ChangeIndex.js +50 -0
  33. package/dist/components/review/ChangeIndex.js.map +1 -0
  34. package/dist/components/review/DeltaValue.js +87 -0
  35. package/dist/components/review/DeltaValue.js.map +1 -0
  36. package/dist/components/review/DiffView.js +115 -0
  37. package/dist/components/review/DiffView.js.map +1 -0
  38. package/dist/components/review/KeyedDiff.js +43 -0
  39. package/dist/components/review/KeyedDiff.js.map +1 -0
  40. package/dist/components/review/ProvenanceStrip.js +17 -0
  41. package/dist/components/review/ProvenanceStrip.js.map +1 -0
  42. package/dist/components/review/PullRequestPage.js +223 -0
  43. package/dist/components/review/PullRequestPage.js.map +1 -0
  44. package/dist/components/review/ReviewReportPage.js +111 -0
  45. package/dist/components/review/ReviewReportPage.js.map +1 -0
  46. package/dist/components/review/StatusMark.js +32 -0
  47. package/dist/components/review/StatusMark.js.map +1 -0
  48. package/dist/components/review/VerdictBand.js +45 -0
  49. package/dist/components/review/VerdictBand.js.map +1 -0
  50. package/dist/components/review/diff.js +53 -0
  51. package/dist/components/review/diff.js.map +1 -0
  52. package/dist/components/review/index.js +16 -0
  53. package/dist/components/review/index.js.map +1 -0
  54. package/dist/components/review/samples.js +235 -0
  55. package/dist/components/review/samples.js.map +1 -0
  56. package/dist/components/review/vocabulary.js +51 -0
  57. package/dist/components/review/vocabulary.js.map +1 -0
  58. package/dist/components/saas/SaasLandingPage.js +10 -2
  59. package/dist/components/saas/SaasLandingPage.js.map +1 -1
  60. package/dist/index.d.ts +640 -24
  61. package/dist/index.js +2 -1
  62. package/dist/index.js.map +1 -1
  63. package/package.json +8 -2
@@ -0,0 +1,45 @@
1
+ // src/components/review/VerdictBand.tsx
2
+ import * as React from "react";
3
+ import { cn } from "../../lib/recipe.js";
4
+ import { STATUS_TONE_TEXT, statusAppearance } from "./vocabulary.js";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var VerdictBand = React.forwardRef(function VerdictBand2({ outcome, title, children, label, className, ...rest }, ref) {
7
+ const look = statusAppearance("outcome", outcome);
8
+ return /* @__PURE__ */ jsxs(
9
+ "div",
10
+ {
11
+ ref,
12
+ role: "status",
13
+ "data-slot": "verdict-band",
14
+ "data-outcome": outcome,
15
+ ...rest,
16
+ className: cn(
17
+ "grid grid-cols-1 items-center gap-x-4 gap-y-1 border-2 border-edge-strong bg-surface-raised p-4 shadow-hard-md sm:grid-cols-[auto_minmax(0,1fr)]",
18
+ className
19
+ ),
20
+ children: [
21
+ /* @__PURE__ */ jsxs(
22
+ "span",
23
+ {
24
+ "data-slot": "verdict-band-outcome",
25
+ className: cn(
26
+ "inline-flex w-fit items-center gap-2 whitespace-nowrap border-2 border-current px-3 py-2 font-mono text-sm font-bold uppercase leading-none tracking-widest sm:row-span-2",
27
+ look.tone === "hollow" && "border-dashed",
28
+ STATUS_TONE_TEXT[look.tone]
29
+ ),
30
+ children: [
31
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: look.glyph }),
32
+ /* @__PURE__ */ jsx("span", { children: label ?? look.word })
33
+ ]
34
+ }
35
+ ),
36
+ /* @__PURE__ */ jsx("p", { "data-slot": "verdict-band-title", className: "m-0 font-semibold text-content-primary", children: title }),
37
+ children != null ? /* @__PURE__ */ jsx("p", { "data-slot": "verdict-band-context", className: "m-0 text-sm text-content-secondary", children }) : null
38
+ ]
39
+ }
40
+ );
41
+ });
42
+ export {
43
+ VerdictBand
44
+ };
45
+ //# sourceMappingURL=VerdictBand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/review/VerdictBand.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport * as React from 'react';\nimport { cn } from '../../lib/recipe';\nimport { STATUS_TONE_TEXT, statusAppearance, type AssessmentOutcome } from './vocabulary';\n\nexport interface VerdictBandProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {\n /** The Assessment's outcome, or `none` when the report carries no Assessment. */\n outcome: AssessmentOutcome;\n /** One line stating the result, read before anything else on the page. */\n title: ReactNode;\n /** One line of context under it: what was assessed, or how to get a verdict. */\n children?: ReactNode;\n /** Replaces the printed outcome word, for a translated page. */\n label?: string;\n /** Additional classes for the band. */\n className?: string;\n}\n\n/**\n * The verdict, first: one outcome word in a bordered mark, one line saying what it means, one\n * line of context. Sits above the provenance, the figures and everything else in a report, and\n * is the one object in the review family drawn with a strong border and an offset shadow —\n * everything around it steps down to hairlines so the verdict is the thing that stands up.\n *\n * `none` is a state of its own rather than an absence. A report built from a comparison with no\n * policy applied carries no verdict, and says so instead of leaving the reader to infer it from\n * a missing banner.\n */\nexport const VerdictBand = React.forwardRef<HTMLDivElement, VerdictBandProps>(function VerdictBand(\n { outcome, title, children, label, className, ...rest },\n ref,\n) {\n const look = statusAppearance('outcome', outcome);\n return (\n <div\n ref={ref}\n role=\"status\"\n data-slot=\"verdict-band\"\n data-outcome={outcome}\n {...rest}\n className={cn(\n 'grid grid-cols-1 items-center gap-x-4 gap-y-1 border-2 border-edge-strong bg-surface-raised p-4 shadow-hard-md sm:grid-cols-[auto_minmax(0,1fr)]',\n className,\n )}\n >\n <span\n data-slot=\"verdict-band-outcome\"\n className={cn(\n 'inline-flex w-fit items-center gap-2 whitespace-nowrap border-2 border-current px-3 py-2 font-mono text-sm font-bold uppercase leading-none tracking-widest sm:row-span-2',\n look.tone === 'hollow' && 'border-dashed',\n STATUS_TONE_TEXT[look.tone],\n )}\n >\n <span aria-hidden=\"true\">{look.glyph}</span>\n <span>{label ?? look.word}</span>\n </span>\n <p data-slot=\"verdict-band-title\" className=\"m-0 font-semibold text-content-primary\">\n {title}\n </p>\n {children != null ? (\n <p data-slot=\"verdict-band-context\" className=\"m-0 text-sm text-content-secondary\">\n {children}\n </p>\n ) : null}\n </div>\n );\n});\n"],"mappings":";AACA,YAAY,WAAW;AACvB,SAAS,UAAU;AACnB,SAAS,kBAAkB,wBAAgD;AA0CrE,SAQE,KARF;AAjBC,IAAM,cAAoB,iBAA6C,SAASA,aACrF,EAAE,SAAS,OAAO,UAAU,OAAO,WAAW,GAAG,KAAK,GACtD,KACA;AACA,QAAM,OAAO,iBAAiB,WAAW,OAAO;AAChD,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,aAAU;AAAA,MACV,gBAAc;AAAA,MACb,GAAG;AAAA,MACJ,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MAEA;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,aAAU;AAAA,YACV,WAAW;AAAA,cACT;AAAA,cACA,KAAK,SAAS,YAAY;AAAA,cAC1B,iBAAiB,KAAK,IAAI;AAAA,YAC5B;AAAA,YAEA;AAAA,kCAAC,UAAK,eAAY,QAAQ,eAAK,OAAM;AAAA,cACrC,oBAAC,UAAM,mBAAS,KAAK,MAAK;AAAA;AAAA;AAAA,QAC5B;AAAA,QACA,oBAAC,OAAE,aAAU,sBAAqB,WAAU,0CACzC,iBACH;AAAA,QACC,YAAY,OACX,oBAAC,OAAE,aAAU,wBAAuB,WAAU,sCAC3C,UACH,IACE;AAAA;AAAA;AAAA,EACN;AAEJ,CAAC;","names":["VerdictBand"]}
@@ -0,0 +1,53 @@
1
+ // src/components/review/diff.ts
2
+ var HUNK = /^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/;
3
+ function parseUnifiedDiff(text) {
4
+ const hunks = [];
5
+ let current;
6
+ let oldLine = 0;
7
+ let newLine = 0;
8
+ for (const raw of text.replace(/\r\n/g, "\n").replace(/\n$/, "").split("\n")) {
9
+ const header = HUNK.exec(raw);
10
+ if (header) {
11
+ current = { header: raw, lines: [] };
12
+ hunks.push(current);
13
+ oldLine = Number(header[1]);
14
+ newLine = Number(header[2]);
15
+ continue;
16
+ }
17
+ if (!current || raw.startsWith("\\")) continue;
18
+ const sign = raw[0];
19
+ const body = raw.slice(1);
20
+ if (sign === "+") current.lines.push({ kind: "added", newNumber: newLine++, text: body });
21
+ else if (sign === "-") current.lines.push({ kind: "removed", oldNumber: oldLine++, text: body });
22
+ else if (sign === " " || raw === "") current.lines.push({ kind: "context", oldNumber: oldLine++, newNumber: newLine++, text: body });
23
+ }
24
+ return hunks;
25
+ }
26
+ function countDiff(hunks) {
27
+ let added = 0;
28
+ let removed = 0;
29
+ for (const hunk of hunks) {
30
+ for (const line of hunk.lines) {
31
+ if (line.kind === "added") added += 1;
32
+ else if (line.kind === "removed") removed += 1;
33
+ }
34
+ }
35
+ return { added, removed };
36
+ }
37
+ function pathHash(path) {
38
+ let hash = 2166136261;
39
+ for (let i = 0; i < path.length; i++) {
40
+ hash ^= path.charCodeAt(i);
41
+ hash = Math.imul(hash, 16777619) >>> 0;
42
+ }
43
+ return hash.toString(36);
44
+ }
45
+ function diffAnchor(path) {
46
+ return `diff-${path.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "")}-${pathHash(path)}`;
47
+ }
48
+ export {
49
+ countDiff,
50
+ diffAnchor,
51
+ parseUnifiedDiff
52
+ };
53
+ //# sourceMappingURL=diff.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/review/diff.ts"],"sourcesContent":["/**\n * The data a line diff is drawn from, and a reader for the unified format every diff tool emits.\n *\n * Kept apart from the component so a generator — a CLI, a CI step, a report written in TSX — can\n * turn `git diff` output into `DiffHunk[]` without rendering anything.\n */\n\nimport type { ReactNode } from 'react';\n\nexport type DiffLineKind = 'added' | 'removed' | 'context';\n\n/** A review comment pinned under one line of a diff. */\nexport interface DiffLineComment {\n /** Who wrote it: a person's handle, or a tool's name. */\n author: string;\n /** Short annotation beside the author, such as `suggestion` or a timestamp. Pre-formatted. */\n meta?: string;\n /** The comment itself. */\n body: ReactNode;\n}\n\nexport interface DiffLine {\n /** Whether the line was added, removed, or is unchanged context. */\n kind: DiffLineKind;\n /** Line number in the baseline. Absent on an added line. */\n oldNumber?: number;\n /** Line number in the candidate. Absent on a removed line. */\n newNumber?: number;\n /** The line without its leading sign. */\n text: string;\n /** Review comments drawn under the line, in order. */\n comments?: readonly DiffLineComment[];\n}\n\nexport interface DiffHunk {\n /** The `@@ -a,b +c,d @@ …` header, as the diff printed it. */\n header: string;\n /** The hunk's lines, in file order. */\n lines: DiffLine[];\n}\n\nconst HUNK = /^@@ -(\\d+)(?:,\\d+)? \\+(\\d+)(?:,\\d+)? @@/;\n\n/**\n * Reads the hunks of one file's unified diff. File headers (`diff --git`, `---`, `+++`, `index`)\n * are skipped; `\` is dropped. Lines before the first hunk are ignored.\n */\nexport function parseUnifiedDiff(text: string): DiffHunk[] {\n const hunks: DiffHunk[] = [];\n let current: DiffHunk | undefined;\n let oldLine = 0;\n let newLine = 0;\n for (const raw of text.replace(/\\r\\n/g, '\\n').replace(/\\n$/, '').split('\\n')) {\n const header = HUNK.exec(raw);\n if (header) {\n current = { header: raw, lines: [] };\n hunks.push(current);\n oldLine = Number(header[1]);\n newLine = Number(header[2]);\n continue;\n }\n if (!current || raw.startsWith('\\\\')) continue;\n const sign = raw[0];\n const body = raw.slice(1);\n if (sign === '+') current.lines.push({ kind: 'added', newNumber: newLine++, text: body });\n else if (sign === '-') current.lines.push({ kind: 'removed', oldNumber: oldLine++, text: body });\n else if (sign === ' ' || raw === '') current.lines.push({ kind: 'context', oldNumber: oldLine++, newNumber: newLine++, text: body });\n }\n return hunks;\n}\n\n/** Added and removed line counts across hunks. */\nexport function countDiff(hunks: readonly DiffHunk[]): { added: number; removed: number } {\n let added = 0;\n let removed = 0;\n for (const hunk of hunks) {\n for (const line of hunk.lines) {\n if (line.kind === 'added') added += 1;\n else if (line.kind === 'removed') removed += 1;\n }\n }\n return { added, removed };\n}\n\n/** FNV-1a over UTF-16 code units, as base 36: short, stable, and different for different paths. */\nfunction pathHash(path: string): string {\n let hash = 0x811c9dc5;\n for (let i = 0; i < path.length; i++) {\n hash ^= path.charCodeAt(i);\n hash = Math.imul(hash, 0x01000193) >>> 0;\n }\n return hash.toString(36);\n}\n\n/**\n * The anchor a file's diff is reachable at: `metrics/duplication.txt` becomes\n * `diff-metrics-duplication-txt-<hash>`. The slug keeps it readable; the hash of\n * the exact path keeps it unique, since `src/foo-bar.ts` and `src/foo/bar.ts`\n * slug the same.\n */\nexport function diffAnchor(path: string): string {\n return `diff-${path.toLowerCase().replace(/[^a-z0-9]+/g,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WAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,YAAQ,KAAK,WAAW,CAAC;AACzB,WAAO,KAAK,KAAK,MAAM,QAAU,MAAM;AAAA,EACzC;AACA,SAAO,KAAK,SAAS,EAAE;AACzB;AAQO,SAAS,WAAW,MAAsB;AAC/C,SAAO,QAAQ,KAAK,YAAY,EAAE,QAAQ,eAAe,GAAG,EAAE,QAAQ,UAAU,EAAE,CAAC,IAAI,SAAS,IAAI,CAAC;AACvG;","names":[]}
@@ -0,0 +1,16 @@
1
+ // src/components/review/index.ts
2
+ export { STATUS_APPEARANCE, STATUS_TONE_TEXT, statusAppearance } from "./vocabulary.js";
3
+ export { countDiff, diffAnchor, parseUnifiedDiff } from "./diff.js";
4
+ export { StatusMark } from "./StatusMark.js";
5
+ export { VerdictBand } from "./VerdictBand.js";
6
+ export { ProvenanceStrip } from "./ProvenanceStrip.js";
7
+ export { DEFAULT_SIGNIFICANCE, DeltaValue, deltaSignificance, deltaTrend, trendTone } from "./DeltaValue.js";
8
+ export { ChangeCount } from "./ChangeCount.js";
9
+ export { ChangeBar } from "./ChangeBar.js";
10
+ export { ChangeIndex } from "./ChangeIndex.js";
11
+ export { DiffView } from "./DiffView.js";
12
+ export { KeyedDiff } from "./KeyedDiff.js";
13
+ export { ReviewReportPage } from "./ReviewReportPage.js";
14
+ export { PullRequestPage } from "./PullRequestPage.js";
15
+ export { DEFAULT_PULL_REQUEST, DEFAULT_REVIEW_REPORT, SAMPLE_BASELINE_COMMIT, SAMPLE_CALLGRAPH_HUNKS, SAMPLE_DUPLICATION_HUNKS, SAMPLE_METRICS_HUNKS } from "./samples.js";
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/review/index.ts"],"sourcesContent":["// Reviewing a change: the verdict, its provenance, and what moved — measured, counted and\n// drawn line by line. Every component here is static-safe, so a generated report can use any of\n// them with no client script; colours are `delta` roles for change and `intent` roles only for\n// a status, never the other way round.\nexport * from './vocabulary';\nexport * from './diff';\nexport * from './StatusMark';\nexport * from './VerdictBand';\nexport * from './ProvenanceStrip';\nexport * from './DeltaValue';\nexport * from './ChangeCount';\nexport * from './ChangeBar';\nexport * from './ChangeIndex';\nexport * from './DiffView';\nexport * from './KeyedDiff';\n// Whole pages, with sample data to start from.\nexport * from './ReviewReportPage';\nexport * from './PullRequestPage';\nexport * from './samples';\n"],"mappings":";AAIA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,235 @@
1
+ // src/components/review/samples.ts
2
+ import { createElement } from "react";
3
+ import { StatusMark } from "./StatusMark.js";
4
+ import { parseUnifiedDiff } from "./diff.js";
5
+ var SAMPLE_BASELINE_COMMIT = "216f6fc28cec75077f5b8fa90cd3d7055e81db7b";
6
+ var SAMPLE_DUPLICATION_HUNKS = parseUnifiedDiff(`@@ -5,7 +5,7 @@
7
+ # Method ids are RELATIVE-PATH:Type.Method. No line numbers: a refactor that
8
+ # moves code without changing overlap must not change this report.
9
+ # Emitted/generated code is out of scope by design.
10
+ -# totals: clusters=63 duplicated-tokens=8418
11
+ +# totals: clusters=63 duplicated-tokens=8398
12
+ K | span=173 copies=2 | ParquetLegacyIncrementalGenerator.Initialize | ParquetIncrementalGenerator.Initialize
13
+ K | span=147 copies=2 | CodeEmitter.EmitPropertyAssignments | CodeEmitter.EmitPropertyAssignmentsIndexed
14
+ @@ -28,7 +28,6 @@ K | span=70 copies=2
15
+ K | span=69 copies=2 | CodeEmitter.EmitReadBufferSequentialArrayAsync | CodeEmitter.EmitReadStreamAsync
16
+ K | span=67 copies=2 | VectorizedColumnTransforms.Widen | VectorizedColumnTransforms.Widen
17
+ -K | span=67 copies=2 | SchemaComponent.EmitSchema | CompoundSchema.EmitSchema
18
+ K | span=63 copies=2 | VectorizedColumnTransforms.MultiplyScale | VectorizedColumnTransforms.MultiplyScale
19
+ @@ -39,6 +38,7 @@ K | span=60 copies=2
20
+ K | span=58 copies=2 | VectorizedColumnTransforms.MultiplyScale | VectorizedColumnTransforms.Widen
21
+ +K | span=57 copies=2 | SchemaComponent.EmitSchema | CompoundSchema.EmitSchema
22
+ K | span=55 copies=2 | VectorizedColumnTransforms.ConvertEpochMicrosecondsToTicks | VectorizedColumnTransforms.Narrow
23
+ `);
24
+ var SAMPLE_METRICS_HUNKS = parseUnifiedDiff(`@@ -5,7 +5,7 @@
25
+ # MI maintainability index 0-100 (higher is better), CC cyclomatic complexity,
26
+ # CL class coupling, DIT depth of inheritance, SLOC source lines, ELOC executable lines.
27
+ # Ordinal-sorted, so two reports diff cleanly.
28
+ -A:Parquet.SourceGenerator | MI=76 CC=1328 CL=155 DIT=1 SLOC=13950 ELOC=4631
29
+ +A:Parquet.SourceGenerator | MI=76 CC=1346 CL=155 DIT=1 SLOC=14021 ELOC=4642
30
+ @@ -200,11 +200,12 @@
31
+ M:SchemaComponent.EmitResolveSchemaField(StringBuilder, bool, bool) | MI=31 CC=2 CL=1 SLOC=196 ELOC=115
32
+ -M:SchemaComponent.EmitSchema(StringBuilder, TargetClassModel) | MI=62 CC=3 CL=4 SLOC=23 ELOC=9
33
+ +M:SchemaComponent.EmitSchema(StringBuilder, TargetClassModel, bool) | MI=60 CC=3 CL=4 SLOC=27 ELOC=10
34
+ M:SchemaComponent.EmitStaticFields(StringBuilder, TargetClassModel) | MI=81 CC=2 CL=4 SLOC=12 ELOC=2
35
+ -M:SchemaComponent.GetFieldCreationExpression(PropertyModel) | MI=73 CC=5 CL=4 SLOC=46 ELOC=2
36
+ +M:SchemaComponent.GetFieldConstructorExpression(PropertyModel) | MI=72 CC=8 CL=4 SLOC=55 ELOC=2
37
+ +M:SchemaComponent.GetFieldCreationExpression(PropertyModel, bool) | MI=78 CC=3 CL=2 SLOC=15 ELOC=2
38
+ M:SchemaComponent.PathText(string, bool) | MI=95 CC=2 CL=0 SLOC=9 ELOC=1
39
+ @@ -427,8 +432,9 @@
40
+ -M:TargetParser.ReadColumnOptions(ISymbol) | MI=47 CC=21 CL=7 SLOC=75 ELOC=21
41
+ +M:TargetParser.ReadColumnOptions(ISymbol) | MI=45 CC=24 CL=8 SLOC=78 ELOC=23
42
+ +M:TargetParser.ReadTimestampAdjustedToUtc(ISymbol) | MI=69 CC=5 CL=5 SLOC=22 ELOC=5
43
+ M:TargetParser.ReadTimestampUnit(ISymbol) | MI=74 CC=4 CL=4 SLOC=18 ELOC=4
44
+ `);
45
+ var SAMPLE_CALLGRAPH_HUNKS = parseUnifiedDiff(`@@ -5,7 +5,7 @@
46
+ -# stats: nodes=311 edges=529 call-sites=4141 unresolved=3462
47
+ +# stats: nodes=313 edges=530 call-sites=4147 unresolved=3466
48
+ @@ -105,7 +105,6 @@
49
+ E:CodeEmitter.EmitResolveSchemaField/(StringBuilder) | SchemaComponent.EmitResolveSchemaField/(StringBuilder,bool,bool)
50
+ -E:CodeEmitter.EmitSchema/(StringBuilder,TargetClassModel) | SchemaComponent.EmitSchema/(StringBuilder,TargetClassModel)
51
+ E:CodeEmitter.EmitSchemaHelpers/(StringBuilder) | SchemaComponent.EmitStaticFields/(StringBuilder,TargetClassModel)
52
+ `);
53
+ var lower = "lower-is-better";
54
+ var higher = "higher-is-better";
55
+ var DEFAULT_REVIEW_REPORT = {
56
+ title: "Parquet.SourceGenerator review",
57
+ subtitle: "Derived outputs for the FieldId and AdjustedToUtc change, compared with the merge base.",
58
+ meta: [
59
+ { label: "Document", value: "Delta \xB7 candidate vs merge-base" },
60
+ { label: "Comparator", value: "text.normalized@1 \xB7 complexity.v1" },
61
+ { label: "Delta", value: "changed" },
62
+ { label: "Policy", value: "none applied" }
63
+ ],
64
+ outcome: "none",
65
+ verdict: "Delta only. No Assessment was supplied, so nothing below is a pass or a fail.",
66
+ verdictContext: "Run the policy step to get an outcome. The comparison stays the same either way.",
67
+ provenance: [
68
+ { label: "Subject", value: "Parquet.SourceGenerator", note: "candidate \xB7 pull request head" },
69
+ { label: "Baseline role", value: "merge-base", note: "what did this change?" },
70
+ { label: "Baseline commit", value: SAMPLE_BASELINE_COMMIT },
71
+ { label: "Source store", value: "CI artifact", note: "derived-baseline-216f6fc \xB7 run 39335334212" },
72
+ { label: "Trust", value: createElement(StatusMark, { vocabulary: "trust", status: "candidate" }), note: "no promotion record, so it cannot gate" },
73
+ { label: "Manifest digest", value: createElement(StatusMark, { vocabulary: "evidence", status: "unavailable", label: "not recorded" }) }
74
+ ],
75
+ figures: [
76
+ { label: "Derived files", value: "7", note: "+77 \u221250 lines" },
77
+ { label: "Source files", value: "10", note: "+242 \u22127 lines" },
78
+ { label: "Members added", value: "30", note: "6 removed \xB7 29 changed" },
79
+ { label: "Test methods", value: "+4", note: "counted by [Fact] and [Theory]" }
80
+ ],
81
+ measurements: [
82
+ {
83
+ caption: "Hand-written code \xB7 complexity.v1",
84
+ identityLabel: "Assembly",
85
+ columns: [
86
+ { label: "Maintainability", direction: higher },
87
+ { label: "Complexity", direction: lower },
88
+ { label: "Coupling", direction: lower },
89
+ { label: "Executable lines" }
90
+ ],
91
+ rows: [
92
+ { identity: "\u2026Attributes", values: [{ before: 88, after: 88 }, { before: 194, after: 198 }, { before: 33, after: 33 }, { before: 231, after: 233 }] },
93
+ { identity: "\u2026Legacy", values: [{ before: 79, after: 79 }, { before: 650, after: 668 }, { before: 132, after: 132 }, { before: 1936, after: 1947 }] },
94
+ { identity: "Parquet.SourceGenerator", values: [{ before: 76, after: 76 }, { before: 1328, after: 1346 }, { before: 155, after: 155 }, { before: 4631, after: 4642 }] }
95
+ ]
96
+ },
97
+ {
98
+ caption: "Duplication and call graph",
99
+ identityLabel: "Measure",
100
+ columns: [{ label: "Value" }],
101
+ rows: [
102
+ { identity: "Duplicated tokens", values: [{ before: 8418, after: 8398, direction: lower }] },
103
+ { identity: "Call-graph nodes", values: [{ before: 311, after: 313 }] },
104
+ { identity: "Call-graph edges", values: [{ before: 529, after: 530 }] }
105
+ ]
106
+ }
107
+ ],
108
+ records: {
109
+ caption: "Methods by stable id \xB7 complexity.v1",
110
+ identityLabel: "Member",
111
+ columns: [
112
+ { label: "CC", direction: lower },
113
+ { label: "SLOC" }
114
+ ],
115
+ rows: [
116
+ { identity: "SchemaComponent.EmitSchema(StringBuilder, TargetClassModel, bool)", change: "changed", values: [{ before: 3, after: 3 }, { before: 23, after: 27 }] },
117
+ { identity: "SchemaComponent.GetFieldCreationExpression(PropertyModel, bool)", change: "changed", values: [{ before: 5, after: 3 }, { before: 46, after: 15 }] },
118
+ { identity: "SchemaComponent.GetFieldConstructorExpression(PropertyModel)", change: "added", values: [{ after: 8 }, { after: 55 }] },
119
+ { identity: "TargetParser.ReadColumnOptions(ISymbol)", change: "changed", values: [{ before: 21, after: 24 }, { before: 75, after: 78 }] },
120
+ { identity: "TargetParser.ReadTimestampAdjustedToUtc(ISymbol)", change: "added", values: [{ after: 5 }, { after: 22 }] }
121
+ ]
122
+ },
123
+ caveats: [
124
+ {
125
+ title: "Methodology \xB7 call-graph coverage",
126
+ body: "Only 16% of call sites resolve in the main generator (681 of 4,147). An edge that disappears, such as CodeEmitter.EmitSchema \u2192 SchemaComponent.EmitSchema after EmitSchema gained a bool parameter, is more likely a resolution miss than a removed call."
127
+ }
128
+ ],
129
+ files: [
130
+ { title: "Duplication", files: [{ path: "metrics/duplication.txt", hunks: SAMPLE_DUPLICATION_HUNKS }] },
131
+ { title: "Hand-written code metrics", files: [{ path: "metrics/Parquet.SourceGenerator.metrics.txt", hunks: SAMPLE_METRICS_HUNKS }] },
132
+ { title: "Call graph", files: [{ path: "callgraph/Parquet.SourceGenerator.callgraph.txt", hunks: SAMPLE_CALLGRAPH_HUNKS }] }
133
+ ]
134
+ };
135
+ var PARSER_HUNKS = parseUnifiedDiff(`@@ -212,14 +212,17 @@ internal static ColumnOptions ReadColumnOptions(ISymbol symbol)
136
+ var attribute = FindAttribute(symbol, ColumnAttributeNames, ColumnAttributeNamespaces);
137
+ if (attribute is null) return ColumnOptions.Default;
138
+ var name = ReadNamedString(attribute, "Name");
139
+ var order = ReadNamedInt(attribute, "Order") ?? int.MaxValue;
140
+ + var fieldId = ReadNamedInt(attribute, "FieldId");
141
+ + if (fieldId is < 0) throw new InvalidFieldIdException(symbol, fieldId.Value);
142
+ var deduplicate = ReadNamedBool(attribute, "Deduplicate");
143
+ var encoding = ReadEncoding(attribute);
144
+ var required = ReadNamedBool(attribute, "Required");
145
+ - return new ColumnOptions(name, order, deduplicate, encoding, required);
146
+ + return new ColumnOptions(name, order, deduplicate, encoding, required, fieldId);
147
+ }
148
+ `);
149
+ PARSER_HUNKS[0].lines[5].comments = [
150
+ {
151
+ author: "diffra",
152
+ meta: "complexity.v1 \xB7 bot",
153
+ body: "ReadColumnOptions: cyclomatic complexity 21 \u2192 24 (+3), against the preferred direction. No policy applied, so this is a measurement, not a finding."
154
+ },
155
+ {
156
+ author: "marlow",
157
+ meta: "suggestion",
158
+ body: "Could the range check live in ColumnOptions instead? Then the Legacy path gets it for free."
159
+ }
160
+ ];
161
+ var ATTRIBUTE_HUNKS = parseUnifiedDiff(`@@ -41,6 +41,15 @@ public sealed class ParquetColumnAttribute : Attribute
162
+ /// <summary>Overrides the column's dictionary and encoding choice.</summary>
163
+ public ParquetColumnEncoding Encoding { get; set; }
164
+
165
+ + /// <summary>
166
+ + /// The Parquet field id written to the schema, for readers that resolve columns
167
+ + /// by id rather than by name. Unset writes no id.
168
+ + /// </summary>
169
+ + public int FieldId
170
+ + {
171
+ + get => _fieldId ?? -1;
172
+ + set => _fieldId = value;
173
+ + }
174
+ /// <summary>The column name. Defaults to the property name.</summary>
175
+ public string? Name { get; set; }
176
+ `);
177
+ ATTRIBUTE_HUNKS[0].lines[7].comments = [
178
+ {
179
+ author: "kestrel",
180
+ meta: "question",
181
+ body: 'Returning -1 for "unset" leaks into the public API. Would a nullable int read better here?'
182
+ }
183
+ ];
184
+ var DEFAULT_PULL_REQUEST = {
185
+ repository: "rtkelly-labs/Parquet.SourceGenerator",
186
+ number: 412,
187
+ title: "feat(schema): FieldId and AdjustedToUtc on column attributes",
188
+ state: "open",
189
+ author: "rtkelly13",
190
+ base: "main",
191
+ head: "feat/field-id",
192
+ opened: "opened 23 Oct 2026",
193
+ labels: ["schema", "public-api"],
194
+ description: [
195
+ "Adds FieldId to ParquetColumnAttribute and AdjustedToUtc to ParquetTimestampAttribute, and threads both through PropertyModel and TargetParser so the emitted schema writes them.",
196
+ "Shipped API grows by four members. Generated golden files are unchanged for models that set neither property."
197
+ ],
198
+ reviewers: [
199
+ { name: "kestrel", state: "changes-requested" },
200
+ { name: "marlow", state: "commented" },
201
+ { name: "diffra", state: "commented" },
202
+ { name: "tamsin", state: "pending" }
203
+ ],
204
+ checks: [
205
+ { name: "ci / build-and-test", status: "pass", summary: "1,317 tests, 0 failed", duration: "6m 12s" },
206
+ { name: "ci / golden-files", status: "pass", summary: "42 golden files unchanged", duration: "1m 48s" },
207
+ { name: "api / shipped-surface", status: "needs-review", summary: "4 members added to PublicAPI.Unshipped.txt", duration: "34s" },
208
+ { name: "diffra / derived-outputs", status: "none", summary: "Delta only: 7 derived files changed, no policy applied", duration: "2m 03s" },
209
+ { name: "coverage / patch", status: "warn", summary: "81% of changed lines covered, below the 85% target", duration: "58s" },
210
+ { name: "docs / link-check", status: "inconclusive", label: "pending", summary: "Queued behind 3 runs" }
211
+ ],
212
+ verdict: {
213
+ outcome: "none",
214
+ title: "Diffra compared 7 derived files with the merge base. No policy was applied.",
215
+ context: "Complexity rose by 18 in two assemblies and duplicated tokens fell by 20."
216
+ },
217
+ conversation: [
218
+ { author: "diffra", meta: "bot \xB7 4 minutes after opening", body: "Derived outputs changed: +77 \u221250 across 7 files. The baseline is a CI artifact with no promotion record, so this comparison cannot gate." },
219
+ { author: "kestrel", meta: "requested changes", body: "The FieldId sentinel needs another look before this goes in. Comments are inline." }
220
+ ],
221
+ files: [
222
+ { path: "src/Parquet.SourceGenerator/Parser/TargetParser.cs", hunks: PARSER_HUNKS },
223
+ { path: "src/Parquet.SourceGenerator.Attributes/ParquetColumnAttribute.cs", hunks: ATTRIBUTE_HUNKS },
224
+ { path: "metrics/Parquet.SourceGenerator.metrics.txt", hunks: SAMPLE_METRICS_HUNKS }
225
+ ]
226
+ };
227
+ export {
228
+ DEFAULT_PULL_REQUEST,
229
+ DEFAULT_REVIEW_REPORT,
230
+ SAMPLE_BASELINE_COMMIT,
231
+ SAMPLE_CALLGRAPH_HUNKS,
232
+ SAMPLE_DUPLICATION_HUNKS,
233
+ SAMPLE_METRICS_HUNKS
234
+ };
235
+ //# sourceMappingURL=samples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/review/samples.ts"],"sourcesContent":["/**\n * Sample data for the review pages: one real comparison, trimmed.\n *\n * Parquet.SourceGenerator's derived outputs for one pull request, compared with its merge base\n * 216f6fc — complexity metrics, duplication clusters and the call graph. The figures are the\n * ones that comparison reported. The source diff and the review conversation around it are\n * written for the sample, and say so.\n *\n * Plain `.ts` with `createElement` rather than JSX: this is data, not a component, and the\n * component gates read every `.tsx` under `components/` as one.\n *\n * Exported so a consumer can render either page whole, and so the stories and the applied site\n * read one copy instead of two.\n */\n\nimport { createElement } from 'react';\nimport { StatusMark } from './StatusMark';\nimport { parseUnifiedDiff, type DiffHunk } from './diff';\nimport type { PullRequestData } from './PullRequestPage';\nimport type { ReviewReportData } from './ReviewReportPage';\n\nexport const SAMPLE_BASELINE_COMMIT = '216f6fc28cec75077f5b8fa90cd3d7055e81db7b';\n\nexport const SAMPLE_DUPLICATION_HUNKS: DiffHunk[] = parseUnifiedDiff(`@@ -5,7 +5,7 @@\n # Method ids are RELATIVE-PATH:Type.Method. No line numbers: a refactor that\n # moves code without changing overlap must not change this report.\n # Emitted/generated code is out of scope by design.\n-# totals: clusters=63 duplicated-tokens=8418\n+# totals: clusters=63 duplicated-tokens=8398\n K | span=173 copies=2 | ParquetLegacyIncrementalGenerator.Initialize | ParquetIncrementalGenerator.Initialize\n K | span=147 copies=2 | CodeEmitter.EmitPropertyAssignments | CodeEmitter.EmitPropertyAssignmentsIndexed\n@@ -28,7 +28,6 @@ K | span=70 copies=2\n K | span=69 copies=2 | CodeEmitter.EmitReadBufferSequentialArrayAsync | CodeEmitter.EmitReadStreamAsync\n K | span=67 copies=2 | VectorizedColumnTransforms.Widen | VectorizedColumnTransforms.Widen\n-K | span=67 copies=2 | SchemaComponent.EmitSchema | CompoundSchema.EmitSchema\n K | span=63 copies=2 | VectorizedColumnTransforms.MultiplyScale | VectorizedColumnTransforms.MultiplyScale\n@@ -39,6 +38,7 @@ K | span=60 copies=2\n K | span=58 copies=2 | VectorizedColumnTransforms.MultiplyScale | VectorizedColumnTransforms.Widen\n+K | span=57 copies=2 | SchemaComponent.EmitSchema | CompoundSchema.EmitSchema\n K | span=55 copies=2 | VectorizedColumnTransforms.ConvertEpochMicrosecondsToTicks | VectorizedColumnTransforms.Narrow\n`);\n\nexport const SAMPLE_METRICS_HUNKS: DiffHunk[] = parseUnifiedDiff(`@@ -5,7 +5,7 @@\n # MI maintainability index 0-100 (higher is better), CC cyclomatic complexity,\n # CL class coupling, DIT depth of inheritance, SLOC source lines, ELOC executable lines.\n # Ordinal-sorted, so two reports diff cleanly.\n-A:Parquet.SourceGenerator | MI=76 CC=1328 CL=155 DIT=1 SLOC=13950 ELOC=4631\n+A:Parquet.SourceGenerator | MI=76 CC=1346 CL=155 DIT=1 SLOC=14021 ELOC=4642\n@@ -200,11 +200,12 @@\n M:SchemaComponent.EmitResolveSchemaField(StringBuilder, bool, bool) | MI=31 CC=2 CL=1 SLOC=196 ELOC=115\n-M:SchemaComponent.EmitSchema(StringBuilder, TargetClassModel) | MI=62 CC=3 CL=4 SLOC=23 ELOC=9\n+M:SchemaComponent.EmitSchema(StringBuilder, TargetClassModel, bool) | MI=60 CC=3 CL=4 SLOC=27 ELOC=10\n M:SchemaComponent.EmitStaticFields(StringBuilder, TargetClassModel) | MI=81 CC=2 CL=4 SLOC=12 ELOC=2\n-M:SchemaComponent.GetFieldCreationExpression(PropertyModel) | MI=73 CC=5 CL=4 SLOC=46 ELOC=2\n+M:SchemaComponent.GetFieldConstructorExpression(PropertyModel) | MI=72 CC=8 CL=4 SLOC=55 ELOC=2\n+M:SchemaComponent.GetFieldCreationExpression(PropertyModel, bool) | MI=78 CC=3 CL=2 SLOC=15 ELOC=2\n M:SchemaComponent.PathText(string, bool) | MI=95 CC=2 CL=0 SLOC=9 ELOC=1\n@@ -427,8 +432,9 @@\n-M:TargetParser.ReadColumnOptions(ISymbol) | MI=47 CC=21 CL=7 SLOC=75 ELOC=21\n+M:TargetParser.ReadColumnOptions(ISymbol) | MI=45 CC=24 CL=8 SLOC=78 ELOC=23\n+M:TargetParser.ReadTimestampAdjustedToUtc(ISymbol) | MI=69 CC=5 CL=5 SLOC=22 ELOC=5\n M:TargetParser.ReadTimestampUnit(ISymbol) | MI=74 CC=4 CL=4 SLOC=18 ELOC=4\n`);\n\nexport const SAMPLE_CALLGRAPH_HUNKS: DiffHunk[] = parseUnifiedDiff(`@@ -5,7 +5,7 @@\n-# stats: nodes=311 edges=529 call-sites=4141 unresolved=3462\n+# stats: nodes=313 edges=530 call-sites=4147 unresolved=3466\n@@ -105,7 +105,6 @@\n E:CodeEmitter.EmitResolveSchemaField/(StringBuilder) | SchemaComponent.EmitResolveSchemaField/(StringBuilder,bool,bool)\n-E:CodeEmitter.EmitSchema/(StringBuilder,TargetClassModel) | SchemaComponent.EmitSchema/(StringBuilder,TargetClassModel)\n E:CodeEmitter.EmitSchemaHelpers/(StringBuilder) | SchemaComponent.EmitStaticFields/(StringBuilder,TargetClassModel)\n`);\n\nconst lower = 'lower-is-better' as const;\nconst higher = 'higher-is-better' as const;\n\nexport const DEFAULT_REVIEW_REPORT: ReviewReportData = {\n title: 'Parquet.SourceGenerator review',\n subtitle: 'Derived outputs for the FieldId and AdjustedToUtc change, compared with the merge base.',\n meta: [\n { label: 'Document', value: 'Delta · candidate vs merge-base' },\n { label: 'Comparator', value: 'text.normalized@1 · complexity.v1' },\n { label: 'Delta', value: 'changed' },\n { label: 'Policy', value: 'none applied' },\n ],\n outcome: 'none',\n verdict: 'Delta only. No Assessment was supplied, so nothing below is a pass or a fail.',\n verdictContext: 'Run the policy step to get an outcome. The comparison stays the same either way.',\n provenance: [\n { label: 'Subject', value: 'Parquet.SourceGenerator', note: 'candidate · pull request head' },\n { label: 'Baseline role', value: 'merge-base', note: 'what did this change?' },\n { label: 'Baseline commit', value: SAMPLE_BASELINE_COMMIT },\n { label: 'Source store', value: 'CI artifact', note: 'derived-baseline-216f6fc · run 39335334212' },\n { label: 'Trust', value: createElement(StatusMark, { vocabulary: 'trust', status: 'candidate' }), note: 'no promotion record, so it cannot gate' },\n { label: 'Manifest digest', value: createElement(StatusMark, { vocabulary: 'evidence', status: 'unavailable', label: 'not recorded' }) },\n ],\n figures: [\n { label: 'Derived files', value: '7', note: '+77 −50 lines' },\n { label: 'Source files', value: '10', note: '+242 −7 lines' },\n { label: 'Members added', value: '30', note: '6 removed · 29 changed' },\n { label: 'Test methods', value: '+4', note: 'counted by [Fact] and [Theory]' },\n ],\n measurements: [\n {\n caption: 'Hand-written code · complexity.v1',\n identityLabel: 'Assembly',\n columns: [\n { label: 'Maintainability', direction: higher },\n { label: 'Complexity', direction: lower },\n { label: 'Coupling', direction: lower },\n { label: 'Executable lines' },\n ],\n rows: [\n { identity: '…Attributes', values: [{ before: 88, after: 88 }, { before: 194, after: 198 }, { before: 33, after: 33 }, { before: 231, after: 233 }] },\n { identity: '…Legacy', values: [{ before: 79, after: 79 }, { before: 650, after: 668 }, { before: 132, after: 132 }, { before: 1936, after: 1947 }] },\n { identity: 'Parquet.SourceGenerator', values: [{ before: 76, after: 76 }, { before: 1328, after: 1346 }, { before: 155, after: 155 }, { before: 4631, after: 4642 }] },\n ],\n },\n {\n caption: 'Duplication and call graph',\n identityLabel: 'Measure',\n columns: [{ label: 'Value' }],\n rows: [\n { identity: 'Duplicated tokens', values: [{ before: 8418, after: 8398, direction: lower }] },\n { identity: 'Call-graph nodes', values: [{ before: 311, after: 313 }] },\n { identity: 'Call-graph edges', values: [{ before: 529, after: 530 }] },\n ],\n },\n ],\n records: {\n caption: 'Methods by stable id · complexity.v1',\n identityLabel: 'Member',\n columns: [\n { label: 'CC', direction: lower },\n { label: 'SLOC' },\n ],\n rows: [\n { identity: 'SchemaComponent.EmitSchema(StringBuilder, TargetClassModel, bool)', change: 'changed', values: [{ before: 3, after: 3 }, { before: 23, after: 27 }] },\n { identity: 'SchemaComponent.GetFieldCreationExpression(PropertyModel, bool)', change: 'changed', values: [{ before: 5, after: 3 }, { before: 46, after: 15 }] },\n { identity: 'SchemaComponent.GetFieldConstructorExpression(PropertyModel)', change: 'added', values: [{ after: 8 }, { after: 55 }] },\n { identity: 'TargetParser.ReadColumnOptions(ISymbol)', change: 'changed', values: [{ before: 21, after: 24 }, { before: 75, after: 78 }] },\n { identity: 'TargetParser.ReadTimestampAdjustedToUtc(ISymbol)', change: 'added', values: [{ after: 5 }, { after: 22 }] },\n ],\n },\n caveats: [\n {\n title: 'Methodology · call-graph coverage',\n body: 'Only 16% of call sites resolve in the main generator (681 of 4,147). An edge that disappears, such as CodeEmitter.EmitSchema → SchemaComponent.EmitSchema after EmitSchema gained a bool parameter, is more likely a resolution miss than a removed call.',\n },\n ],\n files: [\n { title: 'Duplication', files: [{ path: 'metrics/duplication.txt', hunks: SAMPLE_DUPLICATION_HUNKS }] },\n { title: 'Hand-written code metrics', files: [{ path: 'metrics/Parquet.SourceGenerator.metrics.txt', hunks: SAMPLE_METRICS_HUNKS }] },\n { title: 'Call graph', files: [{ path: 'callgraph/Parquet.SourceGenerator.callgraph.txt', hunks: SAMPLE_CALLGRAPH_HUNKS }] },\n ],\n};\n\n/** A source change written for the sample: the parser half of the FieldId work. */\nconst PARSER_HUNKS: DiffHunk[] = parseUnifiedDiff(`@@ -212,14 +212,17 @@ internal static ColumnOptions ReadColumnOptions(ISymbol symbol)\n var attribute = FindAttribute(symbol, ColumnAttributeNames, ColumnAttributeNamespaces);\n if (attribute is null) return ColumnOptions.Default;\n var name = ReadNamedString(attribute, \"Name\");\n var order = ReadNamedInt(attribute, \"Order\") ?? int.MaxValue;\n+ var fieldId = ReadNamedInt(attribute, \"FieldId\");\n+ if (fieldId is < 0) throw new InvalidFieldIdException(symbol, fieldId.Value);\n var deduplicate = ReadNamedBool(attribute, \"Deduplicate\");\n var encoding = ReadEncoding(attribute);\n var required = ReadNamedBool(attribute, \"Required\");\n- return new ColumnOptions(name, order, deduplicate, encoding, required);\n+ return new ColumnOptions(name, order, deduplicate, encoding, required, fieldId);\n }\n`);\nPARSER_HUNKS[0]!.lines[5]!.comments = [\n {\n author: 'diffra',\n meta: 'complexity.v1 · bot',\n body: 'ReadColumnOptions: cyclomatic complexity 21 → 24 (+3), against the preferred direction. No policy applied, so this is a measurement, not a finding.',\n },\n {\n author: 'marlow',\n meta: 'suggestion',\n body: 'Could the range check live in ColumnOptions instead? Then the Legacy path gets it for free.',\n },\n];\n\nconst ATTRIBUTE_HUNKS: DiffHunk[] = parseUnifiedDiff(`@@ -41,6 +41,15 @@ public sealed class ParquetColumnAttribute : Attribute\n /// <summary>Overrides the column's dictionary and encoding choice.</summary>\n public ParquetColumnEncoding Encoding { get; set; }\n\n+ /// <summary>\n+ /// The Parquet field id written to the schema, for readers that resolve columns\n+ /// by id rather than by name. Unset writes no id.\n+ /// </summary>\n+ public int FieldId\n+ {\n+ get => _fieldId ?? -1;\n+ set => _fieldId = value;\n+ }\n /// <summary>The column name. Defaults to the property name.</summary>\n public string? Name { get; set; }\n`);\nATTRIBUTE_HUNKS[0]!.lines[7]!.comments = [\n {\n author: 'kestrel',\n meta: 'question',\n body: 'Returning -1 for \"unset\" leaks into the public API. Would a nullable int read better here?',\n },\n];\n\nexport const DEFAULT_PULL_REQUEST: PullRequestData = {\n repository: 'rtkelly-labs/Parquet.SourceGenerator',\n number: 412,\n title: 'feat(schema): FieldId and AdjustedToUtc on column attributes',\n state: 'open',\n author: 'rtkelly13',\n base: 'main',\n head: 'feat/field-id',\n opened: 'opened 23 Oct 2026',\n labels: ['schema', 'public-api'],\n description: [\n 'Adds FieldId to ParquetColumnAttribute and AdjustedToUtc to ParquetTimestampAttribute, and threads both through PropertyModel and TargetParser so the emitted schema writes them.',\n 'Shipped API grows by four members. Generated golden files are unchanged for models that set neither property.',\n ],\n reviewers: [\n { name: 'kestrel', state: 'changes-requested' },\n { name: 'marlow', state: 'commented' },\n { name: 'diffra', state: 'commented' },\n { name: 'tamsin', state: 'pending' },\n ],\n checks: [\n { name: 'ci / build-and-test', status: 'pass', summary: '1,317 tests, 0 failed', duration: '6m 12s' },\n { name: 'ci / golden-files', status: 'pass', summary: '42 golden files unchanged', duration: '1m 48s' },\n { name: 'api / shipped-surface', status: 'needs-review', summary: '4 members added to PublicAPI.Unshipped.txt', duration: '34s' },\n { name: 'diffra / derived-outputs', status: 'none', summary: 'Delta only: 7 derived files changed, no policy applied', duration: '2m 03s' },\n { name: 'coverage / patch', status: 'warn', summary: '81% of changed lines covered, below the 85% target', duration: '58s' },\n { name: 'docs / link-check', status: 'inconclusive', label: 'pending', summary: 'Queued behind 3 runs' },\n ],\n verdict: {\n outcome: 'none',\n title: 'Diffra compared 7 derived files with the merge base. No policy was applied.',\n context: 'Complexity rose by 18 in two assemblies and duplicated tokens fell by 20.',\n },\n conversation: [\n { author: 'diffra', meta: 'bot · 4 minutes after opening', body: 'Derived outputs changed: +77 −50 across 7 files. The baseline is a CI artifact with no promotion record, so this comparison cannot gate.' },\n { author: 'kestrel', meta: 'requested changes', body: 'The FieldId sentinel needs another look before this goes in. Comments are inline.' },\n ],\n files: [\n { path: 'src/Parquet.SourceGenerator/Parser/TargetParser.cs', hunks: PARSER_HUNKS },\n { path: 'src/Parquet.SourceGenerator.Attributes/ParquetColumnAttribute.cs', hunks: ATTRIBUTE_HUNKS },\n { path: 'metrics/Parquet.SourceGenerator.metrics.txt', h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glyph: "!", tone: "warning", word: "warn" },
6
+ fail: { glyph: "\u2715", tone: "danger", word: "fail" },
7
+ "needs-review": { glyph: "?", tone: "info", word: "needs review" },
8
+ inconclusive: { glyph: "~", tone: "hollow", word: "inconclusive" },
9
+ none: { glyph: "\u25CB", tone: "hollow", word: "no verdict" }
10
+ },
11
+ delta: {
12
+ unchanged: { glyph: "=", tone: "neutral", word: "unchanged" },
13
+ changed: { glyph: "\u0394", tone: "neutral", word: "changed" },
14
+ unavailable: { glyph: "\u25CB", tone: "hollow", word: "unavailable" },
15
+ invalid: { glyph: "\u2715", tone: "danger", word: "invalid" },
16
+ incompatible: { glyph: "!=", tone: "hollow", word: "incompatible" },
17
+ inconclusive: { glyph: "~", tone: "hollow", word: "inconclusive" },
18
+ unsupported: { glyph: "?", tone: "hollow", word: "unsupported" }
19
+ },
20
+ evidence: {
21
+ produced: { glyph: "\u25CF", tone: "neutral", word: "produced" },
22
+ unavailable: { glyph: "\u25CB", tone: "hollow", word: "unavailable" },
23
+ invalid: { glyph: "\u2715", tone: "danger", word: "invalid" },
24
+ inconclusive: { glyph: "~", tone: "hollow", word: "inconclusive" }
25
+ },
26
+ trust: {
27
+ trusted: { glyph: "\u25C6", tone: "success", word: "trusted" },
28
+ candidate: { glyph: "\u25C7", tone: "info", word: "candidate" },
29
+ untrusted: { glyph: "!", tone: "warning", word: "untrusted" },
30
+ missing: { glyph: "\u25CB", tone: "hollow", word: "missing" },
31
+ corrupt: { glyph: "\u2715", tone: "danger", word: "corrupt" },
32
+ incompatible: { glyph: "!=", tone: "hollow", word: "incompatible" }
33
+ }
34
+ };
35
+ var STATUS_TONE_TEXT = {
36
+ success: "text-intent-success",
37
+ warning: "text-intent-warning",
38
+ danger: "text-intent-danger",
39
+ info: "text-intent-info",
40
+ neutral: "text-content-secondary",
41
+ hollow: "text-content-muted"
42
+ };
43
+ function statusAppearance(vocabulary, status) {
44
+ return STATUS_APPEARANCE[vocabulary][status];
45
+ }
46
+ export {
47
+ STATUS_APPEARANCE,
48
+ STATUS_TONE_TEXT,
49
+ statusAppearance
50
+ };
51
+ //# sourceMappingURL=vocabulary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/review/vocabulary.ts"],"sourcesContent":["/**\n * The status words a review reports, as closed vocabularies.\n *\n * Four documents, four sets of words, taken from the Diffra protocol (ADR 0004\n * and its trust reference) rather than invented here: an Assessment has an\n * outcome, a Delta and an Evidence document each have a status, and a Baseline\n * reference has a trust state. Several words share a colour, so each also has a\n * fixed glyph — a report is printed, read in greyscale and read by people who\n * cannot tell two shades apart, so the word and the glyph carry the meaning and\n * the colour only repeats it.\n *\n * Of the comparison words only `invalid` takes an intent colour. A comparison\n * describes change; whether that change is acceptable is a policy's call, so\n * `changed` is never painted as a warning and `unchanged` never as a success.\n */\n\n/** A policy's verdict on a Delta. `none` is the report that carries no Assessment at all. */\nexport type AssessmentOutcome = 'pass' | 'warn' | 'fail' | 'needs-review' | 'inconclusive' | 'none';\n\n/** What a comparison found. Every word but `changed` and `unchanged` means it could not compare. */\nexport type DeltaStatus =\n | 'unchanged'\n | 'changed'\n | 'unavailable'\n | 'invalid'\n | 'incompatible'\n | 'inconclusive'\n | 'unsupported';\n\n/** Whether a producer's evidence exists and is usable. */\nexport type EvidenceStatus = 'produced' | 'unavailable' | 'invalid' | 'inconclusive';\n\n/** Whether a baseline may be compared against. Only `trusted` can satisfy a gate. */\nexport type TrustStatus = 'trusted' | 'candidate' | 'untrusted' | 'missing' | 'corrupt' | 'incompatible';\n\n/** The four vocabularies, by the document that reports them. */\nexport interface StatusVocabularies {\n outcome: AssessmentOutcome;\n delta: DeltaStatus;\n evidence: EvidenceStatus;\n trust: TrustStatus;\n}\n\nexport type StatusVocabulary = keyof StatusVocabularies;\n\n/**\n * How a status is drawn. `hollow` is a dashed, muted mark for \"could not tell\":\n * not an alarm, and visibly not a result either.\n */\nexport type StatusTone = 'success' | 'warning' | 'danger' | 'info' | 'neutral' | 'hollow';\n\nexport interface StatusAppearance {\n glyph: string;\n tone: StatusTone;\n /** The word printed, which is the status itself unless it reads badly in caps. */\n word: string;\n}\n\nexport const STATUS_APPEARANCE: { readonly [V in StatusVocabulary]: Readonly<Record<StatusVocabularies[V], StatusAppearance>> } = {\n outcome: {\n pass: { glyph: '✓', tone: 'success', word: 'pass' },\n warn: { glyph: '!', tone: 'warning', word: 'warn' },\n fail: { glyph: '✕', tone: 'danger', word: 'fail' },\n 'needs-review': { glyph: '?', tone: 'info', word: 'needs review' },\n inconclusive: { glyph: '~', tone: 'hollow', word: 'inconclusive' },\n none: { glyph: '○', tone: 'hollow', word: 'no verdict' },\n },\n delta: {\n unchanged: { glyph: '=', tone: 'neutral', word: 'unchanged' },\n changed: { glyph: 'Δ', tone: 'neutral', word: 'changed' },\n unavailable: { glyph: '○', tone: 'hollow', word: 'unavailable' },\n invalid: { glyph: '✕', tone: 'danger', word: 'invalid' },\n incompatible: { glyph: '!=', tone: 'hollow', word: 'incompatible' },\n inconclusive: { glyph: '~', tone: 'hollow', word: 'inconclusive' },\n unsupported: { glyph: '?', tone: 'hollow', word: 'unsupported' },\n },\n evidence: {\n produced: { glyph: '●', tone: 'neutral', word: 'produced' },\n unavailable: { glyph: '○', tone: 'hollow', word: 'unavailable' },\n invalid: { glyph: '✕', tone: 'danger', word: 'invalid' },\n inconclusive: { glyph: '~', tone: 'hollow', word: 'inconclusive' },\n },\n trust: {\n trusted: { glyph: '◆', tone: 'success', word: 'trusted' },\n candidate: { glyph: '◇', tone: 'info', word: 'candidate' },\n untrusted: { glyph: '!', tone: 'warning', word: 'untrusted' },\n missing: { glyph: '○', tone: 'hollow', word: 'missing' },\n corrupt: { glyph: '✕', tone: 'danger', word: 'corrupt' },\n incompatible: { glyph: '!=', tone: 'hollow', word: 'incompatible' },\n },\n};\n\n/** Text colour per tone. A status is meaning, so it uses intent roles and never accents. */\nexport const STATUS_TONE_TEXT: Readonly<Record<StatusTone, string>> = {\n success: 'text-intent-success',\n warning: 'text-intent-warning',\n danger: 'text-intent-danger',\n info: 'text-intent-info',\n neutral: 'text-content-secondary',\n hollow: 'text-content-muted',\n};\n\n/** Looks a status up in its vocabulary. */\nexport function statusAppearance<V extends StatusVocabulary>(vocabulary: V, status: StatusVocabularies[V]): StatusAppearance {\n return (STATUS_APPEARANCE[vocabulary] as Readonly<Record<string, StatusAppearance>>)[status]!;\n}\n"],"mappings":";AA0DO,IAAM,oBAAqH;AAAA,EAChI,SAAS;AAAA,IACP,MAAM,EAAE,OAAO,UAAK,MAAM,WAAW,MAAM,OAAO;AAAA,IAClD,MAAM,EAAE,OAAO,KAAK,MAAM,WAAW,MAAM,OAAO;AAAA,IAClD,MAAM,EAAE,OAAO,UAAK,MAAM,UAAU,MAAM,OAAO;AAAA,IACjD,gBAAgB,EAAE,OAAO,KAAK,MAAM,QAAQ,MAAM,eAAe;AAAA,IACjE,cAAc,EAAE,OAAO,KAAK,MAAM,UAAU,MAAM,eAAe;AAAA,IACjE,MAAM,EAAE,OAAO,UAAK,MAAM,UAAU,MAAM,aAAa;AAAA,EACzD;AAAA,EACA,OAAO;AAAA,IACL,WAAW,EAAE,OAAO,KAAK,MAAM,WAAW,MAAM,YAAY;AAAA,IAC5D,SAAS,EAAE,OAAO,UAAK,MAAM,WAAW,MAAM,UAAU;AAAA,IACxD,aAAa,EAAE,OAAO,UAAK,MAAM,UAAU,MAAM,cAAc;AAAA,IAC/D,SAAS,EAAE,OAAO,UAAK,MAAM,UAAU,MAAM,UAAU;AAAA,IACvD,cAAc,EAAE,OAAO,MAAM,MAAM,UAAU,MAAM,eAAe;AAAA,IAClE,cAAc,EAAE,OAAO,KAAK,MAAM,UAAU,MAAM,eAAe;AAAA,IACjE,aAAa,EAAE,OAAO,KAAK,MAAM,UAAU,MAAM,cAAc;AAAA,EACjE;AAAA,EACA,UAAU;AAAA,IACR,UAAU,EAAE,OAAO,UAAK,MAAM,WAAW,MAAM,WAAW;AAAA,IAC1D,aAAa,EAAE,OAAO,UAAK,MAAM,UAAU,MAAM,cAAc;AAAA,IAC/D,SAAS,EAAE,OAAO,UAAK,MAAM,UAAU,MAAM,UAAU;AAAA,IACvD,cAAc,EAAE,OAAO,KAAK,MAAM,UAAU,MAAM,eAAe;AAAA,EACnE;AAAA,EACA,OAAO;AAAA,IACL,SAAS,EAAE,OAAO,UAAK,MAAM,WAAW,MAAM,UAAU;AAAA,IACxD,WAAW,EAAE,OAAO,UAAK,MAAM,QAAQ,MAAM,YAAY;AAAA,IACzD,WAAW,EAAE,OAAO,KAAK,MAAM,WAAW,MAAM,YAAY;AAAA,IAC5D,SAAS,EAAE,OAAO,UAAK,MAAM,UAAU,MAAM,UAAU;AAAA,IACvD,SAAS,EAAE,OAAO,UAAK,MAAM,UAAU,MAAM,UAAU;AAAA,IACvD,cAAc,EAAE,OAAO,MAAM,MAAM,UAAU,MAAM,eAAe;AAAA,EACpE;AACF;AAGO,IAAM,mBAAyD;AAAA,EACpE,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,SAAS;AAAA,EACT,QAAQ;AACV;AAGO,SAAS,iBAA6C,YAAe,QAAiD;AAC3H,SAAQ,kBAAkB,UAAU,EAAiD,MAAM;AAC7F;","names":[]}
@@ -96,7 +96,13 @@ function DeployPreview({ log }) {
96
96
  fontSize: "0.85rem",
97
97
  display: "flex",
98
98
  justifyContent: "space-between",
99
- alignItems: "center"
99
+ alignItems: "center",
100
+ // Narrow screens: the status drops below the filename as a unit, rather than each
101
+ // breaking mid-word into a stack of fragments.
102
+ flexWrap: "wrap",
103
+ columnGap: "1rem",
104
+ rowGap: "0.25rem",
105
+ whiteSpace: "nowrap"
100
106
  },
101
107
  children: [
102
108
  /* @__PURE__ */ jsx("span", { children: "// TERMINAL_ENGINE_DEMO.sh" }),
@@ -154,6 +160,7 @@ var SaasLandingPage = ({
154
160
  eyebrow: /* @__PURE__ */ jsx(Badge, { accent: "primary", children: "\u26A1 NEXT-GEN SAAS INFRASTRUCTURE" }),
155
161
  title,
156
162
  subtitle,
163
+ framed: false,
157
164
  actions: /* @__PURE__ */ jsxs(Fragment, { children: [
158
165
  /* @__PURE__ */ jsxs(Button, { variant: "tertiary", bracketed: true, size: "lg", children: [
159
166
  "LAUNCH APPLICATION ",
@@ -165,7 +172,7 @@ var SaasLandingPage = ({
165
172
  }
166
173
  ),
167
174
  /* @__PURE__ */ jsx(AsciiDivider, { style: DIVIDER_STYLE }),
168
- /* @__PURE__ */ jsx(FeatureGrid, { title: "[ BUILT FOR EXTREME PERFORMANCE & CONTROL ]", children: FEATURES.map((feature) => /* @__PURE__ */ jsx(Feature, { title: feature.title, accent: feature.accent, icon: feature.icon, children: feature.desc }, feature.title)) }),
175
+ /* @__PURE__ */ jsx(FeatureGrid, { title: "[ BUILT FOR EXTREME PERFORMANCE & CONTROL ]", children: FEATURES.map((feature) => /* @__PURE__ */ jsx(Feature, { title: feature.title, accent: feature.accent, icon: feature.icon, weight: "quiet", children: feature.desc }, feature.title)) }),
169
176
  /* @__PURE__ */ jsx(AsciiDivider, { style: DIVIDER_STYLE }),
170
177
  /* @__PURE__ */ jsx(PricingGrid, { title: "[ TRANSPARENT PRICING ]", children: pricingTiers.map((tier) => /* @__PURE__ */ jsx(
171
178
  PricingTier,
@@ -176,6 +183,7 @@ var SaasLandingPage = ({
176
183
  description: tier.description,
177
184
  features: tier.features,
178
185
  accent: tier.accent,
186
+ weight: tier.highlighted ? "strong" : "quiet",
179
187
  badge: tier.highlighted ? "POPULAR" : void 0,
180
188
  action: /* @__PURE__ */ jsx(
181
189
  Button,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/saas/SaasLandingPage.tsx"],"sourcesContent":["import type React from 'react';\nimport { ArrowRight, Zap, Shield, Cpu } from 'lucide-react';\nimport { Button } from '../Button';\nimport { Badge } from '../Badge';\nimport { AsciiDivider } from '../AsciiDivider';\nimport { Hero } from '../marketing/Hero';\nimport { FeatureGrid, Feature } from '../marketing/FeatureGrid';\nimport { PricingGrid, PricingTier } from '../marketing/PricingGrid';\nimport type { PricingTier as PricingTierData } from '../marketing/PricingGrid';\n\n/**\n * Placeholder pricing, deliberately generic.\n *\n * This is a layout in a shared package, so the sample copy has to demonstrate\n * the *shape* — three tiers, one highlighted, escalating feature lists — without\n * describing a particular product. The previous defaults were lifted from a\n * personal-finance app (bank reconciliation, sync engines) and read as that\n * product's marketing site rather than as a design-system example.\n */\nexport const DEFAULT_PRICING_TIERS: PricingTierData[] = [\n {\n name: 'STARTER',\n price: '$0',\n period: '/month',\n description: 'Local-first storage and the core workflow, for a single user',\n features: ['Single Workspace', 'Local-First Storage', 'Core Workflow', 'Community Support'],\n accent: 'primary',\n ctaText: 'START FREE'\n },\n {\n name: 'PRO ENGINE',\n price: '$29',\n period: '/month',\n description: 'Automation, scheduled jobs, and versioned backups',\n features: ['Everything in Starter', 'Automation Rules', 'Scheduled Jobs', 'Versioned Backups', 'Usage Analytics'],\n accent: 'tertiary',\n highlighted: true,\n ctaText: 'DEPLOY PRO ENGINE'\n },\n {\n name: 'ENTERPRISE DECK',\n price: '$99',\n period: '/month',\n description: 'Multi-workspace deployment, SSO, and a custom SLA',\n features: ['Unlimited Workspaces', 'SSO & Audit Log', 'Custom Design System Themes', 'Dedicated Support & SLAs', 'Self-Hosted Options'],\n accent: 'secondary',\n ctaText: 'CONTACT SALES'\n }\n];\n\n/**\n * Sample terminal output for the deploy section. A prop rather than inline JSX\n * so a consumer can show their own build, and generic for the same reason as the\n * pricing above.\n */\nexport const DEFAULT_DEPLOY_LOG = `$ platform deploy --environment production\n[✓] Connecting to local datastore... OK\n[✓] Verifying 1,420 records against checksum... OK\n[✓] Running automation rules... APPLIED\n[✓] Versioned backup written to ./backups/2026-01-01/\n[*] Surface ready! Server active on http://localhost:8000`;\n\nexport interface SaasLandingPageProps {\n /** The hero's headline. */\n title?: string;\n /** The line under the headline. */\n subtitle?: string;\n /** The plans, as data — one `PricingTier` each. `DEFAULT_PRICING_TIERS` by default. */\n pricingTiers?: PricingTierData[];\n /** Terminal output for the deploy section. Pass `''` to hide it. */\n deployLog?: string;\n}\n\nconst MONO = 'var(--ds-font-mono)';\n\nconst DIVIDER_STYLE: React.CSSProperties = {\n margin: '3rem 0',\n color: 'var(--ds-accent-primary)',\n fontFamily: MONO,\n fontSize: '0.85rem',\n};\n\n// This page's feature copy. It lives here rather than in `Feature`, which holds\n// none: the landing page is one composition of the marketing sections, and its\n// words are its own.\nconst FEATURES = [\n {\n title: 'REAL-TIME SYNC',\n accent: 'primary',\n icon: <Cpu size={28} />,\n desc: 'Automatic delta reconciliation between live banking APIs and local single-player SQLite databases.',\n },\n {\n title: 'RULE ENGINE',\n accent: 'tertiary',\n icon: <Zap size={28} />,\n desc: 'Custom automated regex & payee matching rules to categorize statement imports effortlessly.',\n },\n {\n title: 'DRIVE BACKUPS',\n accent: 'secondary',\n icon: <Shield size={28} />,\n desc: 'Periodic, atomic SQLite file backups synced directly to Google Drive without external vendor lock-in.',\n },\n] as const;\n\n// The hero's media: a terminal window replaying `deployLog`. Specific to this\n// page, so it is passed to `Hero` as children rather than being a slot of it.\n// The log scrolls at narrow widths, which is why the `<pre>` takes a tabIndex —\n// see `CodeBlock`.\nfunction DeployPreview({ log }: { log: string }) {\n return (\n <div\n style={{\n maxWidth: '800px',\n margin: '0 auto',\n border: '3px solid var(--ds-border-strong)',\n backgroundColor: 'var(--ds-surface-base)',\n boxShadow: '8px 8px 0px 0px var(--ds-accent-primary)',\n overflow: 'hidden',\n }}\n >\n <div\n style={{\n padding: '0.6rem 1rem',\n borderBottom: '2px solid var(--ds-border-strong)',\n backgroundColor: 'var(--ds-text-primary)',\n color: 'var(--ds-surface-base)',\n fontFamily: MONO,\n fontWeight: 800,\n fontSize: '0.85rem',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n }}\n >\n <span>// TERMINAL_ENGINE_DEMO.sh</span>\n <span style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>\n <span style={{ width: '8px', height: '8px', backgroundColor: 'var(--ds-intent-success)', display: 'inline-block' }} />\n STATUS: ACTIVE\n </span>\n </div>\n <pre\n tabIndex={0}\n role=\"region\"\n aria-label=\"Deployment log\"\n style={{\n padding: '1.5rem',\n fontFamily: MONO,\n fontSize: '0.9rem',\n color: 'var(--ds-intent-success)',\n textAlign: 'left',\n overflowX: 'auto',\n margin: 0,\n lineHeight: 1.6,\n }}\n >\n{log}\n </pre>\n </div>\n );\n}\n\n/**\n * A complete SaaS landing page — hero, features and pricing — composed from\n * the marketing sections: `Hero`, a `FeatureGrid` of `Feature`s and a\n * `PricingGrid` of `PricingTier`s.\n *\n * It is one composition of those parts with its copy filled in, kept for the\n * call sites that render it whole. A page that needs a different order, a\n * different set of sections or its own words should compose the sections\n * directly — the `SaaS/LandingPage` stories build two such pages from the same\n * parts.\n */\nexport const SaasLandingPage: React.FC<SaasLandingPageProps> = ({\n title = 'HIGH-PERFORMANCE BRUTALIST SAAS PLATFORM',\n subtitle = 'Ship faster with real-time sync, automated rules, and zero-compromise design',\n pricingTiers = DEFAULT_PRICING_TIERS,\n deployLog = DEFAULT_DEPLOY_LOG,\n}) => {\n return (\n <div data-slot=\"saas-landing-page\"\n style={{\n maxWidth: '1200px',\n margin: '0 auto',\n padding: '3rem 1.5rem',\n color: 'var(--ds-text-primary)',\n fontFamily: 'var(--ds-font-body)',\n }}\n >\n <Hero\n eyebrow={<Badge accent=\"primary\">⚡ NEXT-GEN SAAS INFRASTRUCTURE</Badge>}\n title={title}\n subtitle={subtitle}\n actions={\n <>\n <Button variant=\"tertiary\" bracketed size=\"lg\">\n LAUNCH APPLICATION <ArrowRight size={18} />\n </Button>\n <Button variant=\"default\" bracketed size=\"lg\">\n EXPLORE ARCHITECTURE\n </Button>\n </>\n }\n >\n {deployLog ? <DeployPreview log={deployLog} /> : null}\n </Hero>\n\n <AsciiDivider style={DIVIDER_STYLE} />\n\n <FeatureGrid title=\"[ BUILT FOR EXTREME PERFORMANCE & CONTROL ]\">\n {FEATURES.map((feature) => (\n <Feature key={feature.title} title={feature.title} accent={feature.accent} icon={feature.icon}>\n {feature.desc}\n </Feature>\n ))}\n </FeatureGrid>\n\n <AsciiDivider style={DIVIDER_STYLE} />\n\n <PricingGrid title=\"[ TRANSPARENT PRICING ]\">\n {pricingTiers.map((tier) => (\n <PricingTier\n key={tier.name}\n name={tier.name}\n price={tier.price}\n period={tier.period}\n description={tier.description}\n features={tier.features}\n accent={tier.accent}\n badge={tier.highlighted ? 'POPULAR' : undefined}\n action={\n <Button\n variant={tier.accent}\n bracketed\n style={{ width: '100%', justifyContent: 'center', display: 'flex' }}\n >\n {tier.ctaText || 'SELECT PLAN'}\n </Button>\n }\n />\n ))}\n </PricingGrid>\n </div>\n );\n};\n"],"mappings":";AACA,SAAS,YAAY,KAAK,QAAQ,WAAW;AAC7C,SAAS,cAAc;AACvB,SAAS,aAAa;AACtB,SAAS,oBAAoB;AAC7B,SAAS,YAAY;AACrB,SAAS,aAAa,eAAe;AACrC,SAAS,aAAa,mBAAmB;AAkF/B,SA0GA,UA1GA,KAgDF,YAhDE;AAtEH,IAAM,wBAA2C;AAAA,EACtD;AAAA,IACE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,UAAU,CAAC,oBAAoB,uBAAuB,iBAAiB,mBAAmB;AAAA,IAC1F,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,UAAU,CAAC,yBAAyB,oBAAoB,kBAAkB,qBAAqB,iBAAiB;AAAA,IAChH,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,UAAU,CAAC,wBAAwB,mBAAmB,+BAA+B,4BAA4B,qBAAqB;AAAA,IACtI,QAAQ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ACH;AAAA,QAEA,oBAAC,gBAAa,OAAO,eAAe;AAAA,QAEpC,oBAAC,eAAY,OAAM,2BAChB,uBAAa,IAAI,CAAC,SACjB;AAAA,UAAC;AAAA;AAAA,YAEC,MAAM,KAAK;AAAA,YACX,OAAO,KAAK;AAAA,YACZ,QAAQ,KAAK;AAAA,YACb,aAAa,KAAK;AAAA,YAClB,UAAU,KAAK;AAAA,YACf,QAAQ,KAAK;AAAA,YACb,OAAO,KAAK,cAAc,YAAY;AAAA,YACtC,QACE;AAAA,cAAC;AAAA;AAAA,gBACC,SAAS,KAAK;AAAA,gBACd,WAAS;AAAA,gBACT,OAAO,EAAE,OAAO,QAAQ,gBAAgB,UAAU,SAAS,OAAO;AAAA,gBAEjE,eAAK,WAAW;AAAA;AAAA,YACnB;AAAA;AAAA,UAfG,KAAK;AAAA,QAiBZ,CACD,GACH;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/saas/SaasLandingPage.tsx"],"sourcesContent":["import type React from 'react';\nimport { ArrowRight, Zap, Shield, Cpu } from 'lucide-react';\nimport { Button } from '../Button';\nimport { Badge } from '../Badge';\nimport { AsciiDivider } from '../AsciiDivider';\nimport { Hero } from '../marketing/Hero';\nimport { FeatureGrid, Feature } from '../marketing/FeatureGrid';\nimport { PricingGrid, PricingTier } from '../marketing/PricingGrid';\nimport type { PricingTier as PricingTierData } from '../marketing/PricingGrid';\n\n/**\n * Placeholder pricing, deliberately generic.\n *\n * This is a layout in a shared package, so the sample copy has to demonstrate\n * the *shape* — three tiers, one highlighted, escalating feature lists — without\n * describing a particular product. The previous defaults were lifted from a\n * personal-finance app (bank reconciliation, sync engines) and read as that\n * product's marketing site rather than as a design-system example.\n */\nexport const DEFAULT_PRICING_TIERS: PricingTierData[] = [\n {\n name: 'STARTER',\n price: '$0',\n period: '/month',\n description: 'Local-first storage and the core workflow, for a single user',\n features: ['Single Workspace', 'Local-First Storage', 'Core Workflow', 'Community Support'],\n accent: 'primary',\n ctaText: 'START FREE'\n },\n {\n name: 'PRO ENGINE',\n price: '$29',\n period: '/month',\n description: 'Automation, scheduled jobs, and versioned backups',\n features: ['Everything in Starter', 'Automation Rules', 'Scheduled Jobs', 'Versioned Backups', 'Usage Analytics'],\n accent: 'tertiary',\n highlighted: true,\n ctaText: 'DEPLOY PRO ENGINE'\n },\n {\n name: 'ENTERPRISE DECK',\n price: '$99',\n period: '/month',\n description: 'Multi-workspace deployment, SSO, and a custom SLA',\n features: ['Unlimited Workspaces', 'SSO & Audit Log', 'Custom Design System Themes', 'Dedicated Support & SLAs', 'Self-Hosted Options'],\n accent: 'secondary',\n ctaText: 'CONTACT SALES'\n }\n];\n\n/**\n * Sample terminal output for the deploy section. A prop rather than inline JSX\n * so a consumer can show their own build, and generic for the same reason as the\n * pricing above.\n */\nexport const DEFAULT_DEPLOY_LOG = `$ platform deploy --environment production\n[✓] Connecting to local datastore... OK\n[✓] Verifying 1,420 records against checksum... OK\n[✓] Running automation rules... APPLIED\n[✓] Versioned backup written to ./backups/2026-01-01/\n[*] Surface ready! Server active on http://localhost:8000`;\n\nexport interface SaasLandingPageProps {\n /** The hero's headline. */\n title?: string;\n /** The line under the headline. */\n subtitle?: string;\n /** The plans, as data — one `PricingTier` each. `DEFAULT_PRICING_TIERS` by default. */\n pricingTiers?: PricingTierData[];\n /** Terminal output for the deploy section. Pass `''` to hide it. */\n deployLog?: string;\n}\n\nconst MONO = 'var(--ds-font-mono)';\n\nconst DIVIDER_STYLE: React.CSSProperties = {\n margin: '3rem 0',\n color: 'var(--ds-accent-primary)',\n fontFamily: MONO,\n fontSize: '0.85rem',\n};\n\n// This page's feature copy. It lives here rather than in `Feature`, which holds\n// none: the landing page is one composition of the marketing sections, and its\n// words are its own.\nconst FEATURES = [\n {\n title: 'REAL-TIME SYNC',\n accent: 'primary',\n icon: <Cpu size={28} />,\n desc: 'Automatic delta reconciliation between live banking APIs and local single-player SQLite databases.',\n },\n {\n title: 'RULE ENGINE',\n accent: 'tertiary',\n icon: <Zap size={28} />,\n desc: 'Custom automated regex & payee matching rules to categorize statement imports effortlessly.',\n },\n {\n title: 'DRIVE BACKUPS',\n accent: 'secondary',\n icon: <Shield size={28} />,\n desc: 'Periodic, atomic SQLite file backups synced directly to Google Drive without external vendor lock-in.',\n },\n] as const;\n\n// The hero's media: a terminal window replaying `deployLog`. Specific to this\n// page, so it is passed to `Hero` as children rather than being a slot of it.\n// The log scrolls at narrow widths, which is why the `<pre>` takes a tabIndex —\n// see `CodeBlock`.\nfunction DeployPreview({ log }: { log: string }) {\n return (\n <div\n style={{\n maxWidth: '800px',\n margin: '0 auto',\n border: '3px solid var(--ds-border-strong)',\n backgroundColor: 'var(--ds-surface-base)',\n boxShadow: '8px 8px 0px 0px var(--ds-accent-primary)',\n overflow: 'hidden',\n }}\n >\n <div\n style={{\n padding: '0.6rem 1rem',\n borderBottom: '2px solid var(--ds-border-strong)',\n backgroundColor: 'var(--ds-text-primary)',\n color: 'var(--ds-surface-base)',\n fontFamily: MONO,\n fontWeight: 800,\n fontSize: '0.85rem',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n // Narrow screens: the status drops below the filename as a unit, rather than each\n // breaking mid-word into a stack of fragments.\n flexWrap: 'wrap',\n columnGap: '1rem',\n rowGap: '0.25rem',\n whiteSpace: 'nowrap',\n }}\n >\n <span>// TERMINAL_ENGINE_DEMO.sh</span>\n <span style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>\n <span style={{ width: '8px', height: '8px', backgroundColor: 'var(--ds-intent-success)', display: 'inline-block' }} />\n STATUS: ACTIVE\n </span>\n </div>\n <pre\n tabIndex={0}\n role=\"region\"\n aria-label=\"Deployment log\"\n style={{\n padding: '1.5rem',\n fontFamily: MONO,\n fontSize: '0.9rem',\n color: 'var(--ds-intent-success)',\n textAlign: 'left',\n overflowX: 'auto',\n margin: 0,\n lineHeight: 1.6,\n }}\n >\n{log}\n </pre>\n </div>\n );\n}\n\n/**\n * A complete SaaS landing page — hero, features and pricing — composed from\n * the marketing sections: `Hero`, a `FeatureGrid` of `Feature`s and a\n * `PricingGrid` of `PricingTier`s.\n *\n * It is one composition of those parts with its copy filled in, kept for the\n * call sites that render it whole. A page that needs a different order, a\n * different set of sections or its own words should compose the sections\n * directly — the `SaaS/LandingPage` stories build two such pages from the same\n * parts.\n */\nexport const SaasLandingPage: React.FC<SaasLandingPageProps> = ({\n title = 'HIGH-PERFORMANCE BRUTALIST SAAS PLATFORM',\n subtitle = 'Ship faster with real-time sync, automated rules, and zero-compromise design',\n pricingTiers = DEFAULT_PRICING_TIERS,\n deployLog = DEFAULT_DEPLOY_LOG,\n}) => {\n return (\n <div data-slot=\"saas-landing-page\"\n style={{\n maxWidth: '1200px',\n margin: '0 auto',\n padding: '3rem 1.5rem',\n color: 'var(--ds-text-primary)',\n fontFamily: 'var(--ds-font-body)',\n }}\n >\n <Hero\n eyebrow={<Badge accent=\"primary\">⚡ NEXT-GEN SAAS INFRASTRUCTURE</Badge>}\n title={title}\n subtitle={subtitle}\n // The deploy terminal is this hero's one heavy object, so the title is not boxed. The\n // buttons keep their press shadow: it is every button's affordance, and a hero whose two\n // actions differ reads as one of them broken. See docs/edge-hierarchy.md, option A.\n framed={false}\n actions={\n <>\n <Button variant=\"tertiary\" bracketed size=\"lg\">\n LAUNCH APPLICATION <ArrowRight size={18} />\n </Button>\n <Button variant=\"default\" bracketed size=\"lg\">\n EXPLORE ARCHITECTURE\n </Button>\n </>\n }\n >\n {deployLog ? <DeployPreview log={deployLog} /> : null}\n </Hero>\n\n <AsciiDivider style={DIVIDER_STYLE} />\n\n <FeatureGrid title=\"[ BUILT FOR EXTREME PERFORMANCE & CONTROL ]\">\n {FEATURES.map((feature) => (\n <Feature key={feature.title} title={feature.title} accent={feature.accent} icon={feature.icon} weight=\"quiet\">\n {feature.desc}\n </Feature>\n ))}\n </FeatureGrid>\n\n <AsciiDivider style={DIVIDER_STYLE} />\n\n <PricingGrid title=\"[ TRANSPARENT PRICING ]\">\n {pricingTiers.map((tier) => (\n <PricingTier\n key={tier.name}\n name={tier.name}\n price={tier.price}\n period={tier.period}\n description={tier.description}\n features={tier.features}\n accent={tier.accent}\n weight={tier.highlighted ? 'strong' : 'quiet'}\n badge={tier.highlighted ? 'POPULAR' : undefined}\n action={\n <Button\n variant={tier.accent}\n bracketed\n style={{ width: '100%', justifyContent: 'center', display: 'flex' }}\n >\n {tier.ctaText || 'SELECT PLAN'}\n </Button>\n }\n />\n ))}\n </PricingGrid>\n </div>\n );\n};\n"],"mappings":";AACA,SAAS,YAAY,KAAK,QAAQ,WAAW;AAC7C,SAAS,cAAc;AACvB,SAAS,aAAa;AACtB,SAAS,oBAAoB;AAC7B,SAAS,YAAY;AACrB,SAAS,aAAa,eAAe;AACrC,SAAS,aAAa,mBAAmB;AAkF/B,SAoHA,UApHA,KAsDF,YAtDE;AAtEH,IAAM,wBAA2C;AAAA,EACtD;AAAA,IACE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,UAAU,CAAC,oBAAoB,uBAAuB,iBAAiB,mBAAmB;AAAA,IAC1F,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,UAAU,CAAC,yBAAyB,oBAAoB,kBAAkB,qBAAqB,iBAAiB;AAAA,IAChH,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,UAAU,CAAC,wBAAwB,mBAAmB,+BAA+B,4BAA4B,qBAAqB;AAAA,IACtI,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AACF;AAOO,IAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBlC,IAAM,OAAO;AAEb,IAAM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