@atelic-action/artifact 6.6.0 → 7.0.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
@@ -21,7 +21,7 @@ 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. The head is the same for every business: `title` left out is the `overviewTitle` label and `preparedFor` ("Overview of Summit Movement Studio"), `lede` left out is the `overviewLede` label with the business in it, and under the lede the fine print, a row each with its word on the left: `period` ("2026-08-01 to 2026-10-31", the window every reading on the page is read over, under the `periodLabel` word) and `sources` (the public sources on one line, the private ones on the next, each a link in a new tab, under the `sourcesLabel` word); a read that sets neither has no fine print. The page is up to four tabs under that head, in a fixed order, each document tab present only when its document is: given a `stateDocument`, The Situation (the problems, by tier, each linked to its card); given a `planDocument`, The Plan; given a `proposalDocument`, The Proposal; and The Full Read, which holds everything that sat between the head and the sign off, always last. The first tab present opens. 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. With no document the page is the one it always was | `/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 head is the same for every business: `title` left out is the `overviewTitle` label and `preparedFor` ("Overview of Summit Movement Studio"), `lede` left out is the `overviewLede` label with the business in it, and under the lede the fine print, a row each with its word on the left: `period` ("2026-08-01 to 2026-10-31", the window every reading on the page is read over, under the `periodLabel` word) and `sources` (the public sources on one line, the private ones on the next, each a link in a new tab, under the `sourcesLabel` word); a read that sets neither has no fine print. The page is up to four tabs under that head, in a fixed order, each document tab present only when its document is: given a `stateDocument`, The Situation (the problems, by tier, each linked to its card); given a `planDocument`, The Plan; given a `proposalDocument`, The Proposal; and The Full Read, which holds everything that sat between the head and the sign off, always last. The first tab present opens. 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. The seed's `/the-read` route also opens the tab its query names (`?tab=plan`, with `situation` and `proposal` accepted), and the query is what a sent link uses, since the wall's sign in keeps the path and the query and drops the hash. With no document the page is the one it always was | `/the-read` |
25
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 standard head's words (`overviewTitle`, `overviewLede` with `{business}` in it, `periodLabel`, `sourcesLabel`, `publicSources`, `privateSources`), the four tabs' names (`stateTab`, `planTab`, `proposalTab`, `readTab`: The Situation, The Plan, The Proposal, The Full Read), 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
  | `StateDocument` | The situation tab's document, the same shape as `PlanDocument`: the problems the read found, one section per tier (Health, Visibility, Conversion), each line linked to the card that shows it, so the plan answers them in the same order. Its panel wears `rd-state-doc` beside `rd-plan-doc`. Its `id` defaults to `theStateTabId` and its `title` to the `stateTab` label | `/the-read` |
27
27
  | `ReadSources` | The sources the read was built from, for the fine print's sources row: `public` links (the site, Google, PageSpeed, the AI answers) and the owner's `private` consoles | `/the-read` |
@@ -105,7 +105,7 @@ A business's artifacts live in one folder of `atelic-action/artifacts`, named by
105
105
 
106
106
  1. **Content**, in `src/content/`. One module per artifact: the real read, every number dated and defensible in the room, graded and shaped by the practice's `FOOTPRINT.md` and written to its pitch surface rules (`Brand/VOICE.md`, Pitch Surfaces 15 to 21). In `the-read.tsx`, `access` says whether any reading came from the owner's own consoles, which picks the caveat over the scorecard and says nothing about the host; print flows the page across as many letter pages as it needs, and `theReadStops` names the header's stops.
107
107
  2. **Images**, split by what they are. Logos are brand marks and go in `public/brand/` (the recipient's logo, e.g. `public/brand/<name>.svg`), which the access wall leaves open so the header and the login page can draw them. The owner's own screens (the full screenshot for the click through and a tight crop for the column) and the QR for the twin, pointing at the bare host (`qr "https://<short>.atelic.me" > public/images/qr.png` with the `qrcode` package), go in `public/images/`, which the wall holds on a private artifact. A cut made before this split moves its recipient logo from `public/images/` to `public/brand/` and repoints `recipient.logo.src`.
108
- 3. **Config**, in `src/site.config.ts`. `url` is the host, `access` is always `"private"`, since every document sits behind the wall (the depth of the readings is the read's own `access`, not this one), `recipient` is the business it was prepared for (with its `logo` under `/brand/`), `sender` is the practice, and `analytics` is the HubSpot loader so an open reports to the CRM, with `identify` naming who each link identifies so the open lands on that person's contact (`bun run reader <email>` mints a reader, sealed so no address ships in the page's script, and prints their link; a private artifact needs nobody listed, because the wall identifies whoever signs in; [DEPLOY.md](DEPLOY.md), Who Opened It).
108
+ 3. **Config**, in `src/site.config.ts`. `url` is the host, `access` is always `"private"`, since every document sits behind the wall (the depth of the readings is the read's own `access`, not this one), `recipient` is the business it was prepared for (with its `logo` under `/brand/`), `sender` is the practice, and `analytics` is the HubSpot loader so an open reports to the CRM, naming nobody, since the wall identifies whoever signs in ([DEPLOY.md](DEPLOY.md), Who Opened It).
109
109
  4. **The printed copy**: `bun build`, then `bun run print dist/client public/the-read.pdf`, which prints with every collapsible open and reports the sheet count, or `bun run print dist/client <out.pdf> 1 /report` for the monthly page, which fails if it misses its one sheet. Commit the read's PDF beside the page, and file a dated copy in the client's folder of the practice repo.
110
110
 
111
111
  Every artifact deploys only behind the armed wall, which holds the screenshots, the PDF, and the built content chunks as well as the pages, and `bun run check:wall <short>.atelic.me` must pass before any link goes out ([ACCESS-GATE.md](ACCESS-GATE.md)).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atelic-action/artifact",
3
- "version": "6.6.0",
3
+ "version": "7.0.0",
4
4
  "description": "The composed documents the Atelic practice hands or sends a business (the read, the monthly page, the note, the discovery sheet, the first call sheet, and the sealed document), built from the pieces in @atelic-action/ui",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -37,12 +37,12 @@
37
37
  "format": "biome format . --write"
38
38
  },
39
39
  "peerDependencies": {
40
- "@atelic-action/ui": "^3.10.0",
40
+ "@atelic-action/ui": "^4.0.0",
41
41
  "lucide-react": "^1.23.0",
42
42
  "react": "^19.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@atelic-action/ui": "^3.10.0",
45
+ "@atelic-action/ui": "^4.0.0",
46
46
  "@biomejs/biome": "^2.0.0",
47
47
  "@playwright/test": "^1.60.0",
48
48
  "@sentry/react": "^10.0.0",
@@ -71,8 +71,7 @@ import { isRuns, type ReadTopic, Topic } from "./Topic";
71
71
  * Every prop but a finding's body, a why line, and the sign off person's
72
72
  * `role` is plain data, and all three are equally happy with a string, so a
73
73
  * routine can write a read as JSON. `print` is the printed copy's own: the
74
- * sender and recipient lockup where the header was, and the pointer to the
75
- * hosted twin with its QR under the sign off.
74
+ * sender and recipient lockup where the header was.
76
75
  *
77
76
  * The head is the same for every business: the dateline, the title
78
77
  * (Overview of the business, unless the content sets its own), the lede
@@ -334,14 +333,12 @@ export interface ReadClose {
334
333
  person?: WriteupPerson;
335
334
  }
336
335
 
337
- /** The printed copy's own: the lockup where the header was, and the pointer to the hosted twin. */
336
+ /** The printed copy's own: the lockup where the header was. */
338
337
  export interface ReadPrint {
339
338
  /** The sender's wordmark text, e.g. "atelic"; drawn with the orange run. */
340
339
  sender: { name: string; href?: string };
341
340
  /** The recipient's logo, lockup right of the sender. */
342
341
  recipient: { logoSrc: string; logoAlt: string };
343
- /** The pointer to the hosted page under the sign off, with its QR. */
344
- twin?: { line: string; domain: string; qrSrc: string };
345
342
  }
346
343
 
347
344
  /** The fixed words the page sets, each overridable. */
@@ -488,7 +485,7 @@ export interface TheReadProps {
488
485
  onSelectTab?: (id: string) => void;
489
486
  close: ReadClose;
490
487
  labels?: Partial<ReadLabels>;
491
- /** The printed copy's lockup and twin; the page prints without them when left out. */
488
+ /** The printed copy's lockup; the page prints without it when left out. */
492
489
  print?: ReadPrint;
493
490
  }
494
491
 
@@ -1110,24 +1107,9 @@ export function TheRead({
1110
1107
  ) : (
1111
1108
  body
1112
1109
  )}
1113
- {(signOff || print?.twin) && (
1110
+ {signOff && close.signOff && close.person && (
1114
1111
  <footer className="op-close rd-close">
1115
- {signOff && close.signOff && close.person && (
1116
- <SignOff signOff={close.signOff} person={close.person} />
1117
- )}
1118
- {print?.twin && (
1119
- <div className="op-twin">
1120
- <div className="op-twin-text">
1121
- {print.twin.line}
1122
- <b>{print.twin.domain}</b>
1123
- </div>
1124
- <img
1125
- className="op-qr"
1126
- src={print.twin.qrSrc}
1127
- alt={`QR code for ${print.twin.domain}`}
1128
- />
1129
- </div>
1130
- )}
1112
+ <SignOff signOff={close.signOff} person={close.person} />
1131
1113
  </footer>
1132
1114
  )}
1133
1115
  </article>
@@ -1511,10 +1511,6 @@
1511
1511
  width: 56px;
1512
1512
  height: 56px;
1513
1513
  }
1514
- /* The pointer to the hosted page belongs to the printed copy alone. */
1515
- .atelic-ui .op-twin {
1516
- display: none;
1517
- }
1518
1514
  .atelic-ui .op-sr-only {
1519
1515
  position: absolute;
1520
1516
  width: 1px;
@@ -1745,30 +1741,6 @@
1745
1741
  .atelic-ui .data-table thead {
1746
1742
  break-after: avoid;
1747
1743
  }
1748
- .atelic-ui .op-twin {
1749
- display: flex;
1750
- align-items: center;
1751
- gap: 14px;
1752
- }
1753
- .atelic-ui .op-twin-text {
1754
- text-align: right;
1755
- font-family: var(--font-mono);
1756
- font-size: 12px;
1757
- letter-spacing: 0.04em;
1758
- }
1759
- .atelic-ui .op-twin-text b {
1760
- display: block;
1761
- font-family: var(--font-sans);
1762
- font-size: 16px;
1763
- font-weight: 600;
1764
- letter-spacing: -0.01em;
1765
- margin-top: 2px;
1766
- }
1767
- .atelic-ui .op-qr {
1768
- width: 96px;
1769
- height: 96px;
1770
- display: block;
1771
- }
1772
1744
  }
1773
1745
 
1774
1746
  /* =================================================================