@spunto/brand-kit 0.12.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,334 @@
1
+ "use client"
2
+
3
+ import type { ReactNode } from "react"
4
+ import { FONT, hexAlpha } from "../../../theme"
5
+ import { AppWindow, CodeCard, Cursor, Float, FAINT, Icon, INK, LINE, MUTED, Stage, u, useStage, WASH, type IconId, type StageColors } from "../stage"
6
+ import { ATTRS, CAPTION, LOGS, PICKED, SELF, SPANS, TOTAL, UI, type Kind, type SampleSpan } from "./sample"
7
+
8
+ /* A trace, in Spunto Traces: a sandbox's creation that failed. The waterfall unrolls from traefik to the API and to the
9
+ runtime, the self time by service says where the time went, a click on the span in error opens its attributes (the
10
+ 503), its logs arrive under the waterfall, and the line at the bottom says what the view cost — Parquet files, bytes,
11
+ milliseconds; beside it, the span of that very read, which the app sends about itself.
12
+
13
+ Drawn from spuntodotnet/traces: web/src/app/Trace.tsx (the page: header, stats, ServiceBreakdown, SpanWaterfall of
14
+ the design system, TraceLogs, QueryCost), OrgShell.tsx (the sidebar), server/telemetry.ts and query.ts (the read's
15
+ span and its traces.query.* attributes), scripts/demo.mjs (the trace and its logs); the capture docs/screens/trace.png. */
16
+
17
+ type Lang = "en" | "fr"
18
+
19
+ const H = 560
20
+ const WIN = { x: 24, y: 30, w: 872 }
21
+ const SIDEBAR = 150
22
+ const MAIN_X = SIDEBAR + 22
23
+ const MAIN_W = WIN.w - MAIN_X - 22
24
+ /* 0 the page · 1 the waterfall unrolls · 2 the self time · 3 to the runtime's span · 4 click: its attributes · 5 its
25
+ logs · 6 what the view cost (the read's own span takes the attributes' place) · 7 fade · 8 rewind */
26
+ const LENGTHS = [700, 1700, 1300, 900, 1600, 1300, 3600, 450, 120] as const
27
+ /** Without motion: the span picked, its logs, the cost and the read's own span — the whole page on one screen. */
28
+ const STILL = 6
29
+
30
+ const RED = "#dc2626"
31
+ const KIND: Record<Kind, string> = { http: "#34c88a", db: "#1599c4", internal: "#4651c9" }
32
+ /** The breakdown's categorical colours, in the order of the services' self time. */
33
+ const SERIES = ["#e9692c", "#2a78d6", "#34c88a"]
34
+
35
+ /* The waterfall's geometry, in the main column. */
36
+ const WF = { y: 158, head: 18, cols: 17, row: 18.5 }
37
+ const NAME_W = 292
38
+ const TL = { x: NAME_W + 8, w: MAIN_W - NAME_W - 8 - 46 }
39
+ const rowY = (i: number) => WF.y + WF.head + WF.cols + i * WF.row
40
+ const LOGS_Y = rowY(SPANS.length) + 12
41
+
42
+ /** Where the runtime's span is, in the window. */
43
+ const AT = { x: WIN.x + MAIN_X + 150, y: WIN.y + 26 + rowY(PICKED) + 10 }
44
+
45
+ /** The app's logo (web/src/app/Logo.tsx): a pulse line on the field, in the signal. */
46
+ function PulseLogo({ size, colors }: { size: number; colors: StageColors }) {
47
+ return (
48
+ <svg viewBox="0 0 32 32" style={{ display: "block", flexShrink: 0, width: u(size), height: u(size) }}>
49
+ <rect width="32" height="32" rx="8" fill={colors.field} />
50
+ <path d="M7 22h5l3-11 3 14 3-8h4" fill="none" stroke={colors.signal} strokeWidth="2.6" strokeLinecap="round" strokeLinejoin="round" />
51
+ </svg>
52
+ )
53
+ }
54
+
55
+ /** A service's logo, as the app guesses it (server/icons.ts): Traefik's, or Node's for the services of the demo. */
56
+ function ServiceIcon({ service, size = 10 }: { service: SampleSpan["service"]; size?: number }) {
57
+ const traefik = service === "traefik"
58
+ return (
59
+ <svg viewBox="0 0 24 24" fill="none" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" style={{ display: "block", flexShrink: 0, width: u(size), height: u(size) }}>
60
+ {traefik ? (
61
+ <path d="M3 7l9-4l9 4l-9 4zM3 12l9 4l9-4M3 17l9 4l9-4" stroke="#24a1c1" />
62
+ ) : (
63
+ <>
64
+ <path d="M12 2.5l8.5 4.9v9.2L12 21.5l-8.5-4.9V7.4z" stroke="#5fa04e" />
65
+ <path d="M10 9.5v4.2c0 1-1.6 1.2-2 .3M16 10c-.4-.6-2.6-.8-2.6.5c0 1.6 2.8.8 2.8 2.5c0 1.3-2.3 1.2-2.9.4" stroke="#5fa04e" strokeWidth={1.4} />
66
+ </>
67
+ )}
68
+ </svg>
69
+ )
70
+ }
71
+
72
+ function Panel({ y, h, children }: { y: number; h: number; children: ReactNode }) {
73
+ return <div style={{ position: "absolute", left: 0, right: 0, top: u(y), height: u(h), border: `1px solid ${LINE}`, borderRadius: u(6), background: "#ffffff", overflow: "hidden" }}>{children}</div>
74
+ }
75
+
76
+ function Sidebar({ colors }: { colors: StageColors }) {
77
+ return (
78
+ <div style={{ position: "absolute", left: 0, top: 0, bottom: 0, width: u(SIDEBAR), background: WASH, borderRight: `1px solid ${LINE}` }}>
79
+ <div style={{ display: "flex", alignItems: "center", gap: u(7), margin: `${u(12)} ${u(11)} 0` }}>
80
+ <PulseLogo size={19} colors={colors} />
81
+ <div>
82
+ <div style={{ fontFamily: FONT.display, fontSize: u(11), lineHeight: 1 }}>{UI.brand}</div>
83
+ <div style={{ marginTop: u(3), fontFamily: FONT.mono, fontSize: u(6.6), letterSpacing: "0.18em", textTransform: "uppercase", color: MUTED, lineHeight: 1 }}>{UI.product}</div>
84
+ </div>
85
+ </div>
86
+ <div style={{ display: "flex", alignItems: "center", gap: u(6), height: u(26), margin: `${u(10)} ${u(8)} 0`, padding: `0 ${u(7)}`, border: `1px solid ${LINE}`, borderRadius: u(5), background: hexAlpha(colors.tone, 0.06) }}>
87
+ <span style={{ display: "flex", alignItems: "center", justifyContent: "center", width: u(15), height: u(15), borderRadius: u(3), background: hexAlpha(colors.tone, 0.14), color: colors.tone, fontFamily: FONT.display, fontSize: u(8.6) }}>{UI.org[0]}</span>
88
+ <div style={{ lineHeight: 1.05 }}>
89
+ <div style={{ fontSize: u(9.4), fontWeight: 600 }}>{UI.org}</div>
90
+ <div style={{ fontFamily: FONT.mono, fontSize: u(6.4), letterSpacing: "0.14em", textTransform: "uppercase", color: MUTED }}>{UI.role}</div>
91
+ </div>
92
+ <Icon id="chevron" size={10} color={MUTED} style={{ marginLeft: "auto" }} />
93
+ </div>
94
+ {UI.nav.map((group) => (
95
+ <div key={group.section} style={{ margin: `${u(9)} ${u(8)} 0` }}>
96
+ <div style={{ padding: `0 ${u(6)} ${u(2)}`, fontSize: u(8), color: MUTED }}>{group.section}</div>
97
+ {group.items.map((label) => {
98
+ const on = label === "Trace"
99
+ return (
100
+ <div key={label} style={{ display: "flex", alignItems: "center", gap: u(6), height: u(19), padding: `0 ${u(6)}`, borderRadius: u(4), background: on ? hexAlpha(colors.tone, 0.12) : "transparent", color: on ? colors.tone : INK, fontSize: u(9.4), fontWeight: on ? 550 : 450, whiteSpace: "nowrap" }}>
101
+ <span style={{ width: u(4), height: u(4), borderRadius: "50%", background: on ? colors.tone : FAINT, opacity: on ? 1 : 0.6 }} />
102
+ {label}
103
+ </div>
104
+ )
105
+ })}
106
+ </div>
107
+ ))}
108
+ </div>
109
+ )
110
+ }
111
+
112
+ function Header() {
113
+ return (
114
+ <>
115
+ <div style={{ position: "absolute", left: 0, top: u(12), display: "flex", alignItems: "center", gap: u(4), fontSize: u(9), color: MUTED }}>
116
+ <span style={{ fontSize: u(10) }}>←</span>
117
+ {UI.back}
118
+ </div>
119
+ <div style={{ position: "absolute", left: 0, top: u(30), display: "flex", alignItems: "center", gap: u(5), fontSize: u(8.6), color: MUTED, whiteSpace: "nowrap" }}>
120
+ <ServiceIcon service="traefik" size={9} />
121
+ traefik · {UI.when}
122
+ <span style={{ marginLeft: u(3), padding: `${u(1)} ${u(6)}`, borderRadius: u(8), background: hexAlpha(RED, 0.1), color: RED, fontWeight: 550 }}>
123
+ {SPANS.filter((s) => s.error).length} spans en erreur
124
+ </span>
125
+ </div>
126
+ <div style={{ position: "absolute", left: 0, top: u(46), fontFamily: FONT.mono, fontSize: u(16), lineHeight: 1 }}>POST</div>
127
+ <div style={{ position: "absolute", left: 0, top: u(68), display: "flex", alignItems: "center", gap: u(4), fontFamily: FONT.mono, fontSize: u(8.2), color: MUTED }}>
128
+ {UI.traceId}
129
+ </div>
130
+ <div style={{ position: "absolute", right: 0, top: u(14), display: "flex", gap: u(6) }}>
131
+ {UI.stats.map(([label, value]) => (
132
+ <div key={label} style={{ width: u(66), padding: `${u(6)} ${u(8)}`, border: `1px solid ${LINE}`, borderRadius: u(5), background: "#ffffff" }}>
133
+ <div style={{ fontFamily: FONT.mono, fontSize: u(6.4), letterSpacing: "0.16em", textTransform: "uppercase", color: MUTED }}>{label}</div>
134
+ <div style={{ marginTop: u(4), fontFamily: FONT.display, fontSize: u(15), lineHeight: 1 }}>{value}</div>
135
+ </div>
136
+ ))}
137
+ </div>
138
+ </>
139
+ )
140
+ }
141
+
142
+ function SelfTime({ shown }: { shown: boolean }) {
143
+ return (
144
+ <Panel y={90} h={60}>
145
+ <div style={{ padding: `${u(7)} ${u(12)} 0`, fontSize: u(9.8), fontWeight: 550 }}>{UI.selfTitle}</div>
146
+ <div style={{ padding: `${u(1)} ${u(12)} 0`, fontSize: u(7.8), color: MUTED, whiteSpace: "nowrap" }}>{UI.selfSub}</div>
147
+ <div style={{ display: "flex", gap: u(1.5), margin: `${u(5)} ${u(12)} 0`, height: u(6) }}>
148
+ {SELF.map((s, i) => (
149
+ <span
150
+ key={s.service}
151
+ style={{
152
+ flex: shown ? `${Math.max(s.share, 0.004)} 0 0` : "0 0 0",
153
+ minWidth: shown ? u(2) : 0,
154
+ borderRadius: u(1.5),
155
+ background: SERIES[i],
156
+ transition: `flex 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) ${i * 0.08}s`,
157
+ }}
158
+ />
159
+ ))}
160
+ </div>
161
+ <div style={{ display: "flex", gap: u(12), margin: `${u(4)} ${u(12)} 0`, fontSize: u(8), whiteSpace: "nowrap", opacity: shown ? 1 : 0, transition: "opacity 0.4s ease 0.4s" }}>
162
+ {SELF.map((s, i) => (
163
+ <span key={s.service} style={{ display: "inline-flex", alignItems: "center", gap: u(4) }}>
164
+ <span style={{ width: u(6), height: u(6), borderRadius: u(1.5), background: SERIES[i] }} />
165
+ {s.service}
166
+ <span style={{ color: MUTED }}>{s.label}</span>
167
+ </span>
168
+ ))}
169
+ </div>
170
+ </Panel>
171
+ )
172
+ }
173
+
174
+ function Waterfall({ grown, picked }: { grown: boolean; picked: boolean }) {
175
+ const ticks = [0, 0.25, 0.5, 0.75, 1]
176
+ const tick = (t: number) => (t === 0 ? "0.00ms" : `${((TOTAL * t) / 1000).toFixed(2)}s`)
177
+ return (
178
+ <Panel y={WF.y} h={WF.head + WF.cols + SPANS.length * WF.row + 16}>
179
+ <div style={{ display: "flex", alignItems: "center", gap: u(6), height: u(WF.head), padding: `0 ${u(8)}`, borderBottom: `1px solid ${LINE}`, fontFamily: FONT.mono, fontSize: u(7.6), color: MUTED, whiteSpace: "nowrap" }}>
180
+ {UI.traceId} · {SPANS.length} spans · 2.41s
181
+ <span style={{ marginLeft: "auto", fontFamily: FONT.sans }}>Collapse all · Expand all</span>
182
+ </div>
183
+ <div style={{ position: "relative", height: u(WF.cols), background: WASH, borderBottom: `1px solid ${LINE}`, fontFamily: FONT.mono, fontSize: u(6.8), color: MUTED }}>
184
+ <span style={{ position: "absolute", left: u(10), top: u(5), letterSpacing: "0.1em", textTransform: "uppercase" }}>{UI.span}</span>
185
+ {ticks.map((t) => (
186
+ <span key={t} style={{ position: "absolute", left: `calc(${u(TL.x)} + ${u(TL.w)} * ${t})`, top: u(5), transform: t === 1 ? "translateX(-100%)" : "none" }}>{tick(t)}</span>
187
+ ))}
188
+ <span style={{ position: "absolute", right: u(8), top: u(5), letterSpacing: "0.1em", textTransform: "uppercase" }}>{UI.duration}</span>
189
+ </div>
190
+ {SPANS.map((s, i) => {
191
+ const on = picked && i === PICKED
192
+ const left = (s.start / TOTAL) * TL.w
193
+ const width = Math.max(2, ((s.end - s.start) / TOTAL) * TL.w)
194
+ const dur = s.end - s.start
195
+ return (
196
+ <div key={i} style={{ position: "absolute", left: 0, right: 0, top: u(WF.head + WF.cols + i * WF.row), height: u(WF.row), borderBottom: `1px solid ${hexAlpha(LINE, 0.6)}`, background: on ? hexAlpha("#2a78d6", 0.08) : "transparent", boxShadow: on ? `inset ${u(2)} 0 0 #2a78d6` : "none", transition: "background 0.3s ease" }}>
197
+ <div style={{ position: "absolute", left: u(8 + s.depth * 9), top: 0, bottom: 0, display: "flex", alignItems: "center", gap: u(4), fontFamily: FONT.mono, fontSize: u(8.4), whiteSpace: "nowrap" }}>
198
+ <span style={{ width: u(5), color: FAINT, fontSize: u(6.5) }}>{i < SPANS.length - 1 && SPANS[i + 1].depth > s.depth ? "⌄" : ""}</span>
199
+ {s.error && <span style={{ width: u(4), height: u(4), borderRadius: "50%", background: RED }} />}
200
+ <span style={{ width: u(2.5), height: u(9), borderRadius: u(1), background: s.error ? RED : KIND[s.kind] }} />
201
+ <ServiceIcon service={s.service} size={9} />
202
+ {s.name}
203
+ </div>
204
+ <span
205
+ style={{
206
+ position: "absolute",
207
+ left: u(TL.x + left),
208
+ top: u(5.5),
209
+ height: u(7),
210
+ width: grown ? u(width) : 0,
211
+ borderRadius: u(1.5),
212
+ background: s.error ? RED : KIND[s.kind],
213
+ transition: grown ? `width 0.55s cubic-bezier(0.3, 0.7, 0.2, 1) ${i * 0.09}s` : "none",
214
+ }}
215
+ />
216
+ <span style={{ position: "absolute", right: u(8), top: u(4), fontFamily: FONT.mono, fontSize: u(7.8), color: MUTED }}>{dur >= 1000 ? `${(dur / 1000).toFixed(2)}s` : `${Math.max(1, Math.round(dur))}ms`}</span>
217
+ </div>
218
+ )
219
+ })}
220
+ <div style={{ position: "absolute", left: 0, right: 0, bottom: u(4), display: "flex", justifyContent: "center", gap: u(6), fontSize: u(7.4), color: MUTED, whiteSpace: "nowrap" }}>
221
+ {(["http", "db"] as Kind[]).map((k) => (
222
+ <span key={k} style={{ display: "inline-flex", alignItems: "center", gap: u(3) }}>
223
+ <span style={{ width: u(5), height: u(5), borderRadius: u(1), background: KIND[k] }} />
224
+ {k} ·
225
+ </span>
226
+ ))}
227
+ <span style={{ display: "inline-flex", alignItems: "center", gap: u(3) }}>
228
+ <span style={{ width: u(5), height: u(5), borderRadius: u(1), background: KIND.internal }} />
229
+ agent rpc / job · {UI.legend}
230
+ </span>
231
+ </div>
232
+ </Panel>
233
+ )
234
+ }
235
+
236
+ function TraceLogs({ shown }: { shown: boolean }) {
237
+ return (
238
+ <div style={{ opacity: shown ? 1 : 0, transform: shown ? "none" : `translateY(${u(8)})`, transition: "opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2)" }}>
239
+ <Panel y={LOGS_Y} h={68}>
240
+ <div style={{ padding: `${u(7)} ${u(12)} 0`, fontSize: u(9.8), fontWeight: 550 }}>{UI.logsTitle}</div>
241
+ <div style={{ padding: `${u(1)} ${u(12)} ${u(4)}`, fontSize: u(7.8), color: MUTED }}>{UI.logsSub}</div>
242
+ {LOGS.map((l) => (
243
+ <div key={l.service} style={{ display: "flex", alignItems: "center", gap: u(8), height: u(16), padding: `0 ${u(12)}`, borderTop: `1px solid ${LINE}`, fontSize: u(8), whiteSpace: "nowrap" }}>
244
+ <span style={{ width: u(34), fontFamily: FONT.mono, color: MUTED }}>{l.at}</span>
245
+ <span style={{ display: "inline-flex", alignItems: "center", gap: u(3), width: u(40), fontFamily: FONT.mono, color: RED, fontWeight: 550 }}>
246
+ <span style={{ width: u(2), height: u(9), background: RED, borderRadius: u(1) }} />
247
+ {l.level}
248
+ </span>
249
+ <span style={{ display: "inline-flex", alignItems: "center", gap: u(4), width: u(98) }}>
250
+ <ServiceIcon service={l.service as SampleSpan["service"]} size={9} />
251
+ {l.service}
252
+ </span>
253
+ <span style={{ fontFamily: FONT.mono, overflow: "hidden", textOverflow: "ellipsis" }}>{l.message}</span>
254
+ </div>
255
+ ))}
256
+ </Panel>
257
+ </div>
258
+ )
259
+ }
260
+
261
+ function Cost({ lit, colors }: { lit: boolean; colors: StageColors }) {
262
+ const icon = (id: IconId) => <Icon id={id} size={9} color={lit ? colors.tone : MUTED} />
263
+ return (
264
+ <div style={{ position: "absolute", left: 0, top: u(LOGS_Y + 76), display: "flex", alignItems: "center", gap: u(10), padding: `${u(2)} ${u(6)}`, marginLeft: u(-6), borderRadius: u(4), background: lit ? hexAlpha(colors.tone, 0.1) : "transparent", color: lit ? INK : MUTED, fontSize: u(8.2), fontWeight: lit ? 550 : 400, whiteSpace: "nowrap", transition: "background 0.4s ease, color 0.4s ease" }}>
265
+ <span style={{ display: "inline-flex", alignItems: "center", gap: u(3) }}>{icon("layers")}{UI.cost.files}</span>
266
+ <span style={{ display: "inline-flex", alignItems: "center", gap: u(3) }}>{icon("clock")}{UI.cost.ms}</span>
267
+ </div>
268
+ )
269
+ }
270
+
271
+ export function TraceScreen({ lang, colors, night, label }: { lang: Lang; colors: StageColors; night: boolean; label: string }) {
272
+ const { ref, step } = useStage(LENGTHS, STILL)
273
+ const grown = step >= 1 && step <= 7
274
+ const self = step >= 2 && step <= 7
275
+ const picked = step >= 4 && step <= 7
276
+ const logs = step >= 5 && step <= 7
277
+ const cost = step >= 6 && step <= 7
278
+
279
+ return (
280
+ <Stage stageRef={ref} colors={colors} night={night} height={H} label={label}>
281
+ <AppWindow {...WIN} h={H} address="traces.spunto.net">
282
+ <div style={{ position: "absolute", inset: 0, opacity: step === 7 ? 0 : 1, transition: "opacity 0.4s ease" }}>
283
+ <Sidebar colors={colors} />
284
+ <div style={{ position: "absolute", left: u(MAIN_X), width: u(MAIN_W), top: 0, bottom: 0 }}>
285
+ <Header />
286
+ <SelfTime shown={self} />
287
+ <Waterfall grown={grown} picked={picked} />
288
+ <TraceLogs shown={logs} />
289
+ <Cost lit={cost} colors={colors} />
290
+ </div>
291
+ </div>
292
+ <Cursor x={AT.x - WIN.x} y={AT.y - WIN.y - 26} down={step === 4} hidden={step < 3 || step > 4} ms={750} />
293
+ </AppWindow>
294
+
295
+ <Float x={590} y={206} w={300} depth={110} show={picked && step <= 5}>
296
+ <div style={{ background: "#ffffff", color: INK }}>
297
+ <div style={{ display: "flex", alignItems: "center", gap: u(6), padding: `${u(8)} ${u(11)}`, borderBottom: `1px solid ${LINE}` }}>
298
+ <ServiceIcon service="spunto-runtime-cloud" size={11} />
299
+ <div style={{ minWidth: 0 }}>
300
+ <div style={{ fontFamily: FONT.mono, fontSize: u(8.6), fontWeight: 550, whiteSpace: "nowrap" }}>{SPANS[PICKED].name}</div>
301
+ <div style={{ marginTop: u(2), fontSize: u(7.8), color: MUTED }}>
302
+ spunto-runtime-cloud · 2.38s · <span style={{ color: RED, fontWeight: 550 }}>ERROR</span> · {CAPTION.span[lang]}
303
+ </div>
304
+ </div>
305
+ </div>
306
+ <div style={{ padding: `${u(6)} ${u(11)} ${u(8)}` }}>
307
+ <div style={{ fontFamily: FONT.mono, fontSize: u(6.6), letterSpacing: "0.14em", textTransform: "uppercase", color: MUTED, marginBottom: u(3) }}>{UI.attributes}</div>
308
+ {ATTRS.map(([k, v]) => (
309
+ <div key={k} style={{ display: "flex", gap: u(8), fontFamily: FONT.mono, fontSize: u(8), lineHeight: 1.7, whiteSpace: "nowrap" }}>
310
+ <span style={{ width: u(118), color: MUTED }}>{k}</span>
311
+ <span style={{ color: v === "503" ? RED : INK, fontWeight: v === "503" ? 600 : 400 }}>{v}</span>
312
+ </div>
313
+ ))}
314
+ </div>
315
+ </div>
316
+ </Float>
317
+
318
+ <Float x={556} y={214} w={340} depth={140} show={cost}>
319
+ <CodeCard
320
+ title={CAPTION.self[lang]}
321
+ meta="OTEL_SERVICE_NAME=spunto-traces"
322
+ signal={colors.signal}
323
+ lines={[
324
+ { text: "GET /api/orgs/:org/q/trace/:traceId", hot: true },
325
+ { text: " traces.query.files 41" },
326
+ { text: " traces.query.bytes 18 204 160" },
327
+ { text: " traces.query.ms 96" },
328
+ { text: "└ catalogue spans · duckdb SELECT spans", dim: true },
329
+ ]}
330
+ />
331
+ </Float>
332
+ </Stage>
333
+ )
334
+ }
@@ -18,6 +18,7 @@ import { PhoneScreen } from "./foyer/phone"
18
18
  import { WeekScreen } from "./foyer/week"
