@activecollab/components 2.0.462 → 2.0.464

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 (55) hide show
  1. package/dist/cjs/components/Dialog/Dialog.js +13 -0
  2. package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
  3. package/dist/cjs/components/Dialog/Styles.js +1 -1
  4. package/dist/cjs/components/Dialog/Styles.js.map +1 -1
  5. package/dist/cjs/components/Dialog/useFluidHeightAnimation.js +85 -0
  6. package/dist/cjs/components/Dialog/useFluidHeightAnimation.js.map +1 -0
  7. package/dist/cjs/components/Icons/collection/Reply.js +62 -0
  8. package/dist/cjs/components/Icons/collection/Reply.js.map +1 -0
  9. package/dist/cjs/components/Icons/collection/index.js +7 -0
  10. package/dist/cjs/components/Icons/collection/index.js.map +1 -1
  11. package/dist/cjs/components/Tooltip/Tooltip.js +4 -1
  12. package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
  13. package/dist/cjs/components/Transitions/FromElement/FromElement.js +6 -3
  14. package/dist/cjs/components/Transitions/FromElement/FromElement.js.map +1 -1
  15. package/dist/cjs/presentation/shared/SourceCodeSection.js +70 -50
  16. package/dist/cjs/presentation/shared/SourceCodeSection.js.map +1 -1
  17. package/dist/cjs/presentation/shared/tokens.js +13 -1
  18. package/dist/cjs/presentation/shared/tokens.js.map +1 -1
  19. package/dist/esm/components/Dialog/Dialog.d.ts.map +1 -1
  20. package/dist/esm/components/Dialog/Dialog.js +7 -1
  21. package/dist/esm/components/Dialog/Dialog.js.map +1 -1
  22. package/dist/esm/components/Dialog/Styles.d.ts.map +1 -1
  23. package/dist/esm/components/Dialog/Styles.js +1 -1
  24. package/dist/esm/components/Dialog/Styles.js.map +1 -1
  25. package/dist/esm/components/Dialog/useFluidHeightAnimation.d.ts +4 -0
  26. package/dist/esm/components/Dialog/useFluidHeightAnimation.d.ts.map +1 -0
  27. package/dist/esm/components/Dialog/useFluidHeightAnimation.js +70 -0
  28. package/dist/esm/components/Dialog/useFluidHeightAnimation.js.map +1 -0
  29. package/dist/esm/components/Icons/collection/Reply.d.ts +32 -0
  30. package/dist/esm/components/Icons/collection/Reply.d.ts.map +1 -0
  31. package/dist/esm/components/Icons/collection/Reply.js +55 -0
  32. package/dist/esm/components/Icons/collection/Reply.js.map +1 -0
  33. package/dist/esm/components/Icons/collection/index.d.ts +1 -0
  34. package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
  35. package/dist/esm/components/Icons/collection/index.js +1 -0
  36. package/dist/esm/components/Icons/collection/index.js.map +1 -1
  37. package/dist/esm/components/Tooltip/Tooltip.js +5 -2
  38. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  39. package/dist/esm/components/Transitions/FromElement/FromElement.d.ts +2 -0
  40. package/dist/esm/components/Transitions/FromElement/FromElement.d.ts.map +1 -1
  41. package/dist/esm/components/Transitions/FromElement/FromElement.js +5 -2
  42. package/dist/esm/components/Transitions/FromElement/FromElement.js.map +1 -1
  43. package/dist/esm/presentation/shared/SourceCodeSection.d.ts +20 -5
  44. package/dist/esm/presentation/shared/SourceCodeSection.d.ts.map +1 -1
  45. package/dist/esm/presentation/shared/SourceCodeSection.js +72 -52
  46. package/dist/esm/presentation/shared/SourceCodeSection.js.map +1 -1
  47. package/dist/esm/presentation/shared/tokens.d.ts +11 -0
  48. package/dist/esm/presentation/shared/tokens.d.ts.map +1 -1
  49. package/dist/esm/presentation/shared/tokens.js +12 -0
  50. package/dist/esm/presentation/shared/tokens.js.map +1 -1
  51. package/dist/index.js +570 -428
  52. package/dist/index.js.map +1 -1
  53. package/dist/index.min.js +1 -1
  54. package/dist/index.min.js.map +1 -1
  55. package/package.json +1 -1
