@atelic-action/ui 7.2.0 → 8.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 +439 -132
- package/bin/atelic-check-sentry.ts +5 -0
- package/dist/gate/middleware.js +15 -1
- package/dist/monitoring/server.d.ts +72 -0
- package/dist/monitoring/server.js +201 -0
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/vite/marketing-config.d.ts +28 -1
- package/dist/vite/marketing-config.js +62 -0
- package/package.json +23 -11
- package/src/app/ErrorFallback.tsx +6 -2
- package/src/app/context/AppContext.tsx +10 -1
- package/src/app/index.ts +0 -1
- package/src/app/layout/AppPage.tsx +36 -7
- package/src/app/layout/DesktopRail.tsx +15 -6
- package/src/app/layout/MobileMenu.tsx +14 -5
- package/src/app/layout/MobileTabBar.tsx +3 -2
- package/src/app/layout/PageError.tsx +7 -4
- package/src/app/layout/PageSkeleton.tsx +33 -26
- package/src/app/layout/SectionCards.tsx +7 -2
- package/src/app/layout/UserMenu.tsx +13 -7
- package/src/app/ui/alert.tsx +42 -12
- package/src/app/ui/badge.tsx +1 -1
- package/src/app/ui/button.tsx +2 -1
- package/src/app/ui/command.tsx +86 -21
- package/src/app/ui/country-dropdown.tsx +26 -47
- package/src/app/ui/form.tsx +48 -9
- package/src/app/ui/pagination.tsx +1 -1
- package/src/app/ui/progress.tsx +26 -12
- package/src/app/ui/search-input.tsx +16 -3
- package/src/app/ui/select.tsx +8 -3
- package/src/app/ui/slider.tsx +62 -15
- package/src/artifact/AppErrorBoundary.tsx +12 -7
- package/src/artifact/ArtifactShell.tsx +5 -1
- package/src/artifact/ErrorFallback.tsx +8 -1
- package/src/artifact/artifactConfig.ts +1 -1
- package/src/chrome/BrandLockup.tsx +102 -17
- package/src/chrome/ClosingBar.tsx +5 -3
- package/src/chrome/ContactDock.tsx +361 -0
- package/src/chrome/Footer.tsx +126 -31
- package/src/chrome/NavBadge.tsx +8 -0
- package/src/chrome/NavMegaPanel.tsx +399 -0
- package/src/chrome/SiteHeader.tsx +268 -23
- package/src/chrome/SiteMenu.tsx +200 -19
- package/src/chrome/SiteShell.tsx +151 -14
- package/src/chrome/StickyCTABar.tsx +60 -2
- package/src/chrome/brandMark.ts +56 -0
- package/src/chrome/icons.ts +58 -0
- package/src/chrome/index.ts +16 -0
- package/src/chrome/navSections.ts +55 -0
- package/src/components/ColumnChart.tsx +27 -2
- package/src/components/DataTable.tsx +104 -85
- package/src/components/Disclosure.tsx +3 -1
- package/src/components/Hint.tsx +3 -24
- package/src/components/NotFound.tsx +7 -3
- package/src/components/StarRating.tsx +45 -19
- package/src/components/ThresholdScale.tsx +36 -26
- package/src/email/atoms.tsx +13 -57
- package/src/email/frame.tsx +4 -6
- package/src/email/index.ts +4 -10
- package/src/email/scoreboard.tsx +107 -186
- package/src/email/text.ts +30 -0
- package/src/email/theme.tsx +76 -9
- package/src/gate/middleware.ts +15 -1
- package/src/hooks/useDismiss.ts +39 -0
- package/src/lib/emailText.tsx +26 -0
- package/src/lib/phoneText.tsx +40 -0
- package/src/lib/useScrollsSideways.ts +26 -0
- package/src/monitoring/ErrorCatcherScript.tsx +15 -0
- package/src/monitoring/catcher.ts +118 -0
- package/src/monitoring/index.ts +25 -0
- package/src/monitoring/sdk.ts +112 -0
- package/src/monitoring/server.ts +244 -0
- package/src/monitoring/start.ts +118 -0
- package/src/primitives/Button.tsx +5 -1
- package/src/primitives/Eyebrow.tsx +6 -2
- package/src/primitives/ProseBlocks.tsx +6 -1
- package/src/primitives/SectionHeading.tsx +3 -1
- package/src/primitives/StarRow.tsx +23 -8
- package/src/routing/index.ts +1 -0
- package/src/routing/miss.ts +32 -0
- package/src/scripts/check-sentry.ts +77 -0
- package/src/sections/BlogIndex.tsx +17 -3
- package/src/sections/BlogPost.tsx +10 -1
- package/src/sections/CTASection.tsx +2 -2
- package/src/sections/CalloutPanel.tsx +34 -0
- package/src/sections/ComparisonTable.tsx +23 -2
- package/src/sections/ContactForm.tsx +61 -17
- package/src/sections/FAQBrowser.tsx +11 -2
- package/src/sections/FeatureGrid.tsx +6 -2
- package/src/sections/FullBleedVideo.tsx +167 -0
- package/src/sections/Gallery.tsx +6 -4
- package/src/sections/Hero.tsx +70 -39
- package/src/sections/JumpRail.tsx +7 -0
- package/src/sections/LegalPage.tsx +10 -2
- package/src/sections/LinkColumns.tsx +80 -0
- package/src/sections/LocationSection.tsx +28 -5
- package/src/sections/Locations.tsx +18 -5
- package/src/sections/LogoMarquee.tsx +43 -11
- package/src/sections/MapEmbed.tsx +13 -9
- package/src/sections/PageHero.tsx +16 -2
- package/src/sections/ProcessSteps.tsx +27 -4
- package/src/sections/ProfileCards.tsx +12 -2
- package/src/sections/ProofStrip.tsx +44 -0
- package/src/sections/RevealSlider.tsx +28 -7
- package/src/sections/ReviewCarousel.tsx +17 -4
- package/src/sections/ReviewWall.tsx +2 -2
- package/src/sections/SplitSection.tsx +2 -1
- package/src/sections/index.ts +15 -6
- package/src/sections/siteConfig.ts +101 -8
- package/src/styles/app.css +33 -2
- package/src/styles/artifact.css +20 -8
- package/src/styles/base.css +68 -13
- package/src/styles/chrome.css +1134 -56
- package/src/styles/components.css +104 -65
- package/src/styles/defaults.css +140 -0
- package/src/styles/gate.css +21 -10
- package/src/styles/primitives.css +108 -39
- package/src/styles/sections.css +500 -437
- package/src/styles/star-rating.css +1 -4
- package/src/tokens/palettes.ts +24 -4
- package/src/types.ts +220 -3
- package/src/vite/index.ts +4 -0
- package/src/vite/marketing-config.ts +81 -1
- package/src/app/CardErrorBoundary.tsx +0 -39
- package/src/sections/CTABanner.tsx +0 -93
- package/src/sections/DeviceShowcase.tsx +0 -39
- package/src/sections/MediaBand.tsx +0 -20
- package/src/sections/MenuList.tsx +0 -44
- package/src/sections/PressQuotes.tsx +0 -51
- package/src/sections/SocialStrip.tsx +0 -83
package/README.md
CHANGED
|
@@ -6,55 +6,56 @@ The package ships source, not a build. Its TSX and CSS arrive as written and com
|
|
|
6
6
|
|
|
7
7
|
## Component Index
|
|
8
8
|
|
|
9
|
-
Every export, grouped by the entry it is imported from. The
|
|
9
|
+
Every export, grouped by the entry it is imported from. The Storybook column links the docs page on [ui.atelic.me](https://ui.atelic.me), the package's Storybook, that shows it; none marks an export that draws nothing. The composed documents (the writeup, the read, the monthly page, the note, and the sealed document) are not here: since 2.0.0 they live in [`@atelic-action/artifact`](https://github.com/atelic-action/artifact), which builds them from the pieces this package exports.
|
|
10
10
|
|
|
11
|
-
| Export | Entry | What it is |
|
|
11
|
+
| Export | Entry | What it is | Storybook |
|
|
12
12
|
|---|---|---|---|
|
|
13
|
-
| `SiteHeader` | `@atelic-action/ui/chrome` | The fixed bar: the lockup, the nav or a page's own stops, the call to action, the burger; transparent, solid, or dark | [
|
|
14
|
-
| `SiteMenu` | `@atelic-action/ui/chrome` | The phone's full screen menu, on a native modal dialog | [
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
13
|
+
| `SiteHeader` | `@atelic-action/ui/chrome` | The fixed bar: the lockup, the nav or a page's own stops, the call to action, the burger; transparent, solid, or dark. A nav entry with `columns` is a group that opens a mega menu panel of link columns (nested links, badges), a picture, icon rows, and cards beside a ticked feature card, and `phones` puts up to two tel links in the bar (8.0.0) | [Chrome/SiteHeader](https://ui.atelic.me/?path=/docs/chrome-siteheader--docs) |
|
|
14
|
+
| `SiteMenu` | `@atelic-action/ui/chrome` | The phone's full screen menu, on a native modal dialog; a group is an accordion that opens one at a time, every group closed when the menu opens (8.0.0) | [Chrome/SiteMenu](https://ui.atelic.me/?path=/docs/chrome-sitemenu--docs) |
|
|
15
|
+
| `ContactDock` | `@atelic-action/ui/chrome` | The floating Get in Touch launcher and its panel of ways to reach the business, inset alike from the right and the bottom, lifting over the phone's sticky bar and riding above the footer; `SiteShell` mounts it from `site.contactDock` (8.0.0) | [Chrome/ContactDock](https://ui.atelic.me/?path=/docs/chrome-contactdock--docs) |
|
|
16
|
+
| `Footer` | `@atelic-action/ui/chrome` | The default footer: the brand column (the header's lockup, the Google rating linked to the profile, linked address, phone, email), the hours, the link columns, and the closing bar | [Chrome/Footer](https://ui.atelic.me/?path=/docs/chrome-footer--docs) |
|
|
17
|
+
| `ClosingBar`, `Copyright`, `Credit` | `@atelic-action/ui/chrome` | The line that closes every page, in two sides that each take anything: by default `Copyright` with the business's name on the left and `Credit`, the practice's made with line, on the right | [Chrome/ClosingBar](https://ui.atelic.me/?path=/docs/chrome-closingbar--docs) |
|
|
18
|
+
| `StickyCTABar` | `@atelic-action/ui/chrome` | The phone's bottom bar: the call to action and a call shortcut, there from the top on an interior page (`fromTop`) and sliding in after a scroll on a hero page | [Chrome/StickyCTABar](https://ui.atelic.me/?path=/docs/chrome-stickyctabar--docs) |
|
|
19
|
+
| `BrandLockup` | `@atelic-action/ui/chrome` | The header's identity as one link, with the recipient's mark on a sent document; the brand's own mark per surface (`onLight`, `onDark`), never recolored, at `--brand-mark-height` (8.0.0) | [Chrome/BrandLockup](https://ui.atelic.me/?path=/docs/chrome-brandlockup--docs) |
|
|
20
|
+
| `SkipLink` | `@atelic-action/ui/chrome` | The keyboard user's jump past the chrome | [Chrome/SkipLink](https://ui.atelic.me/?path=/docs/chrome-skiplink--docs) |
|
|
21
|
+
| `Brand`, `BrandLogo`, `CallToAction`, `HoursRow`, `MenuContact`, `NavLink`, `NavPanelSection`, `NavGroupColumn`, `NavGroupLink`, `NavGroupChildLink`, `NavPictureSection`, `NavIconRowsSection`, `NavIconRow`, `NavIcon`, `NavCardsSection`, `NavCard`, `NavFeature`, `HeaderPhone`, `ContactDockConfig`, `ContactDockItem`, `ContactDockIcon`, `Phone`, `PostalAddress`, `SiteLink`, `SocialLink`, `PageStop`, `FooterColumn`, `FooterColumnLink`, `FooterIcon` | `@atelic-action/ui/chrome` | The shapes the chrome renders from (types) | none |
|
|
22
|
+
| `NotFound` | `@atelic-action/ui/components` | The body of the page an unknown path renders | [Components/NotFound](https://ui.atelic.me/?path=/docs/components-notfound--docs) |
|
|
23
|
+
| `Checklist` | `@atelic-action/ui/components` | A short list of checks, each passed or failed | [Components/Checklist](https://ui.atelic.me/?path=/docs/components-checklist--docs) |
|
|
24
|
+
| `IconList` | `@atelic-action/ui/components` | A list whose bullets are icons, one for the list or one per item, each in a tone | [Components/IconList](https://ui.atelic.me/?path=/docs/components-iconlist--docs) |
|
|
25
|
+
| `DataTable` | `@atelic-action/ui/components` | A table whose first column names each row, sortable, stacking on a phone | [Components/DataTable](https://ui.atelic.me/?path=/docs/components-datatable--docs) |
|
|
26
|
+
| `Hint` | `@atelic-action/ui/components` | An info icon that opens a short explainer beside a word, or beside a table heading | [Components/Hint](https://ui.atelic.me/?path=/docs/components-hint--docs) |
|
|
27
|
+
| `ReportCard` | `@atelic-action/ui/components` | A name, a grade, and a line per row, in labeled groups, each row a link to its section | [Components/ReportCard](https://ui.atelic.me/?path=/docs/components-reportcard--docs) |
|
|
27
28
|
| `reportCardLabels`, `ReportCardLabels` | `@atelic-action/ui/components` | The words a screen reader hears around a report card's letters by default, and their type | none |
|
|
28
|
-
| `Rank` | `@atelic-action/ui/components` | A figure with its badge in a tone, for a table cell: a rank, a place in an answer, or a dash | [
|
|
29
|
-
| `StatRow` | `@atelic-action/ui/components` | A row of large figures with periods, deltas, and trends; a share's denominator set small after the figure (`outOf`) and a change set small beside it with a triangle (`change`), 3.14.0 | [
|
|
30
|
-
| `Callout` | `@atelic-action/ui/components` | One finding: an icon in its tone, the title, the explainer | [
|
|
31
|
-
| `Disclosure` | `@atelic-action/ui/components` | A section that folds: controlled, an app's card; uncontrolled, a native details fold that prints open | [
|
|
32
|
-
| `Tabs`, `TabsItem` | `@atelic-action/ui/components` | Panels behind a row of tabs, every panel kept in the page: a hash opens the tab or the panel holding what it names, and it prints every panel under its label | [
|
|
33
|
-
| `StackedBar` | `@atelic-action/ui/components` | One bar split into the parts of a whole, with a key | [
|
|
34
|
-
| `ColumnChart` | `@atelic-action/ui/components` | A bar a period, the periods in labeled groups | [
|
|
35
|
-
| `ThresholdScale` | `@atelic-action/ui/components` | Zones on a scale and a pin for each reading | [
|
|
36
|
-
| `StarRating`, `describeStarRating` | `@atelic-action/ui/components` | A row of stars in half steps, read only or editable, and its spoken name | [
|
|
37
|
-
| `GateLogin` | `@atelic-action/ui/components` | The access gate's sign in screen | [
|
|
38
|
-
| `Watermark` | `@atelic-action/ui/components` | The signed in reader's confidential stamp, pill or tiled | [
|
|
29
|
+
| `Rank` | `@atelic-action/ui/components` | A figure with its badge in a tone, for a table cell: a rank, a place in an answer, or a dash | [Components/Rank](https://ui.atelic.me/?path=/docs/components-rank--docs) |
|
|
30
|
+
| `StatRow` | `@atelic-action/ui/components` | A row of large figures with periods, deltas, and trends; a share's denominator set small after the figure (`outOf`) and a change set small beside it with a triangle (`change`), 3.14.0 | [Components/StatRow](https://ui.atelic.me/?path=/docs/components-statrow--docs) |
|
|
31
|
+
| `Callout` | `@atelic-action/ui/components` | One finding: an icon in its tone, the title, the explainer (not `CalloutPanel`, the business's headline claims) | [Components/Callout](https://ui.atelic.me/?path=/docs/components-callout--docs) |
|
|
32
|
+
| `Disclosure` | `@atelic-action/ui/components` | A section that folds: controlled, an app's card; uncontrolled, a native details fold that prints open | [Components/Disclosure](https://ui.atelic.me/?path=/docs/components-disclosure--docs) |
|
|
33
|
+
| `Tabs`, `TabsItem` | `@atelic-action/ui/components` | Panels behind a row of tabs, every panel kept in the page: a hash opens the tab or the panel holding what it names, and it prints every panel under its label | [Components/Tabs](https://ui.atelic.me/?path=/docs/components-tabs--docs) |
|
|
34
|
+
| `StackedBar` | `@atelic-action/ui/components` | One bar split into the parts of a whole, with a key | [Components/StackedBar](https://ui.atelic.me/?path=/docs/components-stackedbar--docs) |
|
|
35
|
+
| `ColumnChart` | `@atelic-action/ui/components` | A bar a period, the periods in labeled groups | [Components/ColumnChart](https://ui.atelic.me/?path=/docs/components-columnchart--docs) |
|
|
36
|
+
| `ThresholdScale` | `@atelic-action/ui/components` | Zones on a scale and a pin for each reading | [Components/ThresholdScale](https://ui.atelic.me/?path=/docs/components-thresholdscale--docs) |
|
|
37
|
+
| `StarRating`, `describeStarRating` | `@atelic-action/ui/components` | A row of stars in half steps, read only or editable, and its spoken name | [Components/StarRating](https://ui.atelic.me/?path=/docs/components-starrating--docs) |
|
|
38
|
+
| `GateLogin` | `@atelic-action/ui/components` | The access gate's sign in screen | [Components/GateLogin](https://ui.atelic.me/?path=/docs/components-gatelogin--docs) |
|
|
39
|
+
| `Watermark` | `@atelic-action/ui/components` | The signed in reader's confidential stamp, pill or tiled | [Components/Watermark](https://ui.atelic.me/?path=/docs/components-watermark--docs) |
|
|
39
40
|
| `readCookie`, `Tone` | `@atelic-action/ui/components` | The cookie reader the watermark uses, and the tone type | none |
|
|
40
|
-
| `Button`, `PrimaryButton`, `SecondaryButton`, `Chip`, `Eyebrow`, `Lead`, `SectionHeading` | `@atelic-action/ui/primitives` | The small pieces a page is set in; the two named buttons are the only call to action shapes a page uses | [
|
|
41
|
-
| `GradeChip`, `gradeLabel`, `WriteupGrade` | `@atelic-action/ui/artifact` | A section's grade, A to D, as a chip in its color, the letter alone, and the grade type | [
|
|
42
|
-
| `SignOff`, `WriteupPerson` | `@atelic-action/ui/artifact` | The close a document ends on, and the person it names | [
|
|
43
|
-
| `Shot`, `WriteupShot` | `@atelic-action/ui/artifact` | The owner's own screen, opening the full picture, over its caption; a portrait crop is marked `data-portrait` and held to 200px (1.8in in print) | [
|
|
44
|
-
| `Paragraph`, `Runs`, `ArtifactAnchor`, `isEmpty`, `isQuery`, `ArtifactLink`, `ArtifactQuery`, `ArtifactRun`, `ArtifactParagraph` | `@atelic-action/ui/artifact` | Plain data text a routine can write as JSON: a paragraph, its runs alone, one link, the empty test, the query test, and the four types | [
|
|
45
|
-
| `ArtifactShell` | `@atelic-action/ui/artifact` | The chrome around a document page: skip link, dark header, the closing bar with the sender's copyright and the credit, watermark | [
|
|
46
|
-
| `AppErrorBoundary`, `ErrorFallback` | `@atelic-action/ui/artifact` | The error boundary and the page it falls back to |
|
|
41
|
+
| `Button`, `PrimaryButton`, `SecondaryButton`, `Chip`, `Eyebrow`, `Lead`, `SectionHeading` | `@atelic-action/ui/primitives` | The small pieces a page is set in; the two named buttons are the only call to action shapes a page uses | [Primitives/Button](https://ui.atelic.me/?path=/docs/primitives-button--docs) |
|
|
42
|
+
| `GradeChip`, `gradeLabel`, `WriteupGrade` | `@atelic-action/ui/artifact` | A section's grade, A to D, as a chip in its color, the letter alone, and the grade type | [Artifact/GradeChip](https://ui.atelic.me/?path=/docs/artifact-gradechip--docs) |
|
|
43
|
+
| `SignOff`, `WriteupPerson` | `@atelic-action/ui/artifact` | The close a document ends on, and the person it names | [Artifact/SignOff](https://ui.atelic.me/?path=/docs/artifact-signoff--docs) |
|
|
44
|
+
| `Shot`, `WriteupShot` | `@atelic-action/ui/artifact` | The owner's own screen, opening the full picture, over its caption; a portrait crop is marked `data-portrait` and held to 200px (1.8in in print) | [Artifact/Shot](https://ui.atelic.me/?path=/docs/artifact-shot--docs) |
|
|
45
|
+
| `Paragraph`, `Runs`, `ArtifactAnchor`, `isEmpty`, `isQuery`, `ArtifactLink`, `ArtifactQuery`, `ArtifactRun`, `ArtifactParagraph` | `@atelic-action/ui/artifact` | Plain data text a routine can write as JSON: a paragraph, its runs alone, one link, the empty test, the query test, and the four types | [Artifact/Paragraph](https://ui.atelic.me/?path=/docs/artifact-paragraph--docs) |
|
|
46
|
+
| `ArtifactShell` | `@atelic-action/ui/artifact` | The chrome around a document page: skip link, dark header, the closing bar with the sender's copyright and the credit, watermark | [Artifact/ArtifactShell](https://ui.atelic.me/?path=/docs/artifact-artifactshell--docs) |
|
|
47
|
+
| `AppErrorBoundary`, `ErrorFallback` | `@atelic-action/ui/artifact` | The error boundary and the page it falls back to | [Artifact/AppErrorBoundary](https://ui.atelic.me/?path=/docs/artifact-apperrorboundary--docs) |
|
|
47
48
|
| `buildPageHead`, `canonicalURL`, `newTabProps`, the `ArtifactConfig` types | `@atelic-action/ui/artifact` | A page's head, a link's new tab props, and a site's contract | none |
|
|
48
49
|
| `whoIsReading` | `@atelic-action/ui/artifact` and `@atelic-action/ui/artifact/readers` | Who opened a document, by the email they signed in with; the second entry is the same function, built, for what Node runs | none |
|
|
49
|
-
| `Masthead`, `TitleCard`, `Footer`, `FailurePage` | `@atelic-action/ui/email` | An email's frame: the wordmark row, the title card, the foot, the failure page (plain, or structured by a step and a fix) | [
|
|
50
|
-
| `Card`, `Row`, `FoldRow`, `Eyebrow`, `SubEyebrow`, `Fold`, `BigFold` | `@atelic-action/ui/email` | The containers and labels an email's sections sit in | [
|
|
51
|
-
| `Item`, `TitleLine`, `Note`, `EmptyRow`, `Stat`, `StatsRow`, `List`, `ListRow`, `LeadRow`, `
|
|
52
|
-
| `Scoreboard`, `GroupRow`, `TargetRow`, `Bar`, `
|
|
53
|
-
| `RecordStack`, `RecordTimelineStrip`, `
|
|
54
|
-
| `EmailThemeProvider`, `useEmailTheme`, `eyebrowStyle`, the plain text helpers (`recordStackText`, `wrap`, `textTable`, and the rest) | `@atelic-action/ui/email` | The palette context and the plain text twin (see [Email](#email)) | [
|
|
55
|
-
| `renderEmail`, `renderFailureEmail` | `@atelic-action/ui/email/render` | The whole email document, and the failure page's | [
|
|
50
|
+
| `Masthead`, `TitleCard`, `Footer`, `FailurePage` | `@atelic-action/ui/email` | An email's frame: the wordmark row, the title card, the foot, the failure page (plain, or structured by a step and a fix) | [Email/Masthead](https://ui.atelic.me/?path=/docs/email-masthead--docs) |
|
|
51
|
+
| `Card`, `Row`, `FoldRow`, `Eyebrow`, `SubEyebrow`, `Fold`, `BigFold` | `@atelic-action/ui/email` | The containers and labels an email's sections sit in | [Email/Card](https://ui.atelic.me/?path=/docs/email-card--docs) |
|
|
52
|
+
| `Item`, `TitleLine`, `Note`, `EmptyRow`, `Stat`, `StatsRow`, `List`, `ListRow`, `LeadRow`, `ReadBlock`, `Badge` | `@atelic-action/ui/email` | The rows inside a card | [Email/Item](https://ui.atelic.me/?path=/docs/email-item--docs) |
|
|
53
|
+
| `Scoreboard`, `GroupRow`, `TargetRow`, `Bar`, `DayStrip` | `@atelic-action/ui/email` | Targets against what was logged, and the week by day | [Email/Scoreboard](https://ui.atelic.me/?path=/docs/email-scoreboard--docs) |
|
|
54
|
+
| `RecordStack`, `RecordTimelineStrip`, `Records` | `@atelic-action/ui/email` | Records stacked for a phone, their timeline, and the fixed column table | [Email/RecordStack](https://ui.atelic.me/?path=/docs/email-recordstack--docs) |
|
|
55
|
+
| `EmailThemeProvider`, `useEmailTheme`, `eyebrowStyle`, `accentInk`, `contrastRatio`, `wrapLong`, the plain text helpers (`recordStackText`, `recordTimelineSummary`, `wrap`, `textTable`, and the rest) | `@atelic-action/ui/email` | The palette context, the accent's ink and the contrast check behind it, the long token wrap, and the plain text twin (see [Email](#email)) | [Email/WeeklyReport](https://ui.atelic.me/?path=/docs/email-weeklyreport--docs) (the text twin) |
|
|
56
|
+
| `renderEmail`, `renderFailureEmail` | `@atelic-action/ui/email/render` | The whole email document, and the failure page's | [Email/WeeklyReport](https://ui.atelic.me/?path=/docs/email-weeklyreport--docs) |
|
|
56
57
|
| `atelicPalette`, `atelicFonts`, `toThemeCSS`, `themeTokenMap`, `Palette`, `Fonts` | `@atelic-action/ui/tokens` | The palette and font stacks, with no React | none |
|
|
57
|
-
| `useScrollSpy` | `@atelic-action/ui/hooks` | Which section is in the reading band; the header's stops use it | [
|
|
58
|
+
| `useScrollSpy` | `@atelic-action/ui/hooks` | Which section is in the reading band; the header's stops use it | [Chrome/SiteHeader](https://ui.atelic.me/?path=/docs/chrome-siteheader--docs) (the dark bar's stops) |
|
|
58
59
|
| `staticNotFoundRouting` | `@atelic-action/ui/routing` | The router options that keep a prerendered not found page alive | none |
|
|
59
60
|
| `signToken`, `verifyToken`, `safeNext`, `needsSession` | `@atelic-action/ui/gate` | The access gate's tokens, the safe post sign in path, and the wall's test | none |
|
|
60
61
|
| `POST`, `createRequestLink` | `@atelic-action/ui/gate/request-link` | The function that emails a sign in link | none |
|
|
@@ -63,54 +64,56 @@ Every export, grouped by the entry it is imported from. The gallery column links
|
|
|
63
64
|
| `artifactConfig`, `artifactPages` | `@atelic-action/ui/vite` | An artifact site's whole Vite configuration, and its page list | none |
|
|
64
65
|
| `privateChunks`, `isPrivateContent`, `DOC_DIR` | `@atelic-action/ui/vite` and `@atelic-action/ui/vite/private-chunks` | The plugin that keeps private content behind the wall; the second entry loads neither optional peer | none |
|
|
65
66
|
| `base.css`, `chrome.css`, `components.css`, `primitives.css`, `gate.css`, `artifact.css`, `star-rating.css` | `@atelic-action/ui/styles/*` | The stylesheets, in the order under [CSS Import Order](#css-import-order) | every section |
|
|
66
|
-
| `BlogIndex` | `@atelic-action/ui/sections` | The post listing as a readable stack | [
|
|
67
|
-
| `BlogPost` | `@atelic-action/ui/sections` | One article: back link, title, byline and dateline, body | [
|
|
68
|
-
| `
|
|
69
|
-
| `CTASection` | `@atelic-action/ui/sections` | The standard closer: the site's own primary action and an optional ghost second | [
|
|
70
|
-
| `ComparisonTable` | `@atelic-action/ui/sections` | A graded before and after that scrolls sideways on a phone rather than reflowing; a row's label can link to what explains it (`stageHref`, 3.14.0) | [
|
|
71
|
-
| `ContactForm` | `@atelic-action/ui/sections` | Validated form with a honeypot that posts to `endpoint` (or hands off to mail); `onLead` replaces the default GA4 `generate_lead` event | [
|
|
72
|
-
| `ContactInfoCard` | `@atelic-action/ui/sections` | A dark card of direct contact rows: call, email, visit, portal | [
|
|
73
|
-
| `CredentialList` | `@atelic-action/ui/sections` | Credential cards with a mono code before each | [
|
|
74
|
-
| `
|
|
75
|
-
| `
|
|
76
|
-
| `
|
|
77
|
-
| `
|
|
78
|
-
| `
|
|
79
|
-
| `Gallery` | `@atelic-action/ui/sections` | A captioned wall of the business's own work, a shot brief where a photo is missing | [
|
|
80
|
-
| `Hero` | `@atelic-action/ui/sections` | The home page opener: a full bleed image (or the token gradient), a headline with a serif accent, a pair of actions, trust figures, and a scroll cue | [
|
|
81
|
-
| `HoursTable` | `@atelic-action/ui/sections` | Day rows with dashed rules and mono times | [
|
|
82
|
-
| `JumpRail` | `@atelic-action/ui/sections` | Sticky in page pill tabs with scroll spy, used by `FAQBrowser` and on its own | [
|
|
83
|
-
| `LegalPage` | `@atelic-action/ui/sections` | A legal document from data, its last revised date first | [
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `
|
|
91
|
-
| `
|
|
92
|
-
| `
|
|
93
|
-
| `
|
|
94
|
-
| `
|
|
95
|
-
| `
|
|
96
|
-
| `
|
|
97
|
-
| `
|
|
98
|
-
| `
|
|
99
|
-
| `
|
|
100
|
-
| `
|
|
101
|
-
| `
|
|
102
|
-
| `Bubble`, `ImageFrame`, `ProseBlocks`, `QuoteCard`, `StarRow`, `TickList` | `@atelic-action/ui/primitives` | The marketing primitives: a round tile holding an icon or a step number, a framed image, prose blocks (headings at two levels, paragraphs, lists, and figures: small captioned tiles in rows, an image or a silent looping clip played only while on screen, each opening large in a dialog), a quote card, a row of filled stars, a tick list | [#marketing-primitives](https://ui.atelic.me/#marketing-primitives) |
|
|
103
|
-
| `SiteShell` | `@atelic-action/ui/chrome` | A marketing page's whole chrome: skip link, header, main, footer, sticky bar, mounting the base path provider | none |
|
|
67
|
+
| `BlogIndex` | `@atelic-action/ui/sections` | The post listing as a readable stack | [Sections/BlogIndex](https://ui.atelic.me/?path=/docs/sections-blogindex--docs) |
|
|
68
|
+
| `BlogPost` | `@atelic-action/ui/sections` | One article: back link, title, byline and dateline, body | [Sections/BlogPost](https://ui.atelic.me/?path=/docs/sections-blogpost--docs) |
|
|
69
|
+
| `CalloutPanel` | `@atelic-action/ui/sections` | Short callouts on the primary field, a heavy title over a subtitle each, four across and two by two below, titles and subtitles each on a shared line (8.0.0) | [Sections/CalloutPanel](https://ui.atelic.me/?path=/docs/sections-calloutpanel--docs) |
|
|
70
|
+
| `CTASection` | `@atelic-action/ui/sections` | The standard closer: the site's own primary action and an optional ghost second | [Sections/CTASection](https://ui.atelic.me/?path=/docs/sections-ctasection--docs) |
|
|
71
|
+
| `ComparisonTable` | `@atelic-action/ui/sections` | A graded before and after that scrolls sideways on a phone rather than reflowing; a row's label can link to what explains it (`stageHref`, 3.14.0) | [Sections/ComparisonTable](https://ui.atelic.me/?path=/docs/sections-comparisontable--docs) |
|
|
72
|
+
| `ContactForm` | `@atelic-action/ui/sections` | Validated form with a honeypot that posts to `endpoint` (or hands off to mail); `onLead` replaces the default GA4 `generate_lead` event | [Sections/ContactForm](https://ui.atelic.me/?path=/docs/sections-contactform--docs) |
|
|
73
|
+
| `ContactInfoCard` | `@atelic-action/ui/sections` | A dark card of direct contact rows: call, email, visit, portal | [Sections/ContactInfoCard](https://ui.atelic.me/?path=/docs/sections-contactinfocard--docs) |
|
|
74
|
+
| `CredentialList` | `@atelic-action/ui/sections` | Credential cards with a mono code before each | [Sections/CredentialList](https://ui.atelic.me/?path=/docs/sections-credentiallist--docs) |
|
|
75
|
+
| `ExpandList` | `@atelic-action/ui/sections` | A light accordion of numbered rows whose bodies stay in the HTML while closed | [Sections/ExpandList](https://ui.atelic.me/?path=/docs/sections-expandlist--docs) |
|
|
76
|
+
| `FAQBrowser` | `@atelic-action/ui/sections` | The help page: live search, a sticky `JumpRail` of categories with scroll spy, expand all, deep links; `contactHref` sets where the no match line points | [Sections/FAQBrowser](https://ui.atelic.me/?path=/docs/sections-faqbrowser--docs) |
|
|
77
|
+
| `FeatureDetail` | `@atelic-action/ui/sections` | Alternating copy and media rows with tags and a tick list | [Sections/FeatureDetail](https://ui.atelic.me/?path=/docs/sections-featuredetail--docs) |
|
|
78
|
+
| `FeatureGrid` | `@atelic-action/ui/sections` | Numbered cards with a hover lift under a heading and an optional `lead`; a card is a link or holds one, never both | [Sections/FeatureGrid](https://ui.atelic.me/?path=/docs/sections-featuregrid--docs) |
|
|
79
|
+
| `FullBleedVideo` | `@atelic-action/ui/sections` | A silent looping clip edge to edge: the poster at once, the clip once it is on screen and only while on screen, the poster alone under reduced motion (8.0.0) | [Sections/FullBleedVideo](https://ui.atelic.me/?path=/docs/sections-fullbleedvideo--docs) |
|
|
80
|
+
| `Gallery` | `@atelic-action/ui/sections` | A captioned wall of the business's own work, a shot brief where a photo is missing | [Sections/Gallery](https://ui.atelic.me/?path=/docs/sections-gallery--docs) |
|
|
81
|
+
| `Hero` | `@atelic-action/ui/sections` | The home page opener: a full bleed image (or the token gradient), a headline with a serif accent, a pair of actions, trust figures, and a scroll cue; `layout="split"` sets the copy on the primary field beside the photo (8.0.0) | [Sections/Hero](https://ui.atelic.me/?path=/docs/sections-hero--docs) |
|
|
82
|
+
| `HoursTable` | `@atelic-action/ui/sections` | Day rows with dashed rules and mono times | [Sections/HoursTable](https://ui.atelic.me/?path=/docs/sections-hourstable--docs) |
|
|
83
|
+
| `JumpRail` | `@atelic-action/ui/sections` | Sticky in page pill tabs with scroll spy, used by `FAQBrowser` and on its own | [Sections/JumpRail](https://ui.atelic.me/?path=/docs/sections-jumprail--docs) |
|
|
84
|
+
| `LegalPage` | `@atelic-action/ui/sections` | A legal document from data, its last revised date first | [Sections/LegalPage](https://ui.atelic.me/?path=/docs/sections-legalpage--docs) |
|
|
85
|
+
| `LinkColumns` | `@atelic-action/ui/sections` | Columns of links under a section heading, each a heading over its links, a link's figure (`count`) set right aligned in tabular numerals (8.0.0) | [Sections/LinkColumns](https://ui.atelic.me/?path=/docs/sections-linkcolumns--docs) |
|
|
86
|
+
| `LocationSection` | `@atelic-action/ui/sections` | The local search section: service areas as prose, hours, directions, and the map | [Sections/LocationSection](https://ui.atelic.me/?path=/docs/sections-locationsection--docs) |
|
|
87
|
+
| `Locations` | `@atelic-action/ui/sections` | More than one address: the flagship's map beside a card for each location | [Sections/Locations](https://ui.atelic.me/?path=/docs/sections-locations--docs) |
|
|
88
|
+
| `LogoMarquee` | `@atelic-action/ui/sections` | A dark band of chips scrolling without end: credentials, clients, or press | [Sections/LogoMarquee](https://ui.atelic.me/?path=/docs/sections-logomarquee--docs) |
|
|
89
|
+
| `MapEmbed` | `@atelic-action/ui/sections` | The map: a screenshot linking to directions, or a click to load facade over the live embed | [Sections/MapEmbed](https://ui.atelic.me/?path=/docs/sections-mapembed--docs) |
|
|
90
|
+
| `PageHero` | `@atelic-action/ui/sections` | The interior page opener on the alternate band; children sit under the lead | [Sections/PageHero](https://ui.atelic.me/?path=/docs/sections-pagehero--docs) |
|
|
91
|
+
| `ProofStrip` | `@atelic-action/ui/sections` | One row of short proof facts under a hero, a figure over its label each, wrapping to a grid on a phone (8.0.0) | [Sections/ProofStrip](https://ui.atelic.me/?path=/docs/sections-proofstrip--docs) |
|
|
92
|
+
| `PricingBand` | `@atelic-action/ui/sections` | A brand colored band with the price in a card beside it, informational by design | [Sections/PricingBand](https://ui.atelic.me/?path=/docs/sections-pricingband--docs) |
|
|
93
|
+
| `PricingCard` | `@atelic-action/ui/sections` | A standalone price card with a tick list and its booking action | [Sections/PricingCard](https://ui.atelic.me/?path=/docs/sections-pricingcard--docs) |
|
|
94
|
+
| `ProcessSteps` | `@atelic-action/ui/sections` | A dark band of numbered steps beside a frame, landing on its `id` | [Sections/ProcessSteps](https://ui.atelic.me/?path=/docs/sections-processsteps--docs) |
|
|
95
|
+
| `ProfileCards` | `@atelic-action/ui/sections` | Equal weight cards of media beside a short bio | [Sections/ProfileCards](https://ui.atelic.me/?path=/docs/sections-profilecards--docs) |
|
|
96
|
+
| `RevealSlider` | `@atelic-action/ui/sections` | Drag or arrow keys to compare two frames, each with its own toned shot brief before photography | [Sections/RevealSlider](https://ui.atelic.me/?path=/docs/sections-revealslider--docs) |
|
|
97
|
+
| `ReviewCarousel` | `@atelic-action/ui/sections` | The aggregate beside one large review at a time, stepped by dots and arrows, each review linking to its source | [Sections/ReviewCarousel](https://ui.atelic.me/?path=/docs/sections-reviewcarousel--docs) |
|
|
98
|
+
| `ReviewWall` | `@atelic-action/ui/sections` | The reviews page: tag filter and sort when the data carries them, clamped quotes behind Read more | [Sections/ReviewWall](https://ui.atelic.me/?path=/docs/sections-reviewwall--docs) |
|
|
99
|
+
| `SplitSection` | `@atelic-action/ui/sections` | The two column band: copy beside copy, or media beside copy | [Sections/SplitSection](https://ui.atelic.me/?path=/docs/sections-splitsection--docs) |
|
|
100
|
+
| `SiteConfig` and its member types (`Density` among them), `Surface` (the band every section's `surface` takes, 8.0.0), `formatClock`, `formatHoursRange`, `isClosed`, `isHoneypotFilled`, `trackEvent` | `@atelic-action/ui/sections` | The site contract the sections read, and the hours, honeypot, and lead event helpers | none |
|
|
101
|
+
| `Bubble`, `ImageFrame`, `ProseBlocks`, `QuoteCard`, `StarRow`, `TickList` | `@atelic-action/ui/primitives` | The marketing primitives: a round tile holding an icon or a step number, a framed image, prose blocks (headings at two levels, paragraphs, lists, and figures: small captioned tiles in rows, an image or a silent looping clip played only while on screen, each opening large in a dialog), a quote card, a row of filled stars, a tick list | [Primitives/Bubble](https://ui.atelic.me/?path=/docs/primitives-bubble--docs) |
|
|
102
|
+
| `SiteShell` | `@atelic-action/ui/chrome` | A marketing page's whole chrome: skip link, header, main, footer, sticky bar, the contact dock when configured, mounting the base path provider and setting the section density | [Chrome/SiteShell](https://ui.atelic.me/?path=/docs/chrome-siteshell--docs) |
|
|
104
103
|
| `BasePathProvider`, `useBasePath`, `useWithBase`, `joinBase`, `stripBase`, `hasBase`, `normalizeBasePath` | `@atelic-action/ui/routing` | The base path a site is served under, read by Button, Chip, and every section that builds a link | none |
|
|
105
104
|
| `joinBase`, `stripBase`, `hasBase`, `normalizeBasePath` | `@atelic-action/ui/routing/base-path` | The same four pure helpers, built, for what Node runs (a Playwright spec, a script) | none |
|
|
106
|
-
| `marketingConfig` | `@atelic-action/ui/vite` | A marketing site's whole Vite configuration as one call | none |
|
|
105
|
+
| `marketingConfig` | `@atelic-action/ui/vite` | A marketing site's whole Vite configuration as one call; with the three Sentry variables it uploads hidden source maps under the commit (8.1.0) | none |
|
|
106
|
+
| `buildRelease`, `sentryUpload`, `SentryUpload`, `environmentPlugin` | `@atelic-action/ui/vite` | The commit a build is filed under, the source map upload's settings (on only with its three variables), and the plugin that names the build's environment for the browser (8.1.0) | none |
|
|
107
|
+
| `isMiss`, `MissMatch`, `CATCH_ALL_ROUTE_ID` | `@atelic-action/ui/routing` | Whether a router's matches are a miss (the catch all route, or a route whose params name no page), router free, for a site's root route (8.1.0) | none |
|
|
108
|
+
| `startErrorReporting`, `ErrorCatcherScript`, `errorCatcherScript`, `reportError`, `installCatcher`, `readCatcher`, `afterFirstPaint`, `throwLaunchCheck`, `LAUNCH_CHECK_MESSAGE` | `@atelic-action/ui/monitoring` | Error reporting in the browser: the inline early catcher, and the start function that loads the Sentry SDK after first paint, errors only (8.1.0; see [Error Reporting](#error-reporting)) | none |
|
|
109
|
+
| `reportServerError`, `withErrorReporting`, `parseDSN`, `parseStack`, `buildEnvelope` | `@atelic-action/ui/monitoring/server` | Error reporting from a function or the middleware, dependency free and built, for what Vercel runs uncompiled (8.1.0) | none |
|
|
107
110
|
| `sections.css` | `@atelic-action/ui/styles/sections.css` | Styles for everything under `sections`, imported after `primitives.css` | none |
|
|
108
|
-
| `AppProvider`, `AppConfigProvider`, `useAppConfig`, `useNav`, `useUser`, `configureApp`, `getAppConfig`, `AppConfig`, `NavItem`, `AppUser`, `Register` | `@atelic-action/ui/app` | The app shell's seam: the app hands in its config and nav, registers its user type, and reads them back | [
|
|
109
|
-
| `AppLayout`, `AppPage`, `AppPageToolbar`, `Breadcrumbs`, `SectionCards`, `DesktopRail`, `MobileTabBar`, `MobileMenu`, `UserMenu`, `PageSkeleton`, `PageError`, `ActionButton`, `FormActionButtons`, `activeSection` | `@atelic-action/ui/app` | The app frame: the rails, the tab bar, the page scaffold with its toolbar and right rail | [
|
|
110
|
-
| `AuthGuard`, `
|
|
111
|
-
| The shadcn kit (`Button`, `Dialog`, `Select`, `OptionSelect`, `SearchInput`, `BadgeList`, `Callout`, and the rest) | `@atelic-action/ui/app/ui` | The kit the shell is set in; a new kit component lands here, never in an app | [
|
|
111
|
+
| `AppProvider`, `AppConfigProvider`, `useAppConfig`, `useNav`, `useUser`, `configureApp`, `getAppConfig`, `AppConfig`, `NavItem`, `AppUser`, `Register` | `@atelic-action/ui/app` | The app shell's seam: the app hands in its config and nav, registers its user type, and reads them back | [App/AppProvider](https://ui.atelic.me/?path=/docs/app-appprovider--docs) |
|
|
112
|
+
| `AppLayout`, `AppPage`, `AppPageToolbar`, `Breadcrumbs`, `SectionCards`, `DesktopRail`, `MobileTabBar`, `MobileMenu`, `UserMenu`, `PageSkeleton`, `PageError`, `ActionButton`, `FormActionButtons`, `activeSection` | `@atelic-action/ui/app` | The app frame: the rails, the tab bar, the page scaffold with its toolbar and right rail | [App/AppLayout](https://ui.atelic.me/?path=/docs/app-applayout--docs) |
|
|
113
|
+
| `AuthGuard`, `ErrorFallback`, `GoogleGlyph`, `useAuthStore`, `useUnitsStore`, `apiFetch`, `publicFetch`, `session`, the hooks and the wire types | `@atelic-action/ui/app` | Auth, transport, the two shell stores, and the helpers the shell runs on | [App/AuthGuard](https://ui.atelic.me/?path=/docs/app-authguard--docs) |
|
|
114
|
+
| The shadcn kit (`Button`, `Dialog`, `Select`, `OptionSelect`, `SearchInput`, `BadgeList`, `Callout`, and the rest) | `@atelic-action/ui/app/ui` | The kit the shell is set in; a new kit component lands here, never in an app | [App/UI/Button](https://ui.atelic.me/?path=/docs/app-ui-button--docs) |
|
|
112
115
|
| `app.css` | `@atelic-action/ui/styles/app.css` | The shell's Tailwind sheet: the token mapping, the default tokens, the base layer, the `ap-*` scaffold, and the `@source` that points Tailwind at the shell | none |
|
|
113
|
-
| The
|
|
116
|
+
| The `atelic-*` commands | the `bin` map | The build guard, health stamp, link and wall checks, reader link, static server, print, sealing, and the marketing site's sitemap clean, base path check, contact canary, and Sentry check (8.1.0) | none |
|
|
114
117
|
|
|
115
118
|
|
|
116
119
|
## Install
|
|
@@ -153,7 +156,7 @@ Import the stylesheets in this order, from the root route or the site's base she
|
|
|
153
156
|
|
|
154
157
|
Every rule in the package sheets is scoped under `.atelic-ui`, the one root class a consumer wears: a site puts it on its outermost wrapper, an app on the region that holds a package component. Which sheets it imports decides what it gets, so a site importing `base.css` gets the resets and typography under that class and an app importing `components.css` alone gets none of them.
|
|
155
158
|
|
|
156
|
-
The package sheets sit inside `@layer atelic-ui`, so any rule a site writes outside a layer wins over them whatever its specificity. The package reads the theme tokens (`--ink`, `--surface`, `--primary`, `--nav-height`, and the rest) and defines none, so `theme.css` stays the one file a site edits to rebrand. The chrome's buttons wear the `.btn` classes, which `primitives.css` defines and a site may restyle.
|
|
159
|
+
The package sheets sit inside `@layer atelic-ui`, so any rule a site writes outside a layer wins over them whatever its specificity. The package reads the theme tokens (`--ink`, `--surface`, `--primary`, `--nav-height`, and the rest) and defines none of them, so `theme.css` stays the one file a site edits to rebrand; the only values it declares are the defaults of its own optional tokens, on a selector that weighs nothing (see [Tokens](#tokens)). The chrome's buttons wear the `.btn` classes, which `primitives.css` defines and a site may restyle.
|
|
157
160
|
|
|
158
161
|
## Rendering From Props
|
|
159
162
|
|
|
@@ -186,7 +189,41 @@ an image; the chrome draws no second wordmark. A marketing site's lockup
|
|
|
186
189
|
passes no recipient. The run after the wordmark reads `--brand-accent` when
|
|
187
190
|
the theme sets it (a client branded host pins the sender's orange there) and
|
|
188
191
|
falls back to `--primary` (0.6.1), and the recipient's mark sits at the same
|
|
189
|
-
|
|
192
|
+
height as the sender's, `--brand-mark-height`.
|
|
193
|
+
|
|
194
|
+
The mark is the brand's own artwork. A site whose logo is cut once per
|
|
195
|
+
surface passes `logo.onLight` (drawn on the light bar) and `logo.onDark`
|
|
196
|
+
(drawn on the dark bar, over a hero, and in the footer), and the chrome
|
|
197
|
+
never recolors a cut on its own surface. A site that passes `logo.src`
|
|
198
|
+
alone keeps what it had: a light mark that the header tints to ink on the
|
|
199
|
+
light bar. Every header mark stands at `--brand-mark-height` (30px unless
|
|
200
|
+
the theme sets it) and runs as wide as its own ratio, so a wide wordmark
|
|
201
|
+
reads at a height the theme picks, and `logo.wordmark: false` drops the
|
|
202
|
+
live name beside artwork that already spells it; with no mark at all the
|
|
203
|
+
name stays, so the home link is never empty.
|
|
204
|
+
|
|
205
|
+
The header and the footer resolve the mark by one order (8.0.0): a
|
|
206
|
+
surface draws its own cut as given; failing that, `src`, as given on a dark
|
|
207
|
+
surface and tinted to ink on the light bar; failing that, the other
|
|
208
|
+
surface's cut flattened to a silhouette of the surface's words color (ink
|
|
209
|
+
on the light bar, white on a dark one), since drawn as given it would
|
|
210
|
+
vanish. "Dark" is the dark bar, the transparent bar over a hero, and the
|
|
211
|
+
footer band.
|
|
212
|
+
|
|
213
|
+
| `onLight` | `onDark` | `src` | The light bar draws | The dark bars and the footer draw |
|
|
214
|
+
|---|---|---|---|---|
|
|
215
|
+
| set | set | either | `onLight` | `onDark` |
|
|
216
|
+
| set | | set | `onLight` | `src` |
|
|
217
|
+
| set | | | `onLight` | `onLight` as a white silhouette |
|
|
218
|
+
| | set | set | `src` tinted to ink | `onDark` |
|
|
219
|
+
| | set | | `onDark` tinted to ink | `onDark` |
|
|
220
|
+
| | | set | `src` tinted to ink | `src` |
|
|
221
|
+
| | | | the name alone | the name alone |
|
|
222
|
+
|
|
223
|
+
A glyph tile (`logo.tile`) wins over all three; its letter is drawn by the
|
|
224
|
+
stylesheet, so it is never text in the home link, and the link's name is
|
|
225
|
+
always the words it shows (the brand's name, or the wordmark when it names
|
|
226
|
+
something else), then "home".
|
|
190
227
|
|
|
191
228
|
The menu is a native `<dialog>` opened with `showModal()`, so Escape, focus containment, and focus return come from the browser.
|
|
192
229
|
|
|
@@ -219,6 +256,18 @@ export function NotFoundPage() {
|
|
|
219
256
|
}
|
|
220
257
|
```
|
|
221
258
|
|
|
259
|
+
A site's root route asks whether the matches are a miss twice: to emit the 404's head tags from the root (tags on the still pending catch all route would land twice), and to draw a miss inside the site's shell from the root layout, so the shell stays mounted while the not found body swaps from its pending render to its own and a menu opened in the first moments stays open. `isMiss(matches)` from `@atelic-action/ui/routing` answers it with no router import: the catch all route (`/$`) took the path, or a route's `staticData.missing(params)` says its params name no page.
|
|
260
|
+
|
|
261
|
+
```tsx
|
|
262
|
+
// src/routes/__root.tsx
|
|
263
|
+
import { isMiss } from "@atelic-action/ui/routing";
|
|
264
|
+
|
|
265
|
+
head: ({ matches }) => ({ ...(isMiss(matches) ? buildPageHead(site, notFound.meta) : {}) }),
|
|
266
|
+
// RootLayout
|
|
267
|
+
const miss = useMatches({ select: isMiss });
|
|
268
|
+
return miss ? <SiteShell site={site}><Outlet /></SiteShell> : <Outlet />;
|
|
269
|
+
```
|
|
270
|
+
|
|
222
271
|
`staticNotFoundRouting` is for prerendered sites only. On a live app the pending state is a real loading moment and the page would flash through every slow load, so an app sets `defaultNotFoundComponent` alone. A browser test is the only proof any of this works; template-marketing's `e2e/not-found.spec.ts` is the one to copy.
|
|
223
272
|
|
|
224
273
|
## Primitives
|
|
@@ -339,6 +388,79 @@ The two pieces a reader sees are ordinary components, in `@atelic-action/ui/comp
|
|
|
339
388
|
|
|
340
389
|
`GateLogin` posts to `/api/auth/request-link`; a site served under a base path passes its own `endpoint`. Its button wears the site's `.btn` classes, as the chrome's do. `Watermark` reads the `gate_email` cookie and draws nothing without one. `readCookie`, exported beside them, is the reader `Watermark` uses and a site's own code can: empty during prerender, for a missing cookie, and for one that will not decode. `GateLogin` says so when an address is not an email, holds a second submit while the first is in flight, and announces each outcome to a screen reader.
|
|
341
390
|
|
|
391
|
+
## Error Reporting
|
|
392
|
+
|
|
393
|
+
Every site reports its errors to Sentry, errors only and never performance tracing, through three pieces the package owns (8.1.0). A site cannot launch without it: `atelic-check-sentry` stops a production build with no DSN.
|
|
394
|
+
|
|
395
|
+
1. **The early catcher.** `ErrorCatcherScript`, first in the root route's `<head>`, is a 443 byte inline script (281 gzipped, ES5, no dependencies) that listens for `error` and `unhandledrejection` from the first moment and holds up to twenty (`CATCHER_CAP`) in a buffer on `window.__atelicErrors` (`CATCHER_GLOBAL`), counting the rest as dropped; the count rides on each replayed error as `earlyDropped`. An error thrown before the app's own JavaScript runs is held, not lost.
|
|
396
|
+
2. **The start function.** `startErrorReporting({ dsn, release, environment })` from `@atelic-action/ui/monitoring` (with `environment` defaulting to the build's `import.meta.env.VITE_ENVIRONMENT`) makes sure the catcher is listening (installing it when the page has none), then after first paint (falling back to the load event where the browser cannot report paints, and to ten seconds whatever happens) loads the Sentry browser SDK, replays what the catcher held, each tagged `early`, and takes the catcher's listeners off so nothing is reported twice. With no `dsn` it does nothing and loads nothing. The SDK chunk is the client set up by hand with six integrations (event filters, function to string, the global handlers, linked errors, dedupe, the page's URL and user agent): no tracing, no replay, no breadcrumbs. Measured alone with esbuild, the chunk weighs 69.9 KB raw, 24.6 KB gzipped, and 22.3 KB in brotli, where the old `@sentry/react` chunk with browser tracing, measured the same way, weighed 136.2 KB, 47.0 KB, and 41.5 KB; a site's own build bundles them with what it shares, so its figures differ (a real site's new chunk measured 81 KB raw and 28 KB gzipped, replacing one of 425 KB raw and 141 KB gzipped). `AppErrorBoundary` hands a render crash to the same buffer (`reportError`), since React keeps a caught crash from the window's handlers; on a page where reporting never started and no inline catcher runs, the crash is let go quietly rather than held by a catcher nobody reads. The package carries `@sentry/browser`, so a site needs no Sentry dependency of its own.
|
|
397
|
+
3. **The server reporter.** `@atelic-action/ui/monitoring/server`, built like the gate so a Vercel function imports it uncompiled: `reportServerError(error, { dsn?, request?, tags?, release?, environment? })` posts a Sentry envelope to the ingest the DSN names (`SENTRY_DSN`, then `VITE_SENTRY_DSN`), with the stack's frames, the runtime as a tag, and the release from `VERCEL_GIT_COMMIT_SHA`. It waits two seconds at most, never throws, and resolves whether or not the send worked. `withErrorReporting(handler)` reports a handler's throw and throws it again. The gate's middleware reports anything it throws, and passes and blocks exactly as before.
|
|
398
|
+
|
|
399
|
+
**The launch check.** Once reporting has started, `window.__atelicErrors.test()` in the browser's console throws an error from the package's own code on the next turn, uncaught, named "Atelic error reporting launch check: thrown on purpose from @atelic-action/ui" (`LAUNCH_CHECK_MESSAGE`). Run it on a site's first production deploy: the error should reach Sentry under the deploy's release and environment with a readable, source mapped stack. A stack of minified names means the upload did not run.
|
|
400
|
+
|
|
401
|
+
Two noises are left out, the list kept short: an error whose top frame is a browser extension's (`chrome-extension://`, `moz-extension://`, `safari-extension://`, `safari-web-extension://`), and the in app webview bridges failing ("Java object is gone", "Error invoking postMessage").
|
|
402
|
+
|
|
403
|
+
**What is captured:** uncaught errors and unhandled rejections in the browser, from before first paint on; render crashes an error boundary catches; a function's or the middleware's throw, and whatever a function reports by hand. **What is not:** performance, sessions, replays, breadcrumbs, console output, and the expected misses (a contact form's validation answer, a malformed or expired gate cookie). **Privacy:** a server report carries the request's method, its path with no query string, and its user agent, and nothing else from the request: never a body, never another header. A browser report is cut the same way before it leaves the page: the page's URL and each stack frame's file lose their query string and fragment, the referrer goes, and the user agent is the one header kept. A contact form's request holds a person's name, address, and message.
|
|
404
|
+
|
|
405
|
+
| Variable | Where | What it does |
|
|
406
|
+
|---|---|---|
|
|
407
|
+
| `VITE_SENTRY_DSN` | the Vercel project, every environment | The browser's DSN, read by the start function; the server reporter falls back to it. Required for a production build |
|
|
408
|
+
| `SENTRY_DSN` | the Vercel project, optional | The server's DSN when it should differ from the browser's |
|
|
409
|
+
| `SENTRY_AUTH_TOKEN`, `SENTRY_ORG`, `SENTRY_PROJECT` | the Vercel project, production | With all three, `marketingConfig` adds the Sentry Vite plugin: it creates a release named by the commit, uploads hidden source maps (`build.sourcemap: "hidden"`, only then), and deletes every map from `dist/` once uploaded. With any missing, the build is unchanged |
|
|
410
|
+
|
|
411
|
+
`marketingConfig` hands the browser the commit (`VERCEL_GIT_COMMIT_SHA`, else `GITHUB_SHA`) as `import.meta.env.VITE_RELEASE`, the same name the upload's release takes, so a stack trace meets its source maps, and the environment as `import.meta.env.VITE_ENVIRONMENT`: `VERCEL_ENV` (production, preview, development) on Vercel, else the build's mode, since a production build's mode is production on every deploy, a preview's included. `atelic-check-sentry` also fails any build whose DSN is set but is not one.
|
|
412
|
+
|
|
413
|
+
What a site changes. `src/router.tsx` drops its own Sentry import and its `afterFirstPaint`, and starts reporting where the lazy init was:
|
|
414
|
+
|
|
415
|
+
```ts
|
|
416
|
+
import { startErrorReporting } from "@atelic-action/ui/monitoring";
|
|
417
|
+
|
|
418
|
+
if (typeof window !== "undefined") {
|
|
419
|
+
startErrorReporting({
|
|
420
|
+
dsn: env.VITE_SENTRY_DSN,
|
|
421
|
+
release: import.meta.env.VITE_RELEASE,
|
|
422
|
+
environment: import.meta.env.VITE_ENVIRONMENT,
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
`src/routes/__root.tsx` puts the catcher first in `<head>`, and imports the boundary from the package in place of its own copy, so a render crash is reported (the site deletes its `src/shared/components/AppErrorBoundary.tsx` and `ErrorFallback.tsx`, whose package twins are the same page with a long message that wraps):
|
|
428
|
+
|
|
429
|
+
```tsx
|
|
430
|
+
import { AppErrorBoundary } from "@atelic-action/ui/artifact";
|
|
431
|
+
import { ErrorCatcherScript } from "@atelic-action/ui/monitoring";
|
|
432
|
+
|
|
433
|
+
<head>
|
|
434
|
+
<ErrorCatcherScript />
|
|
435
|
+
<HeadContent />
|
|
436
|
+
</head>
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
`api/contact.ts` wraps its handler, and reports a refused send by hand, since that path answers rather than throws:
|
|
440
|
+
|
|
441
|
+
```ts
|
|
442
|
+
import { reportServerError, withErrorReporting } from "@atelic-action/ui/monitoring/server";
|
|
443
|
+
|
|
444
|
+
export const POST = withErrorReporting(
|
|
445
|
+
async (request: Request): Promise<Response> => {
|
|
446
|
+
// ...the handler as it was, and where Resend refuses:
|
|
447
|
+
if (!response.ok) {
|
|
448
|
+
await reportServerError(new Error(`Resend answered ${response.status}`), { request, tags: { route: "contact" } });
|
|
449
|
+
return json(502, { ok: false, error: "Sending failed. Please try again in a moment." });
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
{ tags: { route: "contact" } },
|
|
453
|
+
);
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
`package.json` runs the check first in `build` and drops its own `@sentry/react` dependency:
|
|
457
|
+
|
|
458
|
+
```json
|
|
459
|
+
"build": "atelic-check-sentry && atelic-check-images && tsc -b && vite build && ..."
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
A site with a real reason to launch without Sentry runs `atelic-check-sentry --allow-missing`, which lets the build through under a loud warning. `middleware.ts` changes nothing: the gate's middleware reports on its own.
|
|
463
|
+
|
|
342
464
|
## The Artifact Documents
|
|
343
465
|
|
|
344
466
|
`@atelic-action/ui/artifact` is the pieces an artifact document is built from and the site around it, so a fix to a piece reaches every business's documents with one version bump. The composed documents themselves (`Writeup`, `Read`, `Report`, `Note`, and the sealed `Gate`, with their content types and their stylesheet) live in [`@atelic-action/artifact`](https://github.com/atelic-action/artifact) since 2.0.0, which depends on this package for everything below:
|
|
@@ -464,7 +586,7 @@ The provider stays in the source entry on purpose. A built copy of it would be a
|
|
|
464
586
|
|
|
465
587
|
### SiteShell
|
|
466
588
|
|
|
467
|
-
`SiteShell` (in `@atelic-action/ui/chrome`) is the page wrapper: the `.atelic-ui` scope around the skip link, the header, `<main>`, the sticky CTA bar, the footer with its closing bar, and the watermark, all mapped from the `SiteConfig`. It takes `site`, `currentPath` (the package imports no router), `basePath`, and `nav` (defaults to `site.nav`), plus `heroNav`, `stickyCTA`, `footer`, `pageNav`, `navOnDark`, `hideNavCTA`, and `credit` (the practice's credit on the closing bar's right side; the copyright prints either way). 5.0.0 renames `CreditBar` to `ClosingBar` with no alias, replaces `.credit-bar` and `.footer-bottom` with `.closing-bar`, and `footer.note` prints at the far right of the closing bar. Since 6.0.0 the closing bar is two sides, `left` and `right`, that each take anything: left out, they are `Copyright` with the business's name and `Credit`, the practice's made with line; `null` empties a side. `credit` off empties the right side and keeps the copyright, and a `footer.note` stands in place of the credit whether `credit` is on or off. A site keeps a wrapper a few lines long:
|
|
589
|
+
`SiteShell` (in `@atelic-action/ui/chrome`) is the page wrapper: the `.atelic-ui` scope around the skip link, the header, `<main>`, the sticky CTA bar, the footer with its closing bar, and the watermark, all mapped from the `SiteConfig`. It takes `site`, `currentPath` (the package imports no router), `basePath`, and `nav` (defaults to `site.nav`), plus `heroNav`, `stickyCTA`, `footer`, `pageNav`, `navOnDark`, `hideNavCTA`, `density` (defaults to `site.density`; see [Density](#density)), `contactDock` (on by default; mounts the dock when `site.contactDock` is set), and `credit` (the practice's credit on the closing bar's right side; the copyright prints either way). 5.0.0 renames `CreditBar` to `ClosingBar` with no alias, replaces `.credit-bar` and `.footer-bottom` with `.closing-bar`, and `footer.note` prints at the far right of the closing bar. Since 6.0.0 the closing bar is two sides, `left` and `right`, that each take anything: left out, they are `Copyright` with the business's name and `Credit`, the practice's made with line; `null` empties a side. `credit` off empties the right side and keeps the copyright, and a `footer.note` stands in place of the credit whether `credit` is on or off. A site keeps a wrapper a few lines long:
|
|
468
590
|
|
|
469
591
|
```tsx
|
|
470
592
|
import { SiteShell as Shell, type SiteShellProps } from "@atelic-action/ui/chrome";
|
|
@@ -480,18 +602,23 @@ export function SiteShell(props: Omit<SiteShellProps, "currentPath" | "basePath"
|
|
|
480
602
|
|
|
481
603
|
Every site's footer has one shape, and `Footer` draws it (7.0.0):
|
|
482
604
|
|
|
483
|
-
- **The brand column:** the logo, then the Google rating
|
|
484
|
-
- **
|
|
605
|
+
- **The brand column:** the header's lockup (the mark with the wordmark beside it, or the mark alone when `logo.wordmark` is false), then the Google rating beside five stars, the whole line one link to the business's Google profile when it has one, then the one address, the headquarters, linked to the same profile, then the phone and the email, each a link.
|
|
606
|
+
- **The hours,** when the site gives them: a column of their own headed Hours (`hoursHeading`), each row's days beside or over its range, as the column's width allows (8.1.0).
|
|
607
|
+
- **Four link columns:** Company, Resources, Social, and Legal, in that order. From 760px the columns share one row at their shares but never narrower than their longest word, wrapping a column to a second row before a label breaks inside itself (8.1.0). A Social link carries its icon in front of its words. A column with no links is left out, and the grid sizes itself to the columns shown.
|
|
485
608
|
- **The closing bar:** `ClosingBar` under it all, `Copyright` with the business's name on the left and `Credit` on the right.
|
|
486
609
|
|
|
487
|
-
The
|
|
610
|
+
The rating's stars are hidden from assistive technology, so the line, linked or not, is named by its words ("4.8 on Google"); `ratingLabel` gives the link a fuller name when a site wants one ("4.8 on Google, opens the Google profile"). Linked, it opens in a new tab as the address does. With the hours the footer holds six columns, so from 760px to 1100px the brand column keeps a row of its own above the other five, and from 1100px all six share one row with the brand column a little wider; a phone sets the brand column over two across, as without them. The rating's five stars read `--star-fill`, the same token `StarRating`'s filled star reads, and fall back to `--review-gold` (`#f5b301`) when a theme sets none, so one line in `theme.css` recolors every star on a site (8.0.0). The logo is the header's lockup drawn on the dark band (8.1.0): the mark the dark surface resolves to, by the header's own order (see the table under [Rendering From Props](#rendering-from-props)), with the wordmark beside it, composed by the same parts the header's `BrandLockup` draws. Its picture is silent there, since the words name it. `logo.wordmark: false` draws the mark alone, named by `logo.alt`; a glyph tile keeps the name beside it, and a logo with no picture is the words alone. The column headings are level 2 by default (`headingLevel` takes 2 to 6): the footer is a landmark beside the page's main content, so its sections sit one level under the page's `h1` whatever the page's own outline ends on, which satisfies axe's `heading-order` on every page and keeps the columns in a screen reader's heading list. Each is a `div` with `role="heading"` and `aria-level`, wearing `.footer-heading`, rather than an `h2`: a site's own bare `h2` rule is unlayered, so it beats every rule in the package's layer whatever its weight, and it is written for a page's section titles, not these small labels. A heading by role keeps the outline and matches no element rule, with no `!important` and no specificity raised.
|
|
611
|
+
|
|
612
|
+
The header carries the services and the service areas, so the footer does not repeat them. It holds no blurb, no call to action, and no credential badges; a site that needs one of those puts it on a page.
|
|
488
613
|
|
|
489
614
|
`SiteShell` fills the footer from the `SiteConfig`, so a site names nothing twice:
|
|
490
615
|
|
|
491
616
|
| The footer shows | From the config |
|
|
492
617
|
|---|---|
|
|
493
618
|
| The rating | `footer.rating`, as printed (`"4.8 on Google"`) |
|
|
619
|
+
| The rating's link | `footer.ratingHref`, else `mapLinkURL`, the Google profile, whenever a rating is set; `footer.ratingLabel` names it |
|
|
494
620
|
| The address and its link | `address` and `mapLinkURL`; `footer.showAddress: false` drops the address |
|
|
621
|
+
| The hours | `hours`, each row's `labelShort` and its range on `clock`; `footer.showHours: false` keeps them out of the footer and in the structured data |
|
|
495
622
|
| The phone and the email | `phone`, `email` |
|
|
496
623
|
| Company | `nav` |
|
|
497
624
|
| Resources | `footerLinks` |
|
|
@@ -501,36 +628,168 @@ The header carries the services and the service areas, so the footer does not re
|
|
|
501
628
|
|
|
502
629
|
A site whose footer genuinely needs other columns names them outright in `footer.columns`, which replaces the derived four. Rendering `Footer` directly, a site passes `columns` itself.
|
|
503
630
|
|
|
504
|
-
Moving to 7.0.0: `footerBlurb` and `footer.contactHeading` are gone from the config, and `Footer` no longer takes `blurb`, `socialLinks`, `links`, `extraLinks`, `contactHeading`, `hours`, or `legalLinks`. Delete `footerBlurb` from the site config; the rest carries over through the mapping above. The hours stay in the config for the structured data and the page sections that print them.
|
|
631
|
+
Moving to 7.0.0: `footerBlurb` and `footer.contactHeading` are gone from the config, and `Footer` no longer takes `blurb`, `socialLinks`, `links`, `extraLinks`, `contactHeading`, `hours`, or `legalLinks`. Delete `footerBlurb` from the site config; the rest carries over through the mapping above. The hours stay in the config for the structured data and the page sections that print them, and since 8.1.0 the footer draws them again (see [Moving to 8.1.0](#moving-to-810)).
|
|
632
|
+
|
|
633
|
+
### The Mega Menu
|
|
634
|
+
|
|
635
|
+
A nav entry in the config is a page or a group. A group is an entry with `columns`, its panel's sections from left to right; its `to` is the group's own page. On a desktop the label is a control that opens a panel under the bar, as wide as the page's wrap whatever it holds, and every panel opens to the same height (440px), the feature card's, so moving along the bar never makes it jump. A mouse hover or a keyboard focus opens a group, a click pins it open, and Escape, a click outside, or focus leaving it closes it; left and right walk the bar, the down arrow steps into the panel, and up and down walk every link in it, whatever section holds it. A closed panel stays in the HTML, `inert`.
|
|
636
|
+
|
|
637
|
+
A section is one of four kinds, named by `kind`; a section without one is a link column, and a section naming a kind this version does not know is left out of the panel, the menu, and the base path mapping alike, never drawn as another kind (a group left with no section is a plain link):
|
|
638
|
+
|
|
639
|
+
| Kind | What it draws | Its data |
|
|
640
|
+
|---|---|---|
|
|
641
|
+
| link column (`kind` left out, or `"links"`) | A mono heading over its links. The heading is itself a link when it has an `href`. A link may carry a `description` under it, a `badge` ("Popular") in a pill after its label, and `children`, drawn indented under it with an elbow, each with its own `badge`; `quiet` sets a link in the softer words and the regular weight, for a long list such as the towns under a region (8.1.0) | `{ heading, href?, links: [{ label, href, description?, badge?, external?, quiet?, children? }] }` |
|
|
642
|
+
| `"picture"` | One photo filling the section, its caption over a wash at the foot, the whole of it a link named by the caption | `{ kind: "picture", image: { src, alt? }, caption, href }` |
|
|
643
|
+
| `"rows"` | Icon rows two across under an optional heading: a lucide icon by name, a label, and a short line, one row (`highlight`) set on the primary | `{ kind: "rows", heading?, rows: [{ label, description?, icon, href, highlight? }] }` |
|
|
644
|
+
| `"cards"` | Small cards under an optional heading, set off by a rule: a kicker, a title, and a meta line beside a square picture, or a quiet tile without one | `{ kind: "cards", heading?, cards: [{ kicker?, title, meta?, image?, href }] }` |
|
|
645
|
+
|
|
646
|
+
A row's `icon` is one of `calculator`, `calendar`, `card`, `chat`, `document`, `help`, `home`, `mail`, `map`, `phone`, `pin`, `play`, `shield`, `star`, `tool`, `truck`, and `users` (the `NavIcon` type), each a lucide icon. `feature` is the card at the panel's right, 340px wide on `--primary-deep`: a picture taking the height the words leave, an eyebrow, a headline, a line (`text`), ticked `points` (`TickList`), and its action as a `Button` with the arrow, which turns light on the card (`.on-primary`). `allLabel` is off unless given; given, it links the group's own page first in the panel at a column link's weight.
|
|
647
|
+
|
|
648
|
+
Every link in a panel that leads to the page being read carries `aria-current="page"`, the picture, the cards, a column heading, and the group's own link included, and a flat bar link on the current page is marked as a group holding it is. On the solid bar the current entry reads `--primary-ink`; over a hero the transparent bar keeps it in `--on-dark` with its siblings and marks it with an underline, so it reads on a dark photograph whatever the theme's primary (8.1.0). The sections share one row and wrap to a second when their least widths outrun it (a picture, icon rows, and cards beside the feature card at a narrow desktop, or two link columns, icon rows, and cards on a wide wrap), so none is squeezed past reading or pushed out of the card. A section's least width is the larger of its floor (a link column's list 120px, the icon rows 320px, the cards 240px, the picture 220px) and its longest word, and words in a panel break only as a last resort, so no label breaks inside a word to make a row fit (8.1.0).
|
|
649
|
+
|
|
650
|
+
On a phone and a tablet the menu opens each group as an accordion, one at a time, and every group starts closed whenever the menu opens, the one holding the current page included. It draws the same data: each section's heading, a link's children indented under it with the same elbow, the badges kept, icon rows and cards as plain links of their labels and titles, and a picture as a plain link of its caption. A plain entry wears a number, and the numbers count plain entries alone, so a group between them leaves no gap.
|
|
651
|
+
|
|
652
|
+
```ts
|
|
653
|
+
// src/site.config.ts
|
|
654
|
+
nav: [
|
|
655
|
+
{
|
|
656
|
+
label: "Menu",
|
|
657
|
+
to: "/menu",
|
|
658
|
+
columns: [
|
|
659
|
+
{
|
|
660
|
+
heading: "Bread",
|
|
661
|
+
href: "/menu/bread",
|
|
662
|
+
links: [
|
|
663
|
+
{
|
|
664
|
+
label: "Country sourdough",
|
|
665
|
+
href: "/menu/sourdough",
|
|
666
|
+
children: [{ label: "Seeded", href: "/menu/seeded" }],
|
|
667
|
+
},
|
|
668
|
+
{ label: "Morning buns", href: "/menu/buns", badge: "Popular" },
|
|
669
|
+
],
|
|
670
|
+
},
|
|
671
|
+
],
|
|
672
|
+
feature: {
|
|
673
|
+
eyebrow: "Order ahead",
|
|
674
|
+
title: "Skip the Saturday line.",
|
|
675
|
+
points: ["Order by Friday noon", "Pick a pickup time", "Pay at the counter"],
|
|
676
|
+
cta: { label: "Order ahead", href: "/order" },
|
|
677
|
+
image: { src: "/images/menu-feature.jpg", alt: "The ovens at dawn" },
|
|
678
|
+
},
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
label: "Visit",
|
|
682
|
+
to: "/visit",
|
|
683
|
+
columns: [
|
|
684
|
+
{ kind: "picture", image: { src: "/images/menu-shop.jpg" }, caption: "Bread from the back of the shop.", href: "/visit" },
|
|
685
|
+
{
|
|
686
|
+
kind: "rows",
|
|
687
|
+
heading: "Plan a visit",
|
|
688
|
+
rows: [
|
|
689
|
+
{ label: "Order ahead", description: "Pick a loaf and a time", icon: "calendar", href: "/order", highlight: true },
|
|
690
|
+
{ label: "Questions", description: "Plain answers", icon: "help", href: "/faq" },
|
|
691
|
+
],
|
|
692
|
+
},
|
|
693
|
+
{ kind: "cards", heading: "Latest", cards: [{ kicker: "From the blog", title: "Why the rye takes three days", meta: "4 min", href: "/blog/rye" }] },
|
|
694
|
+
],
|
|
695
|
+
},
|
|
696
|
+
{ label: "About", to: "/about" },
|
|
697
|
+
],
|
|
698
|
+
header: { phones: [{ e164: "+15555550100", display: "(555) 555-0100", label: "The shop" }] },
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
`SiteShell` puts the base path on every link and picture a section holds. The footer's Company column lists the entries themselves and never a group's links. A bar holding a group or a number keeps the burger up to 1180px instead of 900px, since it needs the room; the second of two numbers shows from 1360px, and the menu lists both. `header.phones` takes up to two, each a tel link; the first is also the round call button beside the burger on a phone.
|
|
702
|
+
|
|
703
|
+
`contactDock` in the config turns on the floating launcher: `label` is the launcher's words, `title` and `subtitle` the panel's head, `footnote` its foot, and `items` the ways to reach the business, each `{ label, description, icon, href }` or, for something already on the page such as a chat vendor's window, `{ label, description, icon, onSelect }`: the type takes one or the other and never neither. A dock item always points at the business's own flow. The dock lifts over the phone's sticky bar while it shows and rides above the footer as it scrolls in. It finds the bar by the `data-dock-lift` attribute `StickyCTABar` wears, which keeps `data-showing` current, or failing that a site's own `.sticky-cta`, read as showing by its `show` class when it keeps no `data-showing` (`lift` names another selector), and the footer by `avoid`, a ref or a selector, which `SiteShell` fills with a ref to its own footer. When the page's elements change it asks the two selectors again once a frame, and binds and measures anew only when the bar or the footer it finds is not the one it holds (a route change, a bar that mounts late), never for the dock's own changes and never on a scroll frame; it measures again when either, or the page, changes size. While open, the launcher reads `closeLabel` ("Close") and the panel's own close button `panelCloseLabel` ("Close panel"), so the two never share a name. Rendered with `track={false}` it sets no inset of its own and sits in the stylesheet's corner, 24px in from the right and the bottom, 16px on a phone.
|
|
704
|
+
|
|
705
|
+
### Density
|
|
706
|
+
|
|
707
|
+
The space a section leaves above and below itself is one token, `--section-space`, with three settings chosen by `data-density` on the `.atelic-ui` root. `SiteShell` sets it from its `density` prop, which defaults to `site.density`:
|
|
708
|
+
|
|
709
|
+
| Setting | `--section-space` | `--block-gap` | `--card-min` |
|
|
710
|
+
|---|---|---|---|
|
|
711
|
+
| `default` | `clamp(36px, 4.6vw, 64px)` | 28px | 0 |
|
|
712
|
+
| `comfortable` | `clamp(56px, 9vw, 120px)` | 44px | 240px |
|
|
713
|
+
| `compact` | `clamp(24px, 3.2vw, 44px)` | 20px | 0 |
|
|
714
|
+
|
|
715
|
+
`.section` pads with it, and the steps derived from it keep their old proportion to it: `.section-md` 0.7, `.section-sm` 0.6, `tight-top` and `tight-bottom` a third, the `PricingBand` 0.84, `PageHero` and the not found opener 0.72 on top and 0.5 below, and the `FeatureDetail` rows 0.6, whose first and last rows now sit flush with the section around them. `--block-gap` is the space between a section's heading and the grid under it (`FeatureGrid`, `ProfileCards`, `LinkColumns`, `CalloutPanel`, and `Gallery` at 0.77 of it), and `--card-min` the least a `FeatureGrid` card stands. A site that wants its own value sets the property on `.atelic-ui` in its own sheet, outside the layer. `ArtifactShell` pins `comfortable`, so a document reads as it did; the app shell reads none of these.
|
|
716
|
+
|
|
717
|
+
### Moving to 8.1.0
|
|
718
|
+
|
|
719
|
+
Nothing breaks: every addition is an optional prop, config key, token, or entry. On a site that changes nothing, these change: the footer's hours, linked rating, and lockup; the fixes below; the current nav entry's underline on the solid bar; the credit link's underline; the footer's row wrapping a column before it squeezes a word; an email address breaking only at its @ or a dot; the contact dock never rising into the header; and the eyebrow's rule following its last line. Error reporting arrives for a site to wire.
|
|
720
|
+
|
|
721
|
+
- **The hours come back to the footer, on by default.** A site whose config holds `hours` (every site does, for the structured data) shows them in its footer as a column headed Hours, beside the link columns. To keep them out of the footer, and in the structured data and the sections that print them, set `footer: { showHours: false }` in the site config. Rendering `Footer` directly, a site passes `hours` (`HoursRow[]`, already formatted) and, if it wants other words, `hoursHeading`.
|
|
722
|
+
- **The rating links to the Google profile.** With `footer.rating` set, the whole rating line (the stars and the words) is one link, opening in a new tab, to `footer.ratingHref`, else `mapLinkURL`. A site with no `mapLinkURL` and no `ratingHref` keeps the plain line. `footer.ratingLabel` (and `Footer`'s `ratingLabel`) gives the link a fuller accessible name; `Footer` takes `ratingHref` directly.
|
|
723
|
+
- **The footer draws the header's lockup.** A brand with a mark image gets the mark with its wordmark beside it in the footer, as in the header, where 8.0.0 drew the image alone. `logo.wordmark: false` keeps the image alone, named by `logo.alt`. The header and the footer draw it from one composition (`LockupParts`, internal to `BrandLockup.tsx`), so the two never drift.
|
|
724
|
+
- **Fixed: a crowded mega panel no longer breaks words.** A panel's sections wrap to a second row before any is squeezed below its longest word or its floor; no label in a panel breaks inside a word. A panel that already fit lays out as before.
|
|
725
|
+
- **Fixed: the current entry over a hero.** On the transparent bar over a hero the current entry (a page, a group holding it, or a scroll spied stop) reads `--on-dark` with its siblings and is underlined, where it read `--primary` (a dark green primary read 1.64 to 1 over a dark hero). The solid bar's current entry keeps its `--primary-ink` and takes the same 2px underline, since a deep primary can sit within 2 to 1 of the bar's other words (1.67 on a real site), and color alone told the current page.
|
|
726
|
+
- **Error reporting, optional but expected** (see [Error Reporting](#error-reporting)): the early catcher, `startErrorReporting` from `@atelic-action/ui/monitoring`, the server reporter from `@atelic-action/ui/monitoring/server`, the middleware reporting its throws, the `atelic-check-sentry` command, and the source map upload in `marketingConfig`. Nothing changes for a site until it wires them, with two exceptions: `marketingConfig` now defines `import.meta.env.VITE_RELEASE` whenever the build knows its commit, and with `SENTRY_AUTH_TOKEN`, `SENTRY_ORG`, and `SENTRY_PROJECT` all set it uploads hidden source maps and deletes them from `dist/`. The package now depends on `@sentry/browser` and `@sentry/vite-plugin`, so a site drops its own `@sentry/react`. `AppErrorBoundary` hands a caught render crash to error reporting, which holds it in a buffer on the window until the SDK loads; with no DSN it goes nowhere.
|
|
727
|
+
- **Fixed on a crowded page:** the header's lockup never shrinks (a wide mark in a bar with five groups, a number, and the call to action drew at 100 by 39 where it is 141 by 55 at its height); a phone number's no wrap holds the number alone, not a whole call row (a tel link of words alone, or the `.tel-number` the dock, the menu, the panel, `Button`, and `Locations` now put around the number), so a dock row's line wraps inside the panel; links sharing an href are keyed by place everywhere (the bar, the menu, the panels, the footer, the not found page, the dock, the app's nav), so a one page site renders every link and React warns of nothing; a theme whose phone menu sheet's ground equals its primary sets `--menu-badge-bg`, `--menu-badge-ink`, `--menu-cta-bg`, and `--menu-cta-ink` to `--on-primary` and `--primary-ink`, so the badge and the call to action show there rather than vanish; left unset they draw as in 8.0.0. The number's wrapper sits inside one plain span, so a button reading "Call (555) 555-0142" measures exactly what the bare words measure. The contact dock's title is a heading by role, so the brand's heading tokens and a site's heading rules never reach it, and a `BlogIndex` card's title pins its own look against the tokens.
|
|
728
|
+
- **Fixed in the footer:** from 760px its columns are one row that wraps, each at its share as the grid gave it but never narrower than its longest word, so a crowded footer (the hours beside four link columns, or another machine's wider font) wraps a column to a second row rather than break "Instagram" inside itself; an icon stays on its label's line; an email address offers breaks after its @ and before each dot (`<wbr>`), so it never breaks inside a word.
|
|
729
|
+
- **Fixed in the dock:** the launcher never rises into the fixed header. Over a footer taller than the room left it holds 16px under the header (`ContactDock`'s new `header` selector, default `header.nav`), where it once rose over the phone's burger.
|
|
730
|
+
- **Fixed in the eyebrow:** the kicker is inline, so its trailing rule follows the last line of a kicker that wraps rather than standing apart beside the block; `Eyebrow rule={false}` and `Hero eyebrowRule={false}` set the kicker without it. The credit link in the closing bar is underlined, a link in a sentence never marked by color alone.
|
|
731
|
+
- **New options, each off or at today's look by default:** a `LinkColumns` row without `href` is words alone, and `--link-columns-min` (170px) sets a column's least width; a panel link takes `quiet` (the softer words, the regular weight); `site.cta.arrow` puts the hero's arrow on the header's button, `site.cta.stickyLabel` gives the phone's sticky bar its own words, and `site.menuLabel` sets words beside the burger on a phone, which then name it; and the tokens in the table under [Tokens](#tokens) marked 8.1.0.
|
|
732
|
+
- **Error reporting, as wired since:** `startErrorReporting` defaults its environment to `import.meta.env.VITE_ENVIRONMENT`, which `marketingConfig` now defines from `VERCEL_ENV` (else the mode); `window.__atelicErrors.test()` is the launch check; `isMiss` in `@atelic-action/ui/routing` is the miss check a site's root route asks; `atelic-check-sentry` fails a malformed DSN.
|
|
733
|
+
- **Smaller fixes:** `FullBleedVideo` given a `placeholder` and no `poster` never requests its `src`; `LinkColumns` holds two links to one page in a column; on a page wearing the contact dock the hero's scroll cue moves to the middle of the hero's foot, out from under the launcher; `StickyCTABar` hands the space back to the listener it told when a caller swaps `onSpaceChange`; and the app's dark theme sets destructive words in their own `--destructive-ink` (red 400, `0 90.6% 70.8%`, 6.48 to 1 on the dark card), where they read the fill's deep red at 1.79.
|
|
734
|
+
|
|
735
|
+
### Moving to 8.0.0
|
|
736
|
+
|
|
737
|
+
- **The spacing default tightened.** Every section pads by the table above, so a site's pages run shorter. A site that wants its old look sets `density: "comfortable"` in its config. Check any section a site padded by hand in its own sheet against the new rhythm.
|
|
738
|
+
- **`.nav-links a` became `.nav-links > a`** so a panel's links keep their own styling. A site rule written against the old selector should be checked against the bar.
|
|
739
|
+
- **Surfaces:** `BlogIndex`, `BlogPost`, `LegalPage`, `LocationSection`, `Locations`, `ProfileCards`, and `ReviewCarousel` take `surface` like the sections that had it, and `PageHero` takes it defaulting to `alt`. Nothing alternates on its own except the `FAQBrowser`'s subject bands, every second one now on the alternate surface.
|
|
740
|
+
- **Eleven components are gone**, none of them used by any site, app, or runner: the sections `DeviceShowcase`, `MediaBand`, `CTABanner`, `PressQuotes` (with `sortPress` and the `PressItem` type), `SocialStrip`, and `MenuList`; the app shell's `CardErrorBoundary`; and the email pieces `MonoTable`, `StatStrip`, `WhatMoved`, and `RecordTimelineLegend`. Their props types and their styles (`.cta-banner`, `.device-*`, `.media-band`, `.menu-list`, `.press-quotes`, `.social-strip`) went with them. A page that still imports one fails to build: a banner moves to `CTASection` or a site's own `SplitSection`, a press row to `ReviewCarousel` or `LogoMarquee`, a photo strip to `Gallery`. The template's example pages that use `CTABanner`, `PressQuotes`, and `SocialStrip` are repointed in the template.
|
|
741
|
+
- **The mega menu takes more than link columns.** `columns` is now the panel's sections (`NavPanelSection`): a link column as before, or a `picture`, `rows`, or `cards` section; a link takes `badge` and `children`, and the feature card takes `points`. The panel is the wrap's width and 440px tall whatever it holds, the feature card is 340px on `--primary-deep`, and its action is the `Button` primitive. `allLabel` stays off unless given and now reads as a plain link at a column link's weight, where it was a bold primary line with an arrow. Existing groups render with the new spacing (a link at 17px, the panel's padding 36 by 40) and nothing to change in the config.
|
|
742
|
+
- **The brand mark.** `logo.onLight` and `logo.onDark` take the brand's own artwork per surface, never recolored, and `logo.wordmark: false` drops the live name. A site passing `logo.src` alone changes in one way: its mark is as tall as `--brand-mark-height` (30px) and as wide as its own ratio, where the header squeezed every mark into a 30 by 30 box, so a square mark looks exactly as it did and a wider one stops being squashed. The light bar still tints it to ink. The footer draws `logo.onDark` when it is given.
|
|
743
|
+
- **Every raw color and weight in the sheets is a token**, each defaulting to the value it replaced (see [Tokens](#tokens)), so a site that sets none looks the same, with one rounding exception: the reveal slider's before label and line read `--scrim` (`#140f0b`) where they had `rgb(20 16 12)`, one step lighter in green and blue. A theme sets `--on-primary` for a primary light enough to want dark words, and the weight tokens for a font kit that lacks 500, 600, or 800. A site that styled against `#fff` in its own sheet is unaffected.
|
|
744
|
+
- **`ContactDockItem` is a union:** an item has an `href` or an `onSelect`, and a config with neither no longer compiles. `ContactDock`'s `avoid` takes a ref as well as a selector, `lift` names the bar it rides over (default `[data-dock-lift]`, which `StickyCTABar` now wears), and with `track={false}` it sets no inset of its own. `SiteShell` hands the dock a ref to its footer, so a page's own `footer` element can no longer be mistaken for it. `Footer` and `ClosingBar` take a `ref`.
|
|
745
|
+
- **Smaller changes:** the sections' `surface` props share one exported type, `Surface`; `ProcessSteps` takes `id`; `FeatureGrid` takes `lead`; `Button` calls `onClick` on a link as well as a button; `SiteMenu` numbers plain entries alone, so a group no longer leaves a gap in the count; a `StatRow` figure given as words wraps instead of pushing the page sideways; `FullBleedVideo` mounts its video, and fetches the clip, only once the band is within a screen of the viewport; the split hero's copy starts where a `.wrap`'s content does at any width; and the FAQ's icon buttons hover with a wash of the text color, which shows on an alternate band.
|
|
746
|
+
- **Fixes the package now owns:** a primary button or an eyebrow inside `.on-primary` (the split hero, the callout panel, the menu's feature card, or a site band wearing the class) turns light, and the footer's stars read `--star-fill`.
|
|
747
|
+
- **The primary's three jobs are three tokens.** `--primary-fill` and `--primary-ink` (see [Tokens](#tokens)) each fall back to `--primary`, so a site that sets neither paints its rest states as before. Two things move at the defaults: a primary fill's hover and press darken the fill (`color-mix` toward `--shade`) where the hover read `--primary-deep`, and the words on a primary field read `--on-primary` whole where the subtitles, the dock's line, the feature card's line, and the price band's lead and figures read a softened mix of it, since no mix of white stays over 4.5 to 1 on a fill cut close to that line. The split hero's headline and its serif accent read `--on-primary` (the accent read `--primary-bright`, 1.38 to 1 on the practice's palette), the feature card's eyebrow and ticks read `--on-primary` (they read `--primary-bright`), and the price card sets itself off by a shade rather than a wash of white.
|
|
748
|
+
- **The current page and the foot of the page.** A flat nav link on the current page is now marked like a current group. While the phone's sticky bar shows, `SiteShell` pads the closing bar by the bar's measured height (`--sticky-cta-space`, from `StickyCTABar`'s new `onSpaceChange`), so the copyright and the credit are never under it; a site rendering `StickyCTABar` itself wires the same.
|
|
749
|
+
- **The footer's headings** are level 2 headings by role (`div` with `role="heading"`) wearing `.footer-heading`, where they were `h4`; a site rule against `.footer h4` moves to the class, a site's bare `h2` rule no longer reaches them, and `headingLevel` sets another level.
|
|
750
|
+
- **The lockup.** A logo with one cut no longer draws it untinted everywhere (the table under [Rendering From Props](#rendering-from-props)), the header and the footer resolve the same way, `wordmark: false` with no mark keeps the name, and a glyph tile's letter is drawn by the stylesheet from `data-glyph` (a site styling `.logo-tile`'s text keeps working; one reading its text content finds none).
|
|
751
|
+
- **The contact dock** names its panel's close button `panelCloseLabel` ("Close panel"), and still lifts over a site's own bar that wears only `.sticky-cta.show`.
|
|
752
|
+
- **A document's mark height** is the token: `ArtifactShell` wears `data-shell="artifact"`, where `artifact.css` sets `--brand-mark-height: 20px` in place of pinning the image's height, so a theme's own token now reaches a document's header and a site importing the sheet keeps its own header's size.
|
|
753
|
+
- **The email palette's `faint`** is the brand kit's Faint, `#6e6757`, darkened from the jq's `#8a8272` (3.38 to 1 on the ground at 11px) to 4.99 to 1 on the ground and 5.43 on paper. Every piece that sets it (the masthead's title and meta, the eyebrows, the folds' counts, the record meta, the scoreboard's quiet rows, the failure page's labels, the footer) reads it on the ground or on paper, never on a rule color.
|
|
754
|
+
- **Small orange words in email take the accent's ink.** The palette gains `accentInk` (`#B8300B`, the brand kit's Orange Ink, 5.86 to 1 on paper and 5.38 on the ground), and every piece that set small words in `accent` (`#FC4A1A`, 3.31 and 3.04) sets them in it: a title line's value and so an `Item`'s, a short `TargetRow` count, `GroupRow`, `ReadBlock`'s eyebrow, an accented `Note`'s eyebrow, `RecordStack`'s New pill (its border too) and callout eyebrow and a cold aside, a hot `Records` cell, the structured `FailurePage`'s fix label, and `Badge` (its box too). The accent stays for the marks with no words: the masthead's rule, a link's underline, a callout's edge, the timeline's open dots. A client palette that names only an accent gets an ink derived from it (see [Tokens](#tokens)). `warm` darkens from `#B7791F` (3.52 on paper) to `#966319` (4.96 on paper, 4.55 on the ground). A runner that renders its mail from this palette takes all three values with 8.0.0; the goldens record each departure.
|
|
755
|
+
- **Email holds a phone's width.** `Row`, `Item`, `Note`, `ListRow`, `ReadBlock`, a `DayStrip` day, a left aligned `Records` cell, and the plain `FailurePage`'s log break a long token (an address, a path) instead of widening the email (`wrapLong`, inline `overflow-wrap: anywhere` and `word-break: break-word`). A `Records` column's `width` is still given in pixels and is now drawn as its share of the 630 pixels a records table has on a desktop, so a desktop renders the same and a phone narrows the grid. `Records` is a data table: no `role="presentation"`, header cells `th scope="col"`, set in the same weight. `Badge` takes `label` (what its letter stands for), `DayStrip`'s entries `badgeLabel`, `Bar` and `RecordTimelineStrip` are images named by `label`, defaulting to "2 of 5" and to `recordTimelineSummary` ("Last 30 days: 2 sends, the latest 3 days ago; 1 open, today"); a `TargetRow`'s bar stays silent beside its count.
|
|
756
|
+
- **The app shell's light theme passes text contrast.** `--destructive` is red 600 (`#dc2626`, 4.83 to 1 as words on a card, 4.63 under its foreground) where shadcn's `#ef4444` read 3.6 to 3.76, and `--muted-foreground` is `#6b6b73` (4.81 on the grey highlight) where `#71717a` read 4.39 there. A destructive fill's hover and press read the new `--color-destructive-hover` (the fill mixed 85% with black), never a lighter tint of it, and the provider's rich toasts set each tone's words to pass on its own tint. An app that sets its own `--destructive` or `--muted-foreground` keeps them.
|
|
757
|
+
- **Country flags are gone.** `CountryDropdown` shows and lists each country by its name alone: no flag image, no emoji, no code in a circle, and nothing fetched. `getCountryFlag` and the `react-circle-flags` dependency are removed, and so are `AppConfig.flagsBaseURL` and the dropdown's `flagsBaseURL` prop. A consumer that called `getCountryFlag` drops the call and shows the country's name; one that set `flagsBaseURL` drops the key. The package exports no other helper from a country's code to its name, or back.
|
|
758
|
+
- **The app kit's names, values, and focus** (see [The Kit](#the-kit)). Visible changes: `Pagination`'s first button reads Previous where it read Prev; the dropdown's search sits above its list; an `AlertTitle` is a paragraph where it was an `h5` (give it `level` to keep a heading). Behavior that changed with a default: `Alert` is no longer `role="alert"` unless given `announce="assertive"` (or `"polite"` for a status), while `PageError` now is one, announced as it appears; a toolbar action and the rail's user menu are named by the words they show; a collapsed rail link is named by its label; clearing a search by keyboard keeps focus in the box; `CommandDialog` is named (`title`, "Commands" by default) and hands focus back to what opened it.
|
|
759
|
+
- **The token defaults moved to `styles/defaults.css`,** which every layered sheet imports first, so a consumer loading one sheet alone (`primitives.css` for the prose lightbox, say) has every default it reads. Nothing changes for a site importing them all.
|
|
760
|
+
- **A long word breaks instead of scrolling a phone sideways.** The root wears `overflow-wrap: anywhere`, which every text element under it inherits, declared once in `defaults.css` on `:where(.atelic-ui)`, so it weighs nothing and reaches a consumer loading any one sheet alone, and a table keeps `break-word`, so an auto table's columns never collapse below their longest ordinary word. Ordinary words still wrap at spaces; only a word longer than its line breaks. What must stay whole in a crowded row holds: the brand's name, a button's label (`break-word`, so a row of buttons wraps a button rather than squeezing it), a `PricingBand` price, and every `tel:` link, which never breaks (`stories/foundations/CrowdedRows.stories.tsx` checks the rows at 390, 900, and 1180). A `Chip` no longer sets `white-space: nowrap`: it still moves whole to the next line, and only a label longer than its column wraps inside the pill. The sign off's address wraps the same way.
|
|
761
|
+
- **`DataTable` scrolls inside its own box** (`.data-table-scroll`, the table's parent) when it is wider than the page, and the box is a focusable region named by the new `ariaLabel` (default "Table") only while it scrolls. `ComparisonTable`'s box, which scrolls on a phone, does the same, with its own `ariaLabel` (default "Comparison").
|
|
762
|
+
- **Said to a screen reader, and where focus goes.** `ContactForm` marks a refused field `aria-invalid`, describes it by its message, and focuses the first; its thanks and its failure sit in an `<output>` that is always drawn, so they are announced; its ids come from `useId`, so a label's target is no longer `contact-name` (a site's own CSS or test against those ids moves to the label). `FAQBrowser` returns focus to the search field when the search is cleared, and `JumpRail` marks its current stop `aria-current="location"` and draws nothing with no stops. `LogoMarquee` hides the loop's copy from assistive tech, draws it not at all under reduced motion, and has a quiet pause toggle (`pauseLabel`, default "Pause"). `RevealSlider` answers Home, End, Page Up and Page Down, and the up and down arrows, and says its value through `valueText` (default each side's share by its label). `MapEmbed`'s facade is named by its own words, and a screenshot with no `mapLinkURL` is a plain picture, not a link to `#`. `NotFound`'s closing arrow is hidden from the name. `ColumnChart` names a bar marked apart from its group by the legend's words, and with no bars says `emptyLabel` (default "No data to show"); `ThresholdScale`'s track names the zone with the figure ("Home page: 4.1 s, Poor"). An editable `StarRating` is one slider holding plain hit areas (`data-rating`), never buttons. `StarRow` says and draws a half rating ("4.5 out of 5 stars", four and a half stars) where it rounded up. `ProcessSteps` and `LocationSection` take `headingLevel` (default 2) and set the steps' titles and the hours heading one level below, at level 3 where they were `h4` elements, and as headings by role (a `div` with `role="heading"` and `aria-level`), as the footer's column labels already were, so a site's bare `h3` rule no longer restyles them; a site styling `.steps h3` or `.loc-block h3` moves to `.step-title` or `.loc-heading`. `NavMegaPanel` marks one link current, the first in reading order. The gate's fine print link is underlined.
|
|
763
|
+
- **Contrast at the defaults.** `--tone-good` is `#197538` (was `#1b7f3b`, 4.50 to 1 on the practice's surface and 4.16 on its alternate band; now 5.12 and 4.73) and `--grade-b` is `#8a5f00` (was `#9a6b00`, 4.30 on its own ground; now 5.18). The contact form's error words read `--primary-ink` where they read `--primary-deep`, the review carousel's denominator `--neutral-500` where it read `--neutral-300`, soft words on the inset well (a placeholder's brief, the map facade's hint, a profile placeholder, the reveal slider's before brief) the new `--ink-inset`, the reveal slider's after brief `--primary-ink`, and a dark `SectionHeading`'s lead `--on-dark-quiet` and its title `--on-dark`.
|
|
764
|
+
- **Tokens that were read but never defined** now resolve: `--shadow-md` and `--shadow-lg` default to plain neutral shadows and `--font-script` to a generic chain of system scripts, each a token a theme is expected to set, as the templates do (see [Tokens](#tokens)), and `--neutral-700`, which no theme sets, falls back to `--ink`, which prose already inherited. A theme that sets them is unaffected.
|
|
765
|
+
- **Column widths come from `.wrap`:** `PricingBand`'s lead, `Locations`' lead, and `Gallery`'s lead no longer cap themselves. `PricingCard` keeps its 520px: it is a card, not a column, and at the wrap's width its button ran across a nearly empty card.
|
|
505
766
|
|
|
506
767
|
### Every Section
|
|
507
768
|
|
|
508
769
|
| Section | What it is |
|
|
509
770
|
|---|---|
|
|
510
|
-
| `Hero` | The home page opener: a full bleed image (or the token gradient), a headline with a serif accent, a pair of actions, trust figures, and a scroll cue |
|
|
771
|
+
| `Hero` | The home page opener: a full bleed image (or the token gradient), a headline with a serif accent, a pair of actions, trust figures, and a scroll cue; `layout="split"` sets the copy on the primary field beside the photo, stacking photo first on a phone |
|
|
772
|
+
| `ProofStrip` | One row of short proof facts under a hero, a figure over its label each |
|
|
773
|
+
| `FullBleedVideo` | A silent looping clip edge to edge, the poster first and the clip only while on screen |
|
|
774
|
+
| `CalloutPanel` | Short callouts on the primary field, titles and subtitles each on a shared line |
|
|
775
|
+
| `LinkColumns` | Columns of links under a heading, a link's figure right aligned in tabular numerals |
|
|
511
776
|
| `PageHero` | The interior page opener on the alternate band; children sit under the lead |
|
|
512
777
|
| `LogoMarquee` | A dark band of chips scrolling without end: credentials, clients, or press |
|
|
513
778
|
| `SplitSection` | The two column band: copy beside copy, or media beside copy. `ratio` is `even`, `narrow-first`, or `media`, a fixed 420px shot column and the gap a card row uses, so a photo beside copy lines up with a case study entry above it; `even` and `narrow-first` stack below 920px, `media` below 761px |
|
|
514
779
|
| `PricingBand` | A brand colored band with the price in a card beside it, informational by design |
|
|
515
|
-
| `MediaBand` | A plain full bleed image band, cropped from the center |
|
|
516
|
-
| `CTABanner` | A mid page banner behind a directional wash, with the token gradient before any photography |
|
|
517
780
|
| `CTASection` | The standard closer: the site's own primary action and an optional ghost second |
|
|
518
781
|
| `FeatureGrid` | Numbered cards with a hover lift; a card is a link or holds one, never both |
|
|
519
782
|
| `FeatureDetail` | Alternating copy and media rows with tags and a tick list |
|
|
520
783
|
| `ProcessSteps` | A dark band of numbered steps beside a frame |
|
|
521
784
|
| `PricingCard` | A standalone price card with a tick list and its booking action |
|
|
522
|
-
| `MenuList` | A priced menu group of dotted rows, with fine print under it |
|
|
523
785
|
| `ExpandList` | A light accordion of numbered rows whose bodies stay in the HTML while closed |
|
|
524
786
|
| `ComparisonTable` | A graded before and after that scrolls sideways on a phone rather than reflowing |
|
|
525
787
|
| `RevealSlider` | Drag or arrow keys to compare two frames, each with its own toned shot brief before photography |
|
|
526
|
-
| `DeviceShowcase` | A desktop browser frame with a phone overlapping it |
|
|
527
788
|
| `ReviewCarousel` | The aggregate beside one large review at a time, stepped by dots and arrows, each review linking to its source |
|
|
528
789
|
| `ReviewWall` | The reviews page: tag filter and sort when the data carries them, clamped quotes behind Read more |
|
|
529
|
-
| `PressQuotes` | Rows of press quotes and awards with source and year, newest first (`sortPress` beside it) |
|
|
530
790
|
| `ProfileCards` | Equal weight cards of media beside a short bio |
|
|
531
791
|
| `Gallery` | A captioned wall of the business's own work, a shot brief where a photo is missing |
|
|
532
792
|
| `CredentialList` | Credential cards with a mono code before each |
|
|
533
|
-
| `SocialStrip` | A static grid of the business's social photos linking to the profile, never a live embed |
|
|
534
793
|
| `LocationSection` | The local search section: service areas as prose, hours, directions, and the map |
|
|
535
794
|
| `Locations` | More than one address: the flagship's map beside a card for each location |
|
|
536
795
|
| `MapEmbed` | The map: a screenshot linking to directions, or a click to load facade over the live embed |
|
|
@@ -543,7 +802,7 @@ Moving to 7.0.0: `footerBlurb` and `footer.contactHeading` are gone from the con
|
|
|
543
802
|
| `BlogPost` | One article: back link, title, byline and dateline, body |
|
|
544
803
|
| `LegalPage` | A legal document from data, its last revised date first |
|
|
545
804
|
|
|
546
|
-
The primitives that came with them, in `@atelic-action/ui/primitives`: `ImageFrame`, `ProseBlocks`, `QuoteCard`, `StarRow`, and `TickList`, with `Bubble` (see Primitives)
|
|
805
|
+
The primitives that came with them, in `@atelic-action/ui/primitives`: `ImageFrame`, `ProseBlocks`, `QuoteCard`, `StarRow`, and `TickList`, with `Bubble` (see Primitives) beside them. `StarRow` stays beside `StarRating` on purpose: it draws only the filled stars a review shows, to the nearest half star and in the brand color, named by the rating as given ("4.5 out of 5 stars"), where `StarRating` draws the whole scale with outlines in half steps and can take a rating.
|
|
547
806
|
|
|
548
807
|
The entry also exports the helpers the sections use, for a site's own code: `formatClock`, `formatHoursRange`, and `isClosed` for hours, `isHoneypotFilled`, and `trackEvent`.
|
|
549
808
|
|
|
@@ -638,13 +897,11 @@ const html = renderEmail({
|
|
|
638
897
|
|
|
639
898
|
### Mobile First
|
|
640
899
|
|
|
641
|
-
Runner emails are mobile first. A layout that squashes on a phone is fixed here, in the components every runner shares, never in a report page. A fixed column table is for numbers alone and never carries a name; names go in a `RecordStack`.
|
|
900
|
+
Runner emails are mobile first. A layout that squashes on a phone is fixed here, in the components every runner shares, never in a report page. A fixed column table is for numbers alone and never carries a name; names go in a `RecordStack`. One long token (an address, a path, a long word in a narrow day) breaks inside its cell rather than holding the email open past the phone: `Row`, `Item`, `Note`, `ListRow`, `ReadBlock`, a `DayStrip` day, a left aligned `Records` cell, and both failure pages' logs carry `wrapLong` (`overflow-wrap: anywhere` with `word-break: break-word`, which mail clients honor inline), exported for a runner's own blocks (8.0.0). A `Records` column `width` is pixels at the desktop column and is drawn as its share of the table (630 pixels inside a card's row, or the columns' sum when they ask for more), so the same widths keep sibling tables on one grid and narrow on a phone.
|
|
642
901
|
|
|
643
902
|
`RecordStack` takes `records`, each a `RecordStackItem` (`title`, `url`, `meta`, `note`, `badge`, `callout`), and renders one table row per record: the title on its own line at 15px, bold and wrapping freely, linked when `url` is set; a mono meta line beneath it with the items joined by middle dots (empty items drop); an optional note beneath that; a hairline between records and none after the last. No cell carries a width, so a name of any length wraps at 320 pixels instead of squashing. An optional `badge` (a stage word such as `"Contacted"`) sits on the title line in a small mono uppercase pill on a `line` hairline, in its own right aligned unbroken cell, so the title keeps wrapping beside it and the badge stays on the title's first line. An optional `callout` (`{ eyebrow, text }`) sets a short task under the meta and the note in the accented `Note` idiom: the eyebrow in the accent, the text at 13px, and a 2px accent rule down its left edge. A record with neither renders exactly as it did before. `recordStackText(records)` is its plain text twin: each title on its own line under a two space indent with any badge after it in square brackets (`Blue Heron Plumbing [Contacted]`), the meta and the note wrapped under a four space indent, any callout as its eyebrow in upper case over its text under that same indent, a blank line between records, and no line past `textWidth` (68 columns, indent included).
|
|
644
903
|
|
|
645
|
-
The Company Cards additions (0.7.0, from the `Company Cards IA` design, 2026-09-29) ride on the same item and change nothing for a record without them. `badges` is a list of further pills after `badge`, each with a `tone`: `faint` is the quiet stage word, `ink` a bold pill in ink on a 1.5px border (the next touch), `accent` the same in the accent (New). `timeline` (`{ days, touches, opens }`, each day count back from today) draws the record's recent days between the title and the meta line as one table cell per marked day and one per run of empty days between them (seven cells for three marks, never thirty, since Gmail clips a message past about 100 KB), an 8px ink square on each send day and a 5px accent dot on each known open day, the two stacked when they share a day, all standing on a `line` hairline with a 1.5px ink tick at today's edge and an axis row beneath (`30d` on the left, `today` on the right); nothing is positioned, so it survives Gmail. `RecordTimelineStrip` renders one on its own
|
|
646
|
-
|
|
647
|
-
`StatStrip` lays its stats out as inline block cells with an 88 pixel floor inside one centered cell, so six or seven stats flow onto a second row on a phone rather than shrinking. Each stat takes an optional `delta` (`"+3 (12%)"`), set small under its label and colored by its sign: one that opens on `+` wears the palette's `up`, one that opens on `-` its `down`, and anything else stays muted.
|
|
904
|
+
The Company Cards additions (0.7.0, from the `Company Cards IA` design, 2026-09-29) ride on the same item and change nothing for a record without them. `badges` is a list of further pills after `badge`, each with a `tone`: `faint` is the quiet stage word, `ink` a bold pill in ink on a 1.5px border (the next touch), `accent` the same in the accent (New). `timeline` (`{ days, touches, opens }`, each day count back from today) draws the record's recent days between the title and the meta line as one table cell per marked day and one per run of empty days between them (seven cells for three marks, never thirty, since Gmail clips a message past about 100 KB), an 8px ink square on each send day and a 5px accent dot on each known open day, the two stacked when they share a day, all standing on a `line` hairline with a 1.5px ink tick at today's edge and an axis row beneath (`30d` on the left, `today` on the right); nothing is positioned, so it survives Gmail. `RecordTimelineStrip` renders one on its own. `aside` (`{ text, strong, tone }`) sets a fact right on the meta line with its number in bold and colored by tone: `up` fresh, `warm` cooling, `accent` cold. In the text twin every pill follows the title in brackets, the timeline is one character per day (`10d [#······@·o|]`: `#` a send, `o` an open, `@` both, `·` nothing, `|` today), and the aside ends the meta line; `recordTimelineText` and `recordBadges` are the helpers it uses.
|
|
648
905
|
|
|
649
906
|
`Masthead` takes an optional `meta` (`"Week 39 · 09/21 to 09/27"`) set in the eyebrow style at the right end of the row, so the title card no longer carries the week. It is a right aligned, unbroken block floated after the wordmark and title: on the same line while the row has room, and dropped under the title on its own line, still right aligned, when it does not (checked at 320 pixels). `Eyebrow` takes `strong`, which sets the label at 15px and weight 700 in ink rather than faint, with a slightly tighter tracking, so a section such as `MQL · 15` reads as a heading on a phone.
|
|
650
907
|
|
|
@@ -664,9 +921,6 @@ const records = [
|
|
|
664
921
|
<Eyebrow text="MQL · 15" strong />;
|
|
665
922
|
|
|
666
923
|
<Card>
|
|
667
|
-
<Row last={false}>
|
|
668
|
-
<StatStrip stats={[{ n: 6, label: "Lead", delta: "+3 (12%)" }, { n: 2, label: "MQL", delta: "-1 (4%)" }]} />
|
|
669
|
-
</Row>
|
|
670
924
|
<Row last>
|
|
671
925
|
<RecordStack records={records} />
|
|
672
926
|
</Row>
|
|
@@ -711,19 +965,16 @@ Where the jq takes a pre rendered html string (`$rows`, `$body_html`, `$cells_ht
|
|
|
711
965
|
| `lead_row` | `LeadRow` | `lead`, `rest` |
|
|
712
966
|
| `row` | `Row` | `last`, `children` |
|
|
713
967
|
| `fold_row` | `FoldRow` | `last`, `children` |
|
|
714
|
-
| `
|
|
715
|
-
| `bar` | `Bar` | `logged`, `target` |
|
|
968
|
+
| `bar` | `Bar` | `logged`, `target`, and since 8.0.0 `label`, its text alternative ("2 of 5" by default, `false` for a bar beside a count that says it) |
|
|
716
969
|
| `group_row` | `GroupRow` | `text`, `first` |
|
|
717
970
|
| `target_row` | `TargetRow` | `text`, `logged`, `target` (null is a count with nothing to measure it against), `note`, `last` |
|
|
718
971
|
| `scoreboard` | `Scoreboard` | `children`, the `GroupRow` and `TargetRow` rows |
|
|
719
|
-
| `what_moved` | `WhatMoved` | `items`, `note` |
|
|
720
972
|
| `read_block` | `ReadBlock` | `text`, `divider` |
|
|
721
973
|
| `sub_eyebrow` | `SubEyebrow` | `text` |
|
|
722
|
-
| `badge` | `Badge` | `letter` |
|
|
723
|
-
| `day_strip` | `DayStrip` | `days
|
|
724
|
-
|
|
|
725
|
-
|
|
|
726
|
-
| `records` | `Records` | `columns`, `rows`; a cell's `html` is a `ReactNode` |
|
|
974
|
+
| `badge` | `Badge` | `letter`, and since 8.0.0 `label`, what the letter stands for, read in its place |
|
|
975
|
+
| `day_strip` | `DayStrip` | `days` (an entry takes `badgeLabel` since 8.0.0), `last` |
|
|
976
|
+
| none | `RecordStack` | `records`, each with an optional `badge`, `callout`, and since 0.7.0 `badges`, `timeline` and `aside` (born here on 2026-09-24, with no jq counterpart); `RecordTimelineStrip` takes `label`, its text alternative, `recordTimelineSummary` of the timeline by default (8.0.0) |
|
|
977
|
+
| `records` | `Records` | `columns`, `rows`; a cell's `html` is a `ReactNode`. Since 8.0.0 a data table with `th scope="col"` headers, and a column's pixel `width` drawn as its share of the table |
|
|
727
978
|
| `masthead` | `Masthead` | `title`, `wordmark` (defaults to `atelic`), `meta` (added 0.5.0, no jq counterpart) |
|
|
728
979
|
| `title_card` | `TitleCard` | `eyebrowText`, `headlineLines`, `lede`, `stats` (the rows under the lede, in place of the jq's `$stats_html`) |
|
|
729
980
|
| `footer` | `Footer` | `meta` |
|
|
@@ -736,13 +987,53 @@ The plain text alternative part ports as plain functions with no React anywhere
|
|
|
736
987
|
|
|
737
988
|
### Tokens
|
|
738
989
|
|
|
990
|
+
The sheets read a set of tokens beyond the theme's palette, type, radii, and layout. Each has a default, declared once in `styles/defaults.css` on `:where(.atelic-ui)`, which weighs nothing, so a theme's own `.atelic-ui` rule wins and sets one only to change it; every default is the value the sheets used before it was a token, so a site that sets none looks as it did (8.0.0). Every layered sheet imports `defaults.css` first, so a sheet loaded alone still finds its defaults. No layered sheet paints a raw color anywhere else: `tst/no-raw-colors.test.ts` sweeps every sheet in `src/styles/` but the ones it excludes by name with a reason (`app.css`, Tailwind source outside the layer), and fails on a hex, a color function, or a named color outside a token's declaration in the defaults sheet, with its few exceptions listed in the test, each with its reason.
|
|
991
|
+
|
|
992
|
+
**The primary does three jobs, and each has its own token.** `--primary` is the brand color as a mark: lines, rules, focus rings, icons, stars, dots, and accents that carry no words. `--primary-fill` is the primary as a field that carries words: the primary button, the dock's launcher and panel head, the split hero and the callout panel bands, the price band, the menu's badges and highlighted row, the reveal slider's after label, the map's directions chip, a step bubble's badge; the words on it read `--on-primary`, and its hover and press darken it, so they stay distinct even where a theme's fill is its old hover shade. `--primary-ink` is the primary as words on `--surface` and `--surface-alt`: the eyebrow, a serif accent in a heading, the current nav entry and panel link, inline accent links, a feature number, the info tone. Both new tokens fall back to `--primary` where they are read, so a site that sets neither looks as it did, and a band that restates `--primary` carries both with it. A bright brand color that cannot pass text contrast keeps `--primary` and sets the other two deeper; the Storybook theme (`.storybook/theme.css`) sets `--primary` `#fc4a1a`, `--primary-fill` `#d63a10` (white on it 4.70 to 1), and `--primary-ink` `#b8300b` (5.38 to 1 on `--surface`, 4.97 on `--surface-alt`, 4.80 under the bar's hover tint).
|
|
993
|
+
|
|
994
|
+
| Token | Default | What it colors or sets |
|
|
995
|
+
|---|---|---|
|
|
996
|
+
| `--primary-fill` | `--primary`, read in place | Every primary field that carries words: `.btn-primary`, the dock's launcher, panel head, and lead icon, the split hero and callout panel bands, the price band, a step bubble's badge, a menu badge, a highlighted menu row, the reveal slider's after label, the map's directions chip. Its hover is 84% of it mixed with `--shade`, its press 74% |
|
|
997
|
+
| `--primary-ink` | `--primary`, read in place | The primary's words on `--surface` and `--surface-alt`: the eyebrow, `em.serif` and a heading's `.serif`, the current nav entry and group on the solid bar, the current panel link, inline accent links and hovers, feature numbers and links, the FAQ's links, the gate's brand line and links, the info tone, the surface button inside `.on-primary` |
|
|
998
|
+
| `--on-primary` | `#fff` | Anything set on the primary fill: a primary button's words, the dock's head and lead icon, the split hero's copy and accent, the callout panel, the price band, a step bubble's badge, a menu badge, a highlighted menu row, the feature card. Read whole, never softened, since a fill cut to pass leaves no room for a mix |
|
|
999
|
+
| `--on-dark` | `#fff` | Anything on a dark band or over a photograph: the skip link, the transparent header and its current entry (8.1.0), the dark header's text (mixed with `--surface`), the phone menu's rules, the footer's headings and links, a hero's headline, the contact card, the process band, a ghost button and a chip on dark, the reveal slider's handle |
|
|
1000
|
+
| `--on-dark-chip` | `#efe7da` | A chip's words on a dark band (the credentials chips, `Chip onDark`) |
|
|
1001
|
+
| `--on-dark-quiet` | `rgb(248 244 237 / 0.74)` | Quiet text on the dark process band |
|
|
1002
|
+
| `--on-dark-faint` | `rgb(248 244 237 / 0.52)` | The quietest text on a dark band: the closing bar's copyright and credit (5.23 to 1 on `#151515`), where a light ground's gray such as `--neutral-500` falls short |
|
|
1003
|
+
| `--shade` | `#000` | Pure shadow: a lightbox backdrop, a caption's wash, a headline's text shadow, the dark button's press, a primary fill's hover and press, the price card's ground, and the fallbacks behind `--hairline` and `--shadow-md`. A `::backdrop` that inherits no custom property (before Safari 17.4 and Chrome 122) falls back to `--backdrop-shade`, which `defaults.css` sets on the backdrop itself |
|
|
1004
|
+
| `--scrim` | `#140f0b` | The warm wash a hero lays over its photograph, and the reveal slider's before label |
|
|
1005
|
+
| `--placeholder-ink` | `#8a7c68` | The hatching and ring of a placeholder before photography exists |
|
|
1006
|
+
| `--ink-inset` | `--ink-soft`, read in place | Soft words on the inset well (`--surface-inset`): a placeholder's shot brief, the map facade's hint, a profile placeholder, the reveal slider's before brief. `--neutral-600` read 4.4 to 1 there on the practice's palette, `--ink-soft` reads 6.14 |
|
|
1007
|
+
| `--shadow-md`, `--shadow-lg` | `0 4px 14px rgb(0 0 0 / 0.08), 0 12px 32px rgb(0 0 0 / 0.06)`, `0 10px 30px rgb(0 0 0 / 0.12), 0 30px 70px rgb(0 0 0 / 0.1)` | Theme tokens a theme is expected to set, as every template's does: the raised shadow (an image frame, the map's chip, a card) and the higher one (a lifted frame, a pricing card, a panel). The defaults are plain black at a low alpha, so a theme without them still draws a shadow and no site's tint leaks into another |
|
|
1008
|
+
| `--font-script` | `"Brush Script MT", "Segoe Script", "Snell Roundhand", cursive` | The sign off's script line, a token a theme is expected to set: the templates self host Yellowtail and name it there. The package bundles no font, so its default is a generic chain of the system scripts |
|
|
1009
|
+
| `--hover-tint` | `rgb(33 28 23 / 0.06)` | The light bar's hover behind a nav entry |
|
|
1010
|
+
| `--review-gold` | `#f5b301` | The footer rating's stars when the theme sets no `--star-fill` |
|
|
1011
|
+
| `--grade-a` to `--grade-d`, each with `-line` and `-bg` | A `var(--tone-good)` (`#197538`) on its ground `var(--tone-good-bg)`, B `#8a5f00` on `#c99a1a`, ground `#fdf5dc`, C `var(--tone-warn)` (`#a84500`) on `#e8650a`, ground `#fff0e3`, D `var(--tone-bad)` (`#b3261e`) on its ground `var(--tone-bad-bg)` | The grade chip's words, rule, and ground, green to red whatever the brand is. A grade whose value is a tone's reads the tone, so a theme restating the tone moves both |
|
|
1012
|
+
| `--weight-light`, `--weight-regular`, `--weight-medium`, `--weight-semibold`, `--weight-strong`, `--weight-bold`, `--weight-heavy` | 300, 400, 500, 600, 650, 700, 800 | Every font weight in every layered sheet. A font kit with only 400 and 700 maps each name to one of those (medium to 400, semibold, strong, and heavy to 700), so the browser synthesizes no weight |
|
|
1013
|
+
| `--brand-mark-height` | `30px` (20px inside `ArtifactShell`) | The header mark's height, and a sent document's recipient mark; the width follows the image's own ratio |
|
|
1014
|
+
| `--sticky-cta-space` | `0px`, read in place | The room the phone's sticky bar takes while it shows, which the closing bar pads its foot by; `SiteShell` sets it on its root from `StickyCTABar`'s measurement, and a theme never does |
|
|
1015
|
+
| `--header-max`, `--header-gutter` | `--max-width`, `--gutter`, read in place | The bar's and the mega panel's width and side gutter, for a design that runs the bar wider than the content (8.1.0) |
|
|
1016
|
+
| `--nav-open-bg`, `--nav-open-ink` | `--hover-tint`, the bar's words | The open group's pill (8.1.0) |
|
|
1017
|
+
| `--nav-phone-pad`, `--nav-phone-size` | `6px 16px 6px 12px`, `0.95rem` | The header phone pill's padding and its number's size (8.1.0) |
|
|
1018
|
+
| `--heading-transform`, `--heading-weight`, `--heading-tracking`, `--heading-color` | `none`, `--weight-heavy`, `-0.02em`, inherited | Every `h1` and `h2` the package sets (section headings, the heroes', the page hero's). The color never reaches a heading on a filled or dark ground (`.on-primary`, `.on-dark`, the hero, the process band, the callout panel, the price band, the credentials band, the contact card), which reset it, nor one a component colors itself (8.1.0) |
|
|
1019
|
+
| `--card-title-color` | inherited | A `FeatureGrid` card's title (8.1.0) |
|
|
1020
|
+
| `--callout-transform`, `--callout-sub-font` | `none`, inherited | A `CalloutPanel` title's case and its line's face (8.1.0) |
|
|
1021
|
+
| `--proof-star-fill` | `--primary` | A star row in a `ProofStrip` value (8.1.0) |
|
|
1022
|
+
| `--hero-split-pad` | the wrap's edge, computed | The split hero's copy sides (8.1.0) |
|
|
1023
|
+
| `--footer-mark-height`, `--footer-nap-weight` | `38px`, `--weight-semibold` (the plain address: the column's own) | The footer lockup's mark and the address, phone, and email lines (8.1.0) |
|
|
1024
|
+
| `--menu-badge-bg`, `--menu-badge-ink`, `--menu-cta-bg`, `--menu-cta-ink` | `--primary-fill`, `--on-primary` (as 8.0.0 drew them) | The phone menu's badge and call to action. A theme whose sheet's ground equals its primary sets them to `--on-primary` and `--primary-ink`, or they vanish into the sheet (8.1.0) |
|
|
1025
|
+
| `--link-columns-min` | `170px` | The least a `LinkColumns` column narrows to (8.1.0) |
|
|
1026
|
+
| `--section-space`, `--block-gap`, `--card-min` | `clamp(56px, 9vw, 120px)`, `44px`, `240px` | The section rhythm where no `base.css` sets it (an app importing `components.css` alone); with `base.css` the settings under [Density](#density) win |
|
|
1027
|
+
|
|
1028
|
+
The review carousel's dots and a ghost button's outline already read neutral tokens a theme sets, so they take none of their own: the dots `--neutral-200` (hover `--neutral-500`, current `--ink`), the outline `--neutral-300` (hover `--ink`). Three more read a fallback in place: `--star-fill` colors every filled star (`StarRating`'s, which falls back to the text color, and the footer's rating, which falls back to `--review-gold`), `--font-condensed` sets a `CalloutPanel` title's face, and `--neutral-700` colors prose bodies (`ProseBlocks`, the blog's index and post), falling back to `--ink`. The tone palette (`--tone-good` and its kin) is declared with the defaults and described under [Page Components](#page-components).
|
|
1029
|
+
|
|
739
1030
|
`@atelic-action/ui/tokens` carries the palette and the font stacks with no React import, so a build script or a plain text renderer can read them. `toThemeCSS(palette)` writes the palette out as the site token declarations (`--surface`, `--surface-dark`, `--card`, `--ink`, `--primary`), and `themeTokenMap` exposes which palette key each token takes.
|
|
740
1031
|
|
|
741
|
-
The palette carries three optional keys beyond the jq's eight: `up` (`#2F7A4B`, a calm green) and `down` (`#B23A2E`, a calm red
|
|
1032
|
+
Every color the palette sets words in reads 4.5 to 1 or better on both the paper and the ground, which `tst/tokens/tokens.test.ts` holds (8.0.0). `faint` departs from the jq's value on purpose: the brand kit's Faint, `#6e6757`, where the jq has `#8a8272`, which reads 3.38 to 1 on the ground at the 11px a masthead's title and meta are set in; the new value reads 4.99 on the ground and 5.43 on paper. `accent` (`#FC4A1A`) is the mark and never small words (3.31 on paper, 3.04 on the ground); words take `accentInk`, the brand kit's Orange Ink, `#B8300B` (5.86 and 5.38). `accentInk` is optional: for a palette that names only an accent, `accentInk(palette)` darkens the accent toward black one step at a time until it reads 4.5 on both grounds (`#FC4A1A` alone gives `#C73A15`), keeps an accent that already passes as it is, and falls back to the ink for a color that is not a hex. `contrastRatio(a, b)` is the WCAG ratio it measures by. No piece sets white words on the accent; a runner that does uses the brand's fill, `#D63A10`, not the accent. The palette carries three more optional keys beyond the jq's eight: `up` (`#2F7A4B`, a calm green, 5.07 on paper) and `down` (`#B23A2E`, a calm red kept well apart from the orange accent, 5.74), the colors a record's aside or a change wears by its direction, and `warm` (`#966319`, an amber between `up` and the accent, darkened from the jq's `#B7791F`, which read 3.52, to 4.96 on paper and 4.55 on the ground) for a record's aside that is cooling but not cold. They are optional so a client palette written before 0.5.0 still compiles, and a palette without them borrows the Atelic values. None maps to a site token.
|
|
742
1033
|
|
|
743
1034
|
## Page Components
|
|
744
1035
|
|
|
745
|
-
The blocks a page composes, each styled in `styles/components.css` inside the `atelic-ui` layer, so a site's own unlayered rule resizes or recolors any of them. They were cut from
|
|
1036
|
+
The blocks a page composes, each styled in `styles/components.css` inside the `atelic-ui` layer, so a site's own unlayered rule resizes or recolors any of them. They were cut from a client's baseline writeup on 2026-10-02 (ATE-600), which is the worked example of them on one page.
|
|
746
1037
|
|
|
747
1038
|
| Component | What it is | Notes |
|
|
748
1039
|
|---|---|---|
|
|
@@ -750,16 +1041,16 @@ The blocks a page composes, each styled in `styles/components.css` inside the `a
|
|
|
750
1041
|
| `IconList` | A list whose bullets are icons | `icon` and `tone` on the list set every bullet; an item's own override them. The bullet is decoration, so a screen reader hears only the items. A dot when no icon is set; the text's color when no tone is |
|
|
751
1042
|
| `ReportCard` | A name, a grade, and one line on it per row, in labeled groups, each row's parts centered on it | A row with `href` is a link from edge to edge with a chevron at its end; a link inside `line` still goes where it points. `before` sets the earlier grade faded beside the grade; no `grade` draws a dash read as not graded. `legend` explains the letters beside the `title`, or under the card with `legendAt="foot"`; `labels` sets the screen reader's words. The grade is `GradeChip` |
|
|
752
1043
|
| `Rank` | A figure with its badge, for a table cell | `figure` is the rank, the place, or a dash for none; `tone` colors the badge and `meaning` names it for a screen reader; `href` links the figure, in a new tab with `newTab`. The figure's slot is a fixed width, so the badges line up down a column |
|
|
753
|
-
| `DataTable` | A table whose first column names each row, sortable by any column marked `sortable` | A click on a heading sorts on a wide screen. On a phone each row stacks, every fact wearing its column's label, and a dropdown sorts. A cell is a node, or `{ display, sort }` when what it shows is not what it sorts by; a formatted number in a string (`"$12,047"`, `"0.24%"`) sorts as a number. It renders in `defaultSort` on the server. Every other row sits on a tinted ground; `striped={false}` turns that off. A column marked `fit` hugs its content, for a swatch or a mark beside a figure. A column with a `hint` draws a `Hint` beside its heading, before the label when the column is right aligned; on a phone the heading row is hidden, so the hint is too. A cell given as `null` or `undefined`, or left out of a short row, is empty: it draws a short gray rule, the `.data-table-empty` class, which a screen reader hears as "None" or as the column's `emptyLabel`, and it sorts last whichever way the column runs. The first cell names the row, so it is never drawn as empty; give every row a name. A typed string is always content, a dash included, so type nothing for an empty cell. A document may wear `.data-table-empty` for its own neutral mark, so every empty cell reads the same |
|
|
1044
|
+
| `DataTable` | A table whose first column names each row, sortable by any column marked `sortable` | A click on a heading sorts on a wide screen, and a table wider than the page scrolls inside its own box, which takes a tab stop and the name `ariaLabel` (default "Table") only while it scrolls. On a phone each row stacks, every fact wearing its column's label, and a dropdown sorts. A cell is a node, or `{ display, sort }` when what it shows is not what it sorts by; a formatted number in a string (`"$12,047"`, `"0.24%"`) sorts as a number. It renders in `defaultSort` on the server. Every other row sits on a tinted ground; `striped={false}` turns that off. A column marked `fit` hugs its content, for a swatch or a mark beside a figure. A column with a `hint` draws a `Hint` beside its heading, before the label when the column is right aligned; on a phone the heading row is hidden, so the hint is too. A cell given as `null` or `undefined`, or left out of a short row, is empty: it draws a short gray rule, the `.data-table-empty` class, which a screen reader hears as "None" or as the column's `emptyLabel`, and it sorts last whichever way the column runs. The first cell names the row, so it is never drawn as empty; give every row a name. A typed string is always content, a dash included, so type nothing for an empty cell. A document may wear `.data-table-empty` for its own neutral mark, so every empty cell reads the same |
|
|
754
1045
|
| `Hint` | An info icon that opens a short explainer beside a word | Opens on hover or focus, stays open on a click or a tap, closes on Escape or a tap elsewhere. The bubble opens from the icon's left edge and slides left when it would run off the screen. `side="before"` puts the icon before its word, for a right aligned heading. `label` is what a screen reader calls the button; the bubble is its description. Print hides it |
|
|
755
1046
|
| `StatRow` | A row of large figures, each over what it counts and its `period`. `variant="quiet"` is the glance row for a working page: a light figure in the text color over a small capitalized label, hairlines between; `unit` sets a figure's unit small beside it | `trend` draws an arrow before a figure that is itself a change. `deltas` list comparisons beneath: an arrow, how far, against what (`basis`), and the earlier figure (`was`), each in its own tone, since a spend falling and a cost falling read differently |
|
|
756
1047
|
| `Callout` | One finding: an icon in its tone beside the title, the explainer under it | `variant="box"` sets it apart on a tinted ground, for something missing or owed |
|
|
757
1048
|
| `Disclosure` | A section the reader opens and closes, in two forms chosen by whether `open` is passed | Controlled (`open` and `onToggle`), it is an app's card: the caller remembers what was folded, a closed body is not rendered, the label is the toggle, `meta` (a count, a flag) sits beside it outside its name, and `headingLevel` makes the label a real heading. Uncontrolled, it is a document's fold: a native `details` with a `summary` line that carries the point and `defaultOpen`, so it works before any script loads, find in page opens it, and it prints open. `Collapsible`, the fold's old name, was folded in at 0.18.0 |
|
|
758
1049
|
| `Tabs` | Panels behind a row of tabs, on Radix for the arrow keys and the roles | Each tab's `id` names it in the URL: the tab is `<id>-tab`, its panel `<id>-panel`. A hash of `#<id>` opens the tab and scrolls to the tab row, and a hash naming any element inside a panel opens that panel and scrolls to it, on load, on a hash change, and on a click of a link to the hash already in the address bar, so a link in one panel lands on a finding in another. Every panel stays in the page: the inactive ones carry `hidden="until-found"`, so find in page reveals one and the tab follows. `defaultId` picks the first tab open; `selectedId` and `onSelect` hold it in the caller; either one naming no tab opens the first. Radix Tabs is a dependency of the package, so a site installs nothing for it. `ariaLabel` names the list and has no default. On paper the list is hidden and every panel prints under its label, as a heading at `headingLevel` (2 by default) |
|
|
759
1050
|
| `StackedBar` | One bar split into the parts of a whole, with a key | A part of zero is keyed and not drawn |
|
|
760
|
-
| `ColumnChart` | A bar a period, the periods in groups that carry a label and a total | Months in quarters is the case it was cut for: a quarter reads against the one before it and the same one a year earlier |
|
|
761
|
-
| `ThresholdScale` | Zones on a scale and a pin for each reading | For a number judged against lines, like a load time against good and poor |
|
|
762
|
-
| `StarRating` | A row of stars showing a rating in half star steps, and taking one when given `onChange` | Each star is two hit
|
|
1051
|
+
| `ColumnChart` | A bar a period, the periods in groups that carry a label and a total | Months in quarters is the case it was cut for: a quarter reads against the one before it and the same one a year earlier. A bar given its own tone, apart from its group's, is named with the legend's words for that tone, so the mark is never told by color alone; with no bars the chart shows and says `emptyLabel` ("No data to show") |
|
|
1052
|
+
| `ThresholdScale` | Zones on a scale and a pin for each reading | For a number judged against lines, like a load time against good and poor. Each track is named by its reading, its figure, and the zone it falls in ("Home page: 4.1 s, Poor"); a reading on a line belongs to the zone the line closes |
|
|
1053
|
+
| `StarRating` | A row of stars showing a rating in half star steps, and taking one when given `onChange` | Each star is two hit areas, plain elements marked `data-rating`; picking the current rating clears it. Editable, it is one slider to a pointer, a keyboard, and a screen reader, holding no control of its own; read only, a picture named by the rating. `fillColor` and `outlineColor` take any CSS color, `size` and `max` set the star and the scale |
|
|
763
1054
|
|
|
764
1055
|
**StarRating outside a site.** It is the one component that does not sit under `.atelic-ui` or read a theme token: its styles are in `styles/star-rating.css`, and its two colors are the `--star-fill` and `--star-outline` custom properties, falling back to the text color and a faint tint of it. An app that installs the package for this component alone imports that one sheet, not `components.css`.
|
|
765
1056
|
|
|
@@ -847,7 +1138,7 @@ function RootLayout() {
|
|
|
847
1138
|
|
|
848
1139
|
| Prop | What it is |
|
|
849
1140
|
|---|---|
|
|
850
|
-
| `config` | An `AppConfig`: `name` (aria labels), `mark` (the wordmark), `storagePrefix` (every storage key and cookie), `publicRoutes` (exact paths a signed out visitor may load), `publicPages` (prefix patterns ending in `/*`, rendered in the public chrome),
|
|
1141
|
+
| `config` | An `AppConfig`: `name` (aria labels), `mark` (the wordmark), `storagePrefix` (every storage key and cookie), `publicRoutes` (exact paths a signed out visitor may load), `publicPages` (prefix patterns ending in `/*`, rendered in the public chrome), `apiBaseURL`, which the app resolves itself (`env.VITE_API_BASE_URL ?? "https://api.example.com"`), since the package never reads `import.meta.env`, and the optional `profileHref` |
|
|
851
1142
|
| `nav` | The `NavItem[]` every nav surface reads, sub pages as `children`; the one place a destination is declared |
|
|
852
1143
|
| `queryClient` | Optional; defaults to the shell's, whose mutation cache raises `meta.toast` |
|
|
853
1144
|
| `toaster` | Optional; sonner's `Toaster` at the top right by default, `false` for none |
|
|
@@ -888,13 +1179,19 @@ The import has to come before any other rule, or it is dropped without a word: t
|
|
|
888
1179
|
@source "../../node_modules/@atelic-action/ui/src/app";
|
|
889
1180
|
```
|
|
890
1181
|
|
|
891
|
-
Proven on a copy of pinole-app thinned onto a packed tarball: with the line or the import, the built CSS holds every utility the shell uses; with neither, 165 of them are missing.
|
|
1182
|
+
Proven on a copy of pinole-app thinned onto a packed tarball: with the line or the import, the built CSS holds every utility the shell uses; with neither, 165 of them are missing.
|
|
1183
|
+
|
|
1184
|
+
The light theme's words pass 4.5 to 1 on what they sit on, and `tst/app/app-contrast.test.ts` reads the sheet to hold it there (8.0.0). Two stock shadcn values fell short and moved: `--destructive` is `0 72.2% 50.6%` (`#dc2626`; 4.63 to 1 under `--destructive-foreground`, 4.83 as words on a card, 4.66 on the ground) and `--muted-foreground` is `240 3.6% 43.5%` (`#6b6b73`; 4.81 on `--muted` and `--accent`, the grey a highlighted row wears). `--color-destructive-hover` is the fill mixed 85% with black, for a destructive fill's hover and press and for destructive words on the grey while pressed, so hovering never lightens the fill under its words. The provider's sonner toaster shows rich colors, whose stock light tones read 4.25 (success), 4.34 (error), 4.35 (info), and 3.07 (warning); the sheet darkens each tone's words through sonner's own variables, on a selector one element more specific than sonner's so the load order does not matter: success `hsl(140, 100%, 24%)` 5.22, info `hsl(210, 92%, 40%)` 5.28, warning `hsl(31, 92%, 32%)` 5.52, error `hsl(360, 100%, 41%)` 5.11. Destructive words read `--color-destructive-ink`, which falls back to `--destructive`, so the light theme's one red serves both; the dark theme sets `--destructive-ink` to `0 90.6% 70.8%` (red 400, `#f87171`, 6.48 to 1 on its card, 5.62 on the grey highlight), since its fill, `0 62.8% 30.6%`, read 1.79 to 1 as words on the card (8.1.0). The rest of the dark theme's values are shadcn's and are not yet checked. The sheet sits outside the `atelic-ui` layer on purpose: its tokens and resets are in Tailwind's base layer and the scaffold is unlayered, as the template carried them, so the shell renders as it did.
|
|
892
1185
|
|
|
893
1186
|
### The Kit
|
|
894
1187
|
|
|
895
|
-
`@atelic-action/ui/app/ui` exports the shadcn components the template carried: `Accordion`, `Alert`, `AlertDialog`, `Avatar`, `Badge`, `BadgeList`, `Button`, `Callout`, `Card`, `Checkbox`, `ClearButton`, `Command`, `CountryDropdown`, `Dialog`, `DropdownMenu`, `Form`, `Input`, `Label`, `OptionSelect`, `Pagination`, `Popover`, `Progress`, `SearchInput`, `Select`, `Separator`, `Sheet`, `Slider`, `Switch`, `Textarea`, and `Tooltip`, each with its parts. A new kit component lands here, not in an app, and it is written by hand into `src/app/ui/` and exported from its `index.ts`: the package carries no `components.json`, because `bunx shadcn add` writes its imports through the `@/` aliases the package never uses (consumers resolve none of ours), so a component taken from the shadcn registry has its imports made relative before it lands. The main entry adds the frame and its pieces (`AppLayout`, `AppPage`, `AppPageToolbar`, `Breadcrumbs`, `SectionCards`, `ActionButton`, `FormActionButtons`, `PageSkeleton`, `PageError`, `AuthGuard`, `
|
|
1188
|
+
`@atelic-action/ui/app/ui` exports the shadcn components the template carried: `Accordion`, `Alert`, `AlertDialog`, `Avatar`, `Badge`, `BadgeList`, `Button`, `Callout`, `Card`, `Checkbox`, `ClearButton`, `Command`, `CountryDropdown`, `Dialog`, `DropdownMenu`, `Form`, `Input`, `Label`, `OptionSelect`, `Pagination`, `Popover`, `Progress`, `SearchInput`, `Select`, `Separator`, `Sheet`, `Slider`, `Switch`, `Textarea`, and `Tooltip`, each with its parts. A new kit component lands here, not in an app, and it is written by hand into `src/app/ui/` and exported from its `index.ts`: the package carries no `components.json`, because `bunx shadcn add` writes its imports through the `@/` aliases the package never uses (consumers resolve none of ours), so a component taken from the shadcn registry has its imports made relative before it lands. The main entry adds the frame and its pieces (`AppLayout`, `AppPage`, `AppPageToolbar`, `Breadcrumbs`, `SectionCards`, `ActionButton`, `FormActionButtons`, `PageSkeleton`, `PageError`, `AuthGuard`, `ErrorFallback`, `GoogleGlyph`).
|
|
1189
|
+
|
|
1190
|
+
**What a reader and a keyboard get (8.0.0).** `CountryDropdown` shows each country by its name alone, with nothing fetched. The dropdown's popover is named (`ariaLabel`, "Countries" by default) and its search sits above the list, never inside the listbox. Elsewhere in the kit: `Progress` reports its `value` (`aria-valuenow`) against its `max`, and with no value is indeterminate; `Slider` names each thumb, the reachable `slider`, with its own `aria-label` or `aria-labelledby` and a range's thumbs with `thumbLabels`, and draws a thumb per value; `CommandDialog` takes `title` ("Commands" by default, visually hidden unless `showTitle`) and hands focus back to what opened it; `CommandSeparator` has no role and `CommandEmpty` is one disabled option, so the list holds only options and groups; `Alert` announces only with `announce` (`"assertive"` is `role="alert"`, `"polite"` a status), and `AlertTitle` is a paragraph unless given a heading `level`; `Form` describes a field only by the description and message on the page; `Pagination` shows Previous; `SearchInput` and the toolbar's search keep focus in the box when cleared by keyboard; the `OptionSelect` and `Select` list is the trigger's width, its border inside it. In the frame: `PageSkeleton` is `aria-busy` with visually hidden words (`label`, "Loading"), its pulse stopped under reduced motion; `PageError` is an alert, announced once as it appears, so render it when the error happens; `ErrorFallback`'s details box takes focus to scroll and shrinks below a long line on a phone; a collapsed rail link is named by its label, the user menu by the name or the initials it shows, and a toolbar action by its words and its `ago` time (`ariaLabel` is for an action with no words, and keeps the time).
|
|
1191
|
+
|
|
1192
|
+
**The toolbar's notice.** `AppPageToolbar`'s `notice` sits beside the row on a desktop (1024 and up), where `.ap-tools` is one wrapping row: after the search and the actions, before the filters. Below 1024, where the toolbar stacks, it is a line of its own under the search and the actions and above the filters. It is a plain block, never a live region (Component Rule 14).
|
|
896
1193
|
|
|
897
|
-
The app's stack is optional peer dependencies, so a marketing site installs none of it: TanStack Router and Query, Tailwind, `sonner`, `zustand`, `zod`, `react-hook-form`, `class-variance-authority`, `clsx`, `tailwind-merge`, `cmdk`, the Radix primitives the kit uses, `country-data-list`,
|
|
1194
|
+
The app's stack is optional peer dependencies, so a marketing site installs none of it: TanStack Router and Query, Tailwind, `sonner`, `zustand`, `zod`, `react-hook-form`, `class-variance-authority`, `clsx`, `tailwind-merge`, `cmdk`, the Radix primitives the kit uses, and `country-data-list`, at the ranges `template-application` already pins. An app that imports the shell has them all already.
|
|
898
1195
|
|
|
899
1196
|
### Thinning an App onto It
|
|
900
1197
|
|
|
@@ -904,7 +1201,7 @@ Delete `src/shared/`, `src/stores/authStore.ts`, `src/stores/unitsStore.ts`, and
|
|
|
904
1201
|
|---|---|
|
|
905
1202
|
| `@/shared/components/layout` and every file in it | `@atelic-action/ui/app` |
|
|
906
1203
|
| `@/shared/components/ui/<name>` | `@atelic-action/ui/app/ui` |
|
|
907
|
-
| `@/shared/components/AuthGuard`, `
|
|
1204
|
+
| `@/shared/components/AuthGuard`, `ErrorFallback`, `GoogleGlyph` | `@atelic-action/ui/app` |
|
|
908
1205
|
| `@/shared/context/SidebarContext`, `@/shared/context/UserContext` | `@atelic-action/ui/app` |
|
|
909
1206
|
| `@/shared/hooks/useDebounce`, `useIsDesktop`, `useWakeLock` | `@atelic-action/ui/app` |
|
|
910
1207
|
| `@/shared/lib/<name>`, every file but `env` | `@atelic-action/ui/app` |
|
|
@@ -943,16 +1240,26 @@ beforeEach(() => {
|
|
|
943
1240
|
|
|
944
1241
|
An `expiresAt` an hour out keeps the refresh path quiet; one inside five minutes sends the transport to the refresh endpoint first, through the same mocked `fetch`.
|
|
945
1242
|
|
|
946
|
-
##
|
|
1243
|
+
## Storybook
|
|
947
1244
|
|
|
948
|
-
|
|
1245
|
+
Every component's states live as stories, and every story runs as a test in a real browser. The built Storybook is served at [ui.atelic.me](https://ui.atelic.me) for the people building with the package: `vercel.json` builds it with `bun run storybook:build` and serves `storybook-static/`, and it is never search inventory, so `stories/public/robots.txt` disallows everything and both of its heads (`.storybook/manager-head.html` and `preview-head.html`) carry `noindex`. The old `/app` and `/app.html` paths, where the app shell used to be shown, redirect to its stories.
|
|
949
1246
|
|
|
950
1247
|
```bash
|
|
951
|
-
bun run
|
|
952
|
-
bun run
|
|
1248
|
+
bun run storybook # the dev server on the repo's own source, at localhost:6006
|
|
1249
|
+
bun run storybook:build # the static site, written to storybook-static/ (gitignored)
|
|
1250
|
+
bun run test:stories # every story as a test, in headless Chromium
|
|
1251
|
+
bun run test:run # the unit tests in tst/, on jsdom, as before
|
|
953
1252
|
```
|
|
954
1253
|
|
|
955
|
-
|
|
1254
|
+
The stories live in `stories/`, outside `src/`, one file per component in a folder mirroring it (`stories/chrome/SiteHeader.stories.tsx`), and import the components from `src/` by relative path, so they always show the code in the repo. The configuration is `.storybook/`. Neither publishes: the package's `files` names `src`, `dist`, and `bin` alone. **[stories/README.md](stories/README.md) is how a story is written**: the names, the states a component needs, what a `play` function covers, how a bug a story exposes is marked and logged (one findings file per writer group, in `stories/findings/`), which files each group of writers owns, the components still owed, and the fixtures.
|
|
1255
|
+
|
|
1256
|
+
**The test run.** `vitest.config.ts` holds two projects. `unit` is the jsdom suite in `tst/`, unchanged, and `bun run test:run` runs it alone. `storybook` runs every story through `@storybook/addon-vitest` in Vitest's browser mode on Playwright's Chromium, headless: the story renders, its `play` function runs, and axe checks the page after it, failing the story on any violation (`a11y: { test: "error" }`). A story pins its width (`phone` 390, `tablet` 820, `desktop` 1280, `narrowDesktop` 1180, `smallDesktop` 900) and the run sizes the page to it, so layout is asserted as geometry. A marker for a known bug fails the run the day the bug is gone, accessibility markers included ([stories/README.md](stories/README.md#accessibility-and-bugs)). Playwright's Chromium is installed once per machine with `bunx playwright install chromium`; CI installs it with its system libraries and caches it.
|
|
1257
|
+
|
|
1258
|
+
**The frame.** A story is mounted the way its consumer mounts the component, chosen by the first segment of its title. Site pieces render inside a `.atelic-ui` root with every package sheet in a site's import order and the practice's theme last (`.storybook/theme.css`). `App/` stories run inside `AppProvider` with a fixture app under a memory router, with the shell's Tailwind sheet mounted only while the story shows, so its reset never reaches a site story. `Email/` stories render their rows in the email theme on a 680 column, with no sheet at all.
|
|
1259
|
+
|
|
1260
|
+
**The layer order.** `.storybook/preview-head.html` names the layers before any sheet loads (`properties, theme, base, atelic-ui, components, utilities`), the line an app's `index.html` carries, since Storybook injects sheets in whatever order its modules load. `stories/foundations/CascadeLayers.stories.tsx` proves it: the package outranks Tailwind's reset loaded after it, an app's utilities outrank the package, and an unlayered rule wins with less specificity.
|
|
1261
|
+
|
|
1262
|
+
**The toolbar.** Density sets `data-density` on the story's root (default, compact, comfortable; see [Density](#density)), and the viewport menu offers the same widths the tests pin.
|
|
956
1263
|
|
|
957
1264
|
## Releasing
|
|
958
1265
|
|