19
19
  import { TerminalScreen } from "./sandbox/terminal"
20
20
  import { ThreadScreen } from "./agents/thread"
21
+ import { TraceScreen } from "./traces/trace"
21
22
  import type { StageColors } from "./stage"
22
23
 
23
24
  /* The client half of a `showcase` section: the home (drawn on the server) hands a screen's id and what
@@ -40,6 +41,7 @@ const SCREENS: Record<ShowcaseScreenId, (props: ScreenProps) => ReactNode> = {
40
41
  "foyer-book": BookScreen,
41
42
  "sandbox-terminal": TerminalScreen,
42
43
  "agents-thread": ThreadScreen,
44
+ "traces-trace": TraceScreen,
43
45
  }
44
46
 
45
47
  export function ShowcaseScreen({ screen, locale, product, theme, palette, label }: { screen: ShowcaseScreenId; locale: "en" | "fr"; product: BrandProductId; theme: BrandTheme; palette?: BrandPalette; label: string }) {
package/src/paints.ts CHANGED
@@ -28,7 +28,7 @@ export type PaintToken =
28
28
  | "flame"
29
29
  | "background" | "card" | "popover" | "secondary" | "muted" | "border" | "input" | "sidebar" | "sidebar-border"
30
30
 
31
- export type PaintId = "cloud" | "sprout" | "cms" | "lite" | "browser" | "desktop" | "ci" | "sandbox" | "agents" | "search" | "foyer" | "ds"
31
+ export type PaintId = "cloud" | "sprout" | "cms" | "lite" | "browser" | "desktop" | "ci" | "sandbox" | "agents" | "traces" | "boiler" | "search" | "foyer" | "ds"
32
32
 
33
33
  export type Paint = {
34
34
  id: PaintId
@@ -157,6 +157,28 @@ export const PAINTS: Paint[] = [
157
157
  hue: 238,
158
158
  shelf: true,
159
159
  },
160
+ {
161
+ id: "traces",
162
+ name: "Indigo · menthe",
163
+ note: `Spunto Traces — deep indigo / mint since 2026-12-02: the indigo tile and the mint pulse its app already
164
+ wore (\`indigo-mint\` palette, logo #1d1b4b / #7ef0c4). Not the palette as is: its field sat on Desktop's dusk
165
+ and Lite's ink, its lime-ish signal on CI's. So a deeper, more saturated indigo (C 0.12, away from the dusky
166
+ violets) and the logo's own mint (hue 165, between CI's lime and Search's aqua)`,
167
+ field: "0.24 0.12 275", signal: "0.88 0.13 165", tone: "0.49 0.17 275",
168
+ hue: 275,
169
+ shelf: true,
170
+ },
171
+ {
172
+ id: "boiler",
173
+ name: "Fonte · cuivre",
174
+ note: `Spunto Boiler — cast iron / copper since 2026-12-02: a boiler's iron, warmed by what burns inside it
175
+ (an ember-tinted near-black, C 0.045, hue 50: off Cloud's graphite and the design system's), and the copper
176
+ of its pipes for the signal (hue 60, between Agents' coral and Cloud's amber, ≈ 0.07 from the first, ≈ 0.09
177
+ from the second). Signal on field 9.1:1, white on the light primary 5.4:1`,
178
+ field: "0.22 0.045 50", signal: "0.80 0.14 60", tone: "0.53 0.14 48",
179
+ hue: 50,
180
+ shelf: true,
181
+ },
160
182
  {
161
183
  id: "search",
162
184
  name: "Sarcelle · eau",
package/src/products.ts CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { PAINT_BY_ID, paintHex, type PaintId } from "./paints"
14
14
 
15
- export type BrandProductId = "cloud" | "lite" | "cms" | "desktop" | "ci" | "sandbox" | "agents" | "search" | "ds" | "foyer"
15
+ export type BrandProductId = "cloud" | "lite" | "cms" | "desktop" | "ci" | "sandbox" | "agents" | "traces" | "boiler" | "search" | "ds" | "foyer"
16
16
 
17
17
  export type BrandColors = {
18
18
  /** The deep colour a product's night bands, story scenes and video backdrops open in. */
