@kud/gh-ink 0.49.0 → 0.50.1
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 +7 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { spawn } from 'child_process';
|
|
|
8
8
|
import { readFileSync, mkdirSync, writeFileSync, existsSync, readdirSync, statSync, watch, rmSync } from 'fs';
|
|
9
9
|
import { join, dirname, basename } from 'path';
|
|
10
10
|
import { homedir } from 'os';
|
|
11
|
-
import { depthOf, checkoutDirs, profileOf, inboxConfig, relativeTime, filterBySearch, filterByRepos, filterByOrigin, PIN_MARK, labelPriority } from '@kud/gh-workflow';
|
|
11
|
+
import { depthOf, checkoutDirs, profileOf, inboxConfig, relativeTime, filterBySearch, filterByRepos, filterByOrigin, PIN_MARK, sizeOf, labelPriority } from '@kud/gh-workflow';
|
|
12
12
|
export { PIN_MARK, checkoutDirs, configureInbox, filterByOrigin, filterByRepos, filterBySearch, inboxConfig, insertRepoHeaders, labelPriority, layoutGHItems, profileOf, relativeTime, repoPriority, resetInboxConfig, sortByRecency, sortItems, whoseMove } from '@kud/gh-workflow';
|
|
13
13
|
|
|
14
14
|
// src/components/comments-panel.tsx
|
|
@@ -1928,6 +1928,7 @@ var ItemRow = ({
|
|
|
1928
1928
|
const [turnIcon, turnColor] = item.pinned ? [PIN_MARK, "#FF8700"] : !login || !item.lastActor ? [" ", "white"] : spokeLast ? ["\u2192", "#888888"] : ["\u2190", "#FF8700"];
|
|
1929
1929
|
const numStr = `#${item.number}`.padEnd(7);
|
|
1930
1930
|
const showAuthor = !!item.author && item.author !== login;
|
|
1931
|
+
const sizeLabel = showAuthor ? sizeOf(item) : null;
|
|
1931
1932
|
const unresolvedLabel = item.unresolved > 0 ? `\uF086 ${item.unresolved}` : "";
|
|
1932
1933
|
const ageLabel = item.activityAge && item.activityAge !== item.age ? `${item.activityAge} \xB7 ${item.age}` : item.age;
|
|
1933
1934
|
const mergedLabel = merged ? "merged" : "";
|
|
@@ -1936,6 +1937,7 @@ var ItemRow = ({
|
|
|
1936
1937
|
const labelNames = [...item.labels ?? []].sort((a, b) => labelPriority(a) - labelPriority(b) || a.localeCompare(b)).slice(0, 2);
|
|
1937
1938
|
const givingUp = {
|
|
1938
1939
|
author: false,
|
|
1940
|
+
size: false,
|
|
1939
1941
|
threads: false,
|
|
1940
1942
|
age: false,
|
|
1941
1943
|
repo: false,
|
|
@@ -1961,6 +1963,8 @@ var ItemRow = ({
|
|
|
1961
1963
|
const widthOf2 = () => {
|
|
1962
1964
|
const suffix = [
|
|
1963
1965
|
givingUp.age ? "" : ageLabel || "",
|
|
1966
|
+
// ASCII only, so no PUA double-width correction — see the label cell.
|
|
1967
|
+
givingUp.size ? "" : sizeLabel || "",
|
|
1964
1968
|
givingUp.threads ? "" : unresolvedLabel,
|
|
1965
1969
|
showAuthor && !givingUp.author ? `by ${item.author}` : "",
|
|
1966
1970
|
mergedLabel
|
|
@@ -1972,6 +1976,7 @@ var ItemRow = ({
|
|
|
1972
1976
|
for (const give of [
|
|
1973
1977
|
() => givingUp.author = true,
|
|
1974
1978
|
() => givingUp.labels = 1,
|
|
1979
|
+
() => givingUp.size = true,
|
|
1975
1980
|
() => givingUp.threads = true,
|
|
1976
1981
|
() => givingUp.labels = 2,
|
|
1977
1982
|
() => givingUp.repo = true,
|
|
@@ -1999,6 +2004,7 @@ var ItemRow = ({
|
|
|
1999
2004
|
),
|
|
2000
2005
|
labelLabel ? /* @__PURE__ */ jsx(Text3, { dimColor: true, children: labelLabel + " " }) : null,
|
|
2001
2006
|
repoLabel && !givingUp.repo ? /* @__PURE__ */ jsx(Text3, { dimColor: true, children: repoLabel }) : null,
|
|
2007
|
+
sizeLabel && !givingUp.size ? /* @__PURE__ */ jsx(Text3, { children: " " + sizeLabel }) : null,
|
|
2002
2008
|
unresolvedLabel && !givingUp.threads ? /* @__PURE__ */ jsx(Text3, { bold: !spokeLast, color: spokeLast ? "#888888" : "#FF8700", children: " " + unresolvedLabel }) : null,
|
|
2003
2009
|
showAuthor && !givingUp.author ? /* @__PURE__ */ jsx(Text3, { dimColor: true, italic: true, children: " by " + item.author }) : null,
|
|
2004
2010
|
ageLabel && !givingUp.age ? /* @__PURE__ */ jsx(Text3, { dimColor: true, children: " " + ageLabel }) : null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-ink",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.1",
|
|
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",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"react": ">=19"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@kud/gh": "0.
|
|
52
|
-
"@kud/gh-workflow": "0.
|
|
51
|
+
"@kud/gh": "0.16.0",
|
|
52
|
+
"@kud/gh-workflow": "0.7.1",
|
|
53
53
|
"@kud/ink-ui": "0.25.0",
|
|
54
54
|
"zx": "8.8.5"
|
|
55
55
|
},
|