@ondrej-svec/hog 1.9.0 → 1.9.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/cli.js +22 -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,12 @@ 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
|
+
const rowAbove = flatRows[scrollRef.current - 1];
|
|
5406
|
+
if (rowAbove?.type === "subHeader") {
|
|
5407
|
+
scrollRef.current -= 1;
|
|
5408
|
+
}
|
|
5409
|
+
}
|
|
5392
5410
|
}
|
|
5393
5411
|
const maxOffset = Math.max(0, flatRows.length - viewportHeight);
|
|
5394
5412
|
scrollRef.current = Math.max(0, Math.min(scrollRef.current, maxOffset));
|
|
@@ -6916,7 +6934,7 @@ function resolveProjectId(projectId) {
|
|
|
6916
6934
|
process.exit(1);
|
|
6917
6935
|
}
|
|
6918
6936
|
var program = new Command();
|
|
6919
|
-
program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.9.
|
|
6937
|
+
program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.9.1").option("--json", "Force JSON output").option("--human", "Force human-readable output").hook("preAction", (thisCommand) => {
|
|
6920
6938
|
const opts = thisCommand.opts();
|
|
6921
6939
|
if (opts.json) setFormat("json");
|
|
6922
6940
|
if (opts.human) setFormat("human");
|