@mastra/playground-ui 72.0.0-alpha.5 → 72.0.0-alpha.6

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.
Files changed (181) hide show
  1. package/dist/domains/factory/activity/activity-band.cjs.js +115 -0
  2. package/dist/domains/factory/activity/activity-band.cjs.js.map +1 -0
  3. package/dist/domains/factory/activity/activity-band.d.ts +1 -0
  4. package/dist/domains/factory/activity/activity-band.es.js +113 -0
  5. package/dist/domains/factory/activity/activity-band.es.js.map +1 -0
  6. package/dist/domains/factory/activity/activity-chart.cjs.js +98 -0
  7. package/dist/domains/factory/activity/activity-chart.cjs.js.map +1 -0
  8. package/dist/domains/factory/activity/activity-chart.d.ts +1 -0
  9. package/dist/domains/factory/activity/activity-chart.es.js +97 -0
  10. package/dist/domains/factory/activity/activity-chart.es.js.map +1 -0
  11. package/dist/domains/factory/activity/activity-field.cjs.js +157 -0
  12. package/dist/domains/factory/activity/activity-field.cjs.js.map +1 -0
  13. package/dist/domains/factory/activity/activity-field.d.ts +1 -0
  14. package/dist/domains/factory/activity/activity-field.es.js +155 -0
  15. package/dist/domains/factory/activity/activity-field.es.js.map +1 -0
  16. package/dist/domains/factory/activity/activity-format.cjs.js +85 -0
  17. package/dist/domains/factory/activity/activity-format.cjs.js.map +1 -0
  18. package/dist/domains/factory/activity/activity-format.d.ts +1 -0
  19. package/dist/domains/factory/activity/activity-format.es.js +81 -0
  20. package/dist/domains/factory/activity/activity-format.es.js.map +1 -0
  21. package/dist/domains/factory/activity/activity-model.cjs.js +44 -0
  22. package/dist/domains/factory/activity/activity-model.cjs.js.map +1 -0
  23. package/dist/domains/factory/activity/activity-model.d.ts +1 -0
  24. package/dist/domains/factory/activity/activity-model.es.js +38 -0
  25. package/dist/domains/factory/activity/activity-model.es.js.map +1 -0
  26. package/dist/domains/factory/activity/activity-period-menu.cjs.js +43 -0
  27. package/dist/domains/factory/activity/activity-period-menu.cjs.js.map +1 -0
  28. package/dist/domains/factory/activity/activity-period-menu.d.ts +1 -0
  29. package/dist/domains/factory/activity/activity-period-menu.es.js +42 -0
  30. package/dist/domains/factory/activity/activity-period-menu.es.js.map +1 -0
  31. package/dist/domains/factory/activity/activity-reveal.cjs.js +18 -0
  32. package/dist/domains/factory/activity/activity-reveal.cjs.js.map +1 -0
  33. package/dist/domains/factory/activity/activity-reveal.d.ts +1 -0
  34. package/dist/domains/factory/activity/activity-reveal.es.js +17 -0
  35. package/dist/domains/factory/activity/activity-reveal.es.js.map +1 -0
  36. package/dist/domains/factory/activity/activity-slot-card.cjs.js +63 -0
  37. package/dist/domains/factory/activity/activity-slot-card.cjs.js.map +1 -0
  38. package/dist/domains/factory/activity/activity-slot-card.d.ts +1 -0
  39. package/dist/domains/factory/activity/activity-slot-card.es.js +62 -0
  40. package/dist/domains/factory/activity/activity-slot-card.es.js.map +1 -0
  41. package/dist/domains/factory/activity/activity-totals.cjs.js +41 -0
  42. package/dist/domains/factory/activity/activity-totals.cjs.js.map +1 -0
  43. package/dist/domains/factory/activity/activity-totals.d.ts +1 -0
  44. package/dist/domains/factory/activity/activity-totals.es.js +40 -0
  45. package/dist/domains/factory/activity/activity-totals.es.js.map +1 -0
  46. package/dist/domains/factory/activity.cjs.js +29 -0
  47. package/dist/domains/factory/activity.d.ts +1 -0
  48. package/dist/domains/factory/activity.es.js +10 -0
  49. package/dist/domains/factory/board/board-card-rows.cjs.js +64 -0
  50. package/dist/domains/factory/board/board-card-rows.cjs.js.map +1 -0
  51. package/dist/domains/factory/board/board-card-rows.d.ts +1 -0
  52. package/dist/domains/factory/board/board-card-rows.es.js +63 -0
  53. package/dist/domains/factory/board/board-card-rows.es.js.map +1 -0
  54. package/dist/domains/factory/board/board-layout.cjs.js +4 -0
  55. package/dist/domains/factory/board/board-layout.cjs.js.map +1 -1
  56. package/dist/domains/factory/board/board-layout.es.js +4 -1
  57. package/dist/domains/factory/board/board-layout.es.js.map +1 -1
  58. package/dist/domains/factory/board/board-loading-skeleton.cjs.js +68 -0
  59. package/dist/domains/factory/board/board-loading-skeleton.cjs.js.map +1 -0
  60. package/dist/domains/factory/board/board-loading-skeleton.d.ts +1 -0
  61. package/dist/domains/factory/board/board-loading-skeleton.es.js +67 -0
  62. package/dist/domains/factory/board/board-loading-skeleton.es.js.map +1 -0
  63. package/dist/domains/factory/board/card-source-row.cjs.js +62 -0
  64. package/dist/domains/factory/board/card-source-row.cjs.js.map +1 -0
  65. package/dist/domains/factory/board/card-source-row.d.ts +1 -0
  66. package/dist/domains/factory/board/card-source-row.es.js +59 -0
  67. package/dist/domains/factory/board/card-source-row.es.js.map +1 -0
  68. package/dist/domains/factory/board/card-sources.cjs.js +108 -0
  69. package/dist/domains/factory/board/card-sources.cjs.js.map +1 -0
  70. package/dist/domains/factory/board/card-sources.d.ts +1 -0
  71. package/dist/domains/factory/board/card-sources.es.js +105 -0
  72. package/dist/domains/factory/board/card-sources.es.js.map +1 -0
  73. package/dist/domains/factory/board/phase-setup.cjs.js +83 -0
  74. package/dist/domains/factory/board/phase-setup.cjs.js.map +1 -0
  75. package/dist/domains/factory/board/phase-setup.d.ts +1 -0
  76. package/dist/domains/factory/board/phase-setup.es.js +81 -0
  77. package/dist/domains/factory/board/phase-setup.es.js.map +1 -0
  78. package/dist/domains/factory/board/related-links.cjs.js +102 -0
  79. package/dist/domains/factory/board/related-links.cjs.js.map +1 -0
  80. package/dist/domains/factory/board/related-links.d.ts +1 -0
  81. package/dist/domains/factory/board/related-links.es.js +99 -0
  82. package/dist/domains/factory/board/related-links.es.js.map +1 -0
  83. package/dist/domains/factory/board/source-icons.cjs.js +47 -0
  84. package/dist/domains/factory/board/source-icons.cjs.js.map +1 -0
  85. package/dist/domains/factory/board/source-icons.d.ts +1 -0
  86. package/dist/domains/factory/board/source-icons.es.js +44 -0
  87. package/dist/domains/factory/board/source-icons.es.js.map +1 -0
  88. package/dist/domains/factory/board/work-item-list-cells.cjs.js +49 -0
  89. package/dist/domains/factory/board/work-item-list-cells.cjs.js.map +1 -0
  90. package/dist/domains/factory/board/work-item-list-cells.d.ts +1 -0
  91. package/dist/domains/factory/board/work-item-list-cells.es.js +45 -0
  92. package/dist/domains/factory/board/work-item-list-cells.es.js.map +1 -0
  93. package/dist/domains/factory/board.cjs.js +29 -0
  94. package/dist/domains/factory/board.es.js +10 -2
  95. package/dist/domains/factory/session/card-description.cjs.js +112 -0
  96. package/dist/domains/factory/session/card-description.cjs.js.map +1 -0
  97. package/dist/domains/factory/session/card-description.d.ts +1 -0
  98. package/dist/domains/factory/session/card-description.es.js +109 -0
  99. package/dist/domains/factory/session/card-description.es.js.map +1 -0
  100. package/dist/domains/factory/session/card-overview.cjs.js +48 -0
  101. package/dist/domains/factory/session/card-overview.cjs.js.map +1 -0
  102. package/dist/domains/factory/session/card-overview.d.ts +1 -0
  103. package/dist/domains/factory/session/card-overview.es.js +45 -0
  104. package/dist/domains/factory/session/card-overview.es.js.map +1 -0
  105. package/dist/domains/factory/session/card-stage-bar.cjs.js +147 -0
  106. package/dist/domains/factory/session/card-stage-bar.cjs.js.map +1 -0
  107. package/dist/domains/factory/session/card-stage-bar.d.ts +1 -0
  108. package/dist/domains/factory/session/card-stage-bar.es.js +145 -0
  109. package/dist/domains/factory/session/card-stage-bar.es.js.map +1 -0
  110. package/dist/domains/factory/session/description-markdown.cjs.js +33 -0
  111. package/dist/domains/factory/session/description-markdown.cjs.js.map +1 -0
  112. package/dist/domains/factory/session/description-markdown.d.ts +1 -0
  113. package/dist/domains/factory/session/description-markdown.es.js +32 -0
  114. package/dist/domains/factory/session/description-markdown.es.js.map +1 -0
  115. package/dist/domains/factory/session/moves-graph-model.cjs.js +44 -0
  116. package/dist/domains/factory/session/moves-graph-model.cjs.js.map +1 -0
  117. package/dist/domains/factory/session/moves-graph-model.d.ts +1 -0
  118. package/dist/domains/factory/session/moves-graph-model.es.js +43 -0
  119. package/dist/domains/factory/session/moves-graph-model.es.js.map +1 -0
  120. package/dist/domains/factory/session/moves-graph.cjs.js +175 -0
  121. package/dist/domains/factory/session/moves-graph.cjs.js.map +1 -0
  122. package/dist/domains/factory/session/moves-graph.d.ts +1 -0
  123. package/dist/domains/factory/session/moves-graph.es.js +174 -0
  124. package/dist/domains/factory/session/moves-graph.es.js.map +1 -0
  125. package/dist/domains/factory/session/panel-frame.cjs.js +31 -0
  126. package/dist/domains/factory/session/panel-frame.cjs.js.map +1 -0
  127. package/dist/domains/factory/session/panel-frame.d.ts +1 -0
  128. package/dist/domains/factory/session/panel-frame.es.js +29 -0
  129. package/dist/domains/factory/session/panel-frame.es.js.map +1 -0
  130. package/dist/domains/factory/session/session-layout.cjs.js +25 -0
  131. package/dist/domains/factory/session/session-layout.cjs.js.map +1 -0
  132. package/dist/domains/factory/session/session-layout.d.ts +1 -0
  133. package/dist/domains/factory/session/session-layout.es.js +22 -0
  134. package/dist/domains/factory/session/session-layout.es.js.map +1 -0
  135. package/dist/domains/factory/session/session-panel.cjs.js +50 -0
  136. package/dist/domains/factory/session/session-panel.cjs.js.map +1 -0
  137. package/dist/domains/factory/session/session-panel.d.ts +1 -0
  138. package/dist/domains/factory/session/session-panel.es.js +48 -0
  139. package/dist/domains/factory/session/session-panel.es.js.map +1 -0
  140. package/dist/domains/factory/session.cjs.js +29 -0
  141. package/dist/domains/factory/session.d.ts +1 -0
  142. package/dist/domains/factory/session.es.js +10 -0
  143. package/dist/domains/factory.cjs.js +89 -2
  144. package/dist/domains/factory.es.js +32 -4
  145. package/dist/domains/logs/components/log-view/log-view-page-edge.cjs.js +11 -0
  146. package/dist/domains/logs/components/log-view/log-view-page-edge.cjs.js.map +1 -1
  147. package/dist/domains/logs/components/log-view/log-view-page-edge.es.js +11 -0
  148. package/dist/domains/logs/components/log-view/log-view-page-edge.es.js.map +1 -1
  149. package/dist/src/domains/factory/activity/activity-band.d.ts +21 -0
  150. package/dist/src/domains/factory/activity/activity-chart.d.ts +8 -0
  151. package/dist/src/domains/factory/activity/activity-field.d.ts +9 -0
  152. package/dist/src/domains/factory/activity/activity-format.d.ts +25 -0
  153. package/dist/src/domains/factory/activity/activity-model.d.ts +32 -0
  154. package/dist/src/domains/factory/activity/activity-period-menu.d.ts +5 -0
  155. package/dist/src/domains/factory/activity/activity-reveal.d.ts +7 -0
  156. package/dist/src/domains/factory/activity/activity-slot-card.d.ts +8 -0
  157. package/dist/src/domains/factory/activity/activity-totals.d.ts +6 -0
  158. package/dist/src/domains/factory/activity/index.d.ts +9 -0
  159. package/dist/src/domains/factory/board/board-card-rows.d.ts +21 -0
  160. package/dist/src/domains/factory/board/board-layout.d.ts +2 -0
  161. package/dist/src/domains/factory/board/board-loading-skeleton.d.ts +5 -0
  162. package/dist/src/domains/factory/board/card-source-row.d.ts +23 -0
  163. package/dist/src/domains/factory/board/card-sources.d.ts +16 -0
  164. package/dist/src/domains/factory/board/index.d.ts +8 -0
  165. package/dist/src/domains/factory/board/phase-setup.d.ts +32 -0
  166. package/dist/src/domains/factory/board/related-links.d.ts +43 -0
  167. package/dist/src/domains/factory/board/source-icons.d.ts +18 -0
  168. package/dist/src/domains/factory/board/work-item-list-cells.d.ts +19 -0
  169. package/dist/src/domains/factory/index.d.ts +2 -0
  170. package/dist/src/domains/factory/session/card-description.d.ts +15 -0
  171. package/dist/src/domains/factory/session/card-overview.d.ts +22 -0
  172. package/dist/src/domains/factory/session/card-stage-bar.d.ts +32 -0
  173. package/dist/src/domains/factory/session/description-markdown.d.ts +27 -0
  174. package/dist/src/domains/factory/session/index.d.ts +9 -0
  175. package/dist/src/domains/factory/session/moves-graph-model.d.ts +37 -0
  176. package/dist/src/domains/factory/session/moves-graph.d.ts +8 -0
  177. package/dist/src/domains/factory/session/panel-frame.d.ts +11 -0
  178. package/dist/src/domains/factory/session/session-layout.d.ts +7 -0
  179. package/dist/src/domains/factory/session/session-panel.d.ts +11 -0
  180. package/dist/style.css +224 -2
  181. package/package.json +9 -9
