@kud/gh-ink 0.16.2 → 0.16.4
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 +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -853,7 +853,9 @@ var sortItems = (items) => [...items].sort((a, b) => {
|
|
|
853
853
|
const pd = repoPriority(a.repo) - repoPriority(b.repo);
|
|
854
854
|
if (pd !== 0) return pd;
|
|
855
855
|
const rd = a.repo.localeCompare(b.repo);
|
|
856
|
-
|
|
856
|
+
if (rd !== 0) return rd;
|
|
857
|
+
const dd = Number(a.health === "draft") - Number(b.health === "draft");
|
|
858
|
+
return dd !== 0 ? dd : b.ts - a.ts;
|
|
857
859
|
});
|
|
858
860
|
var sortByRecency = (items) => [...items].sort((a, b) => b.ts - a.ts);
|
|
859
861
|
var insertRepoHeaders = (items) => {
|
|
@@ -1644,7 +1646,8 @@ var ItemRow = ({
|
|
|
1644
1646
|
const { glyph: healthIcon, color: healthColor2 } = healthDisplay[item.health];
|
|
1645
1647
|
const icon = merged ? MERGED_FRAMES[sparkFrame % MERGED_FRAMES.length] : transient === "out" ? TRANSIT_OUT_FRAMES[sparkFrame % TRANSIT_OUT_FRAMES.length] : transient === "in" ? TRANSIT_IN_FRAMES[sparkFrame % TRANSIT_IN_FRAMES.length] : healthIcon;
|
|
1646
1648
|
const color = merged ? MERGED_COLOUR : transient ? TRANSIT_COLOUR[transient] : healthColor2;
|
|
1647
|
-
const
|
|
1649
|
+
const spokeLast = !!login && !!item.lastActor && item.lastActor === login;
|
|
1650
|
+
const [turnIcon, turnColor] = !login || !item.lastActor ? [" ", "white"] : spokeLast ? ["\u2192", "#888888"] : ["\u2190", "#FF8700"];
|
|
1648
1651
|
const numStr = `#${item.number}`.padEnd(7);
|
|
1649
1652
|
const showAuthor = !!item.author && item.author !== login;
|
|
1650
1653
|
const unresolvedLabel = item.unresolved > 0 ? `\uF086 ${item.unresolved}` : "";
|
|
@@ -1677,7 +1680,7 @@ var ItemRow = ({
|
|
|
1677
1680
|
}
|
|
1678
1681
|
),
|
|
1679
1682
|
repoLabel ? /* @__PURE__ */ jsx(Text2, { dimColor: true, children: repoLabel }) : null,
|
|
1680
|
-
unresolvedLabel ? /* @__PURE__ */ jsx(Text2, { bold:
|
|
1683
|
+
unresolvedLabel ? /* @__PURE__ */ jsx(Text2, { bold: !spokeLast, color: spokeLast ? "#888888" : "#FF8700", children: " " + unresolvedLabel }) : null,
|
|
1681
1684
|
showAuthor ? /* @__PURE__ */ jsx(Text2, { dimColor: true, italic: true, children: " by " + item.author }) : null,
|
|
1682
1685
|
ageLabel ? /* @__PURE__ */ jsx(Text2, { dimColor: true, children: " " + ageLabel }) : null,
|
|
1683
1686
|
mergedLabel ? /* @__PURE__ */ jsx(Text2, { bold: true, color: MERGED_COLOUR, children: " " + mergedLabel }) : null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-ink",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.4",
|
|
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",
|