@activecollab/components 2.0.477 → 2.0.478

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.
@@ -15,6 +15,11 @@ interface HistoryEvent {
15
15
  newest-first ordering of the stream. */
16
16
  minutesAgo: number;
17
17
  tone?: "success" | "danger" | "progress" | "neutral";
18
+ /** Full commit SHA of the build's pipeline; first 8 chars are shown.
19
+ mirrors: `events[].metadata.commit_sha` of
20
+ `/projects/{id}/tasks/{id}/source/{pull-requests|branches}/{id}/history`
21
+ — build_started / build_passed / build_failed events only. */
22
+ commitSha?: string;
18
23
  }
19
24
  /**
20
25
  * A VCS issue. Weakly referenced by any number of branches / PRs.
@@ -1 +1 @@
1
- {"version":3,"file":"SourceCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/SourceCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,WAAW,EACX,YAAY,EAIb,MAAM,OAAO,CAAC;AA0Gf,KAAK,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAa1D,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAKD,UAAU,YAAY;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;+CAC2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;CACtD;AAiDD;;;;;;;GAOG;AACH,UAAU,UAAU;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,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ClB,CAAC"}
1
+ {"version":3,"file":"SourceCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/SourceCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,WAAW,EACX,YAAY,EAIb,MAAM,OAAO,CAAC;AA0Gf,KAAK,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAa1D,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAKD,UAAU,YAAY;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;+CAC2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IACrD;;;qEAGiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiDD;;;;;;;GAOG;AACH,UAAU,UAAU;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB;0CACsC;IACtC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,KAAK,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;GASG;AACH,UAAU,SAAS;IACjB,IAAI,EAAE,IAAI,GAAG,QAAQ,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC;IACnB,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KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,KAAG,YA0GH,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,gCAItB;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,KAAG,YAcH,CAAC;AA+JF,KAAK,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,CAAC;AAEnD,QAAA,MAAM,iBAAiB,GAAI,yDAOxB;IACD,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;6DAEyD;IACzD,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,KAAG,YA0IH,CAAC;AAEF,YAAY,EACV,UAAU,EACV,KAAK,EACL,YAAY,EACZ,UAAU,EACV,UAAU,EACV,SAAS,EACT,cAAc,GACf,CAAC;AAEF,OAAO,EACL,KAAK,EACL,aAAa,EACb,QAAQ,EACR,OAAO,EACP,eAAe,EACf,iBAAiB,GAClB,CAAC"}
@@ -252,9 +252,93 @@ const CODE_ENTRIES = [{
252
252
  icon: GearIcon,
253
253
  title: "Build started",
254
254
  detail: "CI pipeline #501",
255
+ commitSha: "3d5a8f1c9b7e2604a1f8c3d5e6079b2a4c6d8e0f",
255
256
  minutesAgo: 10,
256
257
  tone: "progress"
257
258
  }]
259
+ }, {
260
+ // Two commits pushed back to back (PR #6516 in new-activecollab-front):
261
+ // the newer commit's pipeline passes first, the older commit's pipeline
262
+ // fails later and becomes the newest event. The spine reflects the head
263
+ // commit (passed); the SHA labels in the history tell the two runs apart.
264
+ kind: "pr",
265
+ title: "#6516 Link branch or pull request form",
266
+ headSha: "d78e0c63a4f2b9185e7c3d0a6b1f4e9c2d5a8b70",
267
+ repo: "frontend",
268
+ repoFull: "activecollab/frontend",
269
+ status: "open",
270
+ sourceBranch: "feature/link-branch-form",
271
+ targetBranch: "master",
272
+ contributors: [{
273
+ initials: "EP",
274
+ bg: AVATAR_COLORS.orange
275
+ }],
276
+ commits: {
277
+ value: 2,
278
+ tip: "2 commits · last 32m ago by Edis P."
279
+ },
280
+ diff: {
281
+ add: 74,
282
+ del: 18,
283
+ tip: "74 additions, 18 deletions across 4 files"
284
+ },
285
+ updatedMinsAgo: 7,
286
+ references: [],
287
+ stages: mkStages([{
288
+ state: "done",
289
+ details: ["feature/link-branch-form", "on activecollab/frontend"]
290
+ }, {
291
+ state: "done",
292
+ details: ["2 commits", "last 32m ago by Edis P."]
293
+ }, {
294
+ state: "done",
295
+ details: ["#6516 opened", "awaiting review"]
296
+ }, {
297
+ state: "done",
298
+ details: ["Build passed", "4 checks"]
299
+ }, {
300
+ state: "todo",
301
+ details: ["Not deployed"]
302
+ }]),
303
+ pipelineSupported: true,
304
+ history: [{
305
+ icon: GitCommitIcon,
306
+ title: "2 commits pushed",
307
+ detail: "Last by Edis P.: “Keep the Link Branch or Pull Request form visible”",
308
+ minutesAgo: 33
309
+ }, {
310
+ icon: GearIcon,
311
+ title: "Build started",
312
+ minutesAgo: 32,
313
+ tone: "progress",
314
+ commitSha: "c1e3cc7e5b2a9f4d8e1c6b3a0f7d2e9c4b1a8f53"
315
+ }, {
316
+ icon: GearIcon,
317
+ title: "Build started",
318
+ minutesAgo: 24,
319
+ tone: "progress",
320
+ commitSha: "d78e0c63a4f2b9185e7c3d0a6b1f4e9c2d5a8b70"
321
+ }, {
322
+ icon: GitPullRequestIcon,
323
+ title: "Pull request opened",
324
+ detail: "Target: master by Edis P.",
325
+ minutesAgo: 15,
326
+ tone: "progress"
327
+ }, {
328
+ icon: GearIcon,
329
+ title: "Build passed",
330
+ detail: "All 4 checks passed",
331
+ minutesAgo: 13,
332
+ tone: "success",
333
+ commitSha: "d78e0c63a4f2b9185e7c3d0a6b1f4e9c2d5a8b70"
334
+ }, {
335
+ icon: GearFailedIcon,
336
+ title: "Build failed",
337
+ detail: "1 of 4 checks failed",
338
+ minutesAgo: 7,
339
+ tone: "danger",
340
+ commitSha: "c1e3cc7e5b2a9f4d8e1c6b3a0f7d2e9c4b1a8f53"
341
+ }]
258
342
  }, {
259
343
  kind: "branch",
260
344
  title: "spike/rank-cache",
@@ -416,12 +500,14 @@ const CODE_ENTRIES = [{
416
500
  icon: GearIcon,
417
501
  title: "Build started",
418
502
  detail: "CI pipeline #479",
503
+ commitSha: "5c8e1f0a3b6d9247e1c4f7a0b3d6e9f2a5c8b1d4",
419
504
  minutesAgo: 8639,
420
505
  tone: "progress"
421
506
  }, {
422
507
  icon: GearFailedIcon,
423
508
  title: "Build failed",
424
509
  detail: "3 of 12 checks failed",
510
+ commitSha: "5c8e1f0a3b6d9247e1c4f7a0b3d6e9f2a5c8b1d4",
425
511
  minutesAgo: 8635,
426
512
  tone: "danger"
427
513
  }, {
@@ -433,6 +519,7 @@ const CODE_ENTRIES = [{
433
519
  icon: GearIcon,
434
520
  title: "Build passed",
435
521
  detail: "All 12 checks passed · CI pipeline #482",
522
+ commitSha: "b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5",
436
523
  minutesAgo: 7195,
437
524
  tone: "success"
438
525
  }, {
@@ -841,15 +928,36 @@ const Spine = _ref3 => {
841
928
  });
842
929
  };
843
930
 
931
+ /* Short commit SHA — monospace Caption 1 in the muted (tertiary → theme-600)
932
+ colour, full SHA on hover. Used for the head commit on a code row and for
933
+ the build's commit on history events. Never shrinks: a neighbouring title
934
+ truncates first. */
935
+ const StyledSha = styled(Caption1).withConfig({
936
+ displayName: "SourceCodeSection__StyledSha",
937
+ componentId: "sc-rvqbh5-1"
938
+ })(["font-family:", ";flex-shrink:0;white-space:nowrap;"], MONO);
939
+ const CommitSha = _ref4 => {
940
+ let sha = _ref4.sha,
941
+ _ref4$label = _ref4.label,
942
+ label = _ref4$label === void 0 ? "Commit" : _ref4$label,
943
+ className = _ref4.className;
944
+ return /*#__PURE__*/React.createElement(Tooltip, {
945
+ title: label + ": " + sha
946
+ }, /*#__PURE__*/React.createElement(StyledSha, {
947
+ color: "tertiary",
948
+ className: className
949
+ }, sha.slice(0, 8)));
950
+ };
951
+
844
952
  /* The whole content scrolls together (header + stream + note) once the stream
845
953
  is long — the dialog title bar stays fixed, everything below scrolls. */
