@atelic-action/artifact 6.5.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 +5 -5
- package/package.json +3 -3
- package/src/documents/TheRead.tsx +17 -34
- package/src/documents/documents.css +0 -28
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` |
|
|
@@ -103,12 +103,12 @@ No environment variables required. Visit [http://localhost:5173](http://localhos
|
|
|
103
103
|
|
|
104
104
|
A business's artifacts live in one folder of `atelic-action/artifacts`, named by the business's short name and served at `<short>.atelic.me` as its own Vercel project with the folder as its root directory, one path per artifact. That host is the business's one address with the practice: the website build, when one is previewed, sits on it at `/proto`, proxied from its own project ([DEPLOY.md](DEPLOY.md), The Website Build Under /proto). Cut it from this one with `git subtree add --prefix=<short> https://github.com/atelic-action/artifact.git main`, run in `artifacts`. A cut is a site, not the package, so it then takes the package from npm instead of carrying its source: delete `src/documents/` and `tst/documents/`, give `package.json` the folder's own name and drop the package's fields (`version`, `files`, `exports`, `sideEffects`, `peerDependencies`), and run `bun add @atelic-action/artifact`. The routes and content already import the documents by the package's name, so nothing else changes. Nothing is pulled forward from here afterward: a document reaches the folder with `bun update @atelic-action/artifact`, and everything else with logic in it is `@atelic-action/ui`'s and arrives with `bun update @atelic-action/ui` ([CLAUDE.md](CLAUDE.md), What a Cut Takes From Here). Delete the artifacts the engagement does not need (the route, the content module, and the prerender entry), then touch four surfaces:
|
|
105
105
|
|
|
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
|
|
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
|
|
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)).
|
|
112
112
|
|
|
113
113
|
The theme stays the practice's (Geist, ink, the orange) unless the artifact should wear the client's brand, in which case `src/styles/theme.css` and the two font files swap and nothing else moves. Check the phone at 390 wide in a real browser before deploying.
|
|
114
114
|
|
|
@@ -122,7 +122,7 @@ The theme stays the practice's (Geist, ink, the orange) unless the artifact shou
|
|
|
122
122
|
| [src/content/README.md](src/content/README.md) | Authoring the content modules |
|
|
123
123
|
| [src/styles/README.md](src/styles/README.md) | The theming system and how to derive a new palette |
|
|
124
124
|
| [GATE.md](GATE.md) | The sealed document gate: opens with the reader's own email, with HubSpot open tracking |
|
|
125
|
-
| [ACCESS-GATE.md](ACCESS-GATE.md) | The email tied sign in wall over the whole host,
|
|
125
|
+
| [ACCESS-GATE.md](ACCESS-GATE.md) | The email tied sign in wall over the whole host, always on, with the build guard and the wall check |
|
|
126
126
|
| [DEPLOY.md](DEPLOY.md) | The deploy motion: Vercel, the subdomain, the wall for a private artifact, the observability layers |
|
|
127
127
|
| [LAUNCH.md](LAUNCH.md) | The per artifact send checklist template, stamped into a Linear ticket |
|
|
128
128
|
| [TEARDOWN.md](TEARDOWN.md) | The reverse motion: retiring a subdomain and its Vercel project |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atelic-action/artifact",
|
|
3
|
-
"version": "
|
|
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": "^
|
|
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": "^
|
|
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",
|
|
@@ -60,18 +60,18 @@ import { isRuns, type ReadTopic, Topic } from "./Topic";
|
|
|
60
60
|
* is never graded; then one closing line and the sign off. A beat with
|
|
61
61
|
* nothing in it is left out.
|
|
62
62
|
*
|
|
63
|
-
* The same page at two depths, and `access` says which
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
63
|
+
* The same page at two depths, and `access` says which: "public" when every
|
|
64
|
+
* reading came from public sources, "private" when any came from the
|
|
65
|
+
* owner's own consoles. It is the depth of the readings and nothing about
|
|
66
|
+
* the host, which is always behind the wall (`access` in site.config.ts).
|
|
67
|
+
* The component draws whatever beats the content carries; `access` picks
|
|
68
|
+
* the caveat, so a public read with no note of its own gets the standing
|
|
69
|
+
* one over its scorecard.
|
|
69
70
|
*
|
|
70
71
|
* Every prop but a finding's body, a why line, and the sign off person's
|
|
71
72
|
* `role` is plain data, and all three are equally happy with a string, so a
|
|
72
73
|
* routine can write a read as JSON. `print` is the printed copy's own: the
|
|
73
|
-
* sender and recipient lockup where the header was
|
|
74
|
-
* hosted twin with its QR under the sign off.
|
|
74
|
+
* sender and recipient lockup where the header was.
|
|
75
75
|
*
|
|
76
76
|
* The head is the same for every business: the dateline, the title
|
|
77
77
|
* (Overview of the business, unless the content sets its own), the lede
|
|
@@ -93,7 +93,7 @@ import { isRuns, type ReadTopic, Topic } from "./Topic";
|
|
|
93
93
|
* name. With no document the page is the one it always was.
|
|
94
94
|
*/
|
|
95
95
|
|
|
96
|
-
/**
|
|
96
|
+
/** The depth of the readings: whether any came from the owner's own consoles. */
|
|
97
97
|
export type ReadAccess = "public" | "private";
|
|
98
98
|
|
|
99
99
|
/** A link inside running text: the words the reader clicks and where they go. */
|
|
@@ -333,14 +333,12 @@ export interface ReadClose {
|
|
|
333
333
|
person?: WriteupPerson;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
/** The printed copy's own: the lockup where the header was
|
|
336
|
+
/** The printed copy's own: the lockup where the header was. */
|
|
337
337
|
export interface ReadPrint {
|
|
338
338
|
/** The sender's wordmark text, e.g. "atelic"; drawn with the orange run. */
|
|
339
339
|
sender: { name: string; href?: string };
|
|
340
340
|
/** The recipient's logo, lockup right of the sender. */
|
|
341
341
|
recipient: { logoSrc: string; logoAlt: string };
|
|
342
|
-
/** The pointer to the hosted page under the sign off, with its QR. */
|
|
343
|
-
twin?: { line: string; domain: string; qrSrc: string };
|
|
344
342
|
}
|
|
345
343
|
|
|
346
344
|
/** The fixed words the page sets, each overridable. */
|
|
@@ -369,7 +367,7 @@ export interface ReadLabels {
|
|
|
369
367
|
sources: string;
|
|
370
368
|
/** The plan's heading when it names none. */
|
|
371
369
|
plan: string;
|
|
372
|
-
/** The note over the scorecard on a public
|
|
370
|
+
/** The note over the scorecard on a read of public depth that sets none: what the read leaves out. */
|
|
373
371
|
publicNote: string;
|
|
374
372
|
/** The words before the business in the title the read sets when the content gives none, e.g. "Overview of". */
|
|
375
373
|
overviewTitle?: string;
|
|
@@ -409,7 +407,7 @@ export const readLabels: Required<ReadLabels> = {
|
|
|
409
407
|
sources: "See it yourself",
|
|
410
408
|
plan: "The Plan",
|
|
411
409
|
publicNote:
|
|
412
|
-
"
|
|
410
|
+
"We built this read from what anyone can see from the outside. Your own accounts, like Search Console, your Business Profile, and your analytics, would sharpen the read once we have access.",
|
|
413
411
|
overviewTitle: "Overview of",
|
|
414
412
|
overviewLede:
|
|
415
413
|
"An overview of {business} prepared by Atelic. It holds a read of the current state of the site, in Health, Visibility, and Conversion, and a proposed plan for improvement.",
|
|
@@ -443,7 +441,7 @@ function defaultTabsLabel(state: boolean, plan: boolean, proposal: boolean): str
|
|
|
443
441
|
}
|
|
444
442
|
|
|
445
443
|
export interface TheReadProps {
|
|
446
|
-
/**
|
|
444
|
+
/** The depth of the readings: "public" when every one came from public sources, "private" when any came from the owner's consoles. It picks the caveat over the scorecard and says nothing about the host. */
|
|
447
445
|
access: ReadAccess;
|
|
448
446
|
/** The title; left out, the `overviewTitle` label and the business ("Overview of Summit Movement Studio"). */
|
|
449
447
|
title?: string;
|
|
@@ -463,7 +461,7 @@ export interface TheReadProps {
|
|
|
463
461
|
gistLead?: string;
|
|
464
462
|
/** The anchor a header stop points at for the scorecard, e.g. "scorecard": on the heading with a `gistTitle`, on the card itself without one. */
|
|
465
463
|
gistId?: string;
|
|
466
|
-
/** A callout over the scorecard, under its heading, e.g. what the read leaves out and when it follows. A public
|
|
464
|
+
/** A callout over the scorecard, under its heading, e.g. what the read leaves out and when it follows. A read of public depth that sets none gets the `publicNote` label. */
|
|
467
465
|
note?: ReadParagraph;
|
|
468
466
|
/** The key: what each letter means, in a few words each. */
|
|
469
467
|
gradeKey?: Array<{ grade: WriteupGrade; label: string }>;
|
|
@@ -487,7 +485,7 @@ export interface TheReadProps {
|
|
|
487
485
|
onSelectTab?: (id: string) => void;
|
|
488
486
|
close: ReadClose;
|
|
489
487
|
labels?: Partial<ReadLabels>;
|
|
490
|
-
/** The printed copy's lockup
|
|
488
|
+
/** The printed copy's lockup; the page prints without it when left out. */
|
|
491
489
|
print?: ReadPrint;
|
|
492
490
|
}
|
|
493
491
|
|
|
@@ -1109,24 +1107,9 @@ export function TheRead({
|
|
|
1109
1107
|
) : (
|
|
1110
1108
|
body
|
|
1111
1109
|
)}
|
|
1112
|
-
{
|
|
1110
|
+
{signOff && close.signOff && close.person && (
|
|
1113
1111
|
<footer className="op-close rd-close">
|
|
1114
|
-
{
|
|
1115
|
-
<SignOff signOff={close.signOff} person={close.person} />
|
|
1116
|
-
)}
|
|
1117
|
-
{print?.twin && (
|
|
1118
|
-
<div className="op-twin">
|
|
1119
|
-
<div className="op-twin-text">
|
|
1120
|
-
{print.twin.line}
|
|
1121
|
-
<b>{print.twin.domain}</b>
|
|
1122
|
-
</div>
|
|
1123
|
-
<img
|
|
1124
|
-
className="op-qr"
|
|
1125
|
-
src={print.twin.qrSrc}
|
|
1126
|
-
alt={`QR code for ${print.twin.domain}`}
|
|
1127
|
-
/>
|
|
1128
|
-
</div>
|
|
1129
|
-
)}
|
|
1112
|
+
<SignOff signOff={close.signOff} person={close.person} />
|
|
1130
1113
|
</footer>
|
|
1131
1114
|
)}
|
|
1132
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
|
/* =================================================================
|