@atelic-action/artifact 5.2.0 → 6.1.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.
package/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  The documents the practice hands or sends a business, as a published package and as the site a business's folder is cut from. This repo is two things at once:
4
4
 
5
- - **The package**, `@atelic-action/artifact` on npm: the composed documents (the read, the monthly page, the note, the first call sheet, and the sealed document), each with its prop types and its default labels, and the stylesheet they wear. It ships `src/documents/` and nothing else, as source, the way `@atelic-action/ui` does, and depends on that package for every piece a document is built from.
5
+ - **The package**, `@atelic-action/artifact` on npm: the composed documents (the read, the monthly page, the note, the discovery sheet, and the sealed document), each with its prop types and its default labels, and the stylesheet they wear. It ships `src/documents/` and nothing else, as source, the way `@atelic-action/ui` does, and depends on that package for every piece a document is built from.
6
6
  - **The seed**: the routes, the content stubs, the config, the stub files the host finds by path, and the tests a new folder of `atelic-action/artifacts` is cut from, and the template site that shows every document on fictional content.
7
7
 
8
8
  Three layers, each a version the next depends on (ATE-671): `@atelic-action/ui` holds the pieces, this package holds the documents built from them, and each business's folder holds only its content, routes, and config. A document fix reaches a folder by bumping this package; a piece fix by bumping ui here, then this package in the folder.
9
9
 
10
- Five artifacts live in the template site: the **read** at `/the-read`, the graded document a business gets from the practice, built from one snapshot at one of two depths (a prospect's, from public readings alone; a customer's, from their own consoles as well), a web page first with its printed copy derived from it, the grades explained by cause, and the plan for the work set in a tab of its own ahead of the read; the **proposal** at `/proposal`, sealed into the page and opened by the reader's own email address; the **monthly page** at `/report`, what an Operate client gets each month on one letter sheet; the **note** at `/notes`, the first touch for a business whose site publishes no email address, set as a short page; and the **first call sheet** at `/first-call`, the desk's page for the first call with a business that booked off a cold first touch, used to guide the call and not sent for now, written so it could be shared with them later. The bare host sends a reader to the read. Every artifact prerenders to static HTML, stays out of every index, and carries the practice's brand by default.
10
+ Five artifacts live in the template site: the **read** at `/the-read`, the graded document a business gets from the practice, built from one snapshot at one of two depths (a prospect's, from public readings alone; a customer's, from their own consoles as well), a web page first with its printed copy derived from it, the grades explained by cause, the plan for the work set in a tab of its own ahead of the read, and the proposal in a tab of its own after it; the **proposal** at `/proposal`, the sealed page that stays for the proposals sent before the tab existed, opened by the reader's own email address; the **monthly page** at `/report`, what an Operate client gets each month on one letter sheet; the **note** at `/notes`, the first touch for a business whose site publishes no email address, set as a short page; and the **discovery sheet** at `/discovery`, the desk's page for the first conversation with a business, used to guide the call and not sent for now, written so it could be shared with them later. The bare host sends a reader to the read. Every artifact prerenders to static HTML, stays out of every index, and carries the practice's brand by default.
11
11
 
12
12
  The method behind them (the seven sections, the four grades from A to D, the rented line, what moved, and when an artifact is private) is the practice repo's `FOOTPRINT.md`. This repo builds to it and never restates it.
13
13
 
@@ -21,10 +21,11 @@ Every export of the package, all from the one entry, `@atelic-action/artifact`.
21
21
 
22
22
  | Export | What it is | Route |
23
23
  |---|---|---|