@@ -6,19 +6,18 @@ import styled, { css } from "styled-components";
6
6
  import { LinkBranchOrPullRequestDialog } from "./LinkBranchOrPullRequestDialog";
7
7
  import { LinkingCommandsButton } from "./LinkingCommandsButton";
8
8
  import { RoundAvatar } from "./RoundAvatar";
9
- import { AVATAR_COLORS } from "./tokens";
9
+ import { AVATAR_COLORS, MONO, SANS } from "./tokens";
10
10
  import { AvatarGroup } from "../../components/AvatarGroup";
11
11
  import { Button } from "../../components/Button";
12
12
  import { AddToListButton } from "../../components/Button/AddToListButton";
13
13
  import { Checkbox } from "../../components/Checkbox";
14
14
  import { Chip } from "../../components/Chip";
15
15
  import { Dialog } from "../../components/Dialog";
16
- import { IconButton } from "../../components/IconButton";
17
- import { ArrowRightIcon, CancelCrossIcon, CheckboxBlankTogglerIcon, CheckIcon, CircleDotIcon, CloseIcon, CloudDeployFailedIcon, CloudDeployIcon, EyeIcon, GearFailedIcon, GearIcon, GitBranchIcon, GitCommitIcon, GitMergeIcon, GitPullRequestClosedIcon, GitPullRequestDraftIcon, GitPullRequestIcon, GitRepositoryIcon, InfoSmallIcon, MessageIcon, MessageSmallIcon, TrashIcon } from "../../components/Icons";
16
+ import { ArrowRightIcon, CheckboxBlankTogglerIcon, CheckIcon, CircleDotIcon, CloseIcon, CloudDeployFailedIcon, CloudDeployIcon, EyeIcon, GearFailedIcon, GearIcon, GitBranchIcon, GitCommitIcon, GitMergeIcon, GitPullRequestClosedIcon, GitPullRequestDraftIcon, GitPullRequestIcon, GitRepositoryIcon, InfoSmallIcon, MessageIcon, MessageSmallIcon, TrashIcon } from "../../components/Icons";
18
17
  import { Label } from "../../components/Label";
19
18
  import { StepSequence } from "../../components/StepSequence";
20
19
  import { Tooltip } from "../../components/Tooltip";
21
- import { Body1, Body2, Caption1, Header3 } from "../../components/Typography";
20
+ import { Body1, Body2, Caption1 } from "../../components/Typography";
22
21
  import { colors } from "../../utils";
23
22
 
24
23
  /**
@@ -30,8 +29,6 @@ import { colors } from "../../utils";
30
29
  * here updates every story at once.
31
30
  */
32
31
 
33
- const SANS = '-apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif';
34
-
35
32
  /* Icons in the collection colour either via `stroke` (outline glyphs whose root
36
33
  is `fill="none"`) or via `fill`. To tint a history glyph by tone we must set
37
34
  the right one — this set marks the stroke-based glyphs used in the stream. */
