@kud/gh-ink 0.55.0 → 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 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
@@ -257,7 +257,8 @@ var commentLines = ({ author, body }, width, fileLink, indent = 0) => {
257
257
  { text: author, color: colors.accent, bold: true },
258
258
  { text: " " + "\u2500".repeat(fill), dim: true }
259
259
  ]
260
- }
260
+ },
261
+ { text: "" }
261
262
  ];
262
263
  const bodyLines = renderMarkdown(body, width - indent, fileLink);
263
264
  if (bodyLines.length === 0) lines.push({ text: pad + "(empty)", dim: true });
@@ -686,7 +687,8 @@ var SidePanel = ({
686
687
  /* @__PURE__ */ jsx(Text, { color: colors.accent, bold: true, children: row.wantsYou ? "\u2190 " : " " }),
687
688
  /* @__PURE__ */ jsx(Text, { bold: active, children: truncateWords(row.label, labelCols) })
688
689
  ] }),
689
- /* @__PURE__ */ jsxs(Box, { paddingLeft: FACTS_INDENT, children: [
690
+ /* @__PURE__ */ jsxs(Box, { children: [
691
+ /* @__PURE__ */ jsx(Text, { color: row.markerColor, children: " ".repeat(FACTS_INDENT - 2) + (row.marker ?? " ") + " " }),
690
692
  /* @__PURE__ */ jsx(Text, { color: colors.secondary, children: row.key.padEnd(KEY_COLS) + GUTTER }),
691
693
  /* @__PURE__ */ jsx(Progress, { row }),
692
694
  /* @__PURE__ */ jsx(Text, { children: GUTTER + (row.live !== void 0 ? liveLabel(row.live).slice(0, liveCols) : "") })
@@ -2769,10 +2771,22 @@ var BrowseScreen = ({
2769
2771
  }
2770
2772
  if (key.return || input === "o") {
2771
2773
  const row = railRows[railAt];
2772
- if (row?.url) {
2773
- quietly`open ${row.url}`.catch(() => {
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(() => {
2774
2788
  });
2775
- showFlash(`\u2197 Opened ${row.key}`);
2789
+ showFlash(`\u2197 Opened `);
2776
2790
  }
2777
2791
  return;
2778
2792
  }
@@ -3047,6 +3061,7 @@ var BrowseScreen = ({
3047
3061
  [
3048
3062
  ["\u2191\u2193", "initiative"],
3049
3063
  ["\u21B5", "open"],
3064
+ ["o", "browser"],
3050
3065
  ["\u21E5/esc", "back to list"],
3051
3066
  ["?", "help"],
3052
3067
  ["q", "quit"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/gh-ink",
3
- "version": "0.55.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",