846
954
  const StyledHistory = styled.div.withConfig({
847
955
  displayName: "SourceCodeSection__StyledHistory",
848
- componentId: "sc-rvqbh5-1"
956
+ componentId: "sc-rvqbh5-2"
849
957
  })(["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);
850
- const HistoryDialog = _ref4 => {
851
- let entry = _ref4.entry,
852
- onClose = _ref4.onClose;
958
+ const HistoryDialog = _ref5 => {
959
+ let entry = _ref5.entry,
960
+ onClose = _ref5.onClose;
853
961
  return (
854
962
  /*#__PURE__*/
855
963
  /* Same width as the Source Code dialog, so the two read alike when one opens
@@ -921,6 +1029,8 @@ const HistoryDialog = _ref4 => {
921
1029
  height: 12,
922
1030
  fill: "var(--red-alert)"
923
1031
  })
1032
+ }), ev.commitSha && /*#__PURE__*/React.createElement(CommitSha, {
1033
+ sha: ev.commitSha
924
1034
  })), ev.detail && /*#__PURE__*/React.createElement("span", {
925
1035
  className: "hist-line"
926
1036
  }, ev.detail), ev.author && /*#__PURE__*/React.createElement("span", {
@@ -946,14 +1056,14 @@ const HistoryDialog = _ref4 => {
946
1056
 
947
1057
  const StyledSourceCode = styled.div.withConfig({
948
1058
  displayName: "SourceCodeSection__StyledSourceCode",
949
- componentId: "sc-rvqbh5-2"
950
- })(["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);
1059
+ componentId: "sc-rvqbh5-3"
1060
+ })(["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-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;"]));
951
1061
 
952
1062
  /* Element name — a link that opens the object in a new tab. Keeps the row's
953
1063
  typography (inherits color + weight), turns primary on hover, link cursor. */
954
1064
  const TitleLink = styled.a.withConfig({
955
1065
  displayName: "SourceCodeSection__TitleLink",
956
- componentId: "sc-rvqbh5-3"
1066
+ componentId: "sc-rvqbh5-4"
957
1067
  })(["color:inherit;text-decoration:none;cursor:pointer;transition:color 200ms ease;&:hover{color:var(--color-primary);}"]);
958
1068
 
959
1069
  /* Status label chip — the DS `Chip` styled to match the app's
@@ -997,10 +1107,10 @@ const CHIP_TONE_STYLES = {
997
1107
  fail: CHIP_FAIL_STYLE,
998
1108
  gone: CHIP_GONE_STYLE
999
1109
  };
1000
- const StatusChip = _ref5 => {
1001
- let label = _ref5.label,
1002
- tone = _ref5.tone,
1003
- glyph = _ref5.glyph;
1110
+ const StatusChip = _ref6 => {
1111
+ let label = _ref6.label,
1112
+ tone = _ref6.tone,
1113
+ glyph = _ref6.glyph;
1004
1114
  return /*#__PURE__*/React.createElement(Chip, {
1005
1115
  label: label,
1006
1116
  startAdornment: glyph,
@@ -1024,13 +1134,13 @@ const CONTRIBUTOR_NAMES = {
1024
1134
  IS: "Ilija Studen",
1025
1135
  MK: "Marko K."
1026
1136
  };
1027
- const MockAvatar = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
1028
- let _ref6$size = _ref6.size,
1029
- size = _ref6$size === void 0 ? 20 : _ref6$size,
1030
- bg = _ref6.bg,
1031
- initials = _ref6.initials,
1032
- alt = _ref6.alt,
1033
- rest = _objectWithoutPropertiesLoose(_ref6, _excluded);
1137
+ const MockAvatar = /*#__PURE__*/React.forwardRef((_ref7, ref) => {
1138
+ let _ref7$size = _ref7.size,
1139
+ size = _ref7$size === void 0 ? 20 : _ref7$size,
1140
+ bg = _ref7.bg,
1141
+ initials = _ref7.initials,
1142
+ alt = _ref7.alt,
1143
+ rest = _objectWithoutPropertiesLoose(_ref7, _excluded);
1034
1144
  return (
1035
1145
  /*#__PURE__*/
1036
1146
  // `...rest` carries the props AvatarGroup and its Tooltip inject via
@@ -1051,10 +1161,10 @@ MockAvatar.displayName = "MockAvatar";
1051
1161
  the same through a styled wrapper (`tw-` classes don't run in Storybook). */
1052
1162
  const StyledAvatarGroup = styled(AvatarGroup).withConfig({
1053
1163
  displayName: "SourceCodeSection__StyledAvatarGroup",
1054
- componentId: "sc-rvqbh5-4"
1164
+ componentId: "sc-rvqbh5-5"
1055
1165
  })(["&&{padding:0;}"]);
1056
- const ContributorAvatars = _ref7 => {
1057
- let contributors = _ref7.contributors;
1166
+ const ContributorAvatars = _ref8 => {
1167
+ let contributors = _ref8.contributors;
1058
1168
  return /*#__PURE__*/React.createElement(StyledAvatarGroup, {
1059
1169
  limit: 4,
1060
1170
  size: 20,
@@ -1069,8 +1179,8 @@ const ContributorAvatars = _ref7 => {
1069
1179
  });
1070
1180
  }));
1071
1181
  };
1072
- const IssueRow = _ref8 => {
1073
- let issue = _ref8.issue;
1182
+ const IssueRow = _ref9 => {
1183
+ let issue = _ref9.issue;
1074
1184
  const closed = issue.state === "closed";
1075
1185
  return /*#__PURE__*/React.createElement("div", {
1076
1186
  className: "sc-row"
@@ -1113,8 +1223,8 @@ const IssueRow = _ref8 => {
1113
1223
  color: "tertiary"
1114
1224
  }, formatAgo(issue.updatedMinsAgo)))));
1115
1225
  };
1116
- const CodeStatusChip = _ref9 => {
1117
- let entry = _ref9.entry;
1226
+ const CodeStatusChip = _ref0 => {
1227
+ let entry = _ref0.entry;
1118
1228
  if (entry.status === "merged") {
1119
1229
  return /*#__PURE__*/React.createElement(StatusChip, {
1120
1230
  label: "Merged",
@@ -1146,9 +1256,9 @@ const CodeStatusChip = _ref9 => {
1146
1256
  // Open branches / PRs show no status label.
1147
1257
  return null;
1148
1258
  };
1149
- const CodeRow = _ref0 => {
1150
- let entry = _ref0.entry,
1151
- onOpenHistory = _ref0.onOpenHistory;
1259
+ const CodeRow = _ref1 => {
1260
+ let entry = _ref1.entry,
1261
+ onOpenHistory = _ref1.onOpenHistory;
1152
1262
  const deleted = entry.status === "deleted";
1153
1263
  // A closed-without-merge PR is still a live link, but its name is struck
1154
1264
  // through to signal the dead-end; the strike lifts on hover so it reads as a
@@ -1212,12 +1322,11 @@ const CodeRow = _ref0 => {
1212
1322
  }, /*#__PURE__*/React.createElement(GitCommitIcon, {
1213
1323
  width: 14,
1214
1324
  height: 14
1215
- }), entry.commits.value)), /*#__PURE__*/React.createElement(Tooltip, {
1216
- title: "Head commit: " + entry.headSha
1217
- }, /*#__PURE__*/React.createElement(Caption1, {
1218
- color: "tertiary",
1219
- className: "sc-sig sc-sha"
1220
- }, entry.headSha.slice(0, 8))), entry.diff && /*#__PURE__*/React.createElement(Tooltip, {
1325
+ }), entry.commits.value)), /*#__PURE__*/React.createElement(CommitSha, {
1326
+ sha: entry.headSha,
1327
+ label: "Head commit",
1328
+ className: "sc-sig"
1329
+ }), entry.diff && /*#__PURE__*/React.createElement(Tooltip, {
1221
1330
  title: entry.diff.tip
1222
1331
  }, /*#__PURE__*/React.createElement("span", {
1223
1332
  className: "sc-sig sc-diff"
@@ -1237,10 +1346,10 @@ const CodeRow = _ref0 => {
1237
1346
  onClick: onOpenHistory
1238
1347
  }));
1239
1348
  };
1240
- const CompletedHeader = _ref1 => {
1241
- let expanded = _ref1.expanded,
1242
- count = _ref1.count,
1243
- onToggle = _ref1.onToggle;
1349
+ const CompletedHeader = _ref10 => {
1350
+ let expanded = _ref10.expanded,
1351
+ count = _ref10.count,
1352
+ onToggle = _ref10.onToggle;
1244
1353
  return /*#__PURE__*/React.createElement("div", {
1245
1354
  className: "sc-completed-row"
1246
1355
  }, /*#__PURE__*/React.createElement(Button, {
@@ -1264,11 +1373,11 @@ const codeElementKey = e => "code:" + e.repo + "-" + e.title;
1264
1373
  default; a 6px radius matches the Linking and Commands trigger beside it. */
1265
1374
  const UnlinkTriggerButton = styled(Button).withConfig({
1266
1375
  displayName: "SourceCodeSection__UnlinkTriggerButton",
1267
- componentId: "sc-rvqbh5-5"
1376
+ componentId: "sc-rvqbh5-6"
1268
1377
  })(["&&{border-radius:var(--ac-br-6);}"]);
1269
1378
  const StyledUnlink = styled.div.withConfig({
1270
1379
  displayName: "SourceCodeSection__StyledUnlink",
1271
- componentId: "sc-rvqbh5-6"
1380
+ componentId: "sc-rvqbh5-7"
1272
1381
  })([".unlink-error{display:block;margin-bottom:12px;}.unlink-list{list-style:none;margin:0;padding:0;}.unlink-item{display:flex;align-items:center;gap:8px;padding:8px 0;}.unlink-label{min-width:0;cursor:pointer;}"]);
1273
1382
 
1274
1383
  /** Stands in for the unlink request. Production replaces it with the real call
@@ -1284,11 +1393,11 @@ const mockUnlinkRequest = () => new Promise(resolve => setTimeout(resolve, 700))
1284
1393
  * elements and closes the dialog with no toast; on failure the dialog shows
1285
1394
  * "Unable to unlink selected items" and re-enables the buttons.
1286
1395
  */
1287
- const UnlinkDialog = _ref10 => {
1288
- let open = _ref10.open,
1289
- elements = _ref10.elements,
1290
- onClose = _ref10.onClose,
1291
- onConfirm = _ref10.onConfirm;
1396
+ const UnlinkDialog = _ref11 => {
1397
+ let open = _ref11.open,
1398
+ elements = _ref11.elements,
1399
+ onClose = _ref11.onClose,
1400
+ onConfirm = _ref11.onConfirm;
1292
1401
  const _useState = useState(new Set()),
1293
1402
  selected = _useState[0],
1294
1403
  setSelected = _useState[1];
@@ -1359,17 +1468,17 @@ const UnlinkDialog = _ref10 => {
1359
1468
  onClick: onClose
1360
1469
  }, "Cancel")));
1361
1470
  };
1362
- const SourceCodeSection = _ref11 => {
1363
- let _ref11$variant = _ref11.variant,
1364
- variant = _ref11$variant === void 0 ? "mix" : _ref11$variant,
1365
- issues = _ref11.issues,
1366
- code = _ref11.code,
1367
- _ref11$showHeader = _ref11.showHeader,
1368
- showHeader = _ref11$showHeader === void 0 ? true : _ref11$showHeader,
1369
- _ref11$showLink = _ref11.showLink,
1370
- showLink = _ref11$showLink === void 0 ? true : _ref11$showLink,
1371
- _ref11$flush = _ref11.flush,
1372
- flush = _ref11$flush === void 0 ? false : _ref11$flush;
1471
+ const SourceCodeSection = _ref12 => {
1472
+ let _ref12$variant = _ref12.variant,
1473
+ variant = _ref12$variant === void 0 ? "mix" : _ref12$variant,
1474
+ issues = _ref12.issues,
1475
+ code = _ref12.code,
1476
+ _ref12$showHeader = _ref12.showHeader,
1477
+ showHeader = _ref12$showHeader === void 0 ? true : _ref12$showHeader,
1478
+ _ref12$showLink = _ref12.showLink,
1479
+ showLink = _ref12$showLink === void 0 ? true : _ref12$showLink,
1480
+ _ref12$flush = _ref12.flush,
1481
+ flush = _ref12$flush === void 0 ? false : _ref12$flush;
1373
1482
  const _useState4 = useState(null),
1374
1483
  openEntry = _useState4[0],
1375
1484
  setOpenEntry = _useState4[1];