@@ -243,6 +243,63 @@ const ENTRIES: Entry[] = [
243
243
  claim: "Des agents qu'on lit, qu'on guide *et qu'on valide*.",
244
244
  },
245
245
  },
246
+ {
247
+ /* The family's observability (spuntodotnet/traces): OpenTelemetry traces, logs and metrics over OTLP/HTTP, the RUM
248
+ and session replays of browsers, machines and containers — stored in Parquet, read by DuckDB. It replaced
249
+ OpenObserve for Spunto's own services. Words from its README.md (French only, like its app); its site serves
250
+ its home from here, in both languages. */
251
+ id: "traces",
252
+ name: "Spunto Traces",
253
+ paint: "traces",
254
+ family: "product",
255
+ href: "https://traces.spunto.net",
256
+ hrefFr: "https://traces.spunto.net/fr",
257
+ en: {
258
+ kind: "traces, logs and metrics",
259
+ promise: "OpenTelemetry traces, logs and metrics, browser sessions and their replay, stored in Parquet and read by DuckDB.",
260
+ blurb:
261
+ "Point your OpenTelemetry SDK or Collector at it: traces, logs and metrics over OTLP/HTTP, plus the RUM and session replays of your browsers. Services with their latency and errors, a trace as a waterfall with its logs, log patterns, machines and containers, a metrics explorer — and every view says how many Parquet files it read, and how long it took.",
262
+ status: "OTLP in, Parquet underneath",
263
+ claim: "Your traces, logs and metrics, *and what each view cost*.",
264
+ },
265
+ fr: {
266
+ kind: "traces, logs et métriques",
267
+ promise: "Les traces, logs et métriques OpenTelemetry, les sessions des navigateurs et leur replay, stockés en Parquet et lus par DuckDB.",
268
+ blurb:
269
+ "Branchez-y votre SDK ou votre Collector OpenTelemetry : traces, logs et métriques en OTLP/HTTP, plus le RUM et le replay des sessions de vos navigateurs. Les services, leur latence et leurs erreurs, une trace en cascade avec ses logs, les motifs des logs, les machines et les conteneurs, un explorateur de métriques — et chaque vue dit combien de fichiers Parquet elle a lus, et en combien de temps.",
270
+ status: "OTLP dedans, Parquet dessous",
271
+ claim: "Vos traces, logs et métriques, *et ce que chaque vue a coûté*.",
272
+ },
273
+ },
274
+ {
275
+ /* A web framework, open source (spuntodotnet/boiler, `@spunto/boiler` on npm, MIT): one Hono app serving
276
+ both the JSON API and pages that are React Server Components, built by Vite (on @vitejs/plugin-rsc). Words
277
+ from its brief (the parent task writing the repository, 2026-12-02). Its site (boiler.spunto.net) is in
278
+ English: a link of the French page stays on the English one, like Sandbox. */
279
+ id: "boiler",
280
+ name: "Spunto Boiler",
281
+ paint: "boiler",
282
+ family: "product",
283
+ href: "https://boiler.spunto.net",
284
+ repo: "https://github.com/spuntodotnet/boiler",
285
+ site: { fr: "" },
286
+ en: {
287
+ kind: "React Server Components on Hono",
288
+ promise: "A Hono app whose pages are React Server Components, built by Vite.",
289
+ blurb:
290
+ "One Hono app serves the JSON API and the pages. A page is a Hono route rendering an async Server Component that calls your services directly, no HTTP in between; React only goes to the browser for 'use client' components. Routes are validated by Zod, an undeclared response fails to compile, and the OpenAPI 3.1 document is generated from the schemas. Server actions, Vite 8, MIT.",
291
+ status: "Hono + RSC + Vite",
292
+ claim: "React Server Components, *without Next.js*.",
293
+ },
294
+ fr: {
295
+ kind: "React Server Components sur Hono",
296
+ promise: "Une app Hono dont les pages sont des React Server Components, construite par Vite.",
297
+ blurb:
298
+ "Une seule app Hono sert l’API JSON et les pages. Une page est une route Hono qui rend un Server Component async, lequel appelle vos services directement, sans HTTP entre les deux ; React ne part au navigateur que pour les composants 'use client'. Les routes sont validées par Zod, une réponse non déclarée ne compile pas, et le document OpenAPI 3.1 est généré depuis les schémas. Server actions, Vite 8, MIT.",
299
+ status: "Hono + RSC + Vite",
300
+ claim: "Les React Server Components, *sans Next.js*.",
301
+ },
302
+ },
246
303
  {
247
304
  id: "search",
248
305
  name: "Spunto Search",