@activecollab/components 2.0.461 → 2.0.463
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/dist/cjs/presentation/shared/SourceCodeSection.js +70 -50
- package/dist/cjs/presentation/shared/SourceCodeSection.js.map +1 -1
- package/dist/cjs/presentation/shared/index.js +36 -0
- package/dist/cjs/presentation/shared/index.js.map +1 -1
- package/dist/cjs/presentation/shared/settings.js +73 -18
- package/dist/cjs/presentation/shared/settings.js.map +1 -1
- package/dist/cjs/presentation/shared/systemSettingsDialog.js +150 -0
- package/dist/cjs/presentation/shared/systemSettingsDialog.js.map +1 -0
- package/dist/cjs/presentation/shared/tokens.js +13 -1
- package/dist/cjs/presentation/shared/tokens.js.map +1 -1
- package/dist/esm/presentation/shared/SourceCodeSection.d.ts +20 -5
- package/dist/esm/presentation/shared/SourceCodeSection.d.ts.map +1 -1
- package/dist/esm/presentation/shared/SourceCodeSection.js +72 -52
- package/dist/esm/presentation/shared/SourceCodeSection.js.map +1 -1
- package/dist/esm/presentation/shared/index.d.ts +4 -2
- package/dist/esm/presentation/shared/index.d.ts.map +1 -1
- package/dist/esm/presentation/shared/index.js +2 -1
- package/dist/esm/presentation/shared/index.js.map +1 -1
- package/dist/esm/presentation/shared/settings.d.ts +20 -6
- package/dist/esm/presentation/shared/settings.d.ts.map +1 -1
- package/dist/esm/presentation/shared/settings.js +73 -18
- package/dist/esm/presentation/shared/settings.js.map +1 -1
- package/dist/esm/presentation/shared/systemSettingsDialog.d.ts +40 -0
- package/dist/esm/presentation/shared/systemSettingsDialog.d.ts.map +1 -0
- package/dist/esm/presentation/shared/systemSettingsDialog.js +137 -0
- package/dist/esm/presentation/shared/systemSettingsDialog.js.map +1 -0
- package/dist/esm/presentation/shared/tokens.d.ts +11 -0
- package/dist/esm/presentation/shared/tokens.d.ts.map +1 -1
- package/dist/esm/presentation/shared/tokens.js +12 -0
- package/dist/esm/presentation/shared/tokens.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,6 @@ var _AddToListButton = require("../../components/Button/AddToListButton");
|
|
|
16
16
|
var _Checkbox = require("../../components/Checkbox");
|
|
17
17
|
var _Chip = require("../../components/Chip");
|
|
18
18
|
var _Dialog = require("../../components/Dialog");
|
|
19
|
-
var _IconButton = require("../../components/IconButton");
|
|
20
19
|
var _Icons = require("../../components/Icons");
|
|
21
20
|
var _Label = require("../../components/Label");
|
|
22
21
|
var _StepSequence = require("../../components/StepSequence");
|
|
@@ -48,8 +47,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
48
47
|
* here updates every story at once.
|
|
49
48
|
*/
|
|
50
49
|
|
|
51
|
-
var SANS = '-apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif';
|
|
52
|
-
|
|
53
50
|
/* Icons in the collection colour either via `stroke` (outline glyphs whose root
|
|
54
51
|
is `fill="none"`) or via `fill`. To tint a history glyph by tone we must set
|
|
55
52
|
the right one — this set marks the stroke-based glyphs used in the stream. */
|
|
@@ -91,6 +88,15 @@ var IssueStateIcon = function IssueStateIcon(_ref) {
|
|
|
91
88
|
/* ================================================================== */
|
|
92
89
|
|
|
93
90
|
var STAGE_NAMES = ["Branch", "Commits", "Pull request", "CI / Build", "Deploy"];
|
|
91
|
+
|
|
92
|
+
/* mirrors: no payload yet — the pipeline spine is a concept. The shipped
|
|
93
|
+
`/tasks/{id}/source` response carries no stages; when it does, `state` is the
|
|
94
|
+
field to align first. */
|
|
95
|
+
|
|
96
|
+
/* mirrors: `useTaskSourceHistory` (new-activecollab-front
|
|
97
|
+
`repository/useTaskSource.js`). `icon` and `tone` are render-time choices the
|
|
98
|
+
mock stores because the concept has no event-type vocabulary yet. */
|
|
99
|
+
|
|
94
100
|
var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
95
101
|
var pad = function pad(n) {
|
|
96
102
|
return String(n).padStart(2, "0");
|
|
@@ -126,9 +132,25 @@ var formatAgo = function formatAgo(minutesAgo) {
|
|
|
126
132
|
return "".concat(monthDay, " ").concat(then.getFullYear(), " ").concat(time);
|
|
127
133
|
};
|
|
128
134
|
|
|
129
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* A VCS issue. Weakly referenced by any number of branches / PRs.
|
|
137
|
+
*
|
|
138
|
+
* mirrors: an `issues[]` row of `/projects/{id}/tasks/{id}/source`
|
|
139
|
+
* (new-activecollab-front `tasks/SourceCode/SourceCodeRow.jsx` propTypes:
|
|
140
|
+
* `type`, `state`, `number`, `title`, `url`). The mock still uses the concept's
|
|
141
|
+
* own names (`ref`, `repo`, `repoFull`); aligning them is a separate step.
|
|
142
|
+
*/
|
|
130
143
|
|
|
131
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* A branch or pull request read from the VCS.
|
|
146
|
+
*
|
|
147
|
+
* mirrors: a `branches[]` / `pull_requests[]` row of
|
|
148
|
+
* `/projects/{id}/tasks/{id}/source` (`type`, `state`, `number`, `title`,
|
|
149
|
+
* `name`, `url`, `is_closing`, `repository`, `provider`, `commits_count`,
|
|
150
|
+
* `updated_on`). Field names here are still the concept's own, and
|
|
151
|
+
* `commits.tip`, `stages`, `history` and `pipelineSupported` have no payload
|
|
152
|
+
* yet — see the handover.
|
|
153
|
+
*/
|
|
132
154
|
|
|
133
155
|
var mkStages = function mkStages(defs) {
|
|
134
156
|
return defs.map(function (d, i) {
|
|
@@ -168,7 +190,6 @@ var ISSUES = [{
|
|
|
168
190
|
repo: "backend",
|
|
169
191
|
repoFull: "activecollab/backend",
|
|
170
192
|
state: "open",
|
|
171
|
-
updatedLabel: "20m ago",
|
|
172
193
|
updatedMinsAgo: 20
|
|
173
194
|
}, {
|
|
174
195
|
ref: "#455",
|
|
@@ -176,7 +197,6 @@ var ISSUES = [{
|
|
|
176
197
|
repo: "backend",
|
|
177
198
|
repoFull: "activecollab/backend",
|
|
178
199
|
state: "open",
|
|
179
|
-
updatedLabel: "3h ago",
|
|
180
200
|
updatedMinsAgo: 180
|
|
181
201
|
}, {
|
|
182
202
|
ref: "#470",
|
|
@@ -184,7 +204,6 @@ var ISSUES = [{
|
|
|
184
204
|
repo: "backend",
|
|
185
205
|
repoFull: "activecollab/backend",
|
|
186
206
|
state: "closed",
|
|
187
|
-
updatedLabel: "4d ago",
|
|
188
207
|
updatedMinsAgo: 5760
|
|
189
208
|
}];
|
|
190
209
|
|
|
@@ -223,7 +242,6 @@ var CODE_ENTRIES = [{
|
|
|
223
242
|
value: 2,
|
|
224
243
|
tip: "2 comments on the pull request"
|
|
225
244
|
},
|
|
226
|
-
updatedLabel: "10m ago",
|
|
227
245
|
updatedMinsAgo: 10,
|
|
228
246
|
references: ["#482"],
|
|
229
247
|
stages: mkStages([{
|
|
@@ -292,7 +310,6 @@ var CODE_ENTRIES = [{
|
|
|
292
310
|
tip: "38 additions, 4 deletions across 2 files"
|
|
293
311
|
},
|
|
294
312
|
noPrLabel: "no pull request yet",
|
|
295
|
-
updatedLabel: "30m ago",
|
|
296
313
|
updatedMinsAgo: 30,
|
|
297
314
|
references: [],
|
|
298
315
|
stages: mkStages([{
|
|
@@ -338,7 +355,6 @@ var CODE_ENTRIES = [{
|
|
|
338
355
|
tip: "214 additions, 52 deletions across 9 files"
|
|
339
356
|
},
|
|
340
357
|
noPrLabel: "no pull request yet",
|
|
341
|
-
updatedLabel: "1h ago",
|
|
342
358
|
updatedMinsAgo: 60,
|
|
343
359
|
references: ["#482"],
|
|
344
360
|
stages: mkStages([{
|
|
@@ -396,7 +412,6 @@ var CODE_ENTRIES = [{
|
|
|
396
412
|
value: 5,
|
|
397
413
|
tip: "5 comments on the pull request"
|
|
398
414
|
},
|
|
399
|
-
updatedLabel: "5h ago",
|
|
400
415
|
updatedMinsAgo: 300,
|
|
401
416
|
references: ["#455"],
|
|
402
417
|
stages: mkStages([{
|
|
@@ -542,7 +557,6 @@ var CODE_ENTRIES = [{
|
|
|
542
557
|
del: 37,
|
|
543
558
|
tip: "405 additions, 37 deletions across 11 files"
|
|
544
559
|
},
|
|
545
|
-
updatedLabel: "2d ago",
|
|
546
560
|
updatedMinsAgo: 2880,
|
|
547
561
|
references: ["#482", "#470"],
|
|
548
562
|
stages: mkStages([{
|
|
@@ -602,7 +616,6 @@ var CODE_ENTRIES = [{
|
|
|
602
616
|
value: 12,
|
|
603
617
|
tip: "12 comments on the pull request"
|
|
604
618
|
},
|
|
605
|
-
updatedLabel: "2d ago",
|
|
606
619
|
updatedMinsAgo: 2900,
|
|
607
620
|
references: ["#482", "#470"],
|
|
608
621
|
stages: mkStages([{
|
|
@@ -655,7 +668,6 @@ var CODE_ENTRIES = [{
|
|
|
655
668
|
del: 3,
|
|
656
669
|
tip: "6 additions, 3 deletions across 1 file"
|
|
657
670
|
},
|
|
658
|
-
updatedLabel: "5d ago",
|
|
659
671
|
updatedMinsAgo: 7000,
|
|
660
672
|
references: ["#470"],
|
|
661
673
|
stages: mkStages([{
|
|
@@ -707,7 +719,6 @@ var CODE_ENTRIES = [{
|
|
|
707
719
|
del: 8,
|
|
708
720
|
tip: "52 additions, 8 deletions across 3 files"
|
|
709
721
|
},
|
|
710
|
-
updatedLabel: "5d ago",
|
|
711
722
|
updatedMinsAgo: 7200,
|
|
712
723
|
references: ["#470"],
|
|
713
724
|
stages: mkStages([{
|
|
@@ -765,7 +776,6 @@ var CODE_ENTRIES = [{
|
|
|
765
776
|
value: 3,
|
|
766
777
|
tip: "3 comments on the pull request"
|
|
767
778
|
},
|
|
768
|
-
updatedLabel: "3d ago",
|
|
769
779
|
updatedMinsAgo: 4320,
|
|
770
780
|
references: ["#455"],
|
|
771
781
|
stages: mkStages([{
|
|
@@ -874,7 +884,7 @@ var Spine = exports.Spine = function Spine(_ref3) {
|
|
|
874
884
|
var StyledHistory = _styledComponents.default.div.withConfig({
|
|
875
885
|
displayName: "SourceCodeSection__StyledHistory",
|
|
876
886
|
componentId: "sc-rvqbh5-1"
|
|
877
|
-
})(["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);}.
|
|
887
|
+
})(["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;}"], _tokens.SANS);
|
|
878
888
|
var HistoryDialog = exports.HistoryDialog = function HistoryDialog(_ref4) {
|
|
879
889
|
var entry = _ref4.entry,
|
|
880
890
|
onClose = _ref4.onClose;
|
|
@@ -883,19 +893,8 @@ var HistoryDialog = exports.HistoryDialog = function HistoryDialog(_ref4) {
|
|
|
883
893
|
onClose: onClose,
|
|
884
894
|
enableBackgroundClick: true
|
|
885
895
|
}, /*#__PURE__*/_react.default.createElement(_Dialog.Dialog.Title, {
|
|
886
|
-
|
|
887
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
888
|
-
style: {
|
|
889
|
-
display: "flex",
|
|
890
|
-
alignItems: "center",
|
|
891
|
-
justifyContent: "space-between",
|
|
892
|
-
gap: 12
|
|
893
|
-
}
|
|
894
|
-
}, /*#__PURE__*/_react.default.createElement(_Typography.Header3, null, (entry === null || entry === void 0 ? void 0 : entry.kind) === "branch" ? "Branch History" : "Pull Request History"), /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, {
|
|
895
|
-
type: "button",
|
|
896
|
-
variant: "text gray",
|
|
897
|
-
onClick: onClose
|
|
898
|
-
}, /*#__PURE__*/_react.default.createElement(_Icons.CancelCrossIcon, null)))), /*#__PURE__*/_react.default.createElement(_Dialog.Dialog.ContentDivider, null), /*#__PURE__*/_react.default.createElement(_Dialog.Dialog.Content, null, entry && /*#__PURE__*/_react.default.createElement(StyledHistory, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
896
|
+
onClose: onClose
|
|
897
|
+
}, (entry === null || entry === void 0 ? void 0 : entry.kind) === "branch" ? "Branch History" : "Pull Request History"), /*#__PURE__*/_react.default.createElement(_Dialog.Dialog.ContentDivider, null), /*#__PURE__*/_react.default.createElement(_Dialog.Dialog.Content, null, entry && /*#__PURE__*/_react.default.createElement(StyledHistory, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
899
898
|
className: "hist-header"
|
|
900
899
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
901
900
|
className: "hist-name"
|
|
@@ -950,13 +949,15 @@ var HistoryDialog = exports.HistoryDialog = function HistoryDialog(_ref4) {
|
|
|
950
949
|
width: 16,
|
|
951
950
|
height: 16,
|
|
952
951
|
fill: "var(--color-sucess-green)"
|
|
953
|
-
})), ev.tone === "danger" && /*#__PURE__*/_react.default.createElement(
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
952
|
+
})), ev.tone === "danger" && /*#__PURE__*/_react.default.createElement(StatusChip, {
|
|
953
|
+
label: "Failed",
|
|
954
|
+
tone: "fail",
|
|
955
|
+
glyph: /*#__PURE__*/_react.default.createElement(_Icons.CloseIcon, {
|
|
956
|
+
width: 12,
|
|
957
|
+
height: 12,
|
|
958
|
+
fill: "var(--red-alert)"
|
|
959
|
+
})
|
|
960
|
+
})), ev.detail && /*#__PURE__*/_react.default.createElement("span", {
|
|
960
961
|
className: "hist-line"
|
|
961
962
|
}, ev.detail), ev.author && /*#__PURE__*/_react.default.createElement("span", {
|
|
962
963
|
className: "hist-line"
|
|
@@ -982,9 +983,9 @@ var HistoryDialog = exports.HistoryDialog = function HistoryDialog(_ref4) {
|
|
|
982
983
|
var StyledSourceCode = _styledComponents.default.div.withConfig({
|
|
983
984
|
displayName: "SourceCodeSection__StyledSourceCode",
|
|
984
985
|
componentId: "sc-rvqbh5-2"
|
|
985
|
-
})(["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;
|
|
986
|
+
})(["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;}"], _tokens.SANS, function (p) {
|
|
986
987
|
return p.$flush && (0, _styledComponents.css)(["margin:0;padding-bottom:0;border-bottom:none;"]);
|
|
987
|
-
});
|
|
988
|
+
}, _tokens.MONO);
|
|
988
989
|
|
|
989
990
|
/* Element name — a link that opens the object in a new tab. Keeps the row's
|
|
990
991
|
typography (inherits color + weight), turns primary on hover, link cursor. */
|
|
@@ -1012,11 +1013,28 @@ var CHIP_GONE_STYLE = _objectSpread(_objectSpread({}, CHIP_BASE_STYLE), {}, {
|
|
|
1012
1013
|
border: "1px solid var(--border-primary)"
|
|
1013
1014
|
});
|
|
1014
1015
|
|
|
1016
|
+
/* Fail tone — the failed-check label in the history stream. */
|
|
1017
|
+
var CHIP_FAIL_STYLE = _objectSpread(_objectSpread({}, CHIP_BASE_STYLE), {}, {
|
|
1018
|
+
backgroundColor: "color-mix(in srgb, var(--red-alert) 15%, transparent)"
|
|
1019
|
+
});
|
|
1020
|
+
|
|
1015
1021
|
/* Info tone — the default (blue) InfoBox recipe: blueSky tint + solid border. */
|
|
1016
1022
|
var CHIP_INFO_STYLE = _objectSpread(_objectSpread({}, CHIP_BASE_STYLE), {}, {
|
|
1017
1023
|
backgroundColor: "".concat(_utils.colors.blueSky.color, "1A"),
|
|
1018
1024
|
border: "1px solid ".concat(_utils.colors.blueSky.color)
|
|
1019
1025
|
});
|
|
1026
|
+
var CHIP_TONE_COLORS = {
|
|
1027
|
+
done: "var(--color-primary)",
|
|
1028
|
+
info: _utils.colors.blueSky.lighter,
|
|
1029
|
+
fail: "var(--red-alert)",
|
|
1030
|
+
gone: undefined
|
|
1031
|
+
};
|
|
1032
|
+
var CHIP_TONE_STYLES = {
|
|
1033
|
+
done: CHIP_DONE_STYLE,
|
|
1034
|
+
info: CHIP_INFO_STYLE,
|
|
1035
|
+
fail: CHIP_FAIL_STYLE,
|
|
1036
|
+
gone: CHIP_GONE_STYLE
|
|
1037
|
+
};
|
|
1020
1038
|
var StatusChip = function StatusChip(_ref5) {
|
|
1021
1039
|
var label = _ref5.label,
|
|
1022
1040
|
tone = _ref5.tone,
|
|
@@ -1024,8 +1042,8 @@ var StatusChip = function StatusChip(_ref5) {
|
|
|
1024
1042
|
return /*#__PURE__*/_react.default.createElement(_Chip.Chip, {
|
|
1025
1043
|
label: label,
|
|
1026
1044
|
startAdornment: glyph,
|
|
1027
|
-
color: tone
|
|
1028
|
-
style: tone
|
|
1045
|
+
color: CHIP_TONE_COLORS[tone],
|
|
1046
|
+
style: CHIP_TONE_STYLES[tone],
|
|
1029
1047
|
typographyProps: {
|
|
1030
1048
|
variant: "Caption 1",
|
|
1031
1049
|
weight: "bold",
|
|
@@ -1123,14 +1141,15 @@ var IssueRow = exports.IssueRow = function IssueRow(_ref8) {
|
|
|
1123
1141
|
className: "sc-sigs"
|
|
1124
1142
|
}, /*#__PURE__*/_react.default.createElement(_Tooltip.Tooltip, {
|
|
1125
1143
|
title: "Repository: ".concat(issue.repoFull)
|
|
1126
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
1144
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.Caption1, {
|
|
1145
|
+
color: "tertiary",
|
|
1127
1146
|
className: "sc-sig"
|
|
1128
1147
|
}, /*#__PURE__*/_react.default.createElement(_Icons.GitRepositoryIcon, {
|
|
1129
1148
|
width: 14,
|
|
1130
1149
|
height: 14
|
|
1131
|
-
}), issue.repo)), /*#__PURE__*/_react.default.createElement(
|
|
1132
|
-
|
|
1133
|
-
}, issue.
|
|
1150
|
+
}), issue.repo)), /*#__PURE__*/_react.default.createElement(_Typography.Caption1, {
|
|
1151
|
+
color: "tertiary"
|
|
1152
|
+
}, formatAgo(issue.updatedMinsAgo)))));
|
|
1134
1153
|
};
|
|
1135
1154
|
var CodeStatusChip = function CodeStatusChip(_ref9) {
|
|
1136
1155
|
var entry = _ref9.entry;
|
|
@@ -1215,7 +1234,8 @@ var CodeRow = exports.CodeRow = function CodeRow(_ref0) {
|
|
|
1215
1234
|
className: "sc-sigs"
|
|
1216
1235
|
}, /*#__PURE__*/_react.default.createElement(_Tooltip.Tooltip, {
|
|
1217
1236
|
title: "Repository: ".concat(entry.repoFull)
|
|
1218
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
1237
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.Caption1, {
|
|
1238
|
+
color: "tertiary",
|
|
1219
1239
|
className: "sc-sig"
|
|
1220
1240
|
}, /*#__PURE__*/_react.default.createElement(_Icons.GitRepositoryIcon, {
|
|
1221
1241
|
width: 14,
|
|
@@ -1248,9 +1268,9 @@ var CodeRow = exports.CodeRow = function CodeRow(_ref0) {
|
|
|
1248
1268
|
}, /*#__PURE__*/_react.default.createElement(_Typography.Caption1, {
|
|
1249
1269
|
color: "tertiary",
|
|
1250
1270
|
className: "sc-sig"
|
|
1251
|
-
}, /*#__PURE__*/_react.default.createElement(_Icons.MessageSmallIcon, null), entry.comments.value)), /*#__PURE__*/_react.default.createElement(
|
|
1252
|
-
|
|
1253
|
-
}, entry.
|
|
1271
|
+
}, /*#__PURE__*/_react.default.createElement(_Icons.MessageSmallIcon, null), entry.comments.value)), /*#__PURE__*/_react.default.createElement(_Typography.Caption1, {
|
|
1272
|
+
color: "tertiary"
|
|
1273
|
+
}, formatAgo(entry.updatedMinsAgo)))), /*#__PURE__*/_react.default.createElement(Spine, {
|
|
1254
1274
|
items: entry.stages,
|
|
1255
1275
|
onClick: onOpenHistory
|
|
1256
1276
|
}));
|