@atelic-action/artifact 5.2.0 → 6.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
|
@@ -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
|
|
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 **
|
|
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 **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
|
|
|
@@ -34,10 +34,10 @@ Every export of the package, all from the one entry, `@atelic-action/artifact`.
|
|
|
34
34
|
| `ReportLead`, `ReportLeads`, `ReportGradeRow` | The shapes a monthly page's content is written in | none |
|
|
35
35
|
| `Note`, `NoteProps` | The first touch set as a page: the opener, two lanes of findings, where the work would start, the close | `/notes` |
|
|
36
36
|
| `NoteLane`, `NoteFinding`, `NoteStart`, `NoteStep`, `NoteClose`, `NoteLink`, `NoteParagraph` | The shapes a note's content is written in | none |
|
|
37
|
-
| `
|
|
38
|
-
| `
|
|
39
|
-
| `
|
|
40
|
-
| `
|
|
37
|
+
| `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` |
|
|
38
|
+
| `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` |
|
|
39
|
+
| `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 |
|
|
40
|
+
| `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 |
|
|
41
41
|
| `Gate`, `GateProps`, `GatePayload`, `GatePerson` | The sealed document, opened in the browser by the reader's own address, and the payload it opens | `/proposal` |
|
|
42
42
|
| `normalizeEmail` | How a typed address becomes the key a payload opens with; the sealing command mirrors it | none |
|
|
43
43
|
| `documents.css` | The documents' styles, at `@atelic-action/artifact/styles/documents.css` | every route |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atelic-action/artifact",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "The composed documents the Atelic practice hands or sends a business (the read, the monthly page, the note, the
|
|
3
|
+
"version": "6.0.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
|
|
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
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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
|
|
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
|
|
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
|
|
41
|
+
export interface DiscoveryFact {
|
|
42
42
|
label: string;
|
|
43
|
-
body:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
75
|
-
/** The anchor the unit chips jump to: lowercase, unique, and none of
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
119
|
+
brief: DiscoveryFact[];
|
|
120
120
|
/** A picture beside the brief, e.g. the business's map card. */
|
|
121
121
|
briefShot?: WriteupShot;
|
|
122
|
-
open:
|
|
122
|
+
open: DiscoveryStep[];
|
|
123
123
|
/** One per topic, as many as the call has. */
|
|
124
|
-
units:
|
|
124
|
+
units: DiscoveryUnit[];
|
|
125
125
|
/** The close's steps; who else decides follows them. */
|
|
126
|
-
close:
|
|
127
|
-
labels?: Partial<
|
|
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:
|
|
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:
|
|
186
|
+
unit: DiscoveryUnit;
|
|
187
187
|
index: number;
|
|
188
|
-
labels:
|
|
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 ? <
|
|
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="
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
}:
|
|
258
|
-
const labels = { ...
|
|
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
|
|
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="
|
|
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}
|
|
@@ -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
|
|
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
|
-
|
|
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
|
|
@@ -2564,39 +2564,39 @@
|
|
|
2564
2564
|
}
|
|
2565
2565
|
}
|
|
2566
2566
|
|
|
2567
|
-
/* ---- the
|
|
2567
|
+
/* ---- the discovery sheet (Discovery): the read's topic and findings
|
|
2568
2568
|
blocks and the read's steps carry it; these are the few rules it adds
|
|
2569
2569
|
(the Claude Design cut of 2026-10-23) ---- */
|
|
2570
|
-
.atelic-ui .
|
|
2570
|
+
.atelic-ui .ds-units {
|
|
2571
2571
|
display: flex;
|
|
2572
2572
|
flex-wrap: wrap;
|
|
2573
2573
|
gap: 8px;
|
|
2574
2574
|
margin-top: 18px;
|
|
2575
2575
|
}
|
|
2576
2576
|
/* A long unit title wraps rather than pushing the phone page sideways. */
|
|
2577
|
-
.atelic-ui .
|
|
2577
|
+
.atelic-ui .ds-units .chip {
|
|
2578
2578
|
white-space: normal;
|
|
2579
2579
|
}
|
|
2580
|
-
.atelic-ui .
|
|
2580
|
+
.atelic-ui .ds-unit-no {
|
|
2581
2581
|
font-family: var(--font-mono);
|
|
2582
2582
|
font-weight: 500;
|
|
2583
2583
|
color: var(--primary);
|
|
2584
2584
|
margin-right: 6px;
|
|
2585
2585
|
}
|
|
2586
|
-
.atelic-ui .
|
|
2586
|
+
.atelic-ui .ds .ds-ask .icon-list {
|
|
2587
2587
|
--tone: var(--ink);
|
|
2588
2588
|
}
|
|
2589
|
-
.atelic-ui .
|
|
2589
|
+
.atelic-ui .ds .ds-move .icon-list {
|
|
2590
2590
|
--tone: var(--primary);
|
|
2591
2591
|
}
|
|
2592
2592
|
/* A show line links to where it opens live, but reads as a plain callout:
|
|
2593
2593
|
the link takes the ink and shows itself on hover. */
|
|
2594
|
-
.atelic-ui .
|
|
2594
|
+
.atelic-ui .ds-show .callout-title a {
|
|
2595
2595
|
color: inherit;
|
|
2596
2596
|
text-decoration: none;
|
|
2597
2597
|
}
|
|
2598
|
-
.atelic-ui .
|
|
2599
|
-
.atelic-ui .
|
|
2598
|
+
.atelic-ui .ds-show .callout-title a:hover,
|
|
2599
|
+
.atelic-ui .ds-show .callout-title a:focus-visible {
|
|
2600
2600
|
color: var(--primary);
|
|
2601
2601
|
text-decoration: underline;
|
|
2602
2602
|
}
|
package/src/documents/index.ts
CHANGED
|
@@ -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 "./
|
|
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";
|