@@ -71,6 +68,15 @@ const IssueStateIcon = _ref => {
71
68
  /* ================================================================== */
72
69
 
73
70
  const STAGE_NAMES = ["Branch", "Commits", "Pull request", "CI / Build", "Deploy"];
71
+
72
+ /* mirrors: no payload yet — the pipeline spine is a concept. The shipped
73
+ `/tasks/{id}/source` response carries no stages; when it does, `state` is the
74
+ field to align first. */
75
+
76
+ /* mirrors: `useTaskSourceHistory` (new-activecollab-front
77
+ `repository/useTaskSource.js`). `icon` and `tone` are render-time choices the
78
+ mock stores because the concept has no event-type vocabulary yet. */
79
+
74
80
  const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
75
81
  const pad = n => String(n).padStart(2, "0");
76
82
 
@@ -104,9 +110,25 @@ const formatAgo = minutesAgo => {
104
110
  return monthDay + " " + then.getFullYear() + " " + time;
105
111
  };
106
112
 
107
- /** A VCS issue. Weakly referenced by any number of branches / PRs. */
113
+ /**
114
+ * A VCS issue. Weakly referenced by any number of branches / PRs.
115
+ *
116
+ * mirrors: an `issues[]` row of `/projects/{id}/tasks/{id}/source`
117
+ * (new-activecollab-front `tasks/SourceCode/SourceCodeRow.jsx` propTypes:
118
+ * `type`, `state`, `number`, `title`, `url`). The mock still uses the concept's
119
+ * own names (`ref`, `repo`, `repoFull`); aligning them is a separate step.
120
+ */
108
121
 
109
- /** A branch or pull request read from the VCS. */
122
+ /**
123
+ * A branch or pull request read from the VCS.
124
+ *
125
+ * mirrors: a `branches[]` / `pull_requests[]` row of
126
+ * `/projects/{id}/tasks/{id}/source` (`type`, `state`, `number`, `title`,
127
+ * `name`, `url`, `is_closing`, `repository`, `provider`, `commits_count`,
128
+ * `updated_on`). Field names here are still the concept's own, and
129
+ * `commits.tip`, `stages`, `history` and `pipelineSupported` have no payload
130
+ * yet — see the handover.
131
+ */
110
132
 
111
133
  const mkStages = defs => defs.map((d, i) => _extends({
112
134
  name: STAGE_NAMES[i]
@@ -134,7 +156,6 @@ const ISSUES = [{
134
156
  repo: "backend",
135
157
  repoFull: "activecollab/backend",
136
158
  state: "open",
137
- updatedLabel: "20m ago",
138
159
  updatedMinsAgo: 20
139
160
  }, {
140
161
  ref: "#455",
@@ -142,7 +163,6 @@ const ISSUES = [{
142
163
  repo: "backend",
143
164
  repoFull: "activecollab/backend",
144
165
  state: "open",
145
- updatedLabel: "3h ago",
146
166
  updatedMinsAgo: 180
147
167
  }, {
148
168
  ref: "#470",
@@ -150,7 +170,6 @@ const ISSUES = [{
150
170
  repo: "backend",
151
171
  repoFull: "activecollab/backend",
152
172
  state: "closed",
153
- updatedLabel: "4d ago",
154
173
  updatedMinsAgo: 5760
155
174
  }];
156
175
 
@@ -189,7 +208,6 @@ const CODE_ENTRIES = [{
189
208
  value: 2,
190
209
  tip: "2 comments on the pull request"
191
210
  },
192
- updatedLabel: "10m ago",
193
211
  updatedMinsAgo: 10,
194
212
  references: ["#482"],
195
213
  stages: mkStages([{
@@ -258,7 +276,6 @@ const CODE_ENTRIES = [{
258
276
  tip: "38 additions, 4 deletions across 2 files"
259
277
  },
260
278
  noPrLabel: "no pull request yet",
261
- updatedLabel: "30m ago",
262
279
  updatedMinsAgo: 30,
263
280
  references: [],
264
281
  stages: mkStages([{
@@ -304,7 +321,6 @@ const CODE_ENTRIES = [{
304
321
  tip: "214 additions, 52 deletions across 9 files"
305
322
  },
306
323
  noPrLabel: "no pull request yet",
307
- updatedLabel: "1h ago",
308
324
  updatedMinsAgo: 60,
309
325
  references: ["#482"],
310
326
  stages: mkStages([{
@@ -362,7 +378,6 @@ const CODE_ENTRIES = [{
362
378
  value: 5,
363
379
  tip: "5 comments on the pull request"
364
380
  },
365
- updatedLabel: "5h ago",
366
381
  updatedMinsAgo: 300,
367
382
  references: ["#455"],
368
383
  stages: mkStages([{
@@ -508,7 +523,6 @@ const CODE_ENTRIES = [{
508
523
  del: 37,
509
524
  tip: "405 additions, 37 deletions across 11 files"
510
525
  },
511
- updatedLabel: "2d ago",
512
526
  updatedMinsAgo: 2880,
513
527
  references: ["#482", "#470"],
514
528
  stages: mkStages([{
@@ -568,7 +582,6 @@ const CODE_ENTRIES = [{
568
582
  value: 12,
569
583
  tip: "12 comments on the pull request"
570
584
  },
571
- updatedLabel: "2d ago",
572
585
  updatedMinsAgo: 2900,
573
586
  references: ["#482", "#470"],
574
587
  stages: mkStages([{
@@ -621,7 +634,6 @@ const CODE_ENTRIES = [{
621
634
  del: 3,
622
635
  tip: "6 additions, 3 deletions across 1 file"
623
636
  },
624
- updatedLabel: "5d ago",
625
637
  updatedMinsAgo: 7000,
626
638
  references: ["#470"],
627
639
  stages: mkStages([{
@@ -673,7 +685,6 @@ const CODE_ENTRIES = [{
673
685
  del: 8,
674
686
  tip: "52 additions, 8 deletions across 3 files"
675
687
  },
676
- updatedLabel: "5d ago",
677
688
  updatedMinsAgo: 7200,
678
689
  references: ["#470"],
679
690
  stages: mkStages([{
@@ -731,7 +742,6 @@ const CODE_ENTRIES = [{
731
742
  value: 3,
732
743
  tip: "3 comments on the pull request"
733
744
  },
734
- updatedLabel: "3d ago",
735
745
  updatedMinsAgo: 4320,
736
746
  references: ["#455"],
737
747
  stages: mkStages([{
@@ -836,7 +846,7 @@ const Spine = _ref3 => {
836
846
  const StyledHistory = styled.div.withConfig({
837
847
  displayName: "SourceCodeSection__StyledHistory",
838
848
  componentId: "sc-rvqbh5-1"
839
- })(["font-family:", ";max-height:60vh;overflow-y:auto;padding-right:4px;.hist-header{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--border-primary);}.hist-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}.hist-branches{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px;font-size:13px;color:var(--color-theme-600);}.hist-branch{display:inline-flex;align-items:center;gap:4px;}.hist-repo{display:inline-flex;align-items:center;gap:4px;margin-top:6px;font-size:13px;color:var(--color-theme-600);}.sc-chip{display:inline-flex;align-items:center;gap:3px;height:20px;padding:0 8px;border-radius:6px;font-size:11px;font-weight:700;letter-spacing:0.02em;flex-shrink:0;}.sc-chip.done{color:var(--color-primary);background:color-mix(in srgb,var(--color-primary) 15%,transparent);}.sc-chip.gone{color:var(--color-theme-900);background:var(--color-theme-200);border:1px solid var(--border-primary);}.sc-chip.fail{color:var(--red-alert);background:color-mix(in srgb,var(--red-alert) 15%,transparent);}.hist-event{display:flex;align-items:center;gap:12px;padding-bottom:20px;}.hist-event:last-child{padding-bottom:0;}.hist-icon{flex-shrink:0;width:22px;height:22px;display:flex;align-items:center;justify-content:center;}.hist-body{flex:1 1 auto;min-width:0;}.hist-title{display:flex;align-items:center;gap:6px;min-width:0;}.hist-title > *:first-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.hist-status{flex-shrink:0;display:inline-flex;}.hist-line{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;line-height:1.5;color:var(--color-theme-600);}.hist-meta{flex-shrink:0;align-self:flex-start;text-align:right;white-space:nowrap;}.hist-note{display:flex;align-items:center;gap:6px;margin-top:16px;color:var(--color-theme-500);}.hist-note svg{flex-shrink:0;}"], SANS);
849
+ })(["font-family:", ";max-height:60vh;overflow-y:auto;padding-right:4px;.hist-header{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--border-primary);}.hist-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}.hist-branches{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px;font-size:13px;color:var(--color-theme-600);}.hist-branch{display:inline-flex;align-items:center;gap:4px;}.hist-repo{display:inline-flex;align-items:center;gap:4px;margin-top:6px;font-size:13px;color:var(--color-theme-600);}.hist-event{display:flex;align-items:center;gap:12px;padding-bottom:20px;}.hist-event:last-child{padding-bottom:0;}.hist-icon{flex-shrink:0;width:22px;height:22px;display:flex;align-items:center;justify-content:center;}.hist-body{flex:1 1 auto;min-width:0;}.hist-title{display:flex;align-items:center;gap:6px;min-width:0;}.hist-title > *:first-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.hist-status{flex-shrink:0;display:inline-flex;}.hist-line{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;line-height:1.5;color:var(--color-theme-600);}.hist-meta{flex-shrink:0;align-self:flex-start;text-align:right;white-space:nowrap;}.hist-note{display:flex;align-items:center;gap:6px;margin-top:16px;color:var(--color-theme-500);}.hist-note svg{flex-shrink:0;}"], SANS);
840
850
  const HistoryDialog = _ref4 => {
841
851
  let entry = _ref4.entry,
842
852
  onClose = _ref4.onClose;
@@ -845,19 +855,8 @@ const HistoryDialog = _ref4 => {
845
855
  onClose: onClose,
846
856
  enableBackgroundClick: true
847
857
  }, /*#__PURE__*/React.createElement(Dialog.Title, {
848
- disableDefaultHeading: true
849
- }, /*#__PURE__*/React.createElement("div", {
850
- style: {
851
- display: "flex",
852
- alignItems: "center",
853
- justifyContent: "space-between",
854
- gap: 12
855
- }
856
- }, /*#__PURE__*/React.createElement(Header3, null, (entry == null ? void 0 : entry.kind) === "branch" ? "Branch History" : "Pull Request History"), /*#__PURE__*/React.createElement(IconButton, {
857
- type: "button",
858
- variant: "text gray",
859
- onClick: onClose
860
- }, /*#__PURE__*/React.createElement(CancelCrossIcon, null)))), /*#__PURE__*/React.createElement(Dialog.ContentDivider, null), /*#__PURE__*/React.createElement(Dialog.Content, null, entry && /*#__PURE__*/React.createElement(StyledHistory, null, /*#__PURE__*/React.createElement("div", {
858
+ onClose: onClose
859
+ }, (entry == null ? void 0 : entry.kind) === "branch" ? "Branch History" : "Pull Request History"), /*#__PURE__*/React.createElement(Dialog.ContentDivider, null), /*#__PURE__*/React.createElement(Dialog.Content, null, entry && /*#__PURE__*/React.createElement(StyledHistory, null, /*#__PURE__*/React.createElement("div", {
861
860
  className: "hist-header"
862
861
  }, /*#__PURE__*/React.createElement("div", {
863
862
  className: "hist-name"
@@ -909,13 +908,15 @@ const HistoryDialog = _ref4 => {
909
908
  width: 16,
910
909
  height: 16,
911
910
  fill: "var(--color-sucess-green)"
912
- })), ev.tone === "danger" && /*#__PURE__*/React.createElement("span", {
913
- className: "sc-chip fail"
914
- }, /*#__PURE__*/React.createElement(CloseIcon, {
915
- width: 12,
916
- height: 12,
917
- fill: "var(--red-alert)"
918
- }), "Failed")), ev.detail && /*#__PURE__*/React.createElement("span", {
911
+ })), ev.tone === "danger" && /*#__PURE__*/React.createElement(StatusChip, {
912
+ label: "Failed",
913
+ tone: "fail",
914
+ glyph: /*#__PURE__*/React.createElement(CloseIcon, {
915
+ width: 12,
916
+ height: 12,
917
+ fill: "var(--red-alert)"
918
+ })
919
+ })), ev.detail && /*#__PURE__*/React.createElement("span", {
919
920
  className: "hist-line"
920
921
  }, ev.detail), ev.author && /*#__PURE__*/React.createElement("span", {
921
922
  className: "hist-line"
@@ -940,7 +941,7 @@ const HistoryDialog = _ref4 => {
940
941
  const StyledSourceCode = styled.div.withConfig({
941
942
  displayName: "SourceCodeSection__StyledSourceCode",
942
943
  componentId: "sc-rvqbh5-2"
943
- })(["font-family:", ";margin:0 0 16px;padding-bottom:16px;border-bottom:1px solid var(--border-primary);", " .sc-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;}.sc-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}.sc-completed-row{display:flex;align-items:center;margin-top:8px;padding-top:8px;border-top:1px solid var(--border-primary);}.sc-add{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding-top:12px;border-top:1px solid var(--border-primary);}.sc-add .c--add-to-list-btn svg{box-sizing:content-box;}.sc-item{padding:12px 0;}.sc-item + .sc-item{border-top:1px solid var(--border-primary);}.sc-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}.sc-main{flex:1 1 0%;min-width:0;}.sc-name{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-width:0;}.sc-lead{flex-shrink:0;display:inline-flex;color:var(--color-theme-600);}.sc-title{flex:0 1 auto;min-width:0;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.sc-title.strike{text-decoration:line-through;}.sc-title.strike-link{text-decoration:line-through;}.sc-title.strike-link:hover{text-decoration:none;}.sc-sigs{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:12px;color:var(--color-theme-600);}.sc-sig{display:inline-flex;align-items:center;gap:4px;}.sc-closing{display:inline-flex;align-items:center;flex-shrink:0;cursor:default;}.sc-sha{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;}.sc-muted{color:var(--color-theme-600);}.sc-refs{display:inline-flex;align-items:center;gap:6px;}.sc-refs .ref-link{color:var(--color-primary);font-weight:500;}"], SANS, p => p.$flush && css(["margin:0;padding-bottom:0;border-bottom:none;"]));
944
+ })(["font-family:", ";margin:0 0 16px;padding-bottom:16px;border-bottom:1px solid var(--border-primary);", " .sc-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;}.sc-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}.sc-completed-row{display:flex;align-items:center;margin-top:8px;padding-top:8px;border-top:1px solid var(--border-primary);}.sc-add{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding-top:12px;border-top:1px solid var(--border-primary);}.sc-add .c--add-to-list-btn svg{box-sizing:content-box;}.sc-item{padding:12px 0;}.sc-item + .sc-item{border-top:1px solid var(--border-primary);}.sc-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}.sc-main{flex:1 1 0%;min-width:0;}.sc-name{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-width:0;}.sc-lead{flex-shrink:0;display:inline-flex;color:var(--color-theme-600);}.sc-title{flex:0 1 auto;min-width:0;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.sc-title.strike{text-decoration:line-through;}.sc-title.strike-link{text-decoration:line-through;}.sc-title.strike-link:hover{text-decoration:none;}.sc-sigs{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;}.sc-sig{display:inline-flex;align-items:center;gap:4px;}.sc-closing{display:inline-flex;align-items:center;flex-shrink:0;cursor:default;}.sc-sha{font-family:", ";}.sc-refs{display:inline-flex;align-items:center;gap:6px;}.sc-refs .ref-link{color:var(--color-primary);font-weight:500;}"], SANS, p => p.$flush && css(["margin:0;padding-bottom:0;border-bottom:none;"]), MONO);
944
945
 
945
946
  /* Element name — a link that opens the object in a new tab. Keeps the row's
946
947
  typography (inherits color + weight), turns primary on hover, link cursor. */
@@ -968,11 +969,28 @@ const CHIP_GONE_STYLE = _extends({}, CHIP_BASE_STYLE, {
968
969
  border: "1px solid var(--border-primary)"
969
970
  });
970
971
 
972
+ /* Fail tone — the failed-check label in the history stream. */
973
+ const CHIP_FAIL_STYLE = _extends({}, CHIP_BASE_STYLE, {
974
+ backgroundColor: "color-mix(in srgb, var(--red-alert) 15%, transparent)"
975
+ });
976
+
971
977
  /* Info tone — the default (blue) InfoBox recipe: blueSky tint + solid border. */
972
978
  const CHIP_INFO_STYLE = _extends({}, CHIP_BASE_STYLE, {
973
979
  backgroundColor: colors.blueSky.color + "1A",
974
980
  border: "1px solid " + colors.blueSky.color
975
981
  });
982
+ const CHIP_TONE_COLORS = {
983
+ done: "var(--color-primary)",
984
+ info: colors.blueSky.lighter,
985
+ fail: "var(--red-alert)",
986
+ gone: undefined
987
+ };
988
+ const CHIP_TONE_STYLES = {
989
+ done: CHIP_DONE_STYLE,
990
+ info: CHIP_INFO_STYLE,
991
+ fail: CHIP_FAIL_STYLE,
992
+ gone: CHIP_GONE_STYLE
993
+ };
976
994
  const StatusChip = _ref5 => {
977
995
  let label = _ref5.label,
978
996
  tone = _ref5.tone,
@@ -980,8 +998,8 @@ const StatusChip = _ref5 => {
980
998
  return /*#__PURE__*/React.createElement(Chip, {
981
999
  label: label,
982
1000
  startAdornment: glyph,
983
- color: tone === "done" ? "var(--color-primary)" : tone === "info" ? colors.blueSky.lighter : undefined,
984
- style: tone === "done" ? CHIP_DONE_STYLE : tone === "info" ? CHIP_INFO_STYLE : CHIP_GONE_STYLE,
1001
+ color: CHIP_TONE_COLORS[tone],
1002
+ style: CHIP_TONE_STYLES[tone],
985
1003
  typographyProps: {
986
1004
  variant: "Caption 1",
987
1005
  weight: "bold",
@@ -1079,14 +1097,15 @@ const IssueRow = _ref8 => {
1079
1097
  className: "sc-sigs"
1080
1098
  }, /*#__PURE__*/React.createElement(Tooltip, {
1081
1099
  title: "Repository: " + issue.repoFull
1082
- }, /*#__PURE__*/React.createElement("span", {
1100
+ }, /*#__PURE__*/React.createElement(Caption1, {
1101
+ color: "tertiary",
1083
1102
  className: "sc-sig"
1084
1103
  }, /*#__PURE__*/React.createElement(GitRepositoryIcon, {
1085
1104
  width: 14,
1086
1105
  height: 14
1087
- }), issue.repo)), /*#__PURE__*/React.createElement("span", {
1088
- className: "sc-muted"
1089
- }, issue.updatedLabel))));
1106
+ }), issue.repo)), /*#__PURE__*/React.createElement(Caption1, {
1107
+ color: "tertiary"
1108
+ }, formatAgo(issue.updatedMinsAgo)))));
1090
1109
  };
1091
1110
  const CodeStatusChip = _ref9 => {
1092
1111
  let entry = _ref9.entry;
@@ -1171,7 +1190,8 @@ const CodeRow = _ref0 => {
1171
1190
  className: "sc-sigs"
1172
1191
  }, /*#__PURE__*/React.createElement(Tooltip, {
1173
1192
  title: "Repository: " + entry.repoFull
1174
- }, /*#__PURE__*/React.createElement("span", {
1193
+ }, /*#__PURE__*/React.createElement(Caption1, {
1194
+ color: "tertiary",
1175
1195
  className: "sc-sig"
1176
1196
  }, /*#__PURE__*/React.createElement(GitRepositoryIcon, {
1177
1197
  width: 14,
@@ -1204,9 +1224,9 @@ const CodeRow = _ref0 => {
1204
1224
  }, /*#__PURE__*/React.createElement(Caption1, {
1205
1225
  color: "tertiary",
1206
1226
  className: "sc-sig"
1207
- }, /*#__PURE__*/React.createElement(MessageSmallIcon, null), entry.comments.value)), /*#__PURE__*/React.createElement("span", {
1208
- className: "sc-muted"
1209
- }, entry.updatedLabel))), /*#__PURE__*/React.createElement(Spine, {
1227
+ }, /*#__PURE__*/React.createElement(MessageSmallIcon, null), entry.comments.value)), /*#__PURE__*/React.createElement(Caption1, {
1228
+ color: "tertiary"
1229
+ }, formatAgo(entry.updatedMinsAgo)))), /*#__PURE__*/React.createElement(Spine, {
1210
1230
  items: entry.stages,
1211
1231
  onClick: onOpenHistory
1212
1232
  }));