@datalayer/design 1.0.15 → 1.0.16
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/lib/pages/SvgPage.js +27 -7
- package/lib/svg/gallery.d.ts +1 -1
- package/lib/svg/gallery.js +12 -0
- package/lib/svg/index.d.ts +1 -0
- package/lib/svg/index.js +1 -0
- package/lib/svg/pains/PainFrame.d.ts +156 -0
- package/lib/svg/pains/PainFrame.js +117 -0
- package/lib/svg/pains/SvgPainAgentTeams.d.ts +13 -0
- package/lib/svg/pains/SvgPainAgentTeams.js +37 -0
- package/lib/svg/pains/SvgPainAgenticUi.d.ts +12 -0
- package/lib/svg/pains/SvgPainAgenticUi.js +14 -0
- package/lib/svg/pains/SvgPainBenchmarks.d.ts +13 -0
- package/lib/svg/pains/SvgPainBenchmarks.js +23 -0
- package/lib/svg/pains/SvgPainChannels.d.ts +13 -0
- package/lib/svg/pains/SvgPainChannels.js +53 -0
- package/lib/svg/pains/SvgPainLibrary.d.ts +13 -0
- package/lib/svg/pains/SvgPainLibrary.js +13 -0
- package/lib/svg/pains/SvgPainObservability.d.ts +13 -0
- package/lib/svg/pains/SvgPainObservability.js +27 -0
- package/lib/svg/pains/SvgPainPlugins.d.ts +13 -0
- package/lib/svg/pains/SvgPainPlugins.js +25 -0
- package/lib/svg/pains/SvgPainPolicies.d.ts +13 -0
- package/lib/svg/pains/SvgPainPolicies.js +29 -0
- package/lib/svg/pains/SvgPainProtocols.d.ts +12 -0
- package/lib/svg/pains/SvgPainProtocols.js +18 -0
- package/lib/svg/pains/SvgPainSandboxes.d.ts +13 -0
- package/lib/svg/pains/SvgPainSandboxes.js +11 -0
- package/lib/svg/pains/SvgPainSecurity.d.ts +13 -0
- package/lib/svg/pains/SvgPainSecurity.js +19 -0
- package/lib/svg/pains/SvgPainStudio.d.ts +12 -0
- package/lib/svg/pains/SvgPainStudio.js +15 -0
- package/lib/svg/pains/index.d.ts +36 -0
- package/lib/svg/pains/index.js +32 -0
- package/package.json +3 -1
package/lib/pages/SvgPage.js
CHANGED
|
@@ -11,11 +11,12 @@ import { AVATAR_ORB_STATES, SvgAvatarOrb } from '../avatar';
|
|
|
11
11
|
import DI from '../svg/SvgDI';
|
|
12
12
|
import { SvgDla as DlaMark } from '../svg/SvgDla';
|
|
13
13
|
import * as SvgAssets from '../svg';
|
|
14
|
+
import { PAIN_SVGS } from '../svg/pains';
|
|
14
15
|
import SpitfireAssetUrl from '../svg/images/datalayer-1.3.0-spitfire.svg';
|
|
15
16
|
import BlackSnakeAssetUrl from '../svg/images/datalayer-1.2.0-black-snake.svg';
|
|
16
17
|
import KingKongAssetUrl from '../svg/images/datalayer-king-kong.svg';
|
|
17
18
|
import KingKong2AssetUrl from '../svg/images/datalayer-king-kong-2.svg';
|
|
18
|
-
const SEGMENTS = ['All', 'Artifacts', 'Avatar', 'Cases', 'Communication', 'Features', 'Heros', 'Logos', 'Partners', 'Pictos', 'Pixels', 'Releases', 'Systems'];
|
|
19
|
+
const SEGMENTS = ['All', 'Artifacts', 'Avatar', 'Cases', 'Communication', 'Features', 'Heros', 'Logos', 'Pains', 'Partners', 'Pictos', 'Pixels', 'Releases', 'Systems'];
|
|
19
20
|
const SEGMENT_BY_SLUG = SEGMENTS.reduce((acc, segment) => {
|
|
20
21
|
acc[segment.toLowerCase()] = segment;
|
|
21
22
|
return acc;
|
|
@@ -24,6 +25,7 @@ SEGMENT_BY_SLUG.logo = 'Logos';
|
|
|
24
25
|
SEGMENT_BY_SLUG.hero = 'Heros';
|
|
25
26
|
SEGMENT_BY_SLUG.system = 'Systems';
|
|
26
27
|
SEGMENT_BY_SLUG.partner = 'Partners';
|
|
28
|
+
SEGMENT_BY_SLUG.pain = 'Pains';
|
|
27
29
|
const slugForSegment = (segment) => segment.toLowerCase();
|
|
28
30
|
/** A name too long for the row of tabs; the tab keeps the full one as its title. */
|
|
29
31
|
const SEGMENT_SHORT_LABELS = { Communication: 'Comms' };
|
|
@@ -233,6 +235,7 @@ const DATALAYER_SVGS = [
|
|
|
233
235
|
return {
|
|
234
236
|
name,
|
|
235
237
|
Component: SVG_COMPONENT_OVERRIDES[name] || component,
|
|
238
|
+
pain: PAIN_SVGS.find((one) => one.Component === component),
|
|
236
239
|
};
|
|
237
240
|
})
|
|
238
241
|
.filter((entry) => entry !== null)
|
|
@@ -312,6 +315,13 @@ const PIXELS_SVG_NAMES = new Set(['SvgPixel1', 'SvgPixel2']);
|
|
|
312
315
|
/* An agent's avatar, drawn in the theme's colours (src/avatar). */
|
|
313
316
|
const AVATAR_SVG_NAMES = new Set(['SvgAvatarOrb', 'SvgAvatarOrbTheme']);
|
|
314
317
|
const PICTOS_SVG_NAMES = new Set(['SvgSkubble']);
|
|
318
|
+
/*
|
|
319
|
+
* The twelve customer pains (src/svg/pains), each with the feature that
|
|
320
|
+
* answers it, listed in their order rather than by name.
|
|
321
|
+
*/
|
|
322
|
+
function isPainsSvg(entry) {
|
|
323
|
+
return entry.pain !== undefined;
|
|
324
|
+
}
|
|
315
325
|
/*
|
|
316
326
|
* The marks of the companies Datalayer works WITH, which are not
|
|
317
327
|
* Datalayer's own: they carry someone else's name, and are kept apart so
|
|
@@ -388,6 +398,9 @@ function svgInSegment(entry, segment) {
|
|
|
388
398
|
if (segment === 'Avatar') {
|
|
389
399
|
return isAvatarSvg(entry.name);
|
|
390
400
|
}
|
|
401
|
+
if (segment === 'Pains') {
|
|
402
|
+
return isPainsSvg(entry);
|
|
403
|
+
}
|
|
391
404
|
return (!isHeroSvg(entry.name)
|
|
392
405
|
&& !isReleaseSvg(entry.name)
|
|
393
406
|
&& !isSystemSvg(entry.name)
|
|
@@ -398,7 +411,8 @@ function svgInSegment(entry, segment) {
|
|
|
398
411
|
&& !isPictosSvg(entry.name)
|
|
399
412
|
&& !isCaseSvg(entry.name)
|
|
400
413
|
&& !isPartnersSvg(entry.name)
|
|
401
|
-
&& !isAvatarSvg(entry.name)
|
|
414
|
+
&& !isAvatarSvg(entry.name)
|
|
415
|
+
&& !isPainsSvg(entry));
|
|
402
416
|
}
|
|
403
417
|
function SegmentControl({ value, onChange, counts, }) {
|
|
404
418
|
const segments = SEGMENTS;
|
|
@@ -726,11 +740,11 @@ function GifDownloadMenu({ fileName, containerRef, }) {
|
|
|
726
740
|
};
|
|
727
741
|
return (_jsxs(ActionMenu, { children: [_jsx(ActionMenu.Button, { disabled: isGenerating, children: isGenerating ? 'Generating GIF…' : 'Download GIF (10s)' }), _jsx(ActionMenu.Overlay, { children: _jsxs(ActionList, { children: [_jsxs(ActionList.Item, { onSelect: () => { void handleDownload(1); }, children: ["Current size (", sizeLabel(1), ")"] }), _jsxs(ActionList.Item, { onSelect: () => { void handleDownload(2); }, children: ["Double (", sizeLabel(2), ")"] }), _jsxs(ActionList.Item, { onSelect: () => { void handleDownload(4); }, children: ["Quadruple (", sizeLabel(4), ")"] })] }) })] }));
|
|
728
742
|
}
|
|
729
|
-
function SvgCard({ name, Component }) {
|
|
743
|
+
function SvgCard({ name, Component, pain }) {
|
|
730
744
|
const navigate = useNavigate();
|
|
731
745
|
const ref = useRef(null);
|
|
732
746
|
const openDetail = () => navigate(`/svg/${name}`);
|
|
733
|
-
return (_jsxs(Card, { border: true, p: 3, children: [_jsx(Text, { sx: { fontWeight: 600, display: 'block', mb: 2 }, children: name }), _jsx(Card, { ref: ref, role: "button", tabIndex: 0, "aria-label": `Open ${name}`, onClick: openDetail, onKeyDown: (event) => {
|
|
747
|
+
return (_jsxs(Card, { border: true, p: 3, children: [_jsx(Text, { sx: { fontWeight: 600, display: 'block', mb: pain ? 1 : 2 }, children: name }), pain ? _jsx(PainCaption, { pain: pain }) : null, _jsx(Card, { ref: ref, role: "button", tabIndex: 0, "aria-label": `Open ${name}`, onClick: openDetail, onKeyDown: (event) => {
|
|
734
748
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
735
749
|
event.preventDefault();
|
|
736
750
|
openDetail();
|
|
@@ -742,6 +756,10 @@ function SvgCard({ name, Component }) {
|
|
|
742
756
|
await downloadSvgElement(svg, name, 'svg');
|
|
743
757
|
}, children: "Download SVG" })] })] }));
|
|
744
758
|
}
|
|
759
|
+
/** A pain's number, the pain in its words, and the feature that answers it. */
|
|
760
|
+
function PainCaption({ pain }) {
|
|
761
|
+
return (_jsxs(Text, { as: "p", sx: { display: 'block', mb: 2, fontSize: 1, color: 'fg.muted' }, children: [_jsx(Text, { sx: { fontFamily: 'mono', color: 'accent.fg', mr: 2 }, children: String(pain.id).padStart(2, '0') }), pain.pain, _jsx(Text, { sx: { mx: 1 }, children: "\u2192" }), _jsx(Text, { sx: { fontWeight: 600, color: 'fg.default' }, children: pain.feature })] }));
|
|
762
|
+
}
|
|
745
763
|
function SvgDetailPage() {
|
|
746
764
|
const navigate = useNavigate();
|
|
747
765
|
const { name } = useParams();
|
|
@@ -757,7 +775,7 @@ function SvgDetailPage() {
|
|
|
757
775
|
if (!svg)
|
|
758
776
|
return;
|
|
759
777
|
await downloadSvgElement(svg, entry.name, 'svg');
|
|
760
|
-
}, children: "Download SVG" })] }), _jsx(Heading, { as: "h2", sx: { mt: 3, mb: 3 }, children: entry.name }), _jsx(Card, { ref: ref, border: true, rounded: "small", p: 4, flexDirection: "row", justifyContent: "center", minHeight: 280, overflow: "hidden", position: "relative", isolation: "isolate", children: _jsx(Component, { style: { width: '100%', maxWidth: 900 } }) })] }) }));
|
|
778
|
+
}, children: "Download SVG" })] }), _jsx(Heading, { as: "h2", sx: { mt: 3, mb: entry.pain ? 1 : 3 }, children: entry.name }), entry.pain ? _jsx(PainCaption, { pain: entry.pain }) : null, _jsx(Card, { ref: ref, border: true, rounded: "small", p: 4, flexDirection: "row", justifyContent: "center", minHeight: 280, overflow: "hidden", position: "relative", isolation: "isolate", children: _jsx(Component, { style: { width: '100%', maxWidth: 900 } }) })] }) }));
|
|
761
779
|
}
|
|
762
780
|
export function SvgPage() {
|
|
763
781
|
const navigate = useNavigate();
|
|
@@ -781,7 +799,8 @@ export function SvgPage() {
|
|
|
781
799
|
if (!normalizedFilter) {
|
|
782
800
|
return true;
|
|
783
801
|
}
|
|
784
|
-
|
|
802
|
+
const words = entry.pain ? `${entry.name} ${entry.pain.pain} ${entry.pain.feature}` : entry.name;
|
|
803
|
+
return words.toLowerCase().includes(normalizedFilter);
|
|
785
804
|
};
|
|
786
805
|
const segmentCounts = useMemo(() => {
|
|
787
806
|
const textFiltered = DATALAYER_SVGS.filter(filterMatches);
|
|
@@ -799,13 +818,14 @@ export function SvgPage() {
|
|
|
799
818
|
Cases: textFiltered.filter((entry) => svgInSegment(entry, 'Cases')).length,
|
|
800
819
|
Partners: textFiltered.filter((entry) => svgInSegment(entry, 'Partners')).length,
|
|
801
820
|
Avatar: textFiltered.filter((entry) => svgInSegment(entry, 'Avatar')).length,
|
|
821
|
+
Pains: textFiltered.filter((entry) => svgInSegment(entry, 'Pains')).length,
|
|
802
822
|
};
|
|
803
823
|
}, [normalizedFilter]);
|
|
804
824
|
const filteredSvgs = useMemo(() => {
|
|
805
825
|
return DATALAYER_SVGS
|
|
806
826
|
.filter(filterMatches)
|
|
807
827
|
.filter((entry) => svgInSegment(entry, segment))
|
|
808
|
-
.sort((a, b) => a.name.localeCompare(b.name));
|
|
828
|
+
.sort((a, b) => segment === 'Pains' && a.pain && b.pain ? a.pain.id - b.pain.id : a.name.localeCompare(b.name));
|
|
809
829
|
}, [segment, normalizedFilter]);
|
|
810
830
|
if (isDetailRoute) {
|
|
811
831
|
return _jsx(SvgDetailPage, {});
|
package/lib/svg/gallery.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DATALAYER_SVG_GALLERY: readonly ["SvgJupyterEmbed", "SvgAgentRuntimes", "SvgSessions", "SvgVSCodeExtension", "SvgBlogHero", "SvgPricingHero", "SvgContactHero", "SvgAgentsHomeHero", "SvgLoginHero", "SvgUsecasesHero", "SvgIntegrationsHero", "SvgPartnersHero", "SvgChangelogHero", "SvgAboutHero", "SvgCareersHero", "SvgCommunityHero", "SvgJoin", "SvgJoinConfirm", "SvgInvites", "SvgDiscord", "SvgTutorialsHero", "SvgResearchHero", "SvgEvalsHero", "SvgEventsHero", "SvgStarsHero", "SvgSpitfire", "SvgBlackSnake", "SvgKingKong", "SvgKingKong2", "SvgLinesLogo", "SvgOrganizationsAtScale", "SvgIndividualsAndTeams", "SvgAgentsHero", "SvgHorizonHero", "SvgLibraryHero", "SvgEarthHero", "SvgOg", "SvgPoppy1_0", "SvgOgStacked", "SvgLightHouse", "SvgDaytonaStartupGrid", "SvgFastA2ADonation", "SvgJupyterMcp", "SvgJupyterMcp2", "SvgOSAContributions", "SvgRadar", "SvgNotebookArtifact", "SvgDocumentArtifact", "SvgDeckArtifact", "SvgCellArtifact", "SvgCellOutputshotPlaceholder", "SvgLessonArtifact", "SvgExerciseArtifact", "SvgAssignmentArtifact", "SvgDataset", "SvgLines", "SvgPublication", "SvgPixel1", "SvgPixel2", "SvgSkubble", "SvgEricCharles", "SvgPrivacyHero", "SvgTermsHero", "SvgNotFound", "SvgUnauthorized", "SvgAI", "SvgAI2", "SvgAI3", "SvgDI", "SvgDla"];
|
|
1
|
+
export declare const DATALAYER_SVG_GALLERY: readonly ["SvgJupyterEmbed", "SvgAgentRuntimes", "SvgSessions", "SvgPainStudio", "SvgPainAgentTeams", "SvgPainChannels", "SvgPainAgenticUi", "SvgPainObservability", "SvgPainPlugins", "SvgPainSandboxes", "SvgPainBenchmarks", "SvgPainLibrary", "SvgPainProtocols", "SvgPainPolicies", "SvgPainSecurity", "SvgVSCodeExtension", "SvgBlogHero", "SvgPricingHero", "SvgContactHero", "SvgAgentsHomeHero", "SvgLoginHero", "SvgUsecasesHero", "SvgIntegrationsHero", "SvgPartnersHero", "SvgChangelogHero", "SvgAboutHero", "SvgCareersHero", "SvgCommunityHero", "SvgJoin", "SvgJoinConfirm", "SvgInvites", "SvgDiscord", "SvgTutorialsHero", "SvgResearchHero", "SvgEvalsHero", "SvgEventsHero", "SvgStarsHero", "SvgSpitfire", "SvgBlackSnake", "SvgKingKong", "SvgKingKong2", "SvgLinesLogo", "SvgOrganizationsAtScale", "SvgIndividualsAndTeams", "SvgAgentsHero", "SvgHorizonHero", "SvgLibraryHero", "SvgEarthHero", "SvgOg", "SvgPoppy1_0", "SvgOgStacked", "SvgLightHouse", "SvgDaytonaStartupGrid", "SvgFastA2ADonation", "SvgJupyterMcp", "SvgJupyterMcp2", "SvgOSAContributions", "SvgRadar", "SvgNotebookArtifact", "SvgDocumentArtifact", "SvgDeckArtifact", "SvgCellArtifact", "SvgCellOutputshotPlaceholder", "SvgLessonArtifact", "SvgExerciseArtifact", "SvgAssignmentArtifact", "SvgDataset", "SvgLines", "SvgPublication", "SvgPixel1", "SvgPixel2", "SvgSkubble", "SvgEricCharles", "SvgPrivacyHero", "SvgTermsHero", "SvgNotFound", "SvgUnauthorized", "SvgAI", "SvgAI2", "SvgAI3", "SvgDI", "SvgDla"];
|
|
2
2
|
export type DatalayerSvgGalleryName = (typeof DATALAYER_SVG_GALLERY)[number];
|
package/lib/svg/gallery.js
CHANGED
|
@@ -7,6 +7,18 @@ export const DATALAYER_SVG_GALLERY = [
|
|
|
7
7
|
'SvgJupyterEmbed',
|
|
8
8
|
'SvgAgentRuntimes',
|
|
9
9
|
'SvgSessions',
|
|
10
|
+
'SvgPainStudio',
|
|
11
|
+
'SvgPainAgentTeams',
|
|
12
|
+
'SvgPainChannels',
|
|
13
|
+
'SvgPainAgenticUi',
|
|
14
|
+
'SvgPainObservability',
|
|
15
|
+
'SvgPainPlugins',
|
|
16
|
+
'SvgPainSandboxes',
|
|
17
|
+
'SvgPainBenchmarks',
|
|
18
|
+
'SvgPainLibrary',
|
|
19
|
+
'SvgPainProtocols',
|
|
20
|
+
'SvgPainPolicies',
|
|
21
|
+
'SvgPainSecurity',
|
|
10
22
|
'SvgVSCodeExtension',
|
|
11
23
|
'SvgBlogHero',
|
|
12
24
|
'SvgPricingHero',
|
package/lib/svg/index.d.ts
CHANGED
package/lib/svg/index.js
CHANGED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The frame the twelve pain drawings share, and the few shapes they are
|
|
3
|
+
* drawn with.
|
|
4
|
+
*
|
|
5
|
+
* Every pain is read left to right: **the pain** on the left, drawn still,
|
|
6
|
+
* in the muted ink of the theme with one hurt spot in its warm ink; **the
|
|
7
|
+
* answer** on the right, drawn in the theme's vivid inks, and the only half
|
|
8
|
+
* that moves. A seam runs down the middle with a chevron on it: what the
|
|
9
|
+
* feature turns the one into the other.
|
|
10
|
+
*
|
|
11
|
+
* - 800 × 400, the ground of the newest drawings (`SvgSessions`): the
|
|
12
|
+
* palette's background, a dot grid every 24 units, a wash on each side
|
|
13
|
+
* (the warm one behind the pain, the agent's behind the answer).
|
|
14
|
+
* - Strokes 1.2 for structure, 2 for what matters; panels with a radius of
|
|
15
|
+
* 8, filled with `bgPanel`.
|
|
16
|
+
* - Labels are few, short and in English, set in a monospace or a system
|
|
17
|
+
* stack so the drawing rasterises the same wherever it is exported: the
|
|
18
|
+
* pain's number top left, the feature's name top right.
|
|
19
|
+
* - Colours all come from the palette (`useColorPalette`, or a `palette`
|
|
20
|
+
* given), so a drawing follows the theme and its light or dark mode; on a
|
|
21
|
+
* light theme the drawing goes through the light boost filter, as the
|
|
22
|
+
* others do.
|
|
23
|
+
* - The motion stops under `prefers-reduced-motion`.
|
|
24
|
+
*/
|
|
25
|
+
import { type ReactNode } from 'react';
|
|
26
|
+
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
27
|
+
export declare const PAIN_WIDTH = 800;
|
|
28
|
+
export declare const PAIN_HEIGHT = 400;
|
|
29
|
+
/** The seam between the pain and the answer. */
|
|
30
|
+
export declare const SEAM_X = 400;
|
|
31
|
+
export declare const SANS = "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif";
|
|
32
|
+
export declare const MONO = "ui-monospace, SFMono-Regular, Menlo, monospace";
|
|
33
|
+
/** The inks of a pain drawing, read from the palette. */
|
|
34
|
+
export type PainInks = {
|
|
35
|
+
/** The hurt spot of the pain. */
|
|
36
|
+
pain: string;
|
|
37
|
+
/** The structure of the pain: what is still, muted. */
|
|
38
|
+
muted: string;
|
|
39
|
+
/** The agent, and the answer's first ink. */
|
|
40
|
+
answer: string;
|
|
41
|
+
/** The answer's other inks. */
|
|
42
|
+
second: string;
|
|
43
|
+
third: string;
|
|
44
|
+
fourth: string;
|
|
45
|
+
/** What waits for a person: asks first, approves. */
|
|
46
|
+
ask: string;
|
|
47
|
+
};
|
|
48
|
+
/** The class names of the shared motion, scoped to one drawing. */
|
|
49
|
+
export type PainMotion = {
|
|
50
|
+
/** Opacity breathing in and out. */
|
|
51
|
+
breathe: string;
|
|
52
|
+
/** A dashed stroke marching along its path. */
|
|
53
|
+
march: string;
|
|
54
|
+
/** A turn round the `transform-origin` given in the element's style. */
|
|
55
|
+
spin: string;
|
|
56
|
+
/** A dot along the `offset-path` given in the element's style. */
|
|
57
|
+
travel: string;
|
|
58
|
+
};
|
|
59
|
+
export type PainKit = {
|
|
60
|
+
p: ColorPalette;
|
|
61
|
+
ink: PainInks;
|
|
62
|
+
motion: PainMotion;
|
|
63
|
+
/** An id unique to this drawing, for a gradient or a pattern of its own. */
|
|
64
|
+
ref: (name: string) => string;
|
|
65
|
+
};
|
|
66
|
+
export type PainFrameProps = {
|
|
67
|
+
/** The pain's number, 1 to 12. */
|
|
68
|
+
number: number;
|
|
69
|
+
/** The feature's name, top right. */
|
|
70
|
+
feature: string;
|
|
71
|
+
/** The pain in words: the drawing's title. */
|
|
72
|
+
title: string;
|
|
73
|
+
/** What the drawing shows, in a sentence or two. */
|
|
74
|
+
desc: string;
|
|
75
|
+
palette?: ColorPalette;
|
|
76
|
+
/** The drawing: the pain left of the seam, the answer right of it. */
|
|
77
|
+
children: (kit: PainKit) => ReactNode;
|
|
78
|
+
};
|
|
79
|
+
export declare const inksOf: (p: ColorPalette) => PainInks;
|
|
80
|
+
/**
|
|
81
|
+
* The opacity of a wash of colour: as given on a dark theme, lighter on a
|
|
82
|
+
* light one, where the light boost filter thickens every translucent fill.
|
|
83
|
+
*/
|
|
84
|
+
export declare const wash: (p: ColorPalette, opacity: number) => number;
|
|
85
|
+
export declare function PainFrame({ number, feature, title, desc, palette, children }: PainFrameProps): import("react").JSX.Element;
|
|
86
|
+
/**
|
|
87
|
+
* An agent: a round body with a four-pointed spark in it. `dim` draws it as
|
|
88
|
+
* the pain does, muted and dashed.
|
|
89
|
+
*/
|
|
90
|
+
export declare function Agent({ x, y, r, ink, p, dim, halo, }: {
|
|
91
|
+
x: number;
|
|
92
|
+
y: number;
|
|
93
|
+
r?: number;
|
|
94
|
+
ink: string;
|
|
95
|
+
p: ColorPalette;
|
|
96
|
+
dim?: boolean;
|
|
97
|
+
halo?: boolean;
|
|
98
|
+
}): import("react").JSX.Element;
|
|
99
|
+
/** A panel: a rounded card in `bgPanel`, edged in an ink. */
|
|
100
|
+
export declare function Panel({ x, y, w, h, ink, p, dashed, rx, strokeOpacity, fill, }: {
|
|
101
|
+
x: number;
|
|
102
|
+
y: number;
|
|
103
|
+
w: number;
|
|
104
|
+
h: number;
|
|
105
|
+
ink: string;
|
|
106
|
+
p: ColorPalette;
|
|
107
|
+
dashed?: boolean;
|
|
108
|
+
rx?: number;
|
|
109
|
+
strokeOpacity?: number;
|
|
110
|
+
fill?: string;
|
|
111
|
+
}): import("react").JSX.Element;
|
|
112
|
+
/** Lines of text, drawn as bars. */
|
|
113
|
+
export declare function Bars({ x, y, widths, ink, gap, h, opacity, }: {
|
|
114
|
+
x: number;
|
|
115
|
+
y: number;
|
|
116
|
+
widths: number[];
|
|
117
|
+
ink: string;
|
|
118
|
+
gap?: number;
|
|
119
|
+
h?: number;
|
|
120
|
+
opacity?: number;
|
|
121
|
+
}): import("react").JSX.Element;
|
|
122
|
+
/** A tick. */
|
|
123
|
+
export declare function Check({ x, y, s, ink, width }: {
|
|
124
|
+
x: number;
|
|
125
|
+
y: number;
|
|
126
|
+
s?: number;
|
|
127
|
+
ink: string;
|
|
128
|
+
width?: number;
|
|
129
|
+
}): import("react").JSX.Element;
|
|
130
|
+
/** A cross. */
|
|
131
|
+
export declare function Cross({ x, y, s, ink, width }: {
|
|
132
|
+
x: number;
|
|
133
|
+
y: number;
|
|
134
|
+
s?: number;
|
|
135
|
+
ink: string;
|
|
136
|
+
width?: number;
|
|
137
|
+
}): import("react").JSX.Element;
|
|
138
|
+
/** A short label, in capitals. */
|
|
139
|
+
export declare function Label({ x, y, children, ink, anchor, size, }: {
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
children: ReactNode;
|
|
143
|
+
ink: string;
|
|
144
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
145
|
+
size?: number;
|
|
146
|
+
}): import("react").JSX.Element;
|
|
147
|
+
/** A pill with a short label in it. */
|
|
148
|
+
export declare function Chip({ x, y, w, label, ink, p, filled, }: {
|
|
149
|
+
x: number;
|
|
150
|
+
y: number;
|
|
151
|
+
w: number;
|
|
152
|
+
label: string;
|
|
153
|
+
ink: string;
|
|
154
|
+
p: ColorPalette;
|
|
155
|
+
filled?: boolean;
|
|
156
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022-2026 Datalayer, Inc.
|
|
4
|
+
*
|
|
5
|
+
* CC BY 4.0 License
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The frame the twelve pain drawings share, and the few shapes they are
|
|
9
|
+
* drawn with.
|
|
10
|
+
*
|
|
11
|
+
* Every pain is read left to right: **the pain** on the left, drawn still,
|
|
12
|
+
* in the muted ink of the theme with one hurt spot in its warm ink; **the
|
|
13
|
+
* answer** on the right, drawn in the theme's vivid inks, and the only half
|
|
14
|
+
* that moves. A seam runs down the middle with a chevron on it: what the
|
|
15
|
+
* feature turns the one into the other.
|
|
16
|
+
*
|
|
17
|
+
* - 800 × 400, the ground of the newest drawings (`SvgSessions`): the
|
|
18
|
+
* palette's background, a dot grid every 24 units, a wash on each side
|
|
19
|
+
* (the warm one behind the pain, the agent's behind the answer).
|
|
20
|
+
* - Strokes 1.2 for structure, 2 for what matters; panels with a radius of
|
|
21
|
+
* 8, filled with `bgPanel`.
|
|
22
|
+
* - Labels are few, short and in English, set in a monospace or a system
|
|
23
|
+
* stack so the drawing rasterises the same wherever it is exported: the
|
|
24
|
+
* pain's number top left, the feature's name top right.
|
|
25
|
+
* - Colours all come from the palette (`useColorPalette`, or a `palette`
|
|
26
|
+
* given), so a drawing follows the theme and its light or dark mode; on a
|
|
27
|
+
* light theme the drawing goes through the light boost filter, as the
|
|
28
|
+
* others do.
|
|
29
|
+
* - The motion stops under `prefers-reduced-motion`.
|
|
30
|
+
*/
|
|
31
|
+
import { useId } from 'react';
|
|
32
|
+
import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
|
|
33
|
+
export const PAIN_WIDTH = 800;
|
|
34
|
+
export const PAIN_HEIGHT = 400;
|
|
35
|
+
/** The seam between the pain and the answer. */
|
|
36
|
+
export const SEAM_X = 400;
|
|
37
|
+
export const SANS = "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif";
|
|
38
|
+
export const MONO = 'ui-monospace, SFMono-Regular, Menlo, monospace';
|
|
39
|
+
export const inksOf = (p) => ({
|
|
40
|
+
pain: p.isLight ? p.blaze : p.flame,
|
|
41
|
+
muted: p.textMuted,
|
|
42
|
+
answer: p.glow,
|
|
43
|
+
second: p.surge,
|
|
44
|
+
third: p.pop,
|
|
45
|
+
fourth: p.spark,
|
|
46
|
+
ask: p.isLight ? p.flame : p.gold,
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* The opacity of a wash of colour: as given on a dark theme, lighter on a
|
|
50
|
+
* light one, where the light boost filter thickens every translucent fill.
|
|
51
|
+
*/
|
|
52
|
+
export const wash = (p, opacity) => (p.isLight ? opacity * 0.15 : opacity);
|
|
53
|
+
export function PainFrame({ number, feature, title, desc, palette, children }) {
|
|
54
|
+
const auto = useColorPalette();
|
|
55
|
+
const p = palette ?? auto;
|
|
56
|
+
const id = useId().replace(/[^a-zA-Z0-9_-]/g, '');
|
|
57
|
+
const ref = (name) => `pain-${id}-${name}`;
|
|
58
|
+
const ink = inksOf(p);
|
|
59
|
+
const motion = {
|
|
60
|
+
breathe: ref('breathe'),
|
|
61
|
+
march: ref('march'),
|
|
62
|
+
spin: ref('spin'),
|
|
63
|
+
travel: ref('travel'),
|
|
64
|
+
};
|
|
65
|
+
return (_jsxs("svg", { viewBox: `0 0 ${PAIN_WIDTH} ${PAIN_HEIGHT}`, xmlns: "http://www.w3.org/2000/svg", style: { width: '100%', height: 'auto', display: 'block' }, role: "img", "aria-labelledby": `${ref('title')} ${ref('desc')}`, children: [_jsx("title", { id: ref('title'), children: title }), _jsx("desc", { id: ref('desc'), children: desc }), _jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsx("style", { children: `
|
|
66
|
+
@keyframes ${ref('k-breathe')} { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
|
|
67
|
+
@keyframes ${ref('k-march')} { to { stroke-dashoffset: -18; } }
|
|
68
|
+
@keyframes ${ref('k-spin')} { to { transform: rotate(360deg); } }
|
|
69
|
+
@keyframes ${ref('k-travel')} {
|
|
70
|
+
0% { offset-distance: 0%; opacity: 0; }
|
|
71
|
+
10% { opacity: 1; }
|
|
72
|
+
90% { opacity: 1; }
|
|
73
|
+
100% { offset-distance: 100%; opacity: 0; }
|
|
74
|
+
}
|
|
75
|
+
.${motion.breathe} { animation: ${ref('k-breathe')} 3.2s ease-in-out infinite; }
|
|
76
|
+
.${motion.march} { animation: ${ref('k-march')} 1.8s linear infinite; }
|
|
77
|
+
.${motion.spin} { animation: ${ref('k-spin')} 36s linear infinite; }
|
|
78
|
+
.${motion.travel} { opacity: 0; animation: ${ref('k-travel')} 4.8s linear infinite; }
|
|
79
|
+
@media (prefers-reduced-motion: reduce) {
|
|
80
|
+
.${motion.breathe}, .${motion.march}, .${motion.spin}, .${motion.travel} { animation: none; }
|
|
81
|
+
.${motion.travel} { opacity: 1; offset-distance: 60%; }
|
|
82
|
+
}
|
|
83
|
+
` }), _jsx("pattern", { id: ref('dots'), width: "24", height: "24", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "12", cy: "12", r: "0.9", fill: p.textMuted, opacity: p.isLight ? '0.22' : '0.16' }) }), _jsxs("radialGradient", { id: ref('wash-pain'), cx: "22%", cy: "55%", r: "38%", children: [_jsx("stop", { offset: "0%", stopColor: ink.pain, stopOpacity: p.isLight ? '0.07' : '0.10' }), _jsx("stop", { offset: "100%", stopColor: ink.pain, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: ref('wash-answer'), cx: "76%", cy: "50%", r: "42%", children: [_jsx("stop", { offset: "0%", stopColor: ink.answer, stopOpacity: "0.16" }), _jsx("stop", { offset: "100%", stopColor: ink.answer, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: ref('seam'), x1: "0", y1: "0", x2: "0", y2: "1", children: [_jsx("stop", { offset: "0%", stopColor: p.textMuted, stopOpacity: "0" }), _jsx("stop", { offset: "25%", stopColor: p.textMuted, stopOpacity: "0.45" }), _jsx("stop", { offset: "75%", stopColor: p.textMuted, stopOpacity: "0.45" }), _jsx("stop", { offset: "100%", stopColor: p.textMuted, stopOpacity: "0" })] })] }), _jsx("rect", { width: PAIN_WIDTH, height: PAIN_HEIGHT, fill: p.bg }), _jsx("rect", { width: PAIN_WIDTH, height: PAIN_HEIGHT, fill: `url(#${ref('dots')})` }), _jsx("rect", { width: PAIN_WIDTH, height: PAIN_HEIGHT, fill: `url(#${ref('wash-pain')})` }), _jsx("rect", { width: PAIN_WIDTH, height: PAIN_HEIGHT, fill: `url(#${ref('wash-answer')})` }), _jsxs("g", { "aria-hidden": "true", filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("text", { x: "32", y: "38", fontFamily: MONO, fontSize: "11", fill: p.textMuted, letterSpacing: "2", children: String(number).padStart(2, '0') }), _jsx("line", { x1: "56", y1: "34", x2: "80", y2: "34", stroke: ink.pain, strokeOpacity: "0.6", strokeWidth: "1.2" }), _jsx("text", { x: PAIN_WIDTH - 32, y: "38", fontFamily: MONO, fontSize: "11", fill: ink.answer, letterSpacing: "2", textAnchor: "end", children: feature.toUpperCase() }), _jsx("line", { x1: SEAM_X, y1: "44", x2: SEAM_X, y2: "356", stroke: `url(#${ref('seam')})`, strokeWidth: "1", strokeDasharray: "2 4" }), _jsx("circle", { cx: SEAM_X, cy: "200", r: "15", fill: p.bgPanel, stroke: ink.answer, strokeOpacity: "0.7", strokeWidth: "1.4" }), _jsx("path", { className: motion.breathe, d: `M${SEAM_X - 3} 193 L${SEAM_X + 4} 200 L${SEAM_X - 3} 207`, fill: "none", stroke: ink.answer, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), children({ p, ink, motion, ref })] })] }));
|
|
84
|
+
}
|
|
85
|
+
/* ── The shapes the drawings share ── */
|
|
86
|
+
/**
|
|
87
|
+
* An agent: a round body with a four-pointed spark in it. `dim` draws it as
|
|
88
|
+
* the pain does, muted and dashed.
|
|
89
|
+
*/
|
|
90
|
+
export function Agent({ x, y, r = 22, ink, p, dim = false, halo = true, }) {
|
|
91
|
+
const s = r * 0.42;
|
|
92
|
+
return (_jsxs("g", { children: [halo && !dim ? _jsx("circle", { cx: x, cy: y, r: r * 1.7, fill: ink, opacity: wash(p, 0.1) }) : null, _jsx("circle", { cx: x, cy: y, r: r, fill: p.bgPanel, stroke: ink, strokeWidth: dim ? 1.4 : 2, strokeOpacity: dim ? 0.6 : 1, strokeDasharray: dim ? '4 3' : undefined }), _jsx("path", { d: `M${x} ${y - s} Q${x + s * 0.18} ${y - s * 0.18} ${x + s} ${y} Q${x + s * 0.18} ${y + s * 0.18} ${x} ${y + s} Q${x - s * 0.18} ${y + s * 0.18} ${x - s} ${y} Q${x - s * 0.18} ${y - s * 0.18} ${x} ${y - s} Z`, fill: ink, opacity: dim ? 0.5 : 0.95 })] }));
|
|
93
|
+
}
|
|
94
|
+
/** A panel: a rounded card in `bgPanel`, edged in an ink. */
|
|
95
|
+
export function Panel({ x, y, w, h, ink, p, dashed = false, rx = 8, strokeOpacity = 0.55, fill, }) {
|
|
96
|
+
return (_jsx("rect", { x: x, y: y, width: w, height: h, rx: rx, fill: fill ?? p.bgPanel, stroke: ink, strokeOpacity: strokeOpacity, strokeWidth: "1.2", strokeDasharray: dashed ? '4 3' : undefined }));
|
|
97
|
+
}
|
|
98
|
+
/** Lines of text, drawn as bars. */
|
|
99
|
+
export function Bars({ x, y, widths, ink, gap = 10, h = 4, opacity = 0.6, }) {
|
|
100
|
+
return (_jsx("g", { fill: ink, opacity: opacity, children: widths.map((w, i) => (_jsx("rect", { x: x, y: y + i * gap, width: w, height: h, rx: h / 2 }, i))) }));
|
|
101
|
+
}
|
|
102
|
+
/** A tick. */
|
|
103
|
+
export function Check({ x, y, s = 6, ink, width = 2 }) {
|
|
104
|
+
return (_jsx("path", { d: `M${x - s} ${y} L${x - s * 0.3} ${y + s * 0.7} L${x + s} ${y - s * 0.7}`, fill: "none", stroke: ink, strokeWidth: width, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
105
|
+
}
|
|
106
|
+
/** A cross. */
|
|
107
|
+
export function Cross({ x, y, s = 5, ink, width = 2 }) {
|
|
108
|
+
return (_jsx("path", { d: `M${x - s} ${y - s} L${x + s} ${y + s} M${x + s} ${y - s} L${x - s} ${y + s}`, fill: "none", stroke: ink, strokeWidth: width, strokeLinecap: "round" }));
|
|
109
|
+
}
|
|
110
|
+
/** A short label, in capitals. */
|
|
111
|
+
export function Label({ x, y, children, ink, anchor = 'middle', size = 9, }) {
|
|
112
|
+
return (_jsx("text", { x: x, y: y, fontFamily: MONO, fontSize: size, fill: ink, textAnchor: anchor, letterSpacing: "1.2", children: children }));
|
|
113
|
+
}
|
|
114
|
+
/** A pill with a short label in it. */
|
|
115
|
+
export function Chip({ x, y, w, label, ink, p, filled = false, }) {
|
|
116
|
+
return (_jsxs("g", { children: [_jsx("rect", { x: x, y: y, width: w, height: "20", rx: "10", fill: filled ? ink : p.bgPanel, fillOpacity: filled ? 0.16 : 1, stroke: ink, strokeOpacity: "0.7", strokeWidth: "1.2" }), _jsx(Label, { x: x + w / 2, y: y + 13.5, ink: ink, size: 8.5, children: label })] }));
|
|
117
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 2, The work stops when the chat does, answered by Agent Teams.
|
|
3
|
+
*
|
|
4
|
+
* The pain: a week laid out as a line, a chat answering on Monday, and the
|
|
5
|
+
* work stopping there; the rest of the week is carried by hand. The answer:
|
|
6
|
+
* a team of agents on the day's round, turning with the clock, handing the
|
|
7
|
+
* work on, and asking before what matters.
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
10
|
+
export declare function SvgPainAgentTeams({ palette }?: {
|
|
11
|
+
palette?: ColorPalette;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export default SvgPainAgentTeams;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, Bars, Label, PainFrame, Panel } from './PainFrame';
|
|
3
|
+
const DAYS = ['M', 'T', 'W', 'T', 'F'];
|
|
4
|
+
/* The round of the answer. */
|
|
5
|
+
const RING = { x: 604, y: 206, r: 104 };
|
|
6
|
+
const onRing = (deg, r = RING.r) => {
|
|
7
|
+
const a = (deg * Math.PI) / 180;
|
|
8
|
+
return [Math.round((RING.x + r * Math.cos(a)) * 10) / 10, Math.round((RING.y + r * Math.sin(a)) * 10) / 10];
|
|
9
|
+
};
|
|
10
|
+
export function SvgPainAgentTeams({ palette } = {}) {
|
|
11
|
+
return (_jsx(PainFrame, { number: 2, feature: "Agent Teams", palette: palette, title: "The work stops when the chat does", desc: "On the left, a chat answers on Monday and the work stops there, the rest of the week left to be carried by hand. On the right, a team of always-on agents keeps the work going round the clock, handing it on and asking before what matters.", children: ({ p, ink, motion }) => {
|
|
12
|
+
const [askX, askY] = onRing(40);
|
|
13
|
+
return (_jsxs("g", { children: [_jsx(Panel, { x: 56, y: 96, w: 150, h: 74, ink: ink.muted, p: p, rx: 12 }), _jsx("path", { d: "M84 170 l-6 16 l20 -16", fill: p.bgPanel, stroke: ink.muted, strokeOpacity: "0.55", strokeWidth: "1.2", strokeLinejoin: "round" }), _jsx("rect", { x: 80, y: 168, width: 20, height: 4, fill: p.bgPanel }), _jsx(Bars, { x: 72, y: 114, widths: [110, 92, 118, 64], ink: ink.muted, gap: 11 }), _jsx(Agent, { x: 232, y: 110, r: 14, ink: ink.muted, p: p, dim: true }), _jsx("line", { x1: 60, y1: 244, x2: 360, y2: 244, stroke: ink.muted, strokeOpacity: "0.35", strokeWidth: "1.2" }), DAYS.map((d, i) => {
|
|
14
|
+
const x = 84 + i * 66;
|
|
15
|
+
return (_jsxs("g", { children: [_jsx("line", { x1: x, y1: 238, x2: x, y2: 250, stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.2" }), _jsx(Label, { x: x, y: 270, ink: p.textMuted, children: d })] }, i));
|
|
16
|
+
}), _jsx("line", { x1: 84, y1: 244, x2: 128, y2: 244, stroke: ink.pain, strokeWidth: "2.4", strokeLinecap: "round" }), _jsx("rect", { x: 130, y: 236, width: 16, height: 16, rx: "3", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }), _jsx("rect", { x: 135, y: 241, width: 6, height: 6, rx: "1", fill: ink.pain }), _jsx("line", { x1: 152, y1: 244, x2: 348, y2: 244, stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1.6", strokeDasharray: "2 6", strokeLinecap: "round" }), [216, 282, 348].map((x) => (_jsxs("g", { opacity: "0.55", children: [_jsx("circle", { cx: x, cy: 302, r: "5", fill: "none", stroke: ink.muted, strokeWidth: "1.2" }), _jsx("path", { d: `M${x - 9} 326 q9 -16 18 0`, fill: "none", stroke: ink.muted, strokeWidth: "1.2" }), _jsx("rect", { x: x + 6, y: 308, width: 11, height: 9, rx: "1.5", fill: "none", stroke: ink.pain, strokeOpacity: "0.8", strokeWidth: "1.2" })] }, x))), _jsx("circle", { cx: RING.x, cy: RING.y, r: RING.r, fill: "none", stroke: ink.answer, strokeOpacity: "0.3", strokeWidth: "1.2" }), _jsx("circle", { cx: RING.x, cy: RING.y, r: RING.r, fill: "none", stroke: ink.answer, strokeOpacity: "0.55", strokeWidth: "2", strokeDasharray: "6 10", className: motion.march }), (() => {
|
|
17
|
+
const [sx, sy] = onRing(-90, RING.r + 22);
|
|
18
|
+
const [nx, ny] = onRing(-90 + 180, RING.r + 22);
|
|
19
|
+
return (_jsxs("g", { children: [_jsx("circle", { cx: sx, cy: sy, r: "6", fill: ink.ask, opacity: "0.85" }), Array.from({ length: 8 }, (_, i) => {
|
|
20
|
+
const a = (i * Math.PI) / 4;
|
|
21
|
+
return (_jsx("line", { x1: sx + 9 * Math.cos(a), y1: sy + 9 * Math.sin(a), x2: sx + 12 * Math.cos(a), y2: sy + 12 * Math.sin(a), stroke: ink.ask, strokeWidth: "1.2", strokeLinecap: "round", opacity: "0.8" }, i));
|
|
22
|
+
}), _jsx("path", { d: `M${nx + 2} ${ny - 7} a7 7 0 1 0 5 12 a6 6 0 0 1 -5 -12 Z`, fill: ink.fourth, opacity: "0.8" })] }));
|
|
23
|
+
})(), _jsx("circle", { cx: RING.x, cy: RING.y, r: "30", fill: p.bgPanel, stroke: ink.answer, strokeOpacity: "0.7", strokeWidth: "1.4" }), Array.from({ length: 12 }, (_, i) => {
|
|
24
|
+
const [x1, y1] = onRing(i * 30, 25);
|
|
25
|
+
const [x2, y2] = onRing(i * 30, 28);
|
|
26
|
+
return _jsx("line", { x1: x1, y1: y1, x2: x2, y2: y2, stroke: ink.answer, strokeOpacity: "0.5", strokeWidth: "1" }, i);
|
|
27
|
+
}), _jsx("line", { x1: RING.x, y1: RING.y, x2: RING.x, y2: RING.y - 18, stroke: ink.answer, strokeWidth: "2", strokeLinecap: "round" }), _jsx("line", { className: motion.spin, style: { transformOrigin: `${RING.x}px ${RING.y}px` }, x1: RING.x, y1: RING.y, x2: RING.x + 13, y2: RING.y + 8, stroke: ink.second, strokeWidth: "2", strokeLinecap: "round" }), _jsx("circle", { cx: RING.x, cy: RING.y, r: "2.6", fill: ink.answer }), _jsx("rect", { x: askX - 9, y: askY - 9, width: "18", height: "18", fill: p.bgPanel, stroke: ink.ask, strokeWidth: "1.6", transform: `rotate(45 ${askX} ${askY})` }), _jsx("circle", { cx: askX, cy: askY, r: "2.6", fill: ink.ask }), _jsx(Label, { x: askX + 14, y: askY + 30, anchor: "start", ink: ink.ask, children: "ASK FIRST" }), _jsx("g", { className: motion.spin, style: { transformOrigin: `${RING.x}px ${RING.y}px` }, children: [
|
|
28
|
+
{ deg: 0, c: ink.answer },
|
|
29
|
+
{ deg: 120, c: ink.third },
|
|
30
|
+
{ deg: 240, c: ink.second },
|
|
31
|
+
].map((a) => {
|
|
32
|
+
const [x, y] = onRing(a.deg);
|
|
33
|
+
return _jsx(Agent, { x: x, y: y, r: 17, ink: a.c, p: p }, a.deg);
|
|
34
|
+
}) })] }));
|
|
35
|
+
} }));
|
|
36
|
+
}
|
|
37
|
+
export default SvgPainAgentTeams;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 4, Answers nobody can act on, answered by Agentic UI.
|
|
3
|
+
*
|
|
4
|
+
* The pain: a chat bubble full of paragraphs, a wall of text to copy out by
|
|
5
|
+
* hand. The answer: the agent's answer as an interface, a chart to explore,
|
|
6
|
+
* a table to filter with its row picked out, and a button to approve.
|
|
7
|
+
*/
|
|
8
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
9
|
+
export declare function SvgPainAgenticUi({ palette }?: {
|
|
10
|
+
palette?: ColorPalette;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
export default SvgPainAgenticUi;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, Bars, Check, Label, PainFrame, Panel } from './PainFrame';
|
|
3
|
+
const CHART = [34, 52, 28, 64, 46, 72];
|
|
4
|
+
export function SvgPainAgenticUi({ palette } = {}) {
|
|
5
|
+
return (_jsx(PainFrame, { number: 4, feature: "Agentic UI", palette: palette, title: "Answers nobody can act on", desc: "On the left, a chatbot answers with a wall of paragraphs. On the right, the agent answers with an interface: a chart to explore, a table to filter and a button to approve.", children: ({ p, ink, motion }) => {
|
|
6
|
+
const inks = [ink.answer, ink.second, ink.third, ink.fourth];
|
|
7
|
+
return (_jsxs("g", { children: [_jsx(Panel, { x: 64, y: 76, w: 280, h: 222, ink: ink.muted, p: p, rx: 14 }), _jsx("path", { d: "M92 298 l-8 22 l28 -22", fill: p.bgPanel, stroke: ink.muted, strokeOpacity: "0.55", strokeWidth: "1.2", strokeLinejoin: "round" }), _jsx("rect", { x: 88, y: 296, width: 26, height: 4, fill: p.bgPanel }), _jsx(Bars, { x: 86, y: 98, widths: [236, 222, 230, 190], ink: ink.muted, gap: 11, opacity: 0.5 }), _jsx(Bars, { x: 86, y: 152, widths: [228, 236, 214, 232, 120], ink: ink.muted, gap: 11, opacity: 0.5 }), _jsx(Bars, { x: 86, y: 217, widths: [232, 206, 236, 226, 160], ink: ink.muted, gap: 11, opacity: 0.5 }), _jsx("rect", { x: 196, y: 174, width: 40, height: 4, rx: "2", fill: ink.pain }), _jsx(Agent, { x: 70, y: 338, r: 14, ink: ink.muted, p: p, dim: true }), _jsx(Panel, { x: 440, y: 76, w: 326, h: 250, ink: ink.answer, p: p }), _jsx("path", { d: "M440 84 a8 8 0 0 1 8 -8 h310 a8 8 0 0 1 8 8 v12 h-326 Z", fill: p.bgAlt }), [ink.answer, ink.second, ink.third].map((c, i) => (_jsx("circle", { cx: 452 + i * 10, cy: 86, r: "2.6", fill: c, opacity: "0.8" }, i))), _jsx("line", { x1: 458, y1: 210, x2: 598, y2: 210, stroke: p.textMuted, strokeOpacity: "0.5", strokeWidth: "1" }), CHART.map((h, i) => (_jsx("rect", { x: 464 + i * 22, y: 210 - h * 1.4, width: "14", height: h * 1.4, rx: "2", fill: inks[i % 4], opacity: i === 5 ? 0.95 : 0.6 }, i))), _jsx("path", { d: "M471 184 L493 160 L515 190 L537 142 L559 168 L581 126", fill: "none", stroke: ink.answer, strokeWidth: "1.6", strokeLinejoin: "round", opacity: "0.9" }), _jsx("circle", { cx: 581, cy: 126, r: "4", fill: p.bgPanel, stroke: ink.answer, strokeWidth: "1.6" }), _jsx("rect", { x: 616, y: 112, width: 134, height: 16, rx: "3", fill: p.bgAlt }), _jsx("path", { d: "M624 116 h8 l-3 4 v4 l-2 -1 v-3 Z", fill: ink.second, opacity: "0.85" }), [0, 1, 2, 3, 4].map((r) => {
|
|
8
|
+
const y = 136 + r * 16;
|
|
9
|
+
const picked = r === 2;
|
|
10
|
+
return (_jsxs("g", { children: [picked ? _jsx("rect", { className: motion.breathe, x: 612, y: y - 3, width: 142, height: 14, rx: "3", fill: ink.second, fillOpacity: "0.18", stroke: ink.second, strokeOpacity: "0.7", strokeWidth: "1" }) : null, _jsx("rect", { x: 622, y: y + 2, width: 44, height: 4, rx: "2", fill: picked ? ink.second : p.textMuted, opacity: picked ? 0.95 : 0.45 }), _jsx("rect", { x: 676, y: y + 2, width: 28, height: 4, rx: "2", fill: picked ? ink.second : p.textMuted, opacity: picked ? 0.95 : 0.45 }), _jsx("rect", { x: 716, y: y + 2, width: 26, height: 4, rx: "2", fill: picked ? ink.second : p.textMuted, opacity: picked ? 0.95 : 0.45 })] }, r));
|
|
11
|
+
}), _jsx("line", { x1: 456, y1: 238, x2: 750, y2: 238, stroke: p.textMuted, strokeOpacity: "0.25", strokeWidth: "1" }), _jsx("rect", { x: 458, y: 260, width: 170, height: 32, rx: "6", fill: p.bg, stroke: p.textMuted, strokeOpacity: "0.45", strokeWidth: "1" }), _jsx("rect", { x: 470, y: 274, width: 84, height: 4, rx: "2", fill: p.textMuted, opacity: "0.55" }), _jsx("rect", { x: 556, y: 268, width: 1.6, height: 16, fill: ink.answer, className: motion.breathe }), _jsx("rect", { x: 642, y: 260, width: 108, height: 32, rx: "6", fill: ink.answer, fillOpacity: "0.2", stroke: ink.answer, strokeWidth: "1.4" }), _jsx(Check, { x: 662, y: 276, s: 5, ink: ink.answer }), _jsx(Label, { x: 706, y: 279.5, ink: ink.answer, size: 9, children: "APPROVE" }), _jsx(Agent, { x: 440, y: 330, r: 16, ink: ink.answer, p: p })] }));
|
|
12
|
+
} }));
|
|
13
|
+
}
|
|
14
|
+
export default SvgPainAgenticUi;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 8, Better or worse? Nobody knows, answered by Benchmarks & Evals.
|
|
3
|
+
*
|
|
4
|
+
* The pain: two scores, one a little lower than the other, and nothing to
|
|
5
|
+
* say whether that is noise or a break. The answer: every task of the eval
|
|
6
|
+
* as a cell, passed or failed, and a failed one reopened as it ran, its
|
|
7
|
+
* notebook and its cells, to find out why.
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
10
|
+
export declare function SvgPainBenchmarks({ palette }?: {
|
|
11
|
+
palette?: ColorPalette;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export default SvgPainBenchmarks;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, Bars, PainFrame, Panel, SANS } from './PainFrame';
|
|
3
|
+
const COLS = 7;
|
|
4
|
+
const ROWS = 6;
|
|
5
|
+
const CELL = 16;
|
|
6
|
+
const GAP = 6;
|
|
7
|
+
const GRID = { x: 448, y: 104 };
|
|
8
|
+
/* The tasks that failed, by index; the first is the one reopened. */
|
|
9
|
+
const FAILED = [17, 5, 30, 38];
|
|
10
|
+
const OPENED = FAILED[0];
|
|
11
|
+
export function SvgPainBenchmarks({ palette } = {}) {
|
|
12
|
+
return (_jsx(PainFrame, { number: 8, feature: "Benchmarks & Evals", palette: palette, title: "Better or worse? Nobody knows", desc: "On the left, two eval scores, 84% then 81%, and no way to tell whether the agent got worse. On the right, every task of the eval as a cell, passed or failed, and a failed task reopened exactly as it ran, its notebook and its cells.", children: ({ p, ink, motion }) => {
|
|
13
|
+
const ox = GRID.x + (OPENED % COLS) * (CELL + GAP);
|
|
14
|
+
const oy = GRID.y + Math.floor(OPENED / COLS) * (CELL + GAP);
|
|
15
|
+
return (_jsxs("g", { children: [_jsx(Panel, { x: 56, y: 110, w: 124, h: 92, ink: ink.muted, p: p }), _jsx("text", { x: 118, y: 170, fontFamily: SANS, fontSize: "34", fontWeight: "700", fill: ink.muted, textAnchor: "middle", opacity: "0.85", children: "84%" }), _jsx(Panel, { x: 228, y: 170, w: 124, h: 92, ink: ink.muted, p: p }), _jsx("text", { x: 290, y: 230, fontFamily: SANS, fontSize: "34", fontWeight: "700", fill: ink.muted, textAnchor: "middle", opacity: "0.85", children: "81%" }), _jsx("path", { d: "M184 158 C206 158 210 196 222 210", fill: "none", stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.4", strokeDasharray: "3 4" }), _jsx("path", { d: "M214 206 l9 6 l1 -11", fill: "none", stroke: ink.muted, strokeOpacity: "0.7", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("circle", { cx: 206, cy: 290, r: "22", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }), _jsx("text", { x: 206, y: 299, fontFamily: SANS, fontSize: "24", fontWeight: "700", fill: ink.pain, textAnchor: "middle", children: "?" }), [0, 1, 2].map((i) => (_jsx("rect", { x: 70 + i * 16, y: 300 + i * 14, width: 90 - i * 20, height: "4", rx: "2", fill: ink.muted, opacity: "0.25" }, i))), [0, 1, 2].map((i) => (_jsx("rect", { x: 250 + i * 8, y: 300 + i * 14, width: 92 - i * 18, height: "4", rx: "2", fill: ink.muted, opacity: "0.25" }, i))), Array.from({ length: COLS * ROWS }, (_, i) => {
|
|
16
|
+
const x = GRID.x + (i % COLS) * (CELL + GAP);
|
|
17
|
+
const y = GRID.y + Math.floor(i / COLS) * (CELL + GAP);
|
|
18
|
+
const failed = FAILED.includes(i);
|
|
19
|
+
return failed ? (_jsx("rect", { x: x + 0.8, y: y + 0.8, width: CELL - 1.6, height: CELL - 1.6, rx: "3", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }, i)) : (_jsx("rect", { x: x, y: y, width: CELL, height: CELL, rx: "3", fill: i % 5 === 0 ? ink.second : ink.answer, opacity: 0.35 + ((i * 7) % 5) * 0.1 }, i));
|
|
20
|
+
}), _jsx("rect", { className: motion.breathe, x: ox - 4, y: oy - 4, width: CELL + 8, height: CELL + 8, rx: "5", fill: "none", stroke: ink.pain, strokeWidth: "1.4" }), _jsx("path", { d: `M${ox + CELL + 4} ${oy + CELL / 2} C640 ${oy + CELL / 2} 630 150 654 150`, fill: "none", stroke: ink.pain, strokeOpacity: "0.7", strokeWidth: "1.4", strokeDasharray: "4 3" }), _jsx(Panel, { x: 654, y: 110, w: 112, h: 170, ink: ink.answer, p: p }), _jsx("path", { d: "M654 118 a8 8 0 0 1 8 -8 h96 a8 8 0 0 1 8 8 v10 h-112 Z", fill: p.bgAlt }), _jsx("rect", { x: 664, y: 116, width: 30, height: "5", rx: "2.5", fill: ink.pain, opacity: "0.8" }), [0, 1, 2, 3].map((i) => (_jsxs("g", { children: [_jsx("rect", { x: 664, y: 140 + i * 32, width: 3, height: 22, rx: "1.5", fill: i === 2 ? ink.pain : ink.answer, opacity: "0.8" }), _jsx(Bars, { x: 674, y: 143 + i * 32, widths: [[72, 50], [60, 80], [78, 44], [52, 66]][i], ink: i === 2 ? ink.pain : p.textMuted, gap: 9, opacity: i === 2 ? 0.8 : 0.5 })] }, i))), _jsx(Agent, { x: 480, y: 298, r: 16, ink: ink.answer, p: p }), _jsx("rect", { x: 508, y: 290, width: 120, height: 16, rx: "8", fill: ink.answer, fillOpacity: "0.16", stroke: ink.answer, strokeOpacity: "0.6", strokeWidth: "1.2" }), _jsx("rect", { x: 508, y: 290, width: 98, height: 16, rx: "8", fill: ink.answer, fillOpacity: "0.4" })] }));
|
|
21
|
+
} }));
|
|
22
|
+
}
|
|
23
|
+
export default SvgPainBenchmarks;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 3, One more bot for every channel, answered by Channels.
|
|
3
|
+
*
|
|
4
|
+
* The pain: four bots, each its own shape, each tied to one channel, none
|
|
5
|
+
* the same as the others, one of them out of date. The answer: one agent in
|
|
6
|
+
* the middle, the same one reaching the chat, the team channel, the phone
|
|
7
|
+
* and the editor.
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
10
|
+
export declare function SvgPainChannels({ palette }?: {
|
|
11
|
+
palette?: ColorPalette;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export default SvgPainChannels;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, PainFrame, Panel, wash } from './PainFrame';
|
|
3
|
+
/** A channel, drawn small: a chat bubble, a hash, a phone, an editor. */
|
|
4
|
+
function ChannelGlyph({ kind, x, y, ink }) {
|
|
5
|
+
const common = { fill: 'none', stroke: ink, strokeWidth: 1.6, strokeLinecap: 'round', strokeLinejoin: 'round' };
|
|
6
|
+
if (kind === 'chat') {
|
|
7
|
+
return _jsx("path", { d: `M${x - 10} ${y - 8} h20 a3 3 0 0 1 3 3 v9 a3 3 0 0 1 -3 3 h-11 l-6 5 v-5 h-3 a3 3 0 0 1 -3 -3 v-9 a3 3 0 0 1 3 -3 Z`, ...common });
|
|
8
|
+
}
|
|
9
|
+
if (kind === 'team') {
|
|
10
|
+
return _jsx("path", { d: `M${x - 4} ${y - 10} l-3 20 M${x + 5} ${y - 10} l-3 20 M${x - 10} ${y - 4} h20 M${x - 11} ${y + 4} h20`, ...common });
|
|
11
|
+
}
|
|
12
|
+
if (kind === 'phone') {
|
|
13
|
+
return (_jsxs("g", { children: [_jsx("rect", { x: x - 7, y: y - 12, width: "14", height: "24", rx: "3", ...common }), _jsx("line", { x1: x - 2, y1: y + 8, x2: x + 2, y2: y + 8, ...common })] }));
|
|
14
|
+
}
|
|
15
|
+
return _jsx("path", { d: `M${x - 5} ${y - 7} l-7 7 l7 7 M${x + 5} ${y - 7} l7 7 l-7 7 M${x + 2} ${y - 10} l-4 20`, ...common });
|
|
16
|
+
}
|
|
17
|
+
/* The four bots of the pain, each a shape of its own. */
|
|
18
|
+
const BOTS = [
|
|
19
|
+
{ x: 98, y: 120, kind: 'chat', shape: 'square' },
|
|
20
|
+
{ x: 262, y: 108, kind: 'team', shape: 'circle' },
|
|
21
|
+
{ x: 108, y: 278, kind: 'phone', shape: 'triangle' },
|
|
22
|
+
{ x: 270, y: 262, kind: 'editor', shape: 'hexagon' },
|
|
23
|
+
];
|
|
24
|
+
const hexagon = (x, y, r) => Array.from({ length: 6 }, (_, i) => {
|
|
25
|
+
const a = (Math.PI / 3) * i + Math.PI / 6;
|
|
26
|
+
return `${i === 0 ? 'M' : 'L'}${(x + r * Math.cos(a)).toFixed(1)} ${(y + r * Math.sin(a)).toFixed(1)}`;
|
|
27
|
+
}).join(' ') + ' Z';
|
|
28
|
+
/* The answer's channels, round the one agent. */
|
|
29
|
+
const AGENT = { x: 604, y: 204 };
|
|
30
|
+
const CHANNELS = [
|
|
31
|
+
{ x: 484, y: 110, kind: 'chat' },
|
|
32
|
+
{ x: 724, y: 110, kind: 'team' },
|
|
33
|
+
{ x: 484, y: 298, kind: 'phone' },
|
|
34
|
+
{ x: 724, y: 298, kind: 'editor' },
|
|
35
|
+
];
|
|
36
|
+
export function SvgPainChannels({ palette } = {}) {
|
|
37
|
+
return (_jsx(PainFrame, { number: 3, feature: "Channels", palette: palette, title: "One more bot for every channel", desc: "On the left, four separate bots, each built for one channel and none of them alike, one out of date. On the right, one agent, built once, reaching the chat, the team channel, the phone and the editor.", children: ({ p, ink, motion }) => {
|
|
38
|
+
const inks = [ink.answer, ink.second, ink.third, ink.fourth];
|
|
39
|
+
return (_jsxs("g", { children: [BOTS.map((b, i) => {
|
|
40
|
+
const stale = i === 2;
|
|
41
|
+
const c = stale ? ink.pain : ink.muted;
|
|
42
|
+
const body = b.shape === 'circle' ? _jsx("circle", { cx: b.x, cy: b.y, r: "20" }) :
|
|
43
|
+
b.shape === 'square' ? _jsx("rect", { x: b.x - 19, y: b.y - 19, width: "38", height: "38", rx: "5" }) :
|
|
44
|
+
b.shape === 'triangle' ? _jsx("path", { d: `M${b.x} ${b.y - 23} L${b.x + 23} ${b.y + 17} L${b.x - 23} ${b.y + 17} Z`, strokeLinejoin: "round" }) :
|
|
45
|
+
_jsx("path", { d: hexagon(b.x, b.y, 22) });
|
|
46
|
+
return (_jsxs("g", { children: [_jsx("g", { fill: p.bgPanel, stroke: c, strokeOpacity: stale ? 0.9 : 0.6, strokeWidth: "1.4", strokeDasharray: "4 3", children: body }), _jsx("circle", { cx: b.x - 6, cy: b.y + (b.shape === 'triangle' ? 4 : 0), r: "2.2", fill: c, opacity: "0.75" }), _jsx("circle", { cx: b.x + 6, cy: b.y + (b.shape === 'triangle' ? 4 : 0), r: "2.2", fill: c, opacity: "0.75" }), _jsx("line", { x1: b.x + 26, y1: b.y, x2: b.x + 40, y2: b.y, stroke: ink.muted, strokeOpacity: "0.45", strokeWidth: "1.2" }), _jsx(Panel, { x: b.x + 40, y: b.y - 18, w: 36, h: 36, ink: ink.muted, p: p, strokeOpacity: 0.4 }), _jsx(ChannelGlyph, { kind: b.kind, x: b.x + 58, y: b.y, ink: ink.muted }), stale ? (_jsxs("g", { children: [_jsx("circle", { cx: b.x + 20, cy: b.y - 22, r: "8", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.4" }), _jsx("path", { d: `M${b.x + 20} ${b.y - 26} v4 l3 2`, fill: "none", stroke: ink.pain, strokeWidth: "1.4", strokeLinecap: "round" })] })) : null] }, i));
|
|
47
|
+
}), CHANNELS.map((c, i) => {
|
|
48
|
+
const d = `M${AGENT.x} ${AGENT.y} L${c.x} ${c.y}`;
|
|
49
|
+
return (_jsxs("g", { children: [_jsx("path", { d: d, stroke: inks[i], strokeOpacity: "0.55", strokeWidth: "1.6", strokeDasharray: "5 4", className: motion.march }), _jsx("circle", { className: motion.travel, r: "3.2", fill: inks[i], style: { offsetPath: `path('${d}')`, animationDelay: `${i * -1.2}s` } })] }, c.kind));
|
|
50
|
+
}), CHANNELS.map((c, i) => (_jsxs("g", { children: [_jsx("circle", { cx: c.x, cy: c.y, r: "34", fill: inks[i], opacity: wash(p, 0.08) }), _jsx(Panel, { x: c.x - 24, y: c.y - 24, w: 48, h: 48, ink: inks[i], p: p, strokeOpacity: 0.75, rx: 10 }), _jsx(ChannelGlyph, { kind: c.kind, x: c.x, y: c.y, ink: inks[i] })] }, `glyph-${c.kind}`))), _jsx(Agent, { x: AGENT.x, y: AGENT.y, r: 34, ink: ink.answer, p: p })] }));
|
|
51
|
+
} }));
|
|
52
|
+
}
|
|
53
|
+
export default SvgPainChannels;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 9, A result nobody can check, answered by Library & Artifacts.
|
|
3
|
+
*
|
|
4
|
+
* The pain: a slide with one figure on it, and the chat that made it gone,
|
|
5
|
+
* fading into dots. The answer: the figure as an artifact that carries what
|
|
6
|
+
* made it, its notebook, its data and its environment, and a fork that
|
|
7
|
+
* reproduces it.
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
10
|
+
export declare function SvgPainLibrary({ palette }?: {
|
|
11
|
+
palette?: ColorPalette;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export default SvgPainLibrary;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, Bars, Label, PainFrame, Panel, SANS } from './PainFrame';
|
|
3
|
+
export function SvgPainLibrary({ palette } = {}) {
|
|
4
|
+
return (_jsx(PainFrame, { number: 9, feature: "Library & Artifacts", palette: palette, title: "A result nobody can check", desc: "On the left, a slide with one figure on it, and the chat that produced it gone. On the right, the figure published as an artifact that carries its notebook, its data and its environment, and a fork that reproduces it.", children: ({ p, ink, motion }) => (_jsxs("g", { children: [_jsx(Panel, { x: 60, y: 86, w: 200, h: 128, ink: ink.muted, p: p }), _jsx("rect", { x: 76, y: 102, width: 60, height: 5, rx: "2.5", fill: ink.muted, opacity: "0.5" }), _jsx("text", { x: 160, y: 176, fontFamily: SANS, fontSize: "40", fontWeight: "700", fill: ink.muted, textAnchor: "middle", opacity: "0.9", children: "7.4%" }), _jsx("circle", { cx: 262, cy: 88, r: "15", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }), _jsx("text", { x: 262, y: 95, fontFamily: SANS, fontSize: "18", fontWeight: "700", fill: ink.pain, textAnchor: "middle", children: "?" }), _jsx("path", { d: "M160 214 v28", stroke: ink.muted, strokeOpacity: "0.35", strokeWidth: "1.2", strokeDasharray: "2 4" }), _jsxs("g", { opacity: "0.4", children: [_jsx("rect", { x: 96, y: 248, width: 150, height: 56, rx: "12", fill: "none", stroke: ink.muted, strokeWidth: "1.2", strokeDasharray: "3 5" }), _jsx(Bars, { x: 112, y: 262, widths: [96, 118, 70], ink: ink.muted, gap: 10, opacity: 0.6 })] }), [[262, 268], [282, 252], [276, 292], [304, 274], [318, 300], [334, 262], [348, 288]].map(([x, y], i) => (_jsx("rect", { x: x, y: y, width: "5", height: "5", rx: "1", fill: ink.muted, opacity: 0.4 - i * 0.05 }, i))), _jsx(Agent, { x: 78, y: 330, r: 14, ink: ink.muted, p: p, dim: true }), _jsx(Panel, { x: 448, y: 82, w: 152, h: 96, ink: ink.answer, p: p }), _jsx("text", { x: 524, y: 140, fontFamily: SANS, fontSize: "30", fontWeight: "700", fill: ink.answer, textAnchor: "middle", children: "7.4%" }), _jsx("circle", { cx: 586, cy: 96, r: "5", fill: ink.answer }), _jsx("line", { x1: 470, y1: 178, x2: 470, y2: 318, stroke: ink.answer, strokeOpacity: "0.45", strokeWidth: "1.4" }), [
|
|
5
|
+
{ y: 196, label: 'NOTEBOOK', c: ink.second },
|
|
6
|
+
{ y: 244, label: 'DATA', c: ink.third },
|
|
7
|
+
{ y: 292, label: 'ENV', c: ink.fourth },
|
|
8
|
+
].map((l) => (_jsxs("g", { children: [_jsx("circle", { cx: 470, cy: l.y + 13, r: "4", fill: l.c }), _jsx(Panel, { x: 486, y: l.y, w: 114, h: 26, ink: l.c, p: p, strokeOpacity: 0.7, rx: 6 }), _jsx(Label, { x: 498, y: l.y + 16.5, ink: l.c, anchor: "start", size: 8.5, children: l.label })] }, l.label))), (() => {
|
|
9
|
+
const d = 'M600 130 C650 130 650 214 690 214';
|
|
10
|
+
return (_jsxs("g", { children: [_jsx("path", { d: d, fill: "none", stroke: ink.answer, strokeOpacity: "0.6", strokeWidth: "1.6", strokeDasharray: "5 4", className: motion.march }), _jsx("circle", { className: motion.travel, r: "3.4", fill: ink.answer, style: { offsetPath: `path('${d}')` } }), _jsx(Label, { x: 656, y: 160, ink: ink.answer, children: "FORK" })] }));
|
|
11
|
+
})(), _jsx(Panel, { x: 690, y: 180, w: 80, h: 70, ink: ink.answer, p: p }), _jsx("text", { x: 730, y: 222, fontFamily: SANS, fontSize: "18", fontWeight: "700", fill: ink.answer, textAnchor: "middle", children: "7.4%" }), [0, 1, 2].map((i) => (_jsx("rect", { x: 700 + i * 22, y: 260, width: 16, height: 6, rx: "3", fill: [ink.second, ink.third, ink.fourth][i], opacity: "0.75" }, i)))] })) }));
|
|
12
|
+
}
|
|
13
|
+
export default SvgPainLibrary;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 5, Nobody sees what the agent did, answered by Observability.
|
|
3
|
+
*
|
|
4
|
+
* The pain: a run in the night, a closed box with a question mark in it, and
|
|
5
|
+
* a failure coming out that nobody can explain. The answer: the run opened
|
|
6
|
+
* as a trace, every step nested in its order, the failed one picked out
|
|
7
|
+
* under a lens, with its alert.
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
10
|
+
export declare function SvgPainObservability({ palette }?: {
|
|
11
|
+
palette?: ColorPalette;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export default SvgPainObservability;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, Cross, PainFrame, Panel, SANS, wash } from './PainFrame';
|
|
3
|
+
/* The spans of the trace: depth, start, length, and which ink. */
|
|
4
|
+
const SPANS = [
|
|
5
|
+
{ depth: 0, x: 0, w: 236, tone: 0 },
|
|
6
|
+
{ depth: 1, x: 6, w: 70, tone: 1 },
|
|
7
|
+
{ depth: 2, x: 12, w: 40, tone: 2 },
|
|
8
|
+
{ depth: 1, x: 80, w: 58, tone: 3 },
|
|
9
|
+
{ depth: 1, x: 142, w: 46, tone: 'fail' },
|
|
10
|
+
{ depth: 2, x: 148, w: 24, tone: 2 },
|
|
11
|
+
{ depth: 1, x: 192, w: 40, tone: 1 },
|
|
12
|
+
];
|
|
13
|
+
export function SvgPainObservability({ palette } = {}) {
|
|
14
|
+
return (_jsx(PainFrame, { number: 5, feature: "Observability", palette: palette, title: "Nobody sees what the agent did", desc: "On the left, an agent ran overnight in a closed box and a failure came out that nobody can explain. On the right, the same run opened as a trace, every step nested in its order, and the step that failed picked out with its alert.", children: ({ p, ink, motion }) => {
|
|
15
|
+
const inks = [ink.answer, ink.second, ink.third, ink.fourth];
|
|
16
|
+
return (_jsxs("g", { children: [_jsx("path", { d: "M92 74 a16 16 0 1 0 14 24 a13 13 0 0 1 -14 -24 Z", fill: ink.muted, opacity: "0.55" }), [[130, 70], [150, 92], [70, 112]].map(([x, y], i) => (_jsx("circle", { cx: x, cy: y, r: "1.4", fill: ink.muted, opacity: "0.6" }, i))), _jsx(Agent, { x: 84, y: 218, r: 20, ink: ink.muted, p: p, dim: true }), _jsx("line", { x1: 108, y1: 218, x2: 134, y2: 218, stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1.4" }), _jsx("rect", { x: 136, y: 140, width: 150, height: 156, rx: "8", fill: ink.muted, fillOpacity: wash(p, 0.22), stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.4" }), _jsx("path", { d: "M136 172 h150", stroke: ink.muted, strokeOpacity: "0.35", strokeWidth: "1" }), _jsx("text", { x: 211, y: 252, fontFamily: SANS, fontSize: "54", fontWeight: "700", fill: ink.muted, opacity: "0.6", textAnchor: "middle", children: "?" }), _jsx("line", { x1: 288, y1: 218, x2: 318, y2: 218, stroke: ink.pain, strokeOpacity: "0.8", strokeWidth: "1.6", strokeDasharray: "3 3" }), _jsx("circle", { cx: 336, cy: 218, r: "14", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }), _jsx(Cross, { x: 336, y: 218, s: 5, ink: ink.pain }), _jsx(Panel, { x: 436, y: 84, w: 330, h: 236, ink: ink.answer, p: p }), _jsx("line", { x1: 452, y1: 110, x2: 750, y2: 110, stroke: p.textMuted, strokeOpacity: "0.3", strokeWidth: "1" }), [0, 1, 2, 3, 4].map((i) => (_jsx("line", { x1: 500 + i * 60, y1: 102, x2: 500 + i * 60, y2: 306, stroke: p.textMuted, strokeOpacity: "0.14", strokeWidth: "1" }, i))), SPANS.map((s, i) => {
|
|
17
|
+
const y = 124 + i * 25;
|
|
18
|
+
const fail = s.tone === 'fail';
|
|
19
|
+
const c = fail ? ink.pain : inks[s.tone];
|
|
20
|
+
return (_jsxs("g", { children: [_jsx("circle", { cx: 456 + s.depth * 9, cy: y + 6, r: "3", fill: c, opacity: "0.85" }), _jsx("rect", { x: 500 + s.x, y: y, width: s.w, height: "12", rx: "3", fill: c, fillOpacity: fail ? 0.3 : 0.55, stroke: fail ? c : 'none', strokeWidth: "1.4" })] }, i));
|
|
21
|
+
}), (() => {
|
|
22
|
+
const y = 124 + 4 * 25 + 6;
|
|
23
|
+
return (_jsxs("g", { children: [_jsx("circle", { className: motion.breathe, cx: 665, cy: y, r: "30", fill: "none", stroke: ink.pain, strokeWidth: "1.6" }), _jsx("line", { x1: 686, y1: y + 21, x2: 706, y2: y + 41, stroke: ink.pain, strokeWidth: "3", strokeLinecap: "round" }), _jsxs("g", { transform: `translate(728 ${y - 40})`, children: [_jsx("path", { d: "M-8 6 v-5 a8 8 0 0 1 16 0 v5 l3 3 h-22 Z", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.4", strokeLinejoin: "round" }), _jsx("path", { d: "M-3 11 a3 3 0 0 0 6 0", fill: "none", stroke: ink.pain, strokeWidth: "1.4" })] })] }));
|
|
24
|
+
})(), _jsx(Agent, { x: 436, y: 84, r: 14, ink: ink.answer, p: p, halo: false })] }));
|
|
25
|
+
} }));
|
|
26
|
+
}
|
|
27
|
+
export default SvgPainObservability;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 6, The one step the product lacks, answered by Plugins.
|
|
3
|
+
*
|
|
4
|
+
* The pain: a flow of steps with one missing, an empty slot where the
|
|
5
|
+
* business's own step should be, and the work stopping at it. The answer:
|
|
6
|
+
* the step added as a plugin, a piece that fits the slot, on the open
|
|
7
|
+
* extension points (a view, a command, a tool), and the work going through.
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
10
|
+
export declare function SvgPainPlugins({ palette }?: {
|
|
11
|
+
palette?: ColorPalette;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export default SvgPainPlugins;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Chip, Cross, PainFrame, Panel, wash } from './PainFrame';
|
|
3
|
+
const Y = 196;
|
|
4
|
+
const STEP = { w: 52, h: 52 };
|
|
5
|
+
/** A puzzle piece: a square with a tab on its top. */
|
|
6
|
+
const piece = (x, y, w, h) => {
|
|
7
|
+
const t = w * 0.16;
|
|
8
|
+
return `M${x} ${y + 6} a6 6 0 0 1 6 -6 h${w * 0.34 - 6} a${t} ${t} 0 1 1 ${w * 0.32} 0 h${w * 0.34 - 6} a6 6 0 0 1 6 6 v${h - 12} a6 6 0 0 1 -6 6 h${-(w - 12)} a6 6 0 0 1 -6 -6 Z`;
|
|
9
|
+
};
|
|
10
|
+
/** The steps of a flow: x of each, the third the business's own. */
|
|
11
|
+
const stepsAt = (x0) => [0, 1, 2, 3].map((i) => x0 + i * 80);
|
|
12
|
+
export function SvgPainPlugins({ palette } = {}) {
|
|
13
|
+
return (_jsx(PainFrame, { number: 6, feature: "Plugins", palette: palette, title: "The one step the product lacks", desc: "On the left, a flow of steps with the one the business needs missing, and the work stopping at the empty slot. On the right, that step added as a plugin that fits the slot, on open extension points, and the work going through.", children: ({ p, ink, motion }) => {
|
|
14
|
+
const inks = [ink.second, ink.third, ink.answer, ink.fourth];
|
|
15
|
+
const left = stepsAt(48);
|
|
16
|
+
const right = stepsAt(450);
|
|
17
|
+
const top = Y - STEP.h / 2;
|
|
18
|
+
const flow = `M${right[0] + STEP.w / 2} ${Y} H${right[3] + STEP.w / 2}`;
|
|
19
|
+
return (_jsxs("g", { children: [_jsx("line", { x1: left[0] + STEP.w, y1: Y, x2: left[2], y2: Y, stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.6" }), _jsx("line", { x1: left[2] + STEP.w, y1: Y, x2: left[3], y2: Y, stroke: ink.muted, strokeOpacity: "0.4", strokeWidth: "1.6", strokeDasharray: "2 5" }), left.map((x, i) => i === 2 ? (_jsxs("g", { children: [_jsx("path", { d: piece(x, top, STEP.w, STEP.h), fill: "none", stroke: ink.pain, strokeWidth: "1.6", strokeDasharray: "4 3" }), _jsx("circle", { cx: x + STEP.w / 2, cy: Y + 52, r: "12", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.4" }), _jsx(Cross, { x: x + STEP.w / 2, y: Y + 52, s: 4.5, ink: ink.pain })] }, i)) : (_jsxs("g", { opacity: i === 3 ? 0.55 : 1, children: [_jsx(Panel, { x: x, y: top, w: STEP.w, h: STEP.h, ink: ink.muted, p: p }), _jsx("rect", { x: x + 14, y: Y - 4, width: STEP.w - 28, height: "8", rx: "4", fill: ink.muted, opacity: "0.45" })] }, i))), _jsx("path", { d: `M${left[2] - 14} ${Y - 6} l8 6 l-8 6`, fill: "none", stroke: ink.muted, strokeOpacity: "0.7", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: flow, stroke: ink.answer, strokeOpacity: "0.55", strokeWidth: "1.6", strokeDasharray: "5 4", className: motion.march }), [0, -1.6, -3.2].map((d) => (_jsx("circle", { className: motion.travel, r: "3.2", fill: ink.answer, style: { offsetPath: `path('${flow}')`, animationDelay: `${d}s` } }, d))), right.map((x, i) => i === 2 ? (_jsxs("g", { children: [_jsx("circle", { cx: x + STEP.w / 2, cy: Y, r: "46", fill: ink.answer, opacity: wash(p, 0.1) }), _jsx("path", { d: piece(x, top, STEP.w, STEP.h), fill: p.bgPanel, stroke: ink.answer, strokeWidth: "2" }), _jsx("path", { d: piece(x + 6, top + 8, STEP.w - 12, STEP.h - 14), fill: ink.answer, fillOpacity: "0.22" })] }, i)) : (_jsxs("g", { children: [_jsx(Panel, { x: x, y: top, w: STEP.w, h: STEP.h, ink: inks[i], p: p, strokeOpacity: 0.7 }), _jsx("rect", { x: x + 14, y: Y - 4, width: STEP.w - 28, height: "8", rx: "4", fill: inks[i], opacity: "0.65" })] }, i))), (() => {
|
|
20
|
+
const cx = right[2] + STEP.w / 2;
|
|
21
|
+
return (_jsxs("g", { children: [[-90, 0, 90].map((dx) => (_jsx("line", { x1: cx, y1: Y + STEP.h / 2 + 2, x2: cx + dx, y2: Y + 78, stroke: ink.answer, strokeOpacity: "0.4", strokeWidth: "1.2" }, dx))), _jsx(Chip, { x: cx - 126, y: Y + 78, w: 72, label: "VIEW", ink: ink.second, p: p, filled: true }), _jsx(Chip, { x: cx - 40, y: Y + 78, w: 80, label: "COMMAND", ink: ink.answer, p: p, filled: true }), _jsx(Chip, { x: cx + 54, y: Y + 78, w: 72, label: "TOOL", ink: ink.third, p: p, filled: true })] }));
|
|
22
|
+
})()] }));
|
|
23
|
+
} }));
|
|
24
|
+
}
|
|
25
|
+
export default SvgPainPlugins;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 11, Rules nobody enforces, answered by Policies & Rules.
|
|
3
|
+
*
|
|
4
|
+
* The pain: the policy is a document set aside, and the agent sends message
|
|
5
|
+
* after message past it. The answer: the rules written into a firewall
|
|
6
|
+
* between the agent and the world, deciding every call: one goes through,
|
|
7
|
+
* one waits to be asked, one is refused.
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
10
|
+
export declare function SvgPainPolicies({ palette }?: {
|
|
11
|
+
palette?: ColorPalette;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export default SvgPainPolicies;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, Bars, Check, Cross, Label, PainFrame } from './PainFrame';
|
|
3
|
+
/** An envelope. */
|
|
4
|
+
function Envelope({ x, y, ink, p, opacity = 1 }) {
|
|
5
|
+
return (_jsxs("g", { opacity: opacity, children: [_jsx("rect", { x: x - 11, y: y - 7.5, width: "22", height: "15", rx: "2", fill: p.bgPanel, stroke: ink, strokeWidth: "1.3" }), _jsx("path", { d: `M${x - 11} ${y - 6.5} L${x} ${y + 1} L${x + 11} ${y - 6.5}`, fill: "none", stroke: ink, strokeWidth: "1.3", strokeLinejoin: "round" })] }));
|
|
6
|
+
}
|
|
7
|
+
const WALL_X = 600;
|
|
8
|
+
export function SvgPainPolicies({ palette } = {}) {
|
|
9
|
+
return (_jsx(PainFrame, { number: 11, feature: "Policies & Rules", palette: palette, title: "Rules nobody enforces", desc: "On the left, the policy sits in a document while the agent sends message after message past it. On the right, the rules are written into a firewall between the agent and the world, which lets one call through, holds one to ask first and refuses one.", children: ({ p, ink, motion }) => {
|
|
10
|
+
const askInk = ink.ask;
|
|
11
|
+
const calls = [
|
|
12
|
+
{ y: 128, end: 752, c: ink.answer, verdict: 'ALLOW' },
|
|
13
|
+
{ y: 208, end: WALL_X - 14, c: askInk, verdict: 'ASK' },
|
|
14
|
+
{ y: 288, end: WALL_X - 14, c: ink.pain, verdict: 'DENY' },
|
|
15
|
+
];
|
|
16
|
+
return (_jsxs("g", { children: [_jsxs("g", { opacity: "0.75", children: [_jsx("path", { d: "M62 82 h70 l18 18 v104 h-88 Z", fill: p.bgPanel, stroke: ink.muted, strokeWidth: "1.3", strokeLinejoin: "round" }), _jsx("path", { d: "M132 82 v18 h18", fill: "none", stroke: ink.muted, strokeWidth: "1.3", strokeLinejoin: "round" }), _jsx(Bars, { x: 74, y: 116, widths: [58, 64, 48, 62, 40, 56, 30], ink: ink.muted, gap: 11, opacity: 0.5 })] }), _jsx(Label, { x: 106, y: 224, ink: p.textMuted, children: "POLICY" }), _jsx(Agent, { x: 110, y: 296, r: 22, ink: ink.muted, p: p, dim: true }), [
|
|
17
|
+
[176, 300, 1], [214, 270, 0.95], [244, 312, 0.9], [276, 250, 0.85], [300, 292, 0.8],
|
|
18
|
+
[322, 226, 0.75], [340, 326, 0.7], [352, 268, 0.65],
|
|
19
|
+
].map(([x, y, o], i) => (_jsx(Envelope, { x: x, y: y, ink: ink.pain, p: p, opacity: o }, i))), _jsx("path", { d: "M138 296 C200 296 260 260 352 230", fill: "none", stroke: ink.pain, strokeOpacity: "0.35", strokeWidth: "1.2", strokeDasharray: "3 4" }), Array.from({ length: 11 }, (_, r) => {
|
|
20
|
+
const y = 84 + r * 22;
|
|
21
|
+
const bricks = r % 2 ? [[0, 7], [9, 14], [25, 7]] : [[0, 15], [17, 15]];
|
|
22
|
+
return (_jsx("g", { children: bricks.map(([dx, w]) => (_jsx("rect", { x: WALL_X - 16 + dx, y: y, width: w, height: "18", rx: "2", fill: ink.answer, fillOpacity: 0.14 + (r % 3) * 0.05, stroke: ink.answer, strokeOpacity: "0.55", strokeWidth: "1" }, dx))) }, r));
|
|
23
|
+
}), _jsxs("g", { transform: `translate(${WALL_X - 15} 46)`, children: [_jsx("path", { d: "M0 0 h22 l8 8 v20 h-30 Z", fill: p.bgPanel, stroke: ink.answer, strokeWidth: "1.3", strokeLinejoin: "round" }), _jsx(Bars, { x: 5, y: 11, widths: [18, 14, 18], ink: ink.answer, gap: 5, h: 2.4, opacity: 0.8 })] }), _jsx(Agent, { x: 472, y: 208, r: 26, ink: ink.answer, p: p }), calls.map((c, i) => {
|
|
24
|
+
const d = `M498 208 C530 208 540 ${c.y} 570 ${c.y} L${c.end} ${c.y}`;
|
|
25
|
+
return (_jsxs("g", { children: [_jsx("path", { d: d, fill: "none", stroke: c.c, strokeOpacity: "0.6", strokeWidth: "1.6", strokeDasharray: "5 4", className: i === 0 ? motion.march : undefined }), i === 0 ? (_jsxs("g", { children: [_jsx("circle", { className: motion.travel, r: "3.4", fill: c.c, style: { offsetPath: `path('${d}')` } }), _jsx("circle", { cx: 700, cy: c.y, r: "12", fill: p.bgPanel, stroke: c.c, strokeWidth: "1.6" }), _jsx(Check, { x: 700, y: c.y, s: 5, ink: c.c })] })) : i === 1 ? (_jsxs("g", { className: motion.breathe, children: [_jsx("rect", { x: WALL_X - 24 - 9, y: c.y - 9, width: "18", height: "18", fill: p.bgPanel, stroke: c.c, strokeWidth: "1.6", transform: `rotate(45 ${WALL_X - 24} ${c.y})` }), _jsx("circle", { cx: WALL_X - 24, cy: c.y, r: "2.6", fill: c.c })] })) : (_jsxs("g", { children: [_jsx("circle", { cx: WALL_X - 24, cy: c.y, r: "11", fill: p.bgPanel, stroke: c.c, strokeWidth: "1.6" }), _jsx(Cross, { x: WALL_X - 24, y: c.y, s: 4, ink: c.c })] })), _jsx(Label, { x: 650, y: c.y + (i === 0 ? -18 : 4), ink: c.c, anchor: "start", children: c.verdict })] }, c.verdict));
|
|
26
|
+
})] }));
|
|
27
|
+
} }));
|
|
28
|
+
}
|
|
29
|
+
export default SvgPainPolicies;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 10, Agents that cannot work together, answered by Open Protocols.
|
|
3
|
+
*
|
|
4
|
+
* The pain: three teams' agents, each walled in its own vendor, the links
|
|
5
|
+
* between them broken. The answer: the same three on one open line, MCP,
|
|
6
|
+
* A2A and the Personal Agent Protocol, the work passing between them.
|
|
7
|
+
*/
|
|
8
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
9
|
+
export declare function SvgPainProtocols({ palette }?: {
|
|
10
|
+
palette?: ColorPalette;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
export default SvgPainProtocols;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, Chip, Cross, PainFrame, Panel } from './PainFrame';
|
|
3
|
+
const BUS_Y = 272;
|
|
4
|
+
export function SvgPainProtocols({ palette } = {}) {
|
|
5
|
+
return (_jsx(PainFrame, { number: 10, feature: "Open Protocols", palette: palette, title: "Agents that cannot work together", desc: "On the left, three teams' agents, each walled in its own vendor's platform, unable to reach each other. On the right, the same agents on open protocols, MCP, A2A and Poppy, handing work to each other.", children: ({ p, ink, motion }) => {
|
|
6
|
+
const inks = [ink.answer, ink.second, ink.third];
|
|
7
|
+
const bus = `M452 ${BUS_Y} H748`;
|
|
8
|
+
return (_jsxs("g", { children: [[0, 1, 2].map((i) => {
|
|
9
|
+
const x = 52 + i * 106;
|
|
10
|
+
return (_jsxs("g", { children: [_jsx(Panel, { x: x, y: 96, w: 92, h: 196, ink: ink.muted, p: p, fill: ink.muted }), _jsx("rect", { x: x, y: 96, width: 92, height: 196, rx: "8", fill: p.bg, opacity: p.isLight ? 0.82 : 0.78 }), _jsx("rect", { x: x + 10, y: 108, width: 36, height: "5", rx: "2.5", fill: ink.muted, opacity: "0.5" }), i === 0 ? _jsx("rect", { x: x + 30, y: 160, width: 32, height: 32, rx: "6", fill: p.bgPanel, stroke: ink.muted, strokeWidth: "1.4", strokeDasharray: "4 3" }) : null, i === 1 ? _jsx(Agent, { x: x + 46, y: 176, r: 18, ink: ink.muted, p: p, dim: true }) : null, i === 2 ? _jsx("path", { d: `M${x + 46} 156 l20 36 h-40 Z`, fill: p.bgPanel, stroke: ink.muted, strokeWidth: "1.4", strokeDasharray: "4 3", strokeLinejoin: "round" }) : null, _jsx(Bars3, { x: x + 18, y: 234, ink: ink.muted })] }, i));
|
|
11
|
+
}), [144, 250].map((x) => (_jsxs("g", { children: [_jsx("line", { x1: x - 22, y1: 176, x2: x - 8, y2: 176, stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.4", strokeDasharray: "3 3" }), _jsx("line", { x1: x + 22, y1: 176, x2: x + 8, y2: 176, stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.4", strokeDasharray: "3 3" }), _jsx("circle", { cx: x + 3, cy: 176, r: "9", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.4" }), _jsx(Cross, { x: x + 3, y: 176, s: 3.5, ink: ink.pain })] }, x))), _jsx("line", { x1: 452, y1: BUS_Y, x2: 748, y2: BUS_Y, stroke: ink.answer, strokeOpacity: "0.25", strokeWidth: "8", strokeLinecap: "round" }), _jsx("path", { d: bus, stroke: ink.answer, strokeWidth: "2", strokeDasharray: "6 6", className: motion.march }), [480, 600, 720].map((x, i) => (_jsxs("g", { children: [_jsx("line", { x1: x, y1: 176, x2: x, y2: BUS_Y, stroke: inks[i], strokeOpacity: "0.6", strokeWidth: "1.6" }), _jsx("circle", { cx: x, cy: BUS_Y, r: "5", fill: p.bgPanel, stroke: inks[i], strokeWidth: "1.8" }), _jsx(Agent, { x: x, y: 150, r: 24, ink: inks[i], p: p })] }, x))), [0, -1.6, -3.2].map((d) => (_jsx("circle", { className: motion.travel, r: "3.4", fill: ink.answer, style: { offsetPath: `path('${bus}')`, animationDelay: `${d}s` } }, d))), _jsx(Chip, { x: 474, y: 296, w: 68, label: "MCP", ink: ink.answer, p: p, filled: true }), _jsx(Chip, { x: 566, y: 296, w: 68, label: "A2A", ink: ink.second, p: p, filled: true }), _jsx(Chip, { x: 658, y: 296, w: 80, label: "POPPY", ink: ink.third, p: p, filled: true })] }));
|
|
12
|
+
} }));
|
|
13
|
+
}
|
|
14
|
+
/** Three short lines: what lives inside one vendor. */
|
|
15
|
+
function Bars3({ x, y, ink }) {
|
|
16
|
+
return (_jsxs("g", { fill: ink, opacity: "0.4", children: [_jsx("rect", { x: x, y: y, width: 56, height: 4, rx: "2" }), _jsx("rect", { x: x, y: y + 11, width: 44, height: 4, rx: "2" }), _jsx("rect", { x: x, y: y + 22, width: 50, height: 4, rx: "2" })] }));
|
|
17
|
+
}
|
|
18
|
+
export default SvgPainProtocols;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 7, Nowhere safe to run code, answered by Sandboxes & Codemode.
|
|
3
|
+
*
|
|
4
|
+
* The pain: the agent's code with nowhere to go, turned away from the
|
|
5
|
+
* laptop that closes and from the servers security keeps shut. The answer:
|
|
6
|
+
* an isolated sandbox beside the data, the code running in it, the session
|
|
7
|
+
* kept, on the provider chosen.
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
10
|
+
export declare function SvgPainSandboxes({ palette }?: {
|
|
11
|
+
palette?: ColorPalette;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export default SvgPainSandboxes;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, Bars, Cross, Label, MONO, PainFrame, Panel, wash } from './PainFrame';
|
|
3
|
+
/** A database: a cylinder. */
|
|
4
|
+
function Cylinder({ x, y, w, h, ink, fill }) {
|
|
5
|
+
const ry = w * 0.2;
|
|
6
|
+
return (_jsxs("g", { stroke: ink, strokeWidth: "1.6", children: [_jsx("path", { d: `M${x} ${y} v${h} a${w / 2} ${ry} 0 0 0 ${w} 0 v${-h}`, fill: fill }), _jsx("ellipse", { cx: x + w / 2, cy: y, rx: w / 2, ry: ry, fill: fill }), _jsx("path", { d: `M${x} ${y + h / 2} a${w / 2} ${ry} 0 0 0 ${w} 0`, fill: "none", strokeOpacity: "0.5" })] }));
|
|
7
|
+
}
|
|
8
|
+
export function SvgPainSandboxes({ palette } = {}) {
|
|
9
|
+
return (_jsx(PainFrame, { number: 7, feature: "Sandboxes & Codemode", palette: palette, title: "Nowhere safe to run code", desc: "On the left, the agent's code has nowhere to run: not on a laptop that closes, not on servers security keeps shut. On the right, the code runs in an isolated sandbox beside the data, and the session is kept.", children: ({ p, ink, motion }) => (_jsxs("g", { children: [_jsx(Agent, { x: 84, y: 110, r: 18, ink: ink.muted, p: p, dim: true }), _jsx(Panel, { x: 116, y: 88, w: 86, h: 44, ink: ink.muted, p: p }), _jsx("text", { x: 159, y: 116, fontFamily: MONO, fontSize: "15", fontWeight: "700", fill: ink.muted, textAnchor: "middle", children: '</>' }), _jsx("path", { d: "M150 134 C140 180 112 200 104 236", fill: "none", stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1.4", strokeDasharray: "3 4" }), _jsxs("g", { stroke: ink.muted, strokeOpacity: "0.7", strokeWidth: "1.4", fill: p.bgPanel, children: [_jsx("path", { d: "M64 296 l10 -14 h68 l10 14 Z", strokeLinejoin: "round" }), _jsx("path", { d: "M74 282 l12 -30 h50 l-12 30", fill: "none", strokeOpacity: "0.45", strokeDasharray: "3 3" })] }), _jsx("circle", { cx: 108, cy: 252, r: "11", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.4" }), _jsx(Cross, { x: 108, y: 252, s: 4, ink: ink.pain }), _jsx("path", { d: "M176 134 C200 180 256 186 270 214", fill: "none", stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1.4", strokeDasharray: "3 4" }), [0, 1, 2].map((i) => (_jsxs("g", { children: [_jsx("rect", { x: 240, y: 226 + i * 26, width: 92, height: 22, rx: "4", fill: p.bgPanel, stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.2" }), _jsx("circle", { cx: 252, cy: 237 + i * 26, r: "2.4", fill: ink.muted, opacity: "0.6" }), _jsx("rect", { x: 264, y: 235 + i * 26, width: 40, height: 4, rx: "2", fill: ink.muted, opacity: "0.4" })] }, i))), _jsxs("g", { transform: "translate(332 222)", children: [_jsx("rect", { x: -12, y: -4, width: "24", height: "20", rx: "3", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }), _jsx("path", { d: "M-7 -4 v-5 a7 7 0 0 1 14 0 v5", fill: "none", stroke: ink.pain, strokeWidth: "1.6" }), _jsx("circle", { cx: 0, cy: 6, r: "2.2", fill: ink.pain })] }), _jsx("rect", { x: 446, y: 92, width: 210, height: 216, rx: "16", fill: "none", stroke: ink.answer, strokeOpacity: "0.7", strokeWidth: "1.6", strokeDasharray: "6 5", className: motion.march }), _jsx("rect", { x: 446, y: 92, width: 210, height: 216, rx: "16", fill: ink.answer, fillOpacity: wash(p, 0.05) }), _jsx(Label, { x: 462, y: 84, ink: ink.answer, anchor: "start", size: 8.5, children: "ISOLATED" }), _jsx(Panel, { x: 466, y: 112, w: 170, h: 136, ink: ink.answer, p: p }), [0, 1, 2, 3].map((i) => (_jsxs("g", { children: [_jsx("text", { x: 478, y: 136 + i * 26, fontFamily: MONO, fontSize: "9", fill: i === 3 ? ink.answer : p.textMuted, children: i === 3 ? '▸' : `[${i + 1}]` }), i < 3 ? _jsx(Bars, { x: 502, y: 130 + i * 26, widths: [[96, 72, 112][i]], ink: [ink.second, ink.third, ink.fourth][i], h: 5, opacity: 0.75 }) : null] }, i))), _jsx("rect", { x: 496, y: 208, width: 2, height: 14, fill: ink.answer, className: motion.breathe }), _jsx(Agent, { x: 512, y: 276, r: 16, ink: ink.answer, p: p }), _jsx("path", { d: "M560 276 c0 -10 14 -10 20 0 c6 10 20 10 20 0 c0 -10 -14 -10 -20 0 c-6 10 -20 10 -20 0 Z", fill: "none", stroke: ink.second, strokeWidth: "1.6" }), _jsx("line", { x1: 656, y1: 200, x2: 686, y2: 200, stroke: ink.second, strokeOpacity: "0.7", strokeWidth: "1.6" }), _jsx("circle", { className: motion.travel, r: "3", fill: ink.second, style: { offsetPath: "path('M686 200 L640 200')" } }), _jsx(Cylinder, { x: 688, y: 166, w: 64, h: 70, ink: ink.second, fill: p.bgPanel }), _jsx(Label, { x: 720, y: 274, ink: ink.second, children: "DATA" })] })) }));
|
|
10
|
+
}
|
|
11
|
+
export default SvgPainSandboxes;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 12, Blocked by security, answered by Security & Trust.
|
|
3
|
+
*
|
|
4
|
+
* The pain: the agent kept outside, a locked wall between it and the
|
|
5
|
+
* company's data. The answer: the agent let in with an identity of its own,
|
|
6
|
+
* scoped to the one object it may reach, its action approved, and every run
|
|
7
|
+
* written to an audit log.
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
10
|
+
export declare function SvgPainSecurity({ palette }?: {
|
|
11
|
+
palette?: ColorPalette;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export default SvgPainSecurity;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, Check, Label, PainFrame, Panel, wash } from './PainFrame';
|
|
3
|
+
/** A database: a cylinder. */
|
|
4
|
+
function Cylinder({ x, y, w, h, ink, fill, dashed = false }) {
|
|
5
|
+
const ry = w * 0.2;
|
|
6
|
+
return (_jsxs("g", { stroke: ink, strokeWidth: "1.6", strokeDasharray: dashed ? '4 3' : undefined, children: [_jsx("path", { d: `M${x} ${y} v${h} a${w / 2} ${ry} 0 0 0 ${w} 0 v${-h}`, fill: fill }), _jsx("ellipse", { cx: x + w / 2, cy: y, rx: w / 2, ry: ry, fill: fill })] }));
|
|
7
|
+
}
|
|
8
|
+
/** A padlock, closed. */
|
|
9
|
+
function Padlock({ x, y, ink, fill, s = 1 }) {
|
|
10
|
+
return (_jsxs("g", { transform: `translate(${x} ${y}) scale(${s})`, children: [_jsx("path", { d: "M-9 -2 v-8 a9 9 0 0 1 18 0 v8", fill: "none", stroke: ink, strokeWidth: "2" }), _jsx("rect", { x: -14, y: -2, width: "28", height: "22", rx: "4", fill: fill, stroke: ink, strokeWidth: "2" }), _jsx("circle", { cx: 0, cy: 7, r: "2.6", fill: ink }), _jsx("rect", { x: -1, y: 8, width: "2", height: "6", fill: ink })] }));
|
|
11
|
+
}
|
|
12
|
+
export function SvgPainSecurity({ palette } = {}) {
|
|
13
|
+
return (_jsx(PainFrame, { number: 12, feature: "Security & Trust", palette: palette, title: "Blocked by security", desc: "On the left, the agent is kept outside a locked wall, away from the company's data. On the right, the agent is let in with its own identity, scoped to the one object it may reach, its action approved, and every run written to an audit log.", children: ({ p, ink, motion }) => {
|
|
14
|
+
const approveInk = ink.ask;
|
|
15
|
+
const reach = 'M532 176 C580 176 596 138 630 138 L702 138';
|
|
16
|
+
return (_jsxs("g", { children: [_jsx(Agent, { x: 92, y: 208, r: 26, ink: ink.muted, p: p, dim: true }), _jsx("path", { d: "M124 208 H186", stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1.4", strokeDasharray: "3 4" }), Array.from({ length: 12 }, (_, r) => (_jsx("rect", { x: r % 2 ? 196 : 200, y: 76 + r * 22, width: r % 2 ? 36 : 28, height: "18", rx: "2", fill: ink.muted, fillOpacity: "0.16", stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1" }, r))), _jsx(Padlock, { x: 214, y: 204, ink: ink.pain, fill: p.bgPanel, s: 1.15 }), _jsx(Cylinder, { x: 268, y: 150, w: 76, h: 90, ink: ink.muted, fill: p.bgPanel, dashed: true }), [0, 1, 2].map((i) => (_jsx("rect", { x: 284, y: 180 + i * 18, width: 44, height: 6, rx: "3", fill: ink.muted, opacity: "0.35" }, i))), _jsx("rect", { x: 444, y: 96, width: 130, height: 176, rx: "14", fill: ink.answer, fillOpacity: wash(p, 0.05) }), _jsx("rect", { x: 444, y: 96, width: 130, height: 176, rx: "14", fill: "none", stroke: ink.answer, strokeOpacity: "0.7", strokeWidth: "1.6", strokeDasharray: "6 5", className: motion.march }), _jsx(Label, { x: 458, y: 88, ink: ink.answer, anchor: "start", size: 8.5, children: "SCOPE" }), _jsx(Agent, { x: 506, y: 176, r: 26, ink: ink.answer, p: p }), _jsxs("g", { transform: "translate(528 206)", children: [_jsx("rect", { x: -10, y: -7, width: "22", height: "15", rx: "3", fill: p.bgPanel, stroke: ink.second, strokeWidth: "1.4" }), _jsx("circle", { cx: -3, cy: 0.5, r: "2.6", fill: ink.second }), _jsx("rect", { x: 2, y: -2, width: "7", height: "2", rx: "1", fill: ink.second }), _jsx("rect", { x: 2, y: 2, width: "5", height: "2", rx: "1", fill: ink.second })] }), _jsx("path", { d: reach, fill: "none", stroke: ink.answer, strokeOpacity: "0.65", strokeWidth: "1.6" }), _jsx("circle", { className: motion.travel, r: "3.2", fill: ink.answer, style: { offsetPath: `path('${reach}')` } }), _jsx("rect", { x: 651, y: 129, width: "18", height: "18", fill: p.bgPanel, stroke: approveInk, strokeWidth: "1.6", transform: "rotate(45 660 138)" }), _jsx(Check, { x: 660, y: 138, s: 4, ink: approveInk, width: 1.6 }), _jsx(Panel, { x: 690, y: 92, w: 76, h: 118, ink: ink.second, p: p }), [0, 1, 2, 3].map((i) => (_jsx("rect", { x: 702, y: 104 + i * 25, width: 52, height: 17, rx: "3", fill: i === 1 ? ink.answer : p.textMuted, fillOpacity: i === 1 ? 0.3 : 0.12, stroke: i === 1 ? ink.answer : 'none', strokeWidth: "1.4" }, i))), _jsx(Panel, { x: 600, y: 238, w: 166, h: 98, ink: ink.third, p: p }), _jsx(Label, { x: 612, y: 256, ink: ink.third, anchor: "start", size: 8.5, children: "AUDIT" }), [0, 1, 2].map((i) => (_jsxs("g", { children: [_jsx(Check, { x: 620, y: 276 + i * 18, s: 4, ink: ink.third, width: 1.6 }), _jsx("rect", { x: 632, y: 273 + i * 18, width: [96, 80, 110][i], height: 5, rx: "2.5", fill: p.textMuted, opacity: "0.5" })] }, i))), _jsx("path", { d: "M506 272 V300 H600", fill: "none", stroke: ink.third, strokeOpacity: "0.5", strokeWidth: "1.4", strokeDasharray: "3 4" })] }));
|
|
17
|
+
} }));
|
|
18
|
+
}
|
|
19
|
+
export default SvgPainSecurity;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain 1, An agent takes months to build, answered by the Studio.
|
|
3
|
+
*
|
|
4
|
+
* The pain: a year of months on a calendar, nine of them gone, and the agent
|
|
5
|
+
* at the end of the road still only an outline. The answer: one spec, and
|
|
6
|
+
* from it an agent at work, tested, priced and shipped.
|
|
7
|
+
*/
|
|
8
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
9
|
+
export declare function SvgPainStudio({ palette }?: {
|
|
10
|
+
palette?: ColorPalette;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
export default SvgPainStudio;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Agent, Bars, Check, Chip, Label, PainFrame, Panel, SANS } from './PainFrame';
|
|
3
|
+
export function SvgPainStudio({ palette } = {}) {
|
|
4
|
+
return (_jsx(PainFrame, { number: 1, feature: "The Studio", palette: palette, title: "An agent takes months to build", desc: "On the left, months go by on a calendar while the agent is still an outline. On the right, the Studio turns one spec into an agent at work, tested, priced and shipped.", children: ({ p, ink, motion }) => (_jsxs("g", { children: [_jsx(Panel, { x: 52, y: 78, w: 196, h: 150, ink: ink.muted, p: p }), _jsx("path", { d: "M52 86 a8 8 0 0 1 8 -8 h180 a8 8 0 0 1 8 8 v12 h-196 Z", fill: p.bgAlt }), [70, 228].map((x) => (_jsx("rect", { x: x - 2, y: 70, width: "4", height: "16", rx: "2", fill: ink.muted, opacity: "0.6" }, x))), Array.from({ length: 12 }, (_, i) => {
|
|
5
|
+
const cx = 64 + (i % 4) * 46;
|
|
6
|
+
const cy = 108 + Math.floor(i / 4) * 38;
|
|
7
|
+
const gone = i < 9;
|
|
8
|
+
return (_jsxs("g", { children: [_jsx("rect", { x: cx, y: cy, width: "36", height: "28", rx: "4", fill: gone ? ink.muted : 'none', fillOpacity: gone ? 0.16 : 0, stroke: ink.muted, strokeOpacity: "0.45", strokeWidth: "1" }), gone ? (_jsx("line", { x1: cx + 8, y1: cy + 22, x2: cx + 28, y2: cy + 6, stroke: ink.pain, strokeOpacity: "0.7", strokeWidth: "1.4", strokeLinecap: "round" })) : null] }, i));
|
|
9
|
+
}), _jsx(Label, { x: 150, y: 250, ink: ink.pain, children: "MONTHS" }), _jsx("path", { d: "M150 262 C150 300 90 290 96 320 C102 348 220 340 250 316 C276 296 270 282 294 282", fill: "none", stroke: ink.muted, strokeOpacity: "0.55", strokeWidth: "1.4", strokeDasharray: "3 5", strokeLinecap: "round" }), _jsx(Agent, { x: 322, y: 282, r: 26, ink: ink.muted, p: p, dim: true }), _jsx("text", { x: 322, y: 244, fontFamily: SANS, fontSize: "20", fontWeight: "700", fill: ink.pain, textAnchor: "middle", children: "?" }), _jsx(Panel, { x: 444, y: 92, w: 132, h: 168, ink: ink.answer, p: p }), _jsx("path", { d: "M444 100 a8 8 0 0 1 8 -8 h116 a8 8 0 0 1 8 8 v12 h-132 Z", fill: p.bgAlt }), [ink.answer, ink.second, ink.third].map((c, i) => (_jsx("circle", { cx: 456 + i * 10, cy: 102, r: "2.6", fill: c, opacity: "0.8" }, i))), _jsx(Label, { x: 566, y: 105, ink: p.textMuted, anchor: "end", size: 8, children: "SPEC" }), _jsx(Bars, { x: 458, y: 126, widths: [52, 70], ink: ink.answer, gap: 12, opacity: 0.75 }), _jsx(Bars, { x: 472, y: 150, widths: [64, 48, 80], ink: ink.second, gap: 12, opacity: 0.75 }), _jsx(Bars, { x: 458, y: 190, widths: [44], ink: ink.answer, opacity: 0.75 }), _jsx(Bars, { x: 472, y: 202, widths: [72, 56, 38], ink: ink.third, gap: 12, opacity: 0.75 }), _jsx("path", { d: "M578 176 C620 176 628 160 660 160", fill: "none", stroke: ink.answer, strokeOpacity: "0.6", strokeWidth: "1.6", strokeDasharray: "5 4", className: motion.march }), _jsx("circle", { className: motion.travel, r: "3.4", fill: ink.answer, style: { offsetPath: "path('M578 176 C620 176 628 160 660 160')" } }), _jsx(Agent, { x: 694, y: 160, r: 32, ink: ink.answer, p: p }), [
|
|
10
|
+
{ label: 'TEST', c: ink.answer, x: 474 },
|
|
11
|
+
{ label: 'PRICE', c: ink.second, x: 572 },
|
|
12
|
+
{ label: 'SHIP', c: ink.third, x: 670 },
|
|
13
|
+
].map((s, i) => (_jsxs("g", { children: [_jsx(Chip, { x: s.x, y: 300, w: 78, label: s.label, ink: s.c, p: p, filled: true }), _jsx("circle", { cx: s.x + 39, cy: 278, r: "9", fill: p.bgPanel, stroke: s.c, strokeWidth: "1.4" }), _jsx(Check, { x: s.x + 39, y: 278, s: 4.2, ink: s.c, width: 1.8 }), i < 2 ? _jsx("line", { x1: s.x + 50, y1: 278, x2: s.x + 87, y2: 278, stroke: s.c, strokeOpacity: "0.5", strokeWidth: "1.2" }) : null] }, s.label))), _jsx("line", { x1: 694, y1: 196, x2: 709, y2: 268, stroke: ink.answer, strokeOpacity: "0.35", strokeWidth: "1.2", strokeDasharray: "2 3" })] })) }));
|
|
14
|
+
}
|
|
15
|
+
export default SvgPainStudio;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The twelve customer pains, one drawing each, in the order the decks and the
|
|
3
|
+
* Features menu of datalayer.ai read them: the pain on the left, the answer
|
|
4
|
+
* the feature brings on the right. They illustrate the blog posts and the
|
|
5
|
+
* feature pages; the slug is the feature page's, at
|
|
6
|
+
* `https://datalayer.ai/features/<slug>`.
|
|
7
|
+
*/
|
|
8
|
+
import type { ComponentType } from 'react';
|
|
9
|
+
import type { ColorPalette } from '@datalayer/primer-addons';
|
|
10
|
+
import { SvgPainStudio } from './SvgPainStudio';
|
|
11
|
+
import { SvgPainAgentTeams } from './SvgPainAgentTeams';
|
|
12
|
+
import { SvgPainChannels } from './SvgPainChannels';
|
|
13
|
+
import { SvgPainAgenticUi } from './SvgPainAgenticUi';
|
|
14
|
+
import { SvgPainObservability } from './SvgPainObservability';
|
|
15
|
+
import { SvgPainPlugins } from './SvgPainPlugins';
|
|
16
|
+
import { SvgPainSandboxes } from './SvgPainSandboxes';
|
|
17
|
+
import { SvgPainBenchmarks } from './SvgPainBenchmarks';
|
|
18
|
+
import { SvgPainLibrary } from './SvgPainLibrary';
|
|
19
|
+
import { SvgPainProtocols } from './SvgPainProtocols';
|
|
20
|
+
import { SvgPainPolicies } from './SvgPainPolicies';
|
|
21
|
+
import { SvgPainSecurity } from './SvgPainSecurity';
|
|
22
|
+
export { SvgPainStudio, SvgPainAgentTeams, SvgPainChannels, SvgPainAgenticUi, SvgPainObservability, SvgPainPlugins, SvgPainSandboxes, SvgPainBenchmarks, SvgPainLibrary, SvgPainProtocols, SvgPainPolicies, SvgPainSecurity, };
|
|
23
|
+
export type PainSvg = {
|
|
24
|
+
/** Its place among the twelve, 1 to 12. */
|
|
25
|
+
id: number;
|
|
26
|
+
/** The feature page's slug on datalayer.ai. */
|
|
27
|
+
slug: string;
|
|
28
|
+
/** The pain, as the feature page names it. */
|
|
29
|
+
pain: string;
|
|
30
|
+
/** The feature that answers it. */
|
|
31
|
+
feature: string;
|
|
32
|
+
Component: ComponentType<{
|
|
33
|
+
palette?: ColorPalette;
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
36
|
+
export declare const PAIN_SVGS: readonly PainSvg[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2026 Datalayer, Inc.
|
|
3
|
+
*
|
|
4
|
+
* CC BY 4.0 License
|
|
5
|
+
*/
|
|
6
|
+
import { SvgPainStudio } from './SvgPainStudio';
|
|
7
|
+
import { SvgPainAgentTeams } from './SvgPainAgentTeams';
|
|
8
|
+
import { SvgPainChannels } from './SvgPainChannels';
|
|
9
|
+
import { SvgPainAgenticUi } from './SvgPainAgenticUi';
|
|
10
|
+
import { SvgPainObservability } from './SvgPainObservability';
|
|
11
|
+
import { SvgPainPlugins } from './SvgPainPlugins';
|
|
12
|
+
import { SvgPainSandboxes } from './SvgPainSandboxes';
|
|
13
|
+
import { SvgPainBenchmarks } from './SvgPainBenchmarks';
|
|
14
|
+
import { SvgPainLibrary } from './SvgPainLibrary';
|
|
15
|
+
import { SvgPainProtocols } from './SvgPainProtocols';
|
|
16
|
+
import { SvgPainPolicies } from './SvgPainPolicies';
|
|
17
|
+
import { SvgPainSecurity } from './SvgPainSecurity';
|
|
18
|
+
export { SvgPainStudio, SvgPainAgentTeams, SvgPainChannels, SvgPainAgenticUi, SvgPainObservability, SvgPainPlugins, SvgPainSandboxes, SvgPainBenchmarks, SvgPainLibrary, SvgPainProtocols, SvgPainPolicies, SvgPainSecurity, };
|
|
19
|
+
export const PAIN_SVGS = [
|
|
20
|
+
{ id: 1, slug: 'studio', pain: 'An agent takes months to build', feature: 'The Studio', Component: SvgPainStudio },
|
|
21
|
+
{ id: 2, slug: 'agent-teams', pain: 'The work stops when the chat does', feature: 'Agent Teams', Component: SvgPainAgentTeams },
|
|
22
|
+
{ id: 3, slug: 'channels', pain: 'One more bot for every channel', feature: 'Channels', Component: SvgPainChannels },
|
|
23
|
+
{ id: 4, slug: 'agentic-ui', pain: 'Answers nobody can act on', feature: 'Agentic UI', Component: SvgPainAgenticUi },
|
|
24
|
+
{ id: 5, slug: 'observability', pain: 'Nobody sees what the agent did', feature: 'Observability', Component: SvgPainObservability },
|
|
25
|
+
{ id: 6, slug: 'plugins', pain: 'The one step the product lacks', feature: 'Plugins', Component: SvgPainPlugins },
|
|
26
|
+
{ id: 7, slug: 'codemode', pain: 'Nowhere safe to run code', feature: 'Sandboxes & Codemode', Component: SvgPainSandboxes },
|
|
27
|
+
{ id: 8, slug: 'benchmarks', pain: 'Better or worse? Nobody knows', feature: 'Benchmarks & Evals', Component: SvgPainBenchmarks },
|
|
28
|
+
{ id: 9, slug: 'library', pain: 'A result nobody can check', feature: 'Library & Artifacts', Component: SvgPainLibrary },
|
|
29
|
+
{ id: 10, slug: 'protocols', pain: 'Agents that cannot work together', feature: 'Open Protocols', Component: SvgPainProtocols },
|
|
30
|
+
{ id: 11, slug: 'policies', pain: 'Rules nobody enforces', feature: 'Policies & Rules', Component: SvgPainPolicies },
|
|
31
|
+
{ id: 12, slug: 'trust', pain: 'Blocked by security', feature: 'Security & Trust', Component: SvgPainSecurity },
|
|
32
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datalayer/design",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"license": "CC-BY-4.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"landing:app": "npm run copy:svg-assets && tsc --watch",
|
|
26
26
|
"preview": "vite preview",
|
|
27
27
|
"start": "vite",
|
|
28
|
+
"test": "vitest run",
|
|
28
29
|
"watch:lib": "npm run copy:svg-assets && tsc -w"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"rimraf": "^6.1.3",
|
|
56
57
|
"svgo": "^1.3.2",
|
|
57
58
|
"typescript": "5.9.3",
|
|
59
|
+
"vitest": "^3.2.7",
|
|
58
60
|
"vite": "7.3.6",
|
|
59
61
|
"vite-plugin-svgr": "^4.3.0"
|
|
60
62
|
}
|