@kud/gh-ink 0.55.1 → 0.56.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.d.ts +7 -0
- package/dist/index.js +18 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,13 @@ type SidebarRow = {
|
|
|
65
65
|
* an error about a host decision the reader cannot change.
|
|
66
66
|
*/
|
|
67
67
|
url?: string;
|
|
68
|
+
/**
|
|
69
|
+
* A one-cell mark drawn before the key on the facts line — a priority
|
|
70
|
+
* arrow — and its colour: the same pair `TaskRow` takes, so a host fills
|
|
71
|
+
* both from one source. Absent draws the blank the cell keeps anyway.
|
|
72
|
+
*/
|
|
73
|
+
marker?: string;
|
|
74
|
+
markerColor?: string;
|
|
68
75
|
};
|
|
69
76
|
/**
|
|
70
77
|
* Plain data, deliberately: a host caches its last fetch to disk and paints it
|
package/dist/index.js
CHANGED
|
@@ -687,7 +687,8 @@ var SidePanel = ({
|
|
|
687
687
|
/* @__PURE__ */ jsx(Text, { color: colors.accent, bold: true, children: row.wantsYou ? "\u2190 " : " " }),
|
|
688
688
|
/* @__PURE__ */ jsx(Text, { bold: active, children: truncateWords(row.label, labelCols) })
|
|
689
689
|
] }),
|
|
690
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
690
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
691
|
+
/* @__PURE__ */ jsx(Text, { color: row.markerColor, children: " ".repeat(FACTS_INDENT - 2) + (row.marker ?? " ") + " " }),
|
|
691
692
|
/* @__PURE__ */ jsx(Text, { color: colors.secondary, children: row.key.padEnd(KEY_COLS) + GUTTER }),
|
|
692
693
|
/* @__PURE__ */ jsx(Progress, { row }),
|
|
693
694
|
/* @__PURE__ */ jsx(Text, { children: GUTTER + (row.live !== void 0 ? liveLabel(row.live).slice(0, liveCols) : "") })
|
|
@@ -2770,10 +2771,22 @@ var BrowseScreen = ({
|
|
|
2770
2771
|
}
|
|
2771
2772
|
if (key.return || input === "o") {
|
|
2772
2773
|
const row = railRows[railAt];
|
|
2773
|
-
if (row
|
|
2774
|
-
|
|
2774
|
+
if (!row) return;
|
|
2775
|
+
if (key.return && openDrillView({
|
|
2776
|
+
kind: "task",
|
|
2777
|
+
key: row.key,
|
|
2778
|
+
ticket: row.key,
|
|
2779
|
+
summary: row.label,
|
|
2780
|
+
url: row.url ?? "",
|
|
2781
|
+
status: "",
|
|
2782
|
+
age: "",
|
|
2783
|
+
indent: false
|
|
2784
|
+
}))
|
|
2785
|
+
return;
|
|
2786
|
+
if (row.url) {
|
|
2787
|
+
quietly`open `.catch(() => {
|
|
2775
2788
|
});
|
|
2776
|
-
showFlash(`\u2197 Opened
|
|
2789
|
+
showFlash(`\u2197 Opened `);
|
|
2777
2790
|
}
|
|
2778
2791
|
return;
|
|
2779
2792
|
}
|
|
@@ -3048,6 +3061,7 @@ var BrowseScreen = ({
|
|
|
3048
3061
|
[
|
|
3049
3062
|
["\u2191\u2193", "initiative"],
|
|
3050
3063
|
["\u21B5", "open"],
|
|
3064
|
+
["o", "browser"],
|
|
3051
3065
|
["\u21E5/esc", "back to list"],
|
|
3052
3066
|
["?", "help"],
|
|
3053
3067
|
["q", "quit"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-ink",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.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",
|