@spunto/design-system 0.76.0 → 0.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spunto/design-system",
3
- "version": "0.76.0",
3
+ "version": "0.78.0",
4
4
  "description": "Spunto's shared design system — green tokens (conservatory + sprout), color constants, and UI primitives.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/brand/logo.ts CHANGED
@@ -189,6 +189,10 @@ export const SPUNTO_LOGO_TONES = {
189
189
  search: { tile: "#7ee9e5", ink: "#002f36" },
190
190
  /** Foyer — honey on ember. */
191
191
  foyer: { tile: "#ffcf53", ink: "#44150d" },
192
+ /** Spunto Desktop — orchid on dusk (the brand kit's \`desktop\` paint, \`dusk-orchid\`, since 2026-11-09). */
193
+ desktop: { tile: "#d9cbff", ink: "#242047" },
194
+ /** Spunto CI — lime on moss (the brand kit's \`ci\` paint, \`moss-lime\`, since 2026-11-09). */
195
+ ci: { tile: "#b9e498", ink: "#232b00" },
192
196
  /** Cloud's field, the three pillars lit (night register). */
193
197
  pillars: {
194
198
  tile: "#161c19",
@@ -228,6 +228,11 @@ function CustomizeLink({ tile, href }: { tile: TaskAppTile; href?: (tile: TaskAp
228
228
  )
229
229
  }
230
230
 
231
+ /** Anything to draw in a block — a tile with only `links` has none: its links go to the header. */
232
+ function hasBody(tile: TaskAppTile): boolean {
233
+ return !!(tile.meters?.length || tile.facts?.length || tile.items?.length || tile.lists?.length)
234
+ }
235
+
231
236
  export function TaskDetails({
232
237
  task,
233
238
  variant = "sidebar",
@@ -248,7 +253,11 @@ export function TaskDetails({
248
253
  }: TaskDetailsProps) {
249
254
  const sheet = useContext(TaskDetailsSheetContext)
250
255
  const meta = task.meta && Object.keys(task.meta).length > 0 ? task.meta : null
251
- const links = task.links && task.links.length > 0 ? task.links : null
256
+ // The task's own links, then those its org's apps add (Spunto IDE: « Open IDE »), once each.
257
+ const allLinks = [...(task.links ?? []), ...(appTiles ?? []).flatMap((tile) => tile.links ?? [])].filter(
258
+ (link, i, list) => list.findIndex((l) => l.url === link.url) === i,
259
+ )
260
+ const links = allLinks.length > 0 ? allLinks : null
252
261
  const metadata = task.metadata && Object.keys(task.metadata).length > 0 ? Object.entries(task.metadata) : null
253
262
  const ran = task.completedAt ? taskSpan(task.startedAt ?? task.createdAt, task.completedAt) : null
254
263
  // `baseBranch: null` is the project's default — saying so ("project default") on every task of a
@@ -360,7 +369,7 @@ export function TaskDetails({
360
369
 
361
370
  {/* What only the harness knows about its session (its quota, its MCP servers, its skills…),
362
371
  from the task's agent app — Session's numbers stay ours, the same for every harness. */}
363
- {appTiles?.filter((tile) => tile.session).map((tile) => (
372
+ {appTiles?.filter((tile) => tile.session && hasBody(tile)).map((tile) => (
364
373
  <Block key={tile.appId} id={`app:${tile.appId}`} variant={variant} title={tile.title} hint={tile.appName === tile.title ? undefined : tile.appName}>
365
374
  <TaskAppTileContent tile={tile} onAction={onAppTileAction && ((item, action) => onAppTileAction(tile, item, action))} />
366
375
  <CustomizeLink tile={tile} href={appTileSettingsHref} />
@@ -369,7 +378,7 @@ export function TaskDetails({
369
378
 
370
379
  {/* What the org's apps make of the links the conversation shared — GitHub: the pull requests
371
380
  it talked about, with where each one stands. */}
372
- {appTiles?.filter((tile) => !tile.session).map((tile) => (
381
+ {appTiles?.filter((tile) => !tile.session && hasBody(tile)).map((tile) => (
373
382
  <Block key={tile.appId} id={`app:${tile.appId}`} variant={variant} title={tile.title} hint={tile.appName === tile.title ? undefined : tile.appName}>
374
383
  <TaskAppTileContent tile={tile} onAction={onAppTileAction && ((item, action) => onAppTileAction(tile, item, action))} />
375
384
  <CustomizeLink tile={tile} href={appTileSettingsHref} />
@@ -548,6 +548,26 @@ describe("TaskDetails", () => {
548
548
  expect(screen.queryByText("Fix the login")).toBeNull()
549
549
  })
550
550
 
551
+ it("adds the links an app gives to the task's own, and draws no block for an app with nothing else", () => {
552
+ window.localStorage.clear()
553
+ const { container } = render(
554
+ <TaskDetails
555
+ task={task({ links: [{ label: "BAC-78", url: "https://cms.test/BAC-78" }] })}
556
+ appTiles={[
557
+ { appId: "github", appName: "GitHub", title: "Pull requests", items: [{ title: "github row" }] },
558
+ { appId: "ide", appName: "Spunto IDE", title: "IDE", links: [{ url: "https://sbx-a-code.test/", label: "Open IDE" }] },
559
+ ]}
560
+ commands={[]}
561
+ />,
562
+ )
563
+ expect(screen.getByText("Links")).toBeTruthy()
564
+ expect(screen.getByText("BAC-78").closest("a")?.getAttribute("href")).toBe("https://cms.test/BAC-78")
565
+ expect(screen.getByText("Open IDE").closest("a")?.getAttribute("href")).toBe("https://sbx-a-code.test/")
566
+ const blocks = [...container.querySelectorAll("[data-block]")].map((el) => el.getAttribute("data-block"))
567
+ expect(blocks).not.toContain("app:ide")
568
+ expect(blocks).toContain("app:github")
569
+ })
570
+
551
571
  it("remembers a block the reader opened, in every conversation", () => {
552
572
  window.localStorage.clear()
553
573
  const first = render(<TaskDetails task={task({ id: "t1", prompt: "First prompt" })} commands={[]} />)
@@ -309,6 +309,8 @@ export interface TaskAppTile {
309
309
  facts?: TaskAppTileFact[]
310
310
  items?: TaskAppTileItem[]
311
311
  lists?: TaskAppTileList[]
312
+ /** Links the app adds to the task's own « Links », in the header — not drawn in its block (Spunto IDE: « Open IDE »). */
313
+ links?: TaskLink[]
312
314
  }
313
315
 
314
316
  // ── Machine ──────────────────────────────────────────────────────────────────────────────────
package/styles.css CHANGED
@@ -206,6 +206,12 @@
206
206
  --color-browser: var(--browser);
207
207
  --color-browser-field: var(--browser-field);
208
208
  --color-browser-signal: var(--browser-signal);
209
+ --color-desktop: var(--desktop);
210
+ --color-desktop-field: var(--desktop-field);
211
+ --color-desktop-signal: var(--desktop-signal);
212
+ --color-ci: var(--ci);
213
+ --color-ci-field: var(--ci-field);
214
+ --color-ci-signal: var(--ci-signal);
209
215
  --color-search: var(--search);
210
216
  --color-search-field: var(--search-field);
211
217
  --color-search-signal: var(--search-signal);
@@ -266,6 +272,12 @@
266
272
  --browser-field: oklch(0.27 0.07 292);
267
273
  --browser-signal: oklch(0.87 0.14 86);
268
274
  --browser: oklch(0.49 0.17 292);
275
+ --desktop-field: oklch(0.27 0.07 285);
276
+ --desktop-signal: oklch(0.87 0.072 297);
277
+ --desktop: oklch(0.49 0.16 285);
278
+ --ci-field: oklch(0.27 0.064 120);
279
+ --ci-signal: oklch(0.87 0.11 132);
280
+ --ci: oklch(0.49 0.116 120);
269
281
  --search-field: oklch(0.28 0.05 208);
270
282
  --search-signal: oklch(0.87 0.10 192);
271
283
  --search: oklch(0.49 0.09 212);
@@ -411,7 +423,7 @@
411
423
  --flame: oklch(0.87 0.14 86);
412
424
  }
413
425
  /* Sprout — no product: Spunto Cloud's green until 2026-10-26, kept as a
414
- palette a member can dress the dashboard in (apps/next/lib/accent.ts) */
426
+ palette a member can dress the dashboard in (packages/web-common/src/accent.ts) */
415
427
  [data-product="sprout"] {
416
428
  --field: oklch(0.29 0.055 162);
417
429
  --signal: oklch(0.88 0.18 124);
@@ -514,8 +526,8 @@
514
526
  --flame: oklch(0.85 0.10 228);
515
527
  }
516
528
  /* Spunto Browser — dusk violet / amber (Cloud's pair from 2026-10-26 to
517
- 2026-10-31). Browser became Spunto Desktop on 2026-11-06, which wears it; the
518
- dashboard's « Violet » wears it too */
529
+ 2026-10-31). Browser became Spunto Desktop on 2026-11-06, which wore it until
530
+ 2026-11-09 (its own `desktop` paint since); the dashboard's « Violet » wears it */
519
531
  [data-product="browser"] {
520
532
  --field: oklch(0.27 0.07 292);
521
533
  --signal: oklch(0.87 0.14 86);
@@ -549,6 +561,76 @@
549
561
  --sidebar-ring: oklch(0.87 0.14 86);
550
562
  --flame: oklch(0.87 0.14 86);
551
563
  }
564
+ /* Spunto Desktop — dusk violet / orchid since 2026-11-09 (the `dusk-orchid` palette):
565
+ it kept Browser's violet field, and its own signal instead of Cloud's amber */
566
+ [data-product="desktop"] {
567
+ --field: oklch(0.27 0.07 285);
568
+ --signal: oklch(0.87 0.072 297);
569
+ --tone: oklch(0.49 0.16 285);
570
+ --primary: oklch(0.49 0.16 285);
571
+ --primary-foreground: oklch(0.99 0.006 285);
572
+ --ring: oklch(0.49 0.16 285);
573
+ --accent: oklch(0.945 0.03 285);
574
+ --accent-foreground: oklch(0.32 0.07 285);
575
+ --sidebar-primary: oklch(0.49 0.16 285);
576
+ --sidebar-primary-foreground: oklch(0.99 0.006 285);
577
+ --sidebar-accent: oklch(0.935 0.03 285);
578
+ --sidebar-accent-foreground: oklch(0.30 0.07 285);
579
+ --sidebar-ring: oklch(0.49 0.16 285);
580
+ --flame: oklch(0.49 0.16 285);
581
+ }
582
+ .dark [data-product="desktop"],
583
+ .dark[data-product="desktop"] {
584
+ --field: oklch(0.27 0.07 285);
585
+ --signal: oklch(0.87 0.072 297);
586
+ --tone: oklch(0.49 0.16 285);
587
+ --primary: oklch(0.87 0.072 297);
588
+ --primary-foreground: oklch(0.27 0.07 285);
589
+ --ring: oklch(0.87 0.072 297);
590
+ --accent: oklch(0.28 0.035 285);
591
+ --accent-foreground: oklch(0.95 0.01 285);
592
+ --sidebar-primary: oklch(0.87 0.072 297);
593
+ --sidebar-primary-foreground: oklch(0.27 0.07 285);
594
+ --sidebar-accent: oklch(0.26 0.03 285);
595
+ --sidebar-accent-foreground: oklch(0.95 0.01 285);
596
+ --sidebar-ring: oklch(0.87 0.072 297);
597
+ --flame: oklch(0.87 0.072 297);
598
+ }
599
+ /* Spunto CI — moss / lime since 2026-11-09 (the `moss-lime` palette): a passing
600
+ check's green; it wore Cloud's graphite / amber before */
601
+ [data-product="ci"] {
602
+ --field: oklch(0.27 0.064 120);
603
+ --signal: oklch(0.87 0.11 132);
604
+ --tone: oklch(0.49 0.116 120);
605
+ --primary: oklch(0.49 0.116 120);
606
+ --primary-foreground: oklch(0.99 0.006 120);
607
+ --ring: oklch(0.49 0.116 120);
608
+ --accent: oklch(0.945 0.03 120);
609
+ --accent-foreground: oklch(0.32 0.07 120);
610
+ --sidebar-primary: oklch(0.49 0.116 120);
611
+ --sidebar-primary-foreground: oklch(0.99 0.006 120);
612
+ --sidebar-accent: oklch(0.935 0.03 120);
613
+ --sidebar-accent-foreground: oklch(0.30 0.07 120);
614
+ --sidebar-ring: oklch(0.49 0.116 120);
615
+ --flame: oklch(0.49 0.116 120);
616
+ }
617
+ .dark [data-product="ci"],
618
+ .dark[data-product="ci"] {
619
+ --field: oklch(0.27 0.064 120);
620
+ --signal: oklch(0.87 0.11 132);
621
+ --tone: oklch(0.49 0.116 120);
622
+ --primary: oklch(0.87 0.11 132);
623
+ --primary-foreground: oklch(0.27 0.064 120);
624
+ --ring: oklch(0.87 0.11 132);
625
+ --accent: oklch(0.28 0.035 120);
626
+ --accent-foreground: oklch(0.95 0.01 120);
627
+ --sidebar-primary: oklch(0.87 0.11 132);
628
+ --sidebar-primary-foreground: oklch(0.27 0.064 120);
629
+ --sidebar-accent: oklch(0.26 0.03 120);
630
+ --sidebar-accent-foreground: oklch(0.95 0.01 120);
631
+ --sidebar-ring: oklch(0.87 0.11 132);
632
+ --flame: oklch(0.87 0.11 132);
633
+ }
552
634
  /* Spunto Search — deep teal / aqua */
553
635
  [data-product="search"] {
554
636
  --field: oklch(0.28 0.05 208);