@@ -0,0 +1,9 @@
1
+ import type { ActivitySlot } from './activity-model';
2
+ export declare const FIELD_HEIGHT: number;
3
+ export declare function ActivityField({ slots, loading, hovered, onHover, onLeave, }: {
4
+ slots: readonly ActivitySlot[];
5
+ loading: boolean;
6
+ hovered: number | undefined;
7
+ onHover: (index: number, clientX: number) => void;
8
+ onLeave: () => void;
9
+ }): import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import type { LucideIcon } from 'lucide-react';
2
+ import type { ActivityCounts, ActivityKind, ActivitySlot, RunsState } from './activity-model';
3
+ export declare const ACTIVITY_KINDS: {
4
+ label: string;
5
+ counted: {
6
+ one: string;
7
+ other: string;
8
+ };
9
+ icon: LucideIcon;
10
+ tone: string;
11
+ kind: ActivityKind;
12
+ }[];
13
+ export declare function slotWhen(slot: ActivitySlot, hoursPerSlot: number): {
14
+ day: string;
15
+ hours?: undefined;
16
+ } | {
17
+ day: string;
18
+ hours: string;
19
+ };
20
+ export declare function totalOf(kind: ActivityKind, counts: ActivityCounts, runs: RunsState): {
21
+ count: string;
22
+ noun: string;
23
+ label: string;
24
+ };
25
+ export declare function countsLabel(counts: ActivityCounts, runs: RunsState): string;
@@ -0,0 +1,32 @@
1
+ export type ActivityPeriod = 'today' | 'week' | 'month';
2
+ export type ActivityKind = 'cameIn' | 'ran' | 'shipped';
3
+ export type ActivityCounts = Record<ActivityKind, number>;
4
+ export declare const ACTIVITY_KIND_ORDER: readonly ActivityKind[];
5
+ /** The period the activity band opens on. */
6
+ export declare const DEFAULT_ACTIVITY_PERIOD: ActivityPeriod;
7
+ export declare const ACTIVITY_PERIOD_LABELS: Record<ActivityPeriod, string>;
8
+ export declare const PERIOD_DAYS: {
9
+ readonly week: 7;
10
+ readonly month: 30;
11
+ };
12
+ export interface ActivitySlot {
13
+ start: number;
14
+ end: number;
15
+ counts: ActivityCounts;
16
+ ranComplete: boolean;
17
+ }
18
+ export interface Activity {
19
+ hoursPerSlot: number;
20
+ slots: ActivitySlot[];
21
+ totals: ActivityCounts;
22
+ ranComplete: boolean;
23
+ }
24
+ export interface RunsState {
25
+ status: 'pending' | 'error' | 'success';
26
+ complete: boolean;
27
+ }
28
+ export declare const traySurface = "bg-surface-panel dark:bg-card rounded-[calc(var(--radius-card)+var(--spacing)*1.5)]";
29
+ export declare const ACTIVITY_RECAPS: Record<ActivityPeriod, {
30
+ label: string;
31
+ prompt: string;
32
+ }>;
@@ -0,0 +1,5 @@
1
+ import type { ActivityPeriod } from './activity-model';
2
+ export declare function ActivityPeriodMenu({ period, onPeriodChange, }: {
3
+ period: ActivityPeriod;
4
+ onPeriodChange: (period: ActivityPeriod) => void;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function ActivityReveal({ id, open, className, children, }: {
3
+ id: string;
4
+ open: boolean;
5
+ className?: string;
6
+ children: ReactNode;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { ActivitySlot, RunsState } from './activity-model';
2
+ export declare function ActivitySlotCard({ slot, hoursPerSlot, runs, x, containerWidth, }: {
3
+ slot: ActivitySlot;
4
+ hoursPerSlot: number;
5
+ runs: RunsState;
6
+ x: number;
7
+ containerWidth: number;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { ActivityCounts, RunsState } from './activity-model';
2
+ export declare function ActivityTotals({ totals, runs, swatches, }: {
3
+ totals: ActivityCounts;
4
+ runs: RunsState;
5
+ swatches: boolean;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export * from './activity-model';
2
+ export * from './activity-format';
3
+ export * from './activity-field';
4
+ export * from './activity-chart';
5
+ export * from './activity-slot-card';
6
+ export * from './activity-totals';
7
+ export * from './activity-reveal';
8
+ export * from './activity-period-menu';
9
+ export * from './activity-band';
@@ -0,0 +1,21 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface BoardCardRowsProps {
3
+ /** The top-right group: the card's menu. */
4
+ controls?: ReactNode;
5
+ /** The meta line's parts, first and last kept whole when it truncates. */
6
+ meta: readonly ReactNode[];
7
+ /** Links to related cards, after the meta line. */
8
+ related?: ReactNode;
9
+ icon?: ReactNode;
10
+ title: ReactNode;
11
+ /** Upstream links, source state and labels. */
12
+ details?: ReactNode;
13
+ /** The other stages the card sits in. */
14
+ otherStages?: readonly string[];
15
+ /** Status, session and review badges; left out when absent. */
16
+ status?: ReactNode;
17
+ /** The bottom row: actions and activity. */
18
+ footer?: ReactNode;
19
+ }
20
+ /** A board card's rows as Factory lays them out, inside `BoardCard`. */
21
+ export declare function BoardCardRows({ controls, meta, related, icon, title, details, otherStages, status, footer, }: BoardCardRowsProps): import("react").JSX.Element;
@@ -10,3 +10,5 @@ export declare const BOARD_LIST_ROW_LAYOUT_CLASS = "grid min-h-10 grid-cols-[2.3
10
10
  export declare const BOARD_LIST_GROUP_HEADER_LAYOUT_CLASS = "mb-1 flex min-h-9 items-center gap-2 rounded-lg py-1 pr-1 pl-3";
11
11
  export declare const BOARD_LIST_GROUP_HEADER_SURFACE_CLASS = "bg-fill-subtle dark:bg-card";
12
12
  export declare const BOARD_SCROLL_SURFACE_CLASS = "[container-type:inline-size] m-px min-h-0 min-w-0 flex-1 [scrollbar-gutter:stable] overflow-auto overscroll-x-contain rounded-[calc(var(--studio-frame-radius,1.5rem)-1px)] lg:overscroll-x-auto";
13
+ /** A small inline link to a related card or an upstream issue; sits above the card's stretched link. */
14
+ export declare const RELATED_ITEM_LINK_CLASS = "hover:text-foreground relative z-10 flex w-fit max-w-full items-center gap-1 rounded-sm hover:underline focus-visible:outline-1 focus-visible:outline-solid focus-visible:outline-border-focus focus-visible:outline-offset-0";
@@ -0,0 +1,5 @@
1
+ import type { BoardLayout } from './board-layout';
2
+ /** The catalog loads before phase names exist; keep the board's frame and selected layout. */
3
+ export declare function BoardLoadingSkeleton({ layout }: {
4
+ layout: BoardLayout;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { CardSource } from './card-sources';
3
+ /** The brand mark of where a card came from; decorative, the label is read out beside it. */
4
+ export declare function CardSourceIcon({ source, className }: {
5
+ source: CardSource;
6
+ className?: string;
7
+ }): import("react").JSX.Element;
8
+ /** Upstream state such as `open` or `closed`. */
9
+ export declare function SourceStateBadge({ state, className }: {
10
+ state: string | undefined;
11
+ className?: string;
12
+ }): import("react").JSX.Element | null;
13
+ export interface CardSourceRowProps {
14
+ /** How the upstream reads, e.g. `#117`, `mastra-ai/office#117` or `ENG-42`. */
15
+ reference: string;
16
+ url?: string;
17
+ /** Upstream state such as `open` or `closed`. */
18
+ state?: string;
19
+ /** The card's labels, e.g. `MetadataLabels`; omit when there are none. */
20
+ labels?: ReactNode;
21
+ }
22
+ /** A card's upstream in its overview: the reference linking out, its state, and the labels under them. */
23
+ export declare function CardSourceRow({ reference, url, state, labels }: CardSourceRowProps): import("react").JSX.Element | null;
@@ -0,0 +1,16 @@
1
+ import type { ComponentType, SVGProps } from 'react';
2
+ export type CardSource = 'github-issue' | 'github-pr' | 'github-dependabot-alert' | 'gitlab-issue' | 'gitlab-pr' | 'linear-issue' | 'jira-issue' | 'incidentio-follow-up' | 'vanta-vulnerability' | 'detail-finding' | 'slack-thread' | 'manual';
3
+ export interface CardSourcePresentation {
4
+ label: string;
5
+ linkLabel: string;
6
+ Icon: ComponentType<SVGProps<SVGSVGElement>>;
7
+ iconClassName: string;
8
+ }
9
+ export declare const CARD_SOURCES: Record<CardSource, CardSourcePresentation>;
10
+ /** Mirrors Factory's `workItemBoardSource`: the source a board shows a card under. */
11
+ export declare function cardSourceOf(external: {
12
+ integrationId: string;
13
+ type: string;
14
+ } | null | undefined): CardSource;
15
+ /** The arrow on a link that leaves the app; it shows on hover and focus of a `group/outbound` parent. */
16
+ export declare const outboundArrowClass = "text-muted-foreground ml-auto size-3.5 shrink-0 opacity-0 transition-opacity group-hover/outbound:opacity-100 group-focus-visible/outbound:opacity-100";
@@ -34,3 +34,11 @@ export * from './card-activity';
34
34
  export * from './run-queue-menu';
35
35
  export * from './starts-toggle';
36
36
  export * from './phase-run-fields';
37
+ export * from './source-icons';
38
+ export * from './card-sources';
39
+ export * from './card-source-row';
40
+ export * from './board-card-rows';
41
+ export * from './phase-setup';
42
+ export * from './related-links';
43
+ export * from './board-loading-skeleton';
44
+ export * from './work-item-list-cells';
@@ -0,0 +1,32 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { createHoverCardHandle } from '../../../ds/components/HoverCard';
3
+ import type { LinkComponent } from '../../../ds/types/link-component';
4
+ export type PhaseSetupHandle = ReturnType<typeof createHoverCardHandle<string>>;
5
+ export interface PhaseSetupProps {
6
+ handle: PhaseSetupHandle;
7
+ phaseId: string;
8
+ /** The phase's settings. */
9
+ href: string;
10
+ /** Read by screen readers in place of the icons. */
11
+ summary: string;
12
+ arriving: number;
13
+ agent: boolean;
14
+ autoStart: boolean;
15
+ exitTool: boolean;
16
+ LinkComponent: LinkComponent;
17
+ }
18
+ /**
19
+ * A phase's setup in its column header: the rules bringing cards in, with their count, and an icon each for its agent,
20
+ * its starting on its own, and its exit tool. Hover or focus reads the whole phase in the board's one
21
+ * `PhaseSetupHoverCard`; a click opens its settings. Renders nothing when the phase has none of those.
22
+ */
23
+ export declare function PhaseSetup({ handle, phaseId, href, summary, arriving, agent, autoStart, exitTool, LinkComponent, }: PhaseSetupProps): import("react").JSX.Element | null;
24
+ /**
25
+ * The one card every column header's `PhaseSetup` opens, showing the hovered phase: moving to the next header swaps
26
+ * what it shows instead of opening a second card.
27
+ */
28
+ export declare function PhaseSetupHoverCard({ handle, children, }: {
29
+ handle: PhaseSetupHandle;
30
+ /** Renders the hovered phase's setup, e.g. a `PhaseSetupCard`; `null` closes nothing and shows nothing. */
31
+ children: (phaseId: string) => ReactNode;
32
+ }): import("react").JSX.Element;
@@ -0,0 +1,43 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { LinkComponent } from '../../../ds/types/link-component';
3
+ export interface RelatedItemLinkProps {
4
+ href: string;
5
+ /** Source mark or change-request status icon, sized `size-3`. */
6
+ icon: ReactNode;
7
+ label: string;
8
+ ariaLabel: string;
9
+ /** Read out in the tooltip, one part per line item. */
10
+ tooltip: readonly string[];
11
+ /** Marks a card with a running session. */
12
+ live?: boolean;
13
+ /** Opens upstream in a new tab instead of routing in the app. */
14
+ external?: boolean;
15
+ LinkComponent?: LinkComponent;
16
+ }
17
+ /** A related card or upstream item on a board card, with its relation in a tooltip. */
18
+ export declare function RelatedItemLink({ href, icon, label, ariaLabel, tooltip, live, external, LinkComponent: Link, }: RelatedItemLinkProps): import("react").JSX.Element;
19
+ export interface UpstreamLink {
20
+ url: string;
21
+ label: string;
22
+ ariaLabel: string;
23
+ icon: ReactNode;
24
+ }
25
+ /** Where a card lives upstream: its own issue or pull request, then each attached one. */
26
+ export declare function UpstreamLinks({ links }: {
27
+ links: readonly UpstreamLink[];
28
+ }): import("react").JSX.Element[];
29
+ export interface RelatedCardLinkProps {
30
+ href: string;
31
+ icon: ReactNode;
32
+ ariaLabel: string;
33
+ reference?: string;
34
+ title: string;
35
+ /** The related card's current phase: its icon (already toned) and name. */
36
+ phase?: {
37
+ icon: ReactNode;
38
+ label: string;
39
+ };
40
+ LinkComponent?: LinkComponent;
41
+ }
42
+ /** A related card in the card overview: reference, title and the phase it sits in. */
43
+ export declare function RelatedCardLink({ href, icon, ariaLabel, reference, title, phase, LinkComponent: Link, }: RelatedCardLinkProps): import("react").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import type { SVGProps } from 'react';
2
+ /**
3
+ * GitLab logomark (fill-based; inherits currentColor). Spreads SVG props like the other brand marks,
4
+ * so the board's SourceIcon can stamp data and aria attributes on it.
5
+ */
6
+ export declare const GitLabIcon: ({ size, ...props }: {
7
+ size?: number;
8
+ } & SVGProps<SVGSVGElement>) => import("react").JSX.Element;
9
+ /**
10
+ * Official Jira logomark (fill-based; inherits currentColor). Spreads SVG
11
+ * props so consumers like the board's SourceIcon can stamp data/aria attrs.
12
+ */
13
+ export declare const JiraIcon: ({ size, ...props }: {
14
+ size?: number;
15
+ } & SVGProps<SVGSVGElement>) => import("react").JSX.Element;
16
+ export declare const IncidentIoIcon: ({ size, ...props }: {
17
+ size?: number;
18
+ } & SVGProps<SVGSVGElement>) => import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { ReactNode } from 'react';
2
+ /** The list row's title cell. */
3
+ export declare function ListRowTitle({ children }: {
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ /** The list row's links cell: a native card's key as text, then upstream and related links. */
7
+ export declare function ListRowLinks({ nativeKey, children }: {
8
+ nativeKey?: string;
9
+ children?: ReactNode;
10
+ }): import("react").JSX.Element;
11
+ /** The list row's labels cell: upstream author, then state badge and labels. */
12
+ export declare function ListRowLabels({ author, children }: {
13
+ author?: string | null;
14
+ children?: ReactNode;
15
+ }): import("react").JSX.Element;
16
+ /** The list row's status cell. */
17
+ export declare function ListRowStatus({ children }: {
18
+ children: ReactNode;
19
+ }): import("react").JSX.Element;
@@ -7,3 +7,5 @@ export * from './sidebar-list-states';
7
7
  export * from './models';
8
8
  export * from './preferences';
9
9
  export * from './intake';
10
+ export * from './session';
11
+ export * from './activity';
@@ -0,0 +1,15 @@
1
+ export declare function SourceDescriptionLines(): import("react").JSX.Element;
2
+ export declare function SourceDescriptionLoading(): import("react").JSX.Element;
3
+ export interface CardDescriptionProps {
4
+ /** The body fetched from the card's upstream source. */
5
+ source?: string | null;
6
+ /** The body written on the card itself. */
7
+ own?: string | null;
8
+ loading?: boolean;
9
+ /** The upstream body could not be read. */
10
+ failed?: boolean;
11
+ /** Names where `own` was written, shown when both bodies are present. */
12
+ ownLabel?: string;
13
+ }
14
+ /** A card's description, clamped with a "Show more" toggle; the upstream body first, the card's own under it. */
15
+ export declare function CardDescription({ source: sourceText, own: ownText, loading, failed, ownLabel, }: CardDescriptionProps): import("react").JSX.Element | null;
@@ -0,0 +1,22 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function SectionLoadError({ children }: {
3
+ children: string;
4
+ }): import("react").JSX.Element;
5
+ /** The overview while it loads; `workspace` is the host's placeholder for its workspace section. */
6
+ export declare function OverviewSkeleton({ workspace }: {
7
+ workspace?: ReactNode;
8
+ }): import("react").JSX.Element;
9
+ export interface CardOverviewProps {
10
+ /** The card's own change request, linked above the source row. */
11
+ reference?: ReactNode;
12
+ /** The upstream source row, e.g. `CardSourceRow`. */
13
+ source?: ReactNode;
14
+ /** The card's body, e.g. `CardDescription`. */
15
+ description?: ReactNode;
16
+ /** A section of the host's own between the card and its activity. */
17
+ workspace?: ReactNode;
18
+ /** Change requests, related cards, load errors and the moves graph; the section hides when empty. */
19
+ activity?: ReactNode;
20
+ }
21
+ /** A card's overview in the session panel: the card, an optional workspace section, then its activity. */
22
+ export declare function CardOverview({ reference, source, description, workspace, activity }: CardOverviewProps): import("react").JSX.Element;
@@ -0,0 +1,32 @@
1
+ import type { BoardPhaseKind } from '../board/board-icons';
2
+ export interface CardStagePhase {
3
+ id: string;
4
+ name: string;
5
+ /** Icon kind; leave unset where the board draws its own stage art. */
6
+ kind?: BoardPhaseKind;
7
+ /** What moving there does; shown under the option. */
8
+ description?: string;
9
+ /** Why the card can't move there right now. Disables the option. */
10
+ blockedReason?: string;
11
+ }
12
+ export interface CardStageBarProps {
13
+ current: CardStagePhase;
14
+ /** Phases on the card's track, then the stop phases (cancel and the like) below a separator. */
15
+ track: readonly CardStagePhase[];
16
+ stop?: readonly CardStagePhase[];
17
+ previous?: CardStagePhase;
18
+ next?: CardStagePhase;
19
+ /** When the card entered a working phase; shows the time spent there. */
20
+ enteredAt?: number;
21
+ moving?: boolean;
22
+ /** How the time in phase reads; defaults to `<1m`, `20m`, `2h 5m`. */
23
+ elapsed?: (from: number, to: number) => string;
24
+ onMove: (phaseId: string) => void;
25
+ }
26
+ /** The header pill that shows a card's phase and moves it: back, pick any phase, forward. */
27
+ export declare function CardStageBar({ current, track, stop, previous, next, enteredAt, moving, elapsed: formatElapsed, onMove, }: CardStageBarProps): import("react").JSX.Element;
28
+ /** Read-only stage pill for cards the viewer can't move. */
29
+ export declare function CardStageSummary({ phase, note }: {
30
+ phase: CardStagePhase;
31
+ note?: string;
32
+ }): import("react").JSX.Element;
@@ -0,0 +1,27 @@
1
+ import type { ComponentPropsWithoutRef } from 'react';
2
+ type HeadingProps = ComponentPropsWithoutRef<'h3'> & {
3
+ node?: unknown;
4
+ };
5
+ declare const HEADINGS_BELOW: {
6
+ h2: {
7
+ h1: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
8
+ h2: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
9
+ h3: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
10
+ h4: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
11
+ h5: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
12
+ h6: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
13
+ };
14
+ h3: {
15
+ h1: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
16
+ h2: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
17
+ h3: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
18
+ h4: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
19
+ h5: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
20
+ h6: ({ node: _node, ...props }: HeadingProps) => import("react").JSX.Element;
21
+ };
22
+ };
23
+ export declare function DescriptionMarkdown({ children, titleLevel, }: {
24
+ children: string;
25
+ titleLevel: keyof typeof HEADINGS_BELOW;
26
+ }): import("react").JSX.Element;
27
+ export {};
@@ -0,0 +1,9 @@
1
+ export * from './session-layout';
2
+ export * from './session-panel';
3
+ export * from './card-stage-bar';
4
+ export * from './moves-graph';
5
+ export * from './moves-graph-model';
6
+ export * from './description-markdown';
7
+ export * from './card-description';
8
+ export * from './card-overview';
9
+ export * from './panel-frame';
@@ -0,0 +1,37 @@
1
+ import type { BoardPhaseKind } from '../board/board-icons';
2
+ export interface MovesGraphEntry {
3
+ stage: string;
4
+ enteredAt: string;
5
+ exitedAt?: string | null;
6
+ }
7
+ export interface MovesGraphPhase {
8
+ id: string;
9
+ name: string;
10
+ /** Icon kind; leave unset where the board draws its own stage art. */
11
+ kind?: BoardPhaseKind;
12
+ /** Stays in a working phase draw solid; others draw faint. */
13
+ working?: boolean;
14
+ }
15
+ export interface MovesGraphStay<E extends MovesGraphEntry = MovesGraphEntry> {
16
+ entry: E;
17
+ from: number;
18
+ to: number;
19
+ lane: number;
20
+ working: boolean;
21
+ start: number;
22
+ width: number;
23
+ }
24
+ /** How the graph words times and lengths; hosts pass their own to match the rest of their UI. */
25
+ export interface MovesGraphLabels {
26
+ /** A stay's length: `<1m`, `20m`, `2h 5m`. */
27
+ elapsed: (from: number, to: number) => string;
28
+ /** The moment a stay began, with the clock. */
29
+ moment: (time: number, now: number) => string;
30
+ /** When the first stay began, after "Since". */
31
+ start: (time: number, now: number) => string;
32
+ }
33
+ /** Lays out a card's stays: one lane per phase visited, in board order, each stay sized by how long it lasted. */
34
+ export declare function movesGraph<E extends MovesGraphEntry>(history: readonly E[], phases: readonly MovesGraphPhase[], now: number): {
35
+ lanes: string[];
36
+ stays: MovesGraphStay<E>[];
37
+ };
@@ -0,0 +1,8 @@
1
+ import type { MovesGraphEntry, MovesGraphLabels, MovesGraphPhase } from './moves-graph-model';
2
+ /** A card's phase history: one lane per phase visited, a bar per stay, scrubbable by pointer or keys. */
3
+ export declare function MovesGraph({ history, phases, now, labels, }: {
4
+ history: readonly MovesGraphEntry[];
5
+ phases: readonly MovesGraphPhase[];
6
+ now: number;
7
+ labels?: MovesGraphLabels;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ /** The session panel's frame: its subject row on top, the body below. */
3
+ export declare function PanelFrame({ subject, children }: {
4
+ subject: ReactNode;
5
+ children: ReactNode;
6
+ }): import("react").JSX.Element;
7
+ /** Shows or hides a docked session panel. */
8
+ export declare function SessionPanelToggle({ open, onOpenChange }: {
9
+ open: boolean;
10
+ onOpenChange: (open: boolean) => void;
11
+ }): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ /** A raised pill in the session header: title, stage bar, actions. */
2
+ export declare const headerCapsuleClass: string;
3
+ /** One section of a card's overview in the session panel. */
4
+ export declare const overviewSectionClass = "flex flex-col gap-3 p-1.5 pb-3";
5
+ /** `elapsedLabel` reads under a minute as `<1m`, then minutes, hours and days. */
6
+ export declare function elapsedLabel(from: number, to: number): string;
7
+ export declare const overviewClass = "flex min-h-0 w-full min-w-0 grow flex-col divide-y divide-border overflow-y-auto";
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function PanelHeading({ detail, children }: {
3
+ detail?: ReactNode;
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ export declare function PanelSubject({ lead, icon, title, loading, }: {
7
+ lead?: ReactNode;
8
+ icon?: ReactNode;
9
+ title?: string;
10
+ loading?: boolean;
11
+ }): import("react").JSX.Element;