@ondrej-svec/hog 1.9.0 → 1.9.2
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/cli.js +30 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4840,9 +4840,16 @@ function RowRenderer({ row, selectedId, selfLogin, isMultiSelected }) {
|
|
|
4840
4840
|
] })
|
|
4841
4841
|
] });
|
|
4842
4842
|
}
|
|
4843
|
-
return /* @__PURE__ */ jsxs19(
|
|
4844
|
-
|
|
4845
|
-
|
|
4843
|
+
return /* @__PURE__ */ jsxs19(Box18, { children: [
|
|
4844
|
+
/* @__PURE__ */ jsxs19(Text18, { bold: true, color: "white", children: [
|
|
4845
|
+
" ",
|
|
4846
|
+
row.text
|
|
4847
|
+
] }),
|
|
4848
|
+
row.count != null ? /* @__PURE__ */ jsxs19(Text18, { color: "gray", children: [
|
|
4849
|
+
" (",
|
|
4850
|
+
row.count,
|
|
4851
|
+
")"
|
|
4852
|
+
] }) : null
|
|
4846
4853
|
] });
|
|
4847
4854
|
}
|
|
4848
4855
|
case "issue": {
|
|
@@ -5379,6 +5386,11 @@ function Dashboard({ config: config2, options, activeProfile }) {
|
|
|
5379
5386
|
[effectiveTabId, boardTree]
|
|
5380
5387
|
);
|
|
5381
5388
|
const scrollRef = useRef13(0);
|
|
5389
|
+
const prevTabIdRef = useRef13(null);
|
|
5390
|
+
if (effectiveTabId !== prevTabIdRef.current) {
|
|
5391
|
+
prevTabIdRef.current = effectiveTabId;
|
|
5392
|
+
scrollRef.current = 0;
|
|
5393
|
+
}
|
|
5382
5394
|
const selectedRowIdx = useMemo3(
|
|
5383
5395
|
() => flatRows.findIndex((r) => r.navId === nav.selectedId),
|
|
5384
5396
|
[flatRows, nav.selectedId]
|
|
@@ -5389,6 +5401,20 @@ function Dashboard({ config: config2, options, activeProfile }) {
|
|
|
5389
5401
|
} else if (selectedRowIdx >= scrollRef.current + viewportHeight) {
|
|
5390
5402
|
scrollRef.current = selectedRowIdx - viewportHeight + 1;
|
|
5391
5403
|
}
|
|
5404
|
+
if (scrollRef.current > 0 && scrollRef.current === selectedRowIdx) {
|
|
5405
|
+
let subIdx = -1;
|
|
5406
|
+
for (let i = selectedRowIdx - 1; i >= 0; i--) {
|
|
5407
|
+
const row = flatRows[i];
|
|
5408
|
+
if (!row || row.type === "sectionHeader") break;
|
|
5409
|
+
if (row.type === "subHeader") {
|
|
5410
|
+
subIdx = i;
|
|
5411
|
+
break;
|
|
5412
|
+
}
|
|
5413
|
+
}
|
|
5414
|
+
if (subIdx >= 0 && selectedRowIdx - subIdx < viewportHeight) {
|
|
5415
|
+
scrollRef.current = subIdx;
|
|
5416
|
+
}
|
|
5417
|
+
}
|
|
5392
5418
|
}
|
|
5393
5419
|
const maxOffset = Math.max(0, flatRows.length - viewportHeight);
|
|
5394
5420
|
scrollRef.current = Math.max(0, Math.min(scrollRef.current, maxOffset));
|
|
@@ -6916,7 +6942,7 @@ function resolveProjectId(projectId) {
|
|
|
6916
6942
|
process.exit(1);
|
|
6917
6943
|
}
|
|
6918
6944
|
var program = new Command();
|
|
6919
|
-
program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.9.
|
|
6945
|
+
program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.9.2").option("--json", "Force JSON output").option("--human", "Force human-readable output").hook("preAction", (thisCommand) => {
|
|
6920
6946
|
const opts = thisCommand.opts();
|
|
6921
6947
|
if (opts.json) setFormat("json");
|
|
6922
6948
|
if (opts.human) setFormat("human");
|