@kud/gh-cockpit 0.4.27 → 0.4.29
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 +8 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import { parsePatterns, HealthPanel, CommentsPanel, inboxConfig } from '@kud/gh-
|
|
|
4
4
|
import { $ } from 'zx';
|
|
5
5
|
import { useState, useEffect } from 'react';
|
|
6
6
|
import { useInput, Box, Text } from 'ink';
|
|
7
|
-
import { useTabs, Tabs, useListCursor,
|
|
7
|
+
import { useTabs, colors, Tabs, useListCursor, ScrollView } from '@kud/ink-ui';
|
|
8
8
|
import { fetchHealth, fetchPrComments } from '@kud/gh';
|
|
9
|
-
import { sizeOf, filesOf } from '@kud/gh-workflow';
|
|
9
|
+
import { sizePartsOf, sizeOf, filesOf } from '@kud/gh-workflow';
|
|
10
10
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
11
11
|
import { readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
12
12
|
import { homedir } from 'os';
|
|
@@ -370,6 +370,7 @@ var PrView = ({
|
|
|
370
370
|
() => fetchHealth(item.repo, item.number)
|
|
371
371
|
);
|
|
372
372
|
const summary = summaryOf(item, health.data, process.stdout.columns ?? 80);
|
|
373
|
+
const sizeParts = health.data ? sizePartsOf(health.data) : null;
|
|
373
374
|
const checkLabel = (c) => c.workflowName ? `${c.workflowName} / ${c.context ?? c.name}` : c.context ?? c.name ?? "";
|
|
374
375
|
const onOpenCheck = (c) => {
|
|
375
376
|
const url = c.detailsUrl ?? c.targetUrl ?? "";
|
|
@@ -509,7 +510,11 @@ var PrView = ({
|
|
|
509
510
|
hints,
|
|
510
511
|
children: [
|
|
511
512
|
summary.size || summary.files || summary.rest ? /* @__PURE__ */ jsxs(Box, { children: [
|
|
512
|
-
|
|
513
|
+
sizeParts ? /* @__PURE__ */ jsxs(Text, { bold: true, children: [
|
|
514
|
+
/* @__PURE__ */ jsx(Text, { color: colors.success, children: sizeParts.added }),
|
|
515
|
+
" ",
|
|
516
|
+
/* @__PURE__ */ jsx(Text, { color: colors.error, children: sizeParts.removed })
|
|
517
|
+
] }) : null,
|
|
513
518
|
summary.size && (summary.files || summary.rest) ? /* @__PURE__ */ jsx(Text, { dimColor: true, children: " \xB7 " }) : null,
|
|
514
519
|
summary.files ? /* @__PURE__ */ jsx(Text, { children: summary.files }) : null,
|
|
515
520
|
summary.files && summary.rest ? /* @__PURE__ */ jsx(Text, { dimColor: true, children: " \xB7 " }) : null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-cockpit",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.29",
|
|
4
4
|
"description": "A configurable GitHub cockpit for the terminal — your PRs, reviews and issues in one Ink TUI, grouped by whose move it is.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@kud/gh": "0.16.0",
|
|
57
|
-
"@kud/gh-ink": "0.50.
|
|
57
|
+
"@kud/gh-ink": "0.50.2",
|
|
58
58
|
"@kud/ink-ui": "0.25.0",
|
|
59
59
|
"zx": "8.8.5",
|
|
60
|
-
"@kud/gh-workflow": "0.
|
|
60
|
+
"@kud/gh-workflow": "0.8.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "22.20.1",
|