24
- | `TheRead`, `TheReadProps` | The graded document a business gets, built from one snapshot: the dated lede; the scorecard, a `ReportCard` with each row a link to its card and the earlier letter beside a row that moved, with an optional `note` callout over it for what the read leaves out; the plan's numbered steps between the scorecard and the cards when `plan` has any (superseded by the plan tab, and removed at the next major); then the tiers, each section on the card (the trade name linked to its definition, the one liner, the grade, the why line as the summary, the blocks, and the sources at the foot) plus the read's own today and after (a two column table) and what we recommend (a checklist), a tier opening on a `markets` table of letters and closing on the `rented` line when it has them; the closing line and the sign off. `access` says which depth it is (`"public"`, from public readings alone, or `"private"`, from the owner's consoles too), and a public read with no note gets the `publicNote` label over its scorecard. `print` adds the lockup and the twin's QR to the printed copy. A beat with no data is left out. Given a `planDocument`, the page becomes two tabs under the shared head, The Plan first and open, then The Read, which holds everything that sat between the head and the sign off; the sign off stays under both. The tabs are ui's `Tabs`, so a link or a hash naming a card in the read opens the read tab and lands on it, and on paper the plan prints first and the read starts a new page, each under its tab's name. `selectedTab` and `onSelectTab` let a route hold the open tab, for instance to swap the header's stops with it; left out, the plan tab opens first. Without a `planDocument` the page is the one it always was | `/the-read` |
25
- | `readLabels`, `ReadLabels` | The fixed words the read sets (Prepared for, the scorecard's screen reader words, Before, Rented, Today, After, Recommendations, the plan's heading, the public note, the two tabs' names, and the tab row's name for a screen reader), each overridable through `labels` | `/the-read` |
24
+ | `TheRead`, `TheReadProps` | The graded document a business gets, built from one snapshot: the dated lede; the scorecard, a `ReportCard` with each row a link to its card and the earlier letter beside a row that moved, with an optional `note` callout over it for what the read leaves out; the plan's numbered steps between the scorecard and the cards when `plan` has any (superseded by the plan tab, and removed at the next major); then the tiers, each section on the card (the trade name linked to its definition, the one liner, the grade, the why line as the summary, the blocks, and the sources at the foot) plus the read's own today and after (a two column table) and what we recommend (a checklist), a tier opening on a `markets` table of letters and closing on the `rented` line when it has them; the closing line and the sign off. `access` says which depth it is (`"public"`, from public readings alone, or `"private"`, from the owner's consoles too), and a public read with no note gets the `publicNote` label over its scorecard. `print` adds the lockup and the twin's QR to the printed copy. A beat with no data is left out. The page is up to three tabs under the shared head: given a `planDocument`, The Plan comes first and opens first; The Read, which holds everything that sat between the head and the sign off, comes next; and given a `proposalDocument`, The Proposal comes last. With a proposal and no plan the page is two tabs, The Read then The Proposal, and the read opens first. The sign off stays under all of them, and the tab row's screen reader name, unless `labels` sets one, names the tabs present. The tabs are ui's `Tabs`, so a link or a hash naming a card in the read opens the read tab and lands on it, and on paper every panel prints in order, each after the first on a new page under its tab's name. `selectedTab` and `onSelectTab` let a route hold the open tab, for instance to swap the header's stops with it; left out, the plan tab opens first, or the read tab when there is no plan. With neither document the page is the one it always was | `/the-read` |
25
+ | `readLabels`, `ReadLabels` | The fixed words the read sets (Prepared for, the scorecard's screen reader words, Before, Rented, Today, After, Recommendations, the plan's heading, the public note, the three tabs' names (`planTab`, `readTab`, `proposalTab`), and the tab row's name for a screen reader, which names the tabs present when left out), each overridable through `labels` | `/the-read` |
26
26
  | `PlanDocument`, `PlanSection`, `PlanPart`, `PlanBlock` | The shapes the plan tab is written in, all plain data, so a routine can write a plan as JSON. A plan is an optional lede and its sections; a section is an `id` (the anchor a header stop points at), a `heading`, an optional `timeline` line set small under the heading (when the work happens and whose it is), its blocks in order, and any parts, each a smaller heading with the same body. A block is a paragraph, a bulleted or numbered list, or a table with an optional head row, and every piece of text in one is a paragraph, so a link into the read is a run whose `href` is a card's anchor. A block with nothing in it is left out. On a phone a table's rows stack, each cell wearing its column's name | `/the-read` |
27
- | `thePlanTabId`, `theReadTabId` | The two tabs' ids (`"plan"`, unless the plan document names its own, and `"read"`), so a route compares the open tab without a string of its own. No anchor on the page may share either | none |
27
+ | `ProposalDocument` | The proposal tab's document, the same shape as `PlanDocument`: what success looks like, the measures (a table whose first cell links each measure to the card it rests on), the terms, and the next steps. Its panel wears `rd-proposal-doc` beside `rd-plan-doc`, so the plan's styles dress it unchanged. Its `id` defaults to `theProposalTabId` and its `title` to the `proposalTab` label | `/the-read` |
28
+ | `thePlanTabId`, `theReadTabId`, `theProposalTabId` | The three tabs' ids (`"plan"` and `"proposal"`, unless the document names its own, and `"read"`), so a route compares the open tab without a string of its own. No anchor on the page may share any of them | none |
28
29
  | `ReadAccess`, `ReadTier`, `ReadSection`, `ReadChange`, `ReadRecommendation`, `ReadMarkets`, `ReadMarketRow`, `ReadRented`, `ReadStep`, `ReadPlan` (both superseded by the plan tab), `ReadClose`, `ReadPrint`, `ReadLink`, `ReadParagraph` | The shapes a read's content is written in. `ReadSection` is a `ReadTopic` plus `gist`, `before`, `changes`, and `recommend`; its `why`, a finding's `body`, a market row's `read`, and the rented `text` take a paragraph (a string, or runs of text and links) as well as a node, so a routine can write a read as JSON | none |
29
30
  | `Topic` | The section card on its own: the trade name linked to its definition, the one liner, the grade, the why line, the blocks, and the sources, with an `extra` slot after the blocks. The read renders every section through it | `/the-read` |
30
31
  | `ratingCell` | A star rating table cell for a `table` block, sorted by its figure | `/the-read` |
@@ -34,11 +35,11 @@ Every export of the package, all from the one entry, `@atelic-action/artifact`.
34
35
  | `ReportLead`, `ReportLeads`, `ReportGradeRow` | The shapes a monthly page's content is written in | none |
35
36
  | `Note`, `NoteProps` | The first touch set as a page: the opener, two lanes of findings, where the work would start, the close | `/notes` |
36
37
  | `NoteLane`, `NoteFinding`, `NoteStart`, `NoteStep`, `NoteClose`, `NoteLink`, `NoteParagraph` | The shapes a note's content is written in | none |
37
- | `FirstCall`, `FirstCallProps` | The desk's sheet for the first call with a business that booked off a cold first touch: the brief with a picture beside it, the open as numbered steps, one unit per topic (a TL;DR, then show, ask, and move, each show line linked live with its picture opening the full capture), and the close, which always ends on who else decides. Not sent for now, but open like the host and shareable later, so it carries no desk instruction; it lives beside the read | `/first-call` |
38
- | `firstCallLabels`, `FirstCallLabels` | The fixed words the sheet sets (Show, Ask, Move, the close's who else decides beat, and the rest), each overridable through `labels` | `/first-call` |
39
- | `firstCallSectionIds` | The ids the page takes for itself (the shell's `main`, the brief, the open, the close), which a unit's `id` must not repeat; the content test checks it | none |
40
- | `FirstCallFact`, `FirstCallStep`, `FirstCallShow`, `FirstCallUnit`, `FirstCallParagraph` | The shapes a first call sheet's content is written in, all plain data, so a skill writes the sheet as JSON | none |
41
- | `Gate`, `GateProps`, `GatePayload`, `GatePerson` | The sealed document, opened in the browser by the reader's own address, and the payload it opens | `/proposal` |
38
+ | `Discovery`, `DiscoveryProps` | The desk's sheet for the first conversation with a business: the brief with a picture beside it, the open as numbered steps, one unit per topic (a TL;DR, then show, ask, and move, each show line linked live with its picture opening the full capture), and the close, which always ends on who else decides. Not sent for now, but open like the host and shareable later, so it carries no desk instruction; it lives beside the read | `/discovery` |
39
+ | `discoveryLabels`, `DiscoveryLabels` | The fixed words the sheet sets (Show, Ask, Move, the close's who else decides beat, and the rest), each overridable through `labels` | `/discovery` |
40
+ | `discoverySectionIds` | The ids the page takes for itself (the shell's `main`, the brief, the open, the close), which a unit's `id` must not repeat; the content test checks it | none |
41
+ | `DiscoveryFact`, `DiscoveryStep`, `DiscoveryShow`, `DiscoveryUnit`, `DiscoveryParagraph` | The shapes a discovery sheet's content is written in, all plain data, so a skill writes the sheet as JSON | none |
42
+ | `Gate`, `GateProps`, `GatePayload`, `GatePerson` | The sealed document, opened in the browser by the reader's own address, and the payload it opens; the proposals sent before the read's proposal tab existed live here | `/proposal` |
42
43
  | `normalizeEmail` | How a typed address becomes the key a payload opens with; the sealing command mirrors it | none |
43
44
  | `documents.css` | The documents' styles, at `@atelic-action/artifact/styles/documents.css` | every route |
44
45
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atelic-action/artifact",
3
- "version": "5.2.0",
4
- "description": "The composed documents the Atelic practice hands or sends a business (the read, the monthly page, the note, the first call sheet, and the sealed document), built from the pieces in @atelic-action/ui",
3
+ "version": "6.1.0",
4
+ "description": "The composed documents the Atelic practice hands or sends a business (the read, the monthly page, the note, the discovery sheet, and the sealed document), built from the pieces in @atelic-action/ui",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  type ArtifactParagraph,
3
- ArtifactAnchor as FirstCallAnchor,
3
+ ArtifactAnchor as DiscoveryAnchor,
4
4
  Runs,
5
5
  Shot,
6
6
  type WriteupShot,
@@ -11,10 +11,10 @@ import { ArrowRight, MessageCircleQuestion } from "lucide-react";
11
11
  import type { ReactNode } from "react";
12
12
 
13
13
  /**
14
- * The first call sheet: what the practice scans during the first call with a
15
- * business that booked off a cold first touch. The brief, the open, then one
16
- * unit per topic, each a show, an ask, and a move, then the close. It lives
17
- * at `<short>.atelic.me/first-call` beside the read it walks.
14
+ * The discovery sheet: what the practice scans during the first conversation
15
+ * with a business. The brief, the open, then one unit per topic, each a show,
16
+ * an ask, and a move, then the close. It lives at
17
+ * `<short>.atelic.me/discovery` beside the read it walks.
18
18
  *
19
19
  * The practice uses it to guide the call and does not send it for now, but
20
20
  * it is open like the rest of the host and may be shared with the business
@@ -29,24 +29,24 @@ import type { ReactNode } from "react";
29
29
  * It is the read's sibling and wears its classes: the
30
30
  * read's topic and findings blocks for the brief and each unit's show,
31
31
  * the read's numbered steps for the open and the close. Its own few rules
32
- * sit under fc- in documents.css. Every prop is plain data, so a skill can
32
+ * sit under ds- in documents.css. Every prop is plain data, so a skill can
33
33
  * write a sheet as JSON. The close always ends on who else decides, the one
34
34
  * beat every first call carries, set from the labels so no sheet can drop it.
35
35
  */
36
36
 
37
37
  /** A paragraph: a plain string, or runs of text and links in order. */
38
- export type FirstCallParagraph = ArtifactParagraph;
38
+ export type DiscoveryParagraph = ArtifactParagraph;
39
39
 
40
40
  /** One line of the brief: who, how they booked, the listing, the read. */
41
- export interface FirstCallFact {
41
+ export interface DiscoveryFact {
42
42
  label: string;
43
- body: FirstCallParagraph;
43
+ body: DiscoveryParagraph;
44
44
  /** Sets the fact apart on a tinted ground, for the one that matters most. */
45
45
  box?: boolean;
46
46
  }
47
47
 
48
48
  /** One numbered step of the open or the close. */
49
- export interface FirstCallStep {
49
+ export interface DiscoveryStep {
50
50
  /** The step, set in bold. */
51
51
  label: string;
52
52
  /** The words under it, e.g. the question as it would be asked. */
@@ -54,7 +54,7 @@ export interface FirstCallStep {
54
54
  }
55
55
 
56
56
  /** One thing to show: the line, where it opens live, and the picture of it. */
57
- export interface FirstCallShow {
57
+ export interface DiscoveryShow {
58
58
  text: string;
59
59
  /** Where to open it on the call: in a new tab for an http(s) link, in place otherwise. */
60
60
  href?: string;
@@ -68,22 +68,22 @@ export interface FirstCallShow {
68
68
  }
69
69
 
70
70
  /** The ids the page takes for itself (the shell's main, the sheet's sections), which no unit's id may repeat. */
71
- export const firstCallSectionIds = ["main", "brief", "open", "close"] as const;
71
+ export const discoverySectionIds = ["main", "brief", "open", "close"] as const;
72
72
 
73
73
  /** One topic: what we show, the questions it raises, the moves it leads to. */
74
- export interface FirstCallUnit {
75
- /** The anchor the unit chips jump to: lowercase, unique, and none of firstCallSectionIds. */
74
+ export interface DiscoveryUnit {
75
+ /** The anchor the unit chips jump to: lowercase, unique, and none of discoverySectionIds. */
76
76
  id: string;
77
77
  title: string;
78
78
  /** The unit in one breath, under its heading. */
79
79
  tldr: string;
80
- show: FirstCallShow[];
80
+ show: DiscoveryShow[];
81
81
  ask: string[];
82
82
  move: string[];
83
83
  }
84
84
 
85
85
  /** The fixed words the sheet sets, each overridable through `labels`. */
86
- export interface FirstCallLabels {
86
+ export interface DiscoveryLabels {
87
87
  preparedFor: string;
88
88
  brief: string;
89
89
  open: string;
@@ -97,7 +97,7 @@ export interface FirstCallLabels {
97
97
  whoElse: string;
98
98
  }
99
99
 
100
- export const firstCallLabels: FirstCallLabels = {
100
+ export const discoveryLabels: DiscoveryLabels = {
101
101
  preparedFor: "Prepared for",
102
102
  brief: "The Brief",
103
103
  open: "Open",
@@ -110,21 +110,21 @@ export const firstCallLabels: FirstCallLabels = {
110
110
  whoElse: "Who else decides, and should they join the next call?",
111
111
  };
112
112
 
113
- export interface FirstCallProps {
113
+ export interface DiscoveryProps {
114
114
  title: string;
115
115
  /** Who the call is with, set in the dateline: "Prepared for <person, business>". */
116
116
  preparedFor: string;
117
117
  /** The when line: the date, the 24 hour time, the place, the minutes booked. */
118
118
  when: string;
119
- brief: FirstCallFact[];
119
+ brief: DiscoveryFact[];
120
120
  /** A picture beside the brief, e.g. the business's map card. */
121
121
  briefShot?: WriteupShot;
122
- open: FirstCallStep[];
122
+ open: DiscoveryStep[];
123
123
  /** One per topic, as many as the call has. */
124
- units: FirstCallUnit[];
124
+ units: DiscoveryUnit[];
125
125
  /** The close's steps; who else decides follows them. */
126
- close: FirstCallStep[];
127
- labels?: Partial<FirstCallLabels>;
126
+ close: DiscoveryStep[];
127
+ labels?: Partial<DiscoveryLabels>;
128
128
  }
129
129
 
130
130
  /** The unit's number as the sheet sets it: 01, 02, and on. */
@@ -133,7 +133,7 @@ function unitNumber(index: number): string {
133
133
  }
134
134
 
135
135
  /** The read's numbered steps: the open and the close. */
136
- function Steps({ steps }: { steps: FirstCallStep[] }) {
136
+ function Steps({ steps }: { steps: DiscoveryStep[] }) {
137
137
  return (
138
138
  <ol className="rd-steps">
139
139
  {steps.map((step, i) => (
@@ -183,16 +183,16 @@ function Unit({
183
183
  index,
184
184
  labels,
185
185
  }: {
186
- unit: FirstCallUnit;
186
+ unit: DiscoveryUnit;
187
187
  index: number;
188
- labels: FirstCallLabels;
188
+ labels: DiscoveryLabels;
189
189
  }) {
190
190
  const shows = unit.show.map((line, i) => (
191
191
  <Callout
192
192
  tone={line.broken ? "bad" : "warn"}
193
193
  toneLabel={line.broken ? undefined : labels.show}
194
194
  title={
195
- line.href ? <FirstCallAnchor href={line.href}>{line.text}</FirstCallAnchor> : line.text
195
+ line.href ? <DiscoveryAnchor href={line.href}>{line.text}</DiscoveryAnchor> : line.text
196
196
  }
197
197
  // biome-ignore lint/suspicious/noArrayIndexKey: show lines are static content in a fixed order
198
198
  key={i}
@@ -203,7 +203,7 @@ function Unit({
203
203
  <>
204
204
  <div className="op-part" id={unit.id}>
205
205
  <h2>
206
- <span className="fc-unit-no">{unitNumber(index)}</span> {unit.title}
206
+ <span className="ds-unit-no">{unitNumber(index)}</span> {unit.title}
207
207
  </h2>
208
208
  </div>
209
209
  <section className="op-topic">
@@ -215,13 +215,13 @@ function Unit({
215
215
  </header>
216
216
  <div className="op-blocks">
217
217
  {shows.length > 0 && (
218
- <div className="op-block rd-beat fc-show">
218
+ <div className="op-block rd-beat ds-show">
219
219
  <h4>{labels.show}</h4>
220
220
  <Findings items={shows} shots={shots} />
221
221
  </div>
222
222
  )}
223
223
  {unit.ask.length > 0 && (
224
- <div className="op-block rd-beat fc-ask">
224
+ <div className="op-block rd-beat ds-ask">
225
225
  <h4>{labels.ask}</h4>
226
226
  <IconList
227
227
  icon={<MessageCircleQuestion size={16} />}
@@ -230,7 +230,7 @@ function Unit({
230
230
  </div>
231
231
  )}
232
232
  {unit.move.length > 0 && (
233
- <div className="op-block rd-beat fc-move">
233
+ <div className="op-block rd-beat ds-move">
234
234
  <h4>{labels.move}</h4>
235
235
  <IconList
236
236
  icon={<ArrowRight size={16} strokeWidth={2.5} />}
@@ -244,7 +244,7 @@ function Unit({
244
244
  );
245
245
  }
246
246
 
247
- export function FirstCall({
247
+ export function Discovery({
248
248
  title,
249
249
  preparedFor,
250
250
  when,
@@ -254,8 +254,8 @@ export function FirstCall({
254
254
  units,
255
255
  close,
256
256
  labels: overrides,
257
- }: FirstCallProps) {
258
- const labels = { ...firstCallLabels, ...overrides };
257
+ }: DiscoveryProps) {
258
+ const labels = { ...discoveryLabels, ...overrides };
259
259
  const facts = brief.map((fact, i) => (
260
260
  <Callout
261
261
  tone="info"
@@ -268,7 +268,7 @@ export function FirstCall({
268
268
  </Callout>
269
269
  ));
270
270
  return (
271
- <div className="op rd fc">
271
+ <div className="op rd ds">
272
272
  <article className="op-doc rd-doc">
273
273
  <header className="op-head">
274
274
  <p className="op-meta">
@@ -302,7 +302,7 @@ export function FirstCall({
302
302
  )}
303
303
  {/* Outside the read's plan section, whose link rule would restyle every chip as a prose link. */}
304
304
  {units.length > 1 && (
305
- <nav className="fc-units" aria-label={labels.unitsNav}>
305
+ <nav className="ds-units" aria-label={labels.unitsNav}>
306
306
  {units.map((unit, i) => (
307
307
  <Chip dot href={`#${unit.id}`} key={unit.id}>
308
308
  {i + 1}. {unit.title}
@@ -43,15 +43,16 @@ import { isRuns, type ReadTopic, Topic } from "./Topic";
43
43
  * sender and recipient lockup where the header was, and the pointer to the
44
44
  * hosted twin with its QR under the sign off.
45
45
  *
46
- * A read may carry a plan document beside it. Then the head stays on top,
47
- * a row of two tabs follows, The Plan first and The Read second, and the
48
- * sign off stays at the foot under both. The plan tab holds the plan as a
46
+ * A read may carry a plan document ahead of it and a proposal document after
47
+ * it. Then the head stays on top, a row of tabs follows (The Plan, The Read,
48
+ * The Proposal, each present only when its document is), and the sign off
49
+ * stays at the foot under all of them. The plan tab holds the plan as a
49
50
  * document of its own: a lede, then sections, each a heading, an optional
50
51
  * timeline line, and paragraphs, lists, and tables, with parts under it. The
51
- * read tab holds everything that sat between the head and the foot before.
52
- * On paper there are no tabs: the plan prints first, then the read on a new
53
- * page, each under its tab's name. Without a plan document the page is the
54
- * one it always was.
52
+ * proposal tab holds the proposal in the same shape. The read tab holds
53
+ * everything that sat between the head and the foot before. On paper there
54
+ * are no tabs: each document prints in order on a new page, under its tab's
55
+ * name. With neither document the page is the one it always was.
55
56
  */
56
57
 
57
58
  /** Whether anything on the page came from the owner's own consoles. */
@@ -201,12 +202,24 @@ export interface PlanDocument {
201
202
  sections: PlanSection[];
202
203
  }
203
204
 
204
- /** The read tab's id, so a route holding the selected tab can tell the two apart. */
205
+ /**
206
+ * The proposal as a document of its own, the same shape as the plan
207
+ * (sections, parts, blocks), set in the proposal tab after the read: what
208
+ * success looks like, the measures, the terms, and the next steps, with a
209
+ * measure that rests on a finding linking to its card. Its `id` defaults to
210
+ * `theProposalTabId` and its `title` to the `proposalTab` label.
211
+ */
212
+ export type ProposalDocument = PlanDocument;
213
+
214
+ /** The read tab's id, so a route holding the selected tab can tell the tabs apart. */
205
215
  export const theReadTabId = "read";
206
216
 
207
217
  /** The plan tab's id when the plan document names none. */
208
218
  export const thePlanTabId = "plan";
209
219
 
220
+ /** The proposal tab's id when the proposal document names none. */
221
+ export const theProposalTabId = "proposal";
222
+
210
223
  /** The close: one line, then the sign off. */
211
224
  export interface ReadClose {
212
225
  /** One sentence, e.g. what follows and when. */
@@ -257,7 +270,9 @@ export interface ReadLabels {
257
270
  planTab?: string;
258
271
  /** The read tab's name. */
259
272
  readTab?: string;
260
- /** What a screen reader calls the row of tabs. */
273
+ /** The proposal tab's name when the proposal document names none. */
274
+ proposalTab?: string;
275
+ /** What a screen reader calls the row of tabs; left out, it names the tabs present. */
261
276
  tabsLabel?: string;
262
277
  }
263
278
 
@@ -278,9 +293,17 @@ export const readLabels: Required<ReadLabels> = {
278
293
  "This page is read from the outside, through what anyone can open. A customer's read adds what the owner's own consoles show.",
279
294
  planTab: "The Plan",
280
295
  readTab: "The Read",
296
+ proposalTab: "The Proposal",
281
297
  tabsLabel: "The plan and the read",
282
298
  };
283
299
 
300
+ /** What a screen reader calls the row of tabs when the labels name nothing: the tabs present, in order. */
301
+ function defaultTabsLabel(plan: boolean, proposal: boolean): string {
302
+ if (plan && proposal) return "The plan, the read, and the proposal";
303
+ if (proposal) return "The read and the proposal";
304
+ return readLabels.tabsLabel;
305
+ }
306
+
284
307
  export interface TheReadProps {
285
308
  /** Whether anything on the page came from the owner's own consoles; a private read deploys only behind the wall. */
286
309
  access: ReadAccess;
@@ -305,9 +328,15 @@ export interface TheReadProps {
305
328
  tiers: ReadTier[];
306
329
  /** The numbered steps between the scorecard and the cards. Superseded by `planDocument`, and to be removed at the next major. */
307
330
  plan: ReadPlan;
308
- /** The plan as a document of its own: set, the page becomes two tabs, The Plan first and The Read second. */
331
+ /** The plan as a document of its own: set, the page becomes tabs, The Plan first and open, then The Read (and The Proposal, when set). */
309
332
  planDocument?: PlanDocument;
310
- /** Held by the caller: the open tab's id. Pass `onSelectTab` with it; the plan tab opens first when left out. */
333
+ /**
334
+ * The proposal as a document of its own: set, the page gains The Proposal
335
+ * as its last tab. With no plan document the page is two tabs, The Read
336
+ * then The Proposal, and the read opens first.
337
+ */
338
+ proposalDocument?: ProposalDocument;
339
+ /** Held by the caller: the open tab's id. Pass `onSelectTab` with it; left out, the plan tab opens first, or the read tab when there is no plan. */
311
340
  selectedTab?: string;
312
341
  /** Called with a tab's id whenever the reader, a link, or a hash opens it, e.g. to swap the header's stops. */
313
342
  onSelectTab?: (id: string) => void;
@@ -671,10 +700,10 @@ function PlanBody({ part }: { part: PlanPart }) {
671
700
  );
672
701
  }
673
702
 
674
- /** The plan tab's panel: the lede, then each section under its heading, its parts under theirs. */
675
- function PlanDocumentView({ doc }: { doc: PlanDocument }) {
703
+ /** A plan shaped tab's panel (the plan's or the proposal's): the lede, then each section under its heading, its parts under theirs. */
704
+ function PlanDocumentView({ doc, className }: { doc: PlanDocument; className?: string }) {
676
705
  return (
677
- <div className="rd-plan-doc">
706
+ <div className={className ? `rd-plan-doc ${className}` : "rd-plan-doc"}>
678
707
  {filled(doc.lede) && <Paragraph paragraph={doc.lede} className="rd-plan-doc-lede" />}
679
708
  {(doc.sections ?? []).filter(Boolean).map((section) => (
680
709
  <section className="rd-plan-section" id={section.id} key={section.id}>
@@ -735,6 +764,7 @@ export function TheRead({
735
764
  tiers,
736
765
  plan,
737
766
  planDocument,
767
+ proposalDocument,
738
768
  selectedTab,
739
769
  onSelectTab,
740
770
  close,
@@ -746,8 +776,11 @@ export function TheRead({
746
776
  const shownNote = filled(note) ? note : access === "public" ? labels.publicNote : undefined;
747
777
  const signOff = Boolean(close.signOff && close.person);
748
778
  const planTab = planDocument?.id?.trim() || thePlanTabId;
779
+ const proposalTab = proposalDocument?.id?.trim() || theProposalTabId;
780
+ const tabsLabel =
781
+ overrides?.tabsLabel ?? defaultTabsLabel(Boolean(planDocument), Boolean(proposalDocument));
749
782
  // Everything between the head and the foot: the whole page without a plan
750
- // document, the read tab's panel with one.
783
+ // or a proposal document, the read tab's panel with either.
751
784
  const body = (
752
785
  <>
753
786
  {shownTiers.length > 0 && (
@@ -802,21 +835,38 @@ export function TheRead({
802
835
  <h1>{title}</h1>
803
836
  {filled(lede) && <Paragraph paragraph={lede} className="op-intro rd-lede" />}
804
837
  </header>
805
- {planDocument ? (
838
+ {planDocument || proposalDocument ? (
806
839
  <Tabs
807
840
  className="rd-tabs"
808
- ariaLabel={labels.tabsLabel ?? readLabels.tabsLabel}
841
+ ariaLabel={tabsLabel}
809
842
  headingLevel={2}
810
- defaultId={planTab}
843
+ defaultId={planDocument ? planTab : theReadTabId}
811
844
  selectedId={selectedTab}
812
845
  onSelect={onSelectTab}
813
846
  tabs={[
814
- {
815
- id: planTab,
816
- label: planDocument.title?.trim() || (labels.planTab ?? readLabels.planTab),
817
- content: <PlanDocumentView doc={planDocument} />,
818
- },
847
+ ...(planDocument
848
+ ? [
849
+ {
850
+ id: planTab,
851
+ label: planDocument.title?.trim() || (labels.planTab ?? readLabels.planTab),
852
+ content: <PlanDocumentView doc={planDocument} />,
853
+ },
854
+ ]
855
+ : []),
819
856
  { id: theReadTabId, label: labels.readTab ?? readLabels.readTab, content: body },
857
+ ...(proposalDocument
858
+ ? [
859
+ {
860
+ id: proposalTab,
861
+ label:
862
+ proposalDocument.title?.trim() ||
863
+ (labels.proposalTab ?? readLabels.proposalTab),
864
+ content: (
865
+ <PlanDocumentView doc={proposalDocument} className="rd-proposal-doc" />
866
+ ),
867
+ },
868
+ ]
869
+ : []),
820
870
  ]}
821
871
  />
822
872
  ) : (
@@ -1,10 +1,10 @@
1
1
  /* The composed documents in this package: the sealed document stage (Gate),
2
2
  the monthly page (Report), the read (TheRead, with its section card in
3
- Topic), the note (Note), and the first call sheet (FirstCall). Moved from
3
+ Topic), the note (Note), and the discovery sheet (Discovery). Moved from
4
4
  @atelic-action/ui's styles/artifact.css with the documents (ATE-671), in
5
5
  the order that sheet bundled them, which the two @page rules depend on:
6
6
  the later one wins, and the read's is the later one. The note and the
7
- first call sheet follow the read and set no @page, so the read's stays
7
+ discovery sheet follow the read and set no @page, so the read's stays
8
8
  the one that wins.
9
9
 
10
10
  The pieces the documents share stay in @atelic-action/ui: the grade chip
@@ -2548,7 +2548,8 @@
2548
2548
  .atelic-ui .rd-tabs .tabs-print-heading {
2549
2549
  break-after: avoid;
2550
2550
  }
2551
- /* The plan prints first and the read starts a page of its own, each
2551
+ /* Every panel prints in order, each after the first on a page of its
2552
+ own (the read after the plan, the proposal after the read), each
2552
2553
  under its tab's name, set as a tier's heading is. */
2553
2554
  .atelic-ui .rd-tabs > .tabs-panel + .tabs-panel {
2554
2555
  break-before: page;
@@ -2564,39 +2565,39 @@
2564
2565
  }
2565
2566
  }
2566
2567
 
2567
- /* ---- the first call sheet (FirstCall): the read's topic and findings
2568
+ /* ---- the discovery sheet (Discovery): the read's topic and findings
2568
2569
  blocks and the read's steps carry it; these are the few rules it adds
2569
2570
  (the Claude Design cut of 2026-10-23) ---- */
2570
- .atelic-ui .fc-units {
2571
+ .atelic-ui .ds-units {
2571
2572
  display: flex;
2572
2573
  flex-wrap: wrap;
2573
2574
  gap: 8px;
2574
2575
  margin-top: 18px;
2575
2576
  }
2576
2577
  /* A long unit title wraps rather than pushing the phone page sideways. */
2577
- .atelic-ui .fc-units .chip {
2578
+ .atelic-ui .ds-units .chip {
2578
2579
  white-space: normal;
2579
2580
  }
2580
- .atelic-ui .fc-unit-no {
2581
+ .atelic-ui .ds-unit-no {
2581
2582
  font-family: var(--font-mono);
2582
2583
  font-weight: 500;
2583
2584
  color: var(--primary);
2584
2585
  margin-right: 6px;
2585
2586
  }
2586
- .atelic-ui .fc .fc-ask .icon-list {
2587
+ .atelic-ui .ds .ds-ask .icon-list {
2587
2588
  --tone: var(--ink);
2588
2589
  }
2589
- .atelic-ui .fc .fc-move .icon-list {
2590
+ .atelic-ui .ds .ds-move .icon-list {
2590
2591
  --tone: var(--primary);
2591
2592
  }
2592
2593
  /* A show line links to where it opens live, but reads as a plain callout:
2593
2594
  the link takes the ink and shows itself on hover. */
2594
- .atelic-ui .fc-show .callout-title a {
2595
+ .atelic-ui .ds-show .callout-title a {
2595
2596
  color: inherit;
2596
2597
  text-decoration: none;
2597
2598
  }
2598
- .atelic-ui .fc-show .callout-title a:hover,
2599
- .atelic-ui .fc-show .callout-title a:focus-visible {
2599
+ .atelic-ui .ds-show .callout-title a:hover,
2600
+ .atelic-ui .ds-show .callout-title a:focus-visible {
2600
2601
  color: var(--primary);
2601
2602
  text-decoration: underline;
2602
2603
  }
@@ -5,7 +5,7 @@
5
5
  * depends on and never copies, and wears the styles in ./documents.css.
6
6
  */
7
7
  export type { WriteupGrade, WriteupPerson, WriteupShot } from "@atelic-action/ui/artifact";
8
- export * from "./FirstCall";
8
+ export * from "./Discovery";
9
9
  export { Gate, type GatePayload, type GatePerson, type GateProps, normalizeEmail } from "./Gate";
10
10
  export * from "./Note";
11
11
  export * from "./Report";