@kud/gh-ink 0.42.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +20 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -665,8 +665,24 @@ var healthDisplay = {
|
|
|
665
665
|
pending: { glyph: "*", color: colors.warning },
|
|
666
666
|
approved: { glyph: "\u2713", color: colors.success },
|
|
667
667
|
waiting: { glyph: "\xB7", color: colors.muted },
|
|
668
|
-
|
|
669
|
-
|
|
668
|
+
// The one glyph here that MEANS its state rather than merely differing from
|
|
669
|
+
// the others. `✓` and `✗` you never have to think about; `»` you did — it was
|
|
670
|
+
// chosen to suggest "moved through", which is a stretch nobody reads at a
|
|
671
|
+
// glance. This is Nerd Font's git-merge icon, written as an escape because raw
|
|
672
|
+
// PUA bytes get mangled by editors and diffs.
|
|
673
|
+
//
|
|
674
|
+
// The cost, stated rather than discovered: a terminal without a Nerd Font
|
|
675
|
+
// draws a box here where it used to draw a chevron. That is a trade this
|
|
676
|
+
// package has already made once — the inbox hardcodes the comment glyph at
|
|
677
|
+
// \u{f086} — and one state degrading to tofu is cheaper than ten states none
|
|
678
|
+
// of which say what they mean.
|
|
679
|
+
merged: { glyph: "\uE727", color: colors.muted },
|
|
680
|
+
// Nerd Font's closed-pull-request icon, for the same reason as `merged` above
|
|
681
|
+
// and with the same caveat about a font that lacks it. `×` had a second problem
|
|
682
|
+
// beyond being arbitrary: it is one stroke away from `✗` (ci failing) two rows
|
|
683
|
+
// up in this very map, and the shape-distinctness this file turns on is a
|
|
684
|
+
// silhouette test, not a codepoint one.
|
|
685
|
+
closed: { glyph: "\uEBDA", color: colors.muted }
|
|
670
686
|
};
|
|
671
687
|
var healthGlyph = (h) => healthDisplay[h].glyph;
|
|
672
688
|
var healthColor = (h) => healthDisplay[h].color;
|
|
@@ -1952,7 +1968,7 @@ var TRANSIT_COLOUR = {
|
|
|
1952
1968
|
"moved-out": "#FF8700"
|
|
1953
1969
|
};
|
|
1954
1970
|
var TRANSIT_LABEL = {
|
|
1955
|
-
out: "
|
|
1971
|
+
out: "gone"};
|
|
1956
1972
|
var isDeparture = (t) => t === "out" || t === "moved-out";
|
|
1957
1973
|
var isArrival = (t) => t === "in" || t === "moved-in";
|
|
1958
1974
|
var LEAVING_HOLD_MS = 2500;
|
|
@@ -2037,7 +2053,7 @@ var ItemRow = ({
|
|
|
2037
2053
|
const showAuthor = !!item.author && item.author !== login;
|
|
2038
2054
|
const unresolvedLabel = item.unresolved > 0 ? `\uF086 ${item.unresolved}` : "";
|
|
2039
2055
|
const ageLabel = item.activityAge && item.activityAge !== item.age ? `${item.activityAge} \xB7 ${item.age}` : item.age;
|
|
2040
|
-
const mergedLabel = merged ? "
|
|
2056
|
+
const mergedLabel = merged ? "merged" : "";
|
|
2041
2057
|
const pillCaps = [mergedLabel, farewellLabel].filter(Boolean).length * 2;
|
|
2042
2058
|
const repoLabel = depthOf(item) > 0 ? item.repo : "";
|
|
2043
2059
|
const givingUp = { author: false, threads: false, age: false, repo: false };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-ink",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"description": "Ink components for rendering GitHub PR review comments and health — controlled, presentation-only, built on @kud/ink-ui and fed by @kud/gh.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@kud/gh": "0.9.0",
|
|
52
|
-
"@kud/ink-ui": "0.
|
|
52
|
+
"@kud/ink-ui": "0.20.0",
|
|
53
53
|
"zx": "8.8.5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|