@atelic-action/artifact 6.4.0 → 6.6.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 +9 -6
- package/package.json +2 -2
- package/src/documents/FirstCall.tsx +207 -0
- package/src/documents/TheRead.tsx +12 -11
- package/src/documents/documents.css +118 -3
- package/src/documents/index.ts +1 -0
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 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.
|
|
5
|
+
- **The package**, `@atelic-action/artifact` on npm: the composed documents (the read, the monthly page, the note, the discovery sheet, 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.
|
|
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
|
-
|
|
10
|
+
Six 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, under a standard head (the dateline, the sources, the title and the lede the read sets from the business), with the situation, the plan, and the proposal each in a tab of its own ahead of the full read; 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; the **discovery sheet** at `/discovery`, the desk's page for the first conversation with a business across a table, used to guide the call and not sent for now, written so it could be shared with them later; and the **first call sheet** at `/first-call`, the desk's page for a first call by phone, one numbered run of single questions with the practice's give in the middle, which carries desk notes and so sits behind the sign in. 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
|
|
|
@@ -41,6 +41,9 @@ Every export of the package, all from the one entry, `@atelic-action/artifact`.
|
|
|
41
41
|
| `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` |
|
|
42
42
|
| `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 |
|
|
43
43
|
| `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 |
|
|
44
|
+
| `FirstCall`, `FirstCallProps` | The desk's sheet for a first call by phone: the brief as labeled lines, the call as one numbered run of single questions in blocks, what the practice says (the give) as iconed lines with a fix under each, a note under a question saying what the answer means, and the qualifying checks as chips at the foot. The desk's page alone, never sent, so it carries desk posture and sits behind the sign in | `/first-call` |
|
|
45
|
+
| `firstCallLabels`, `FirstCallLabels` | The fixed words the sheet sets (Prepared for, Brief, Say, Qualify), each overridable through `labels` | `/first-call` |
|
|
46
|
+
| `FirstCallFact`, `FirstCallBlock`, `FirstCallQuestion`, `FirstCallSay`, `FirstCallIcon`, `FirstCallParagraph` | The shapes a first call sheet's content is written in, all plain data, so a skill writes the sheet as JSON | none |
|
|
44
47
|
| `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` |
|
|
45
48
|
| `normalizeEmail` | How a typed address becomes the key a payload opens with; the sealing command mirrors it | none |
|
|
46
49
|
| `documents.css` | The documents' styles, at `@atelic-action/artifact/styles/documents.css` | every route |
|
|
@@ -100,12 +103,12 @@ No environment variables required. Visit [http://localhost:5173](http://localhos
|
|
|
100
103
|
|
|
101
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:
|
|
102
105
|
|
|
103
|
-
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.
|
|
104
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`.
|
|
105
|
-
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, 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).
|
|
106
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.
|
|
107
110
|
|
|
108
|
-
|
|
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)).
|
|
109
112
|
|
|
110
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.
|
|
111
114
|
|
|
@@ -119,7 +122,7 @@ The theme stays the practice's (Geist, ink, the orange) unless the artifact shou
|
|
|
119
122
|
| [src/content/README.md](src/content/README.md) | Authoring the content modules |
|
|
120
123
|
| [src/styles/README.md](src/styles/README.md) | The theming system and how to derive a new palette |
|
|
121
124
|
| [GATE.md](GATE.md) | The sealed document gate: opens with the reader's own email, with HubSpot open tracking |
|
|
122
|
-
| [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 |
|
|
123
126
|
| [DEPLOY.md](DEPLOY.md) | The deploy motion: Vercel, the subdomain, the wall for a private artifact, the observability layers |
|
|
124
127
|
| [LAUNCH.md](LAUNCH.md) | The per artifact send checklist template, stamped into a Linear ticket |
|
|
125
128
|
| [TEARDOWN.md](TEARDOWN.md) | The reverse motion: retiring a subdomain and its Vercel project |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atelic-action/artifact",
|
|
3
|
-
"version": "6.
|
|
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",
|
|
3
|
+
"version": "6.6.0",
|
|
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",
|
|
7
7
|
"repository": {
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { type ArtifactParagraph, Runs } from "@atelic-action/ui/artifact";
|
|
2
|
+
import { Chip } from "@atelic-action/ui/primitives";
|
|
3
|
+
import { MapPin, MessageSquareText, Search, Signpost, Smartphone, Wrench } from "lucide-react";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The first call sheet: what the practice reads down during a first call by
|
|
7
|
+
* phone. The brief on top (who, how they booked, the listing, the site),
|
|
8
|
+
* then the call as one numbered list of single questions in blocks, each
|
|
9
|
+
* block one thing the call has to find out, with the practice's own give
|
|
10
|
+
* (what it found, said rather than asked) as lines inside the block it
|
|
11
|
+
* belongs to, and a strip of qualifying checks at the foot.
|
|
12
|
+
*
|
|
13
|
+
* It is the desk's page and nobody else's: a note under a question says
|
|
14
|
+
* what the answer means, so it carries desk posture and sits behind the
|
|
15
|
+
* sign in. The method (which blocks, why the give sits where it does, the
|
|
16
|
+
* five checks) is the practice repo's Outreach/discovery.md, The First
|
|
17
|
+
* Call Set; the document owns only the shape. Every prop is plain data, so
|
|
18
|
+
* a skill can write a sheet as JSON.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** A paragraph: a plain string, or runs of text and links in order. */
|
|
22
|
+
export type FirstCallParagraph = ArtifactParagraph;
|
|
23
|
+
|
|
24
|
+
/** One line of the brief: who, how they booked, the listing, the site. */
|
|
25
|
+
export interface FirstCallFact {
|
|
26
|
+
label: string;
|
|
27
|
+
body: FirstCallParagraph;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** One question, asked as written, with an optional note on what the answer means. */
|
|
31
|
+
export interface FirstCallQuestion {
|
|
32
|
+
text: string;
|
|
33
|
+
/** The desk's lines under the question, one per line: what each answer means for the offer. */
|
|
34
|
+
note?: string | string[];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** The icon a said line carries: a place (map), a search, the phone, naming (sign), or a plain note. */
|
|
38
|
+
export type FirstCallIcon = "map" | "search" | "phone" | "sign" | "note";
|
|
39
|
+
|
|
40
|
+
/** One line said rather than asked: a cue for the desk, with the icon that names its topic. */
|
|
41
|
+
export interface FirstCallSay {
|
|
42
|
+
/** One of FirstCallIcon; a JSON sheet carries it as a string, and an unknown name draws the note mark. */
|
|
43
|
+
icon?: FirstCallIcon | string;
|
|
44
|
+
text: string;
|
|
45
|
+
/** What fixes it, on its own line under the finding. */
|
|
46
|
+
fix?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** One block of the call: a title, what we say first (if anything), then the questions. */
|
|
50
|
+
export interface FirstCallBlock {
|
|
51
|
+
/** The anchor: lowercase, unique. */
|
|
52
|
+
id: string;
|
|
53
|
+
title: string;
|
|
54
|
+
/** Lines said rather than asked: the give, each one finding and what fixes it. */
|
|
55
|
+
say?: (string | FirstCallSay)[];
|
|
56
|
+
questions: FirstCallQuestion[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** The ids the sheet gives its own sections; a block id may not repeat one. */
|
|
60
|
+
export const firstCallSectionIds = ["main", "brief", "qualify"] as const;
|
|
61
|
+
|
|
62
|
+
const sayIcons = {
|
|
63
|
+
map: MapPin,
|
|
64
|
+
search: Search,
|
|
65
|
+
phone: Smartphone,
|
|
66
|
+
sign: Signpost,
|
|
67
|
+
note: MessageSquareText,
|
|
68
|
+
} as const;
|
|
69
|
+
|
|
70
|
+
/** The fixed words the sheet sets, each overridable through `labels`. */
|
|
71
|
+
export interface FirstCallLabels {
|
|
72
|
+
preparedFor: string;
|
|
73
|
+
brief: string;
|
|
74
|
+
say: string;
|
|
75
|
+
qualify: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const firstCallLabels: FirstCallLabels = {
|
|
79
|
+
preparedFor: "Prepared for",
|
|
80
|
+
brief: "Brief",
|
|
81
|
+
say: "Say",
|
|
82
|
+
qualify: "Qualify",
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export interface FirstCallProps {
|
|
86
|
+
title: string;
|
|
87
|
+
/** Who the call is with, set in the dateline: "Prepared for <person, business>". */
|
|
88
|
+
preparedFor: string;
|
|
89
|
+
/** The when line: the date, the 24 hour time, how the call happens. */
|
|
90
|
+
when: string;
|
|
91
|
+
brief: FirstCallFact[];
|
|
92
|
+
/** The call, in order. Questions number continuously across blocks. */
|
|
93
|
+
blocks: FirstCallBlock[];
|
|
94
|
+
/** The checks ticked during the call, e.g. "Demand exists". */
|
|
95
|
+
qualify: string[];
|
|
96
|
+
labels?: Partial<FirstCallLabels>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function Block({ block, labels }: { block: FirstCallBlock; labels: FirstCallLabels }) {
|
|
100
|
+
return (
|
|
101
|
+
<section className="fc-block" id={block.id}>
|
|
102
|
+
<h2>{block.title}</h2>
|
|
103
|
+
{block.say && block.say.length > 0 && (
|
|
104
|
+
<ul className="fc-say" aria-label={labels.say}>
|
|
105
|
+
{block.say.map((line, i) => {
|
|
106
|
+
const say = typeof line === "string" ? { text: line } : line;
|
|
107
|
+
const name = say.icon ?? "note";
|
|
108
|
+
const Icon = Object.hasOwn(sayIcons, name)
|
|
109
|
+
? sayIcons[name as FirstCallIcon]
|
|
110
|
+
: sayIcons.note;
|
|
111
|
+
return (
|
|
112
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: the lines are static content in a fixed order
|
|
113
|
+
<li key={i}>
|
|
114
|
+
<div className="fc-say-line">
|
|
115
|
+
<Icon size={16} aria-hidden="true" />
|
|
116
|
+
<p>{say.text}</p>
|
|
117
|
+
</div>
|
|
118
|
+
{say.fix && (
|
|
119
|
+
<div className="fc-say-line fc-say-fix">
|
|
120
|
+
<Wrench size={16} aria-hidden="true" />
|
|
121
|
+
<p>{say.fix}</p>
|
|
122
|
+
</div>
|
|
123
|
+
)}
|
|
124
|
+
</li>
|
|
125
|
+
);
|
|
126
|
+
})}
|
|
127
|
+
</ul>
|
|
128
|
+
)}
|
|
129
|
+
<ol className="fc-questions">
|
|
130
|
+
{block.questions.map((q, i) => (
|
|
131
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: the questions are static content in a fixed order
|
|
132
|
+
<li className="fc-q" key={i}>
|
|
133
|
+
<p>{q.text}</p>
|
|
134
|
+
{(Array.isArray(q.note) ? q.note : q.note ? [q.note] : []).map((line, n) => (
|
|
135
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: the lines are static content in a fixed order
|
|
136
|
+
<p className="fc-note" key={n}>
|
|
137
|
+
{line}
|
|
138
|
+
</p>
|
|
139
|
+
))}
|
|
140
|
+
</li>
|
|
141
|
+
))}
|
|
142
|
+
</ol>
|
|
143
|
+
</section>
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function FirstCall({
|
|
148
|
+
title,
|
|
149
|
+
preparedFor,
|
|
150
|
+
when,
|
|
151
|
+
brief,
|
|
152
|
+
blocks,
|
|
153
|
+
qualify,
|
|
154
|
+
labels: overrides,
|
|
155
|
+
}: FirstCallProps) {
|
|
156
|
+
const labels = { ...firstCallLabels, ...overrides };
|
|
157
|
+
return (
|
|
158
|
+
<div className="op rd fc">
|
|
159
|
+
<article className="op-doc rd-doc">
|
|
160
|
+
<header className="op-head">
|
|
161
|
+
<p className="op-meta">
|
|
162
|
+
{labels.preparedFor} <b>{preparedFor}</b>
|
|
163
|
+
<span className="op-meta-sep" aria-hidden="true">
|
|
164
|
+
{" · "}
|
|
165
|
+
</span>
|
|
166
|
+
<span className="op-meta-date">{when}</span>
|
|
167
|
+
</p>
|
|
168
|
+
<h1>{title}</h1>
|
|
169
|
+
</header>
|
|
170
|
+
|
|
171
|
+
{brief.length > 0 && (
|
|
172
|
+
<section className="fc-brief-section" id="brief" aria-label={labels.brief}>
|
|
173
|
+
<dl className="fc-brief">
|
|
174
|
+
{brief.map((fact, i) => (
|
|
175
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: the brief is static content in a fixed order
|
|
176
|
+
<div className="fc-fact" key={i}>
|
|
177
|
+
<dt>{fact.label}</dt>
|
|
178
|
+
<dd>
|
|
179
|
+
<Runs paragraph={fact.body} />
|
|
180
|
+
</dd>
|
|
181
|
+
</div>
|
|
182
|
+
))}
|
|
183
|
+
</dl>
|
|
184
|
+
</section>
|
|
185
|
+
)}
|
|
186
|
+
|
|
187
|
+
{blocks.map((block) => (
|
|
188
|
+
<Block block={block} labels={labels} key={block.id} />
|
|
189
|
+
))}
|
|
190
|
+
|
|
191
|
+
{qualify.length > 0 && (
|
|
192
|
+
<section className="fc-qualify" id="qualify" aria-label={labels.qualify}>
|
|
193
|
+
<h2>{labels.qualify}</h2>
|
|
194
|
+
<div className="fc-checks">
|
|
195
|
+
{qualify.map((check, i) => (
|
|
196
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: a check may repeat, and the list is static content in a fixed order
|
|
197
|
+
<Chip dot key={i}>
|
|
198
|
+
{check}
|
|
199
|
+
</Chip>
|
|
200
|
+
))}
|
|
201
|
+
</div>
|
|
202
|
+
</section>
|
|
203
|
+
)}
|
|
204
|
+
</article>
|
|
205
|
+
</div>
|
|
206
|
+
);
|
|
207
|
+
}
|
|
@@ -60,12 +60,13 @@ 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
|
|
@@ -93,7 +94,7 @@ import { isRuns, type ReadTopic, Topic } from "./Topic";
|
|
|
93
94
|
* name. With no document the page is the one it always was.
|
|
94
95
|
*/
|
|
95
96
|
|
|
96
|
-
/**
|
|
97
|
+
/** The depth of the readings: whether any came from the owner's own consoles. */
|
|
97
98
|
export type ReadAccess = "public" | "private";
|
|
98
99
|
|
|
99
100
|
/** A link inside running text: the words the reader clicks and where they go. */
|
|
@@ -369,7 +370,7 @@ export interface ReadLabels {
|
|
|
369
370
|
sources: string;
|
|
370
371
|
/** The plan's heading when it names none. */
|
|
371
372
|
plan: string;
|
|
372
|
-
/** The note over the scorecard on a public
|
|
373
|
+
/** The note over the scorecard on a read of public depth that sets none: what the read leaves out. */
|
|
373
374
|
publicNote: string;
|
|
374
375
|
/** The words before the business in the title the read sets when the content gives none, e.g. "Overview of". */
|
|
375
376
|
overviewTitle?: string;
|
|
@@ -409,7 +410,7 @@ export const readLabels: Required<ReadLabels> = {
|
|
|
409
410
|
sources: "See it yourself",
|
|
410
411
|
plan: "The Plan",
|
|
411
412
|
publicNote:
|
|
412
|
-
"
|
|
413
|
+
"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
414
|
overviewTitle: "Overview of",
|
|
414
415
|
overviewLede:
|
|
415
416
|
"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 +444,7 @@ function defaultTabsLabel(state: boolean, plan: boolean, proposal: boolean): str
|
|
|
443
444
|
}
|
|
444
445
|
|
|
445
446
|
export interface TheReadProps {
|
|
446
|
-
/**
|
|
447
|
+
/** 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
448
|
access: ReadAccess;
|
|
448
449
|
/** The title; left out, the `overviewTitle` label and the business ("Overview of Summit Movement Studio"). */
|
|
449
450
|
title?: string;
|
|
@@ -463,7 +464,7 @@ export interface TheReadProps {
|
|
|
463
464
|
gistLead?: string;
|
|
464
465
|
/** 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
466
|
gistId?: string;
|
|
466
|
-
/** A callout over the scorecard, under its heading, e.g. what the read leaves out and when it follows. A public
|
|
467
|
+
/** 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
468
|
note?: ReadParagraph;
|
|
468
469
|
/** The key: what each letter means, in a few words each. */
|
|
469
470
|
gradeKey?: Array<{ grade: WriteupGrade; label: string }>;
|
|
@@ -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),
|
|
3
|
+
Topic), the note (Note), the discovery sheet (Discovery), and the first call sheet (FirstCall). 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
|
-
the later one wins, and the read's is the later one. The note
|
|
7
|
-
discovery sheet follow the read and set no @page, so the read's stays
|
|
6
|
+
the later one wins, and the read's is the later one. The note, the
|
|
7
|
+
discovery sheet, and the first call 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
|
|
@@ -2662,4 +2662,119 @@
|
|
|
2662
2662
|
color: var(--primary);
|
|
2663
2663
|
text-decoration: underline;
|
|
2664
2664
|
}
|
|
2665
|
+
|
|
2666
|
+
/* The first call sheet (fc-): the brief as a definition list, then one numbered
|
|
2667
|
+
list of questions running across the blocks, the give as lines said
|
|
2668
|
+
rather than asked, and the qualifying checks as chips at the foot. */
|
|
2669
|
+
.atelic-ui .fc {
|
|
2670
|
+
counter-reset: fc-q;
|
|
2671
|
+
}
|
|
2672
|
+
.atelic-ui .fc-brief {
|
|
2673
|
+
display: grid;
|
|
2674
|
+
grid-template-columns: max-content 1fr;
|
|
2675
|
+
gap: 8px 16px;
|
|
2676
|
+
margin: 20px 0 0;
|
|
2677
|
+
}
|
|
2678
|
+
.atelic-ui .fc-fact {
|
|
2679
|
+
display: contents;
|
|
2680
|
+
}
|
|
2681
|
+
.atelic-ui .fc-brief dt {
|
|
2682
|
+
font-family: var(--font-mono);
|
|
2683
|
+
font-size: 12px;
|
|
2684
|
+
letter-spacing: 0.06em;
|
|
2685
|
+
text-transform: uppercase;
|
|
2686
|
+
color: var(--primary);
|
|
2687
|
+
padding-top: 4px;
|
|
2688
|
+
}
|
|
2689
|
+
.atelic-ui .fc-brief dd {
|
|
2690
|
+
margin: 0;
|
|
2691
|
+
}
|
|
2692
|
+
.atelic-ui .fc-block {
|
|
2693
|
+
margin-top: 30px;
|
|
2694
|
+
}
|
|
2695
|
+
.atelic-ui .fc-block h2,
|
|
2696
|
+
.atelic-ui .fc-qualify h2 {
|
|
2697
|
+
font-size: 17px;
|
|
2698
|
+
margin: 0 0 6px;
|
|
2699
|
+
}
|
|
2700
|
+
.atelic-ui .fc-say {
|
|
2701
|
+
list-style: none;
|
|
2702
|
+
margin: 0 0 8px;
|
|
2703
|
+
padding: 0;
|
|
2704
|
+
}
|
|
2705
|
+
.atelic-ui .fc-say li {
|
|
2706
|
+
padding: 8px 12px;
|
|
2707
|
+
margin-bottom: 6px;
|
|
2708
|
+
border-left: 3px solid var(--primary);
|
|
2709
|
+
background: color-mix(in srgb, var(--primary) 7%, transparent);
|
|
2710
|
+
}
|
|
2711
|
+
.atelic-ui .fc-say-line {
|
|
2712
|
+
display: flex;
|
|
2713
|
+
gap: 10px;
|
|
2714
|
+
align-items: flex-start;
|
|
2715
|
+
}
|
|
2716
|
+
.atelic-ui .fc-say-fix {
|
|
2717
|
+
margin-top: 4px;
|
|
2718
|
+
color: var(--op-ink-soft);
|
|
2719
|
+
}
|
|
2720
|
+
.atelic-ui .fc-say svg {
|
|
2721
|
+
flex: none;
|
|
2722
|
+
margin-top: 4px;
|
|
2723
|
+
color: var(--primary);
|
|
2724
|
+
}
|
|
2725
|
+
.atelic-ui .fc-say p {
|
|
2726
|
+
margin: 0;
|
|
2727
|
+
}
|
|
2728
|
+
.atelic-ui .fc-questions {
|
|
2729
|
+
list-style: none;
|
|
2730
|
+
margin: 0;
|
|
2731
|
+
padding: 0;
|
|
2732
|
+
}
|
|
2733
|
+
.atelic-ui .fc-q {
|
|
2734
|
+
counter-increment: fc-q;
|
|
2735
|
+
display: grid;
|
|
2736
|
+
grid-template-columns: 2.4em 1fr;
|
|
2737
|
+
column-gap: 8px;
|
|
2738
|
+
padding: 9px 0;
|
|
2739
|
+
border-top: 1px solid var(--op-rule);
|
|
2740
|
+
}
|
|
2741
|
+
.atelic-ui .fc-q::before {
|
|
2742
|
+
content: counter(fc-q, decimal-leading-zero);
|
|
2743
|
+
font-family: var(--font-mono);
|
|
2744
|
+
font-weight: 500;
|
|
2745
|
+
color: var(--primary);
|
|
2746
|
+
padding-top: 2px;
|
|
2747
|
+
}
|
|
2748
|
+
.atelic-ui .fc-q p {
|
|
2749
|
+
margin: 0;
|
|
2750
|
+
font-size: 17px;
|
|
2751
|
+
line-height: 1.4;
|
|
2752
|
+
}
|
|
2753
|
+
.atelic-ui .fc-q .fc-note {
|
|
2754
|
+
grid-column: 2;
|
|
2755
|
+
margin-top: 4px;
|
|
2756
|
+
font-size: 14px;
|
|
2757
|
+
font-style: italic;
|
|
2758
|
+
color: var(--op-ink-soft);
|
|
2759
|
+
}
|
|
2760
|
+
.atelic-ui .fc-q .fc-note + .fc-note {
|
|
2761
|
+
margin-top: 1px;
|
|
2762
|
+
}
|
|
2763
|
+
.atelic-ui .fc-qualify {
|
|
2764
|
+
margin-top: 30px;
|
|
2765
|
+
}
|
|
2766
|
+
.atelic-ui .fc-checks {
|
|
2767
|
+
display: flex;
|
|
2768
|
+
flex-wrap: wrap;
|
|
2769
|
+
gap: 8px;
|
|
2770
|
+
}
|
|
2771
|
+
@media (max-width: 480px) {
|
|
2772
|
+
.atelic-ui .fc-brief {
|
|
2773
|
+
grid-template-columns: 1fr;
|
|
2774
|
+
gap: 2px 0;
|
|
2775
|
+
}
|
|
2776
|
+
.atelic-ui .fc-brief dd {
|
|
2777
|
+
margin-bottom: 8px;
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2665
2780
|
}
|
package/src/documents/index.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export type { WriteupGrade, WriteupPerson, WriteupShot } from "@atelic-action/ui/artifact";
|
|
8
8
|
export * from "./Discovery";
|
|
9
|
+
export * from "./FirstCall";
|
|
9
10
|
export { Gate, type GatePayload, type GatePerson, type GateProps, normalizeEmail } from "./Gate";
|
|
10
11
|
export * from "./Note";
|
|
11
12
|
export * from "./Report";
|