@spunto/design-system 0.43.0 → 0.44.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.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "Spunto's shared design system — warm/flame tokens, color constants, and UI primitives.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -271,6 +271,21 @@ function PlanEntry({ event }: { event: TaskEvent }) {
271
271
  )
272
272
  }
273
273
 
274
+ /** The clock time of an event, small and muted; the full date is in the tooltip. */
275
+ function EventTime({ ts }: { ts: TaskEvent["ts"] }) {
276
+ const when = new Date(ts)
277
+ if (Number.isNaN(when.getTime())) return null
278
+ return (
279
+ <time
280
+ dateTime={when.toISOString()}
281
+ title={when.toLocaleString()}
282
+ className="mt-1 block text-[10px] tabular-nums text-muted-foreground/70"
283
+ >
284
+ {when.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", second: "2-digit" })}
285
+ </time>
286
+ )
287
+ }
288
+
274
289
  function MessageEntry({ event, attachmentUrl }: { event: TaskEvent; attachmentUrl: AttachmentUrl }) {
275
290
  // What *you* said, set apart from what the agent said. Without this the timeline reads as one
276
291
  // voice — and a harness does not echo its own stdin, so these lines exist only because the
@@ -297,6 +312,7 @@ function MessageEntry({ event, attachmentUrl }: { event: TaskEvent; attachmentUr
297
312
  {bool(event.payload.truncated) && (
298
313
  <p className="mt-1 text-[10px] text-muted-foreground">Clipped to the 8 KiB kept per field.</p>
299
314
  )}
315
+ <EventTime ts={event.ts} />
300
316
  </Entry>
301
317
  )
302
318
  }