@ondrej-svec/hog 1.14.0 → 1.14.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 CHANGED
@@ -2273,7 +2273,7 @@ function useKeyboard({
2273
2273
  handleToggleLog
2274
2274
  ]
2275
2275
  );
2276
- const inputActive = ui.state.mode === "normal" || ui.state.mode === "multiSelect" || ui.state.mode === "focus";
2276
+ const inputActive = ui.state.mode === "normal" || ui.state.mode === "multiSelect" || ui.state.mode === "focus" || ui.state.mode === "overlay:detail";
2277
2277
  useInput(handleInput, { isActive: inputActive });
2278
2278
  const handleSearchEscape = useCallback4(
2279
2279
  (_input, key) => {
@@ -2983,6 +2983,7 @@ function formatCommentAge(createdAt) {
2983
2983
  function DetailPanel({
2984
2984
  issue,
2985
2985
  width,
2986
+ height,
2986
2987
  isActive,
2987
2988
  commentsState,
2988
2989
  fetchComments,
@@ -2994,9 +2995,9 @@ function DetailPanel({
2994
2995
  fetchComments(issueRepo, issue.number);
2995
2996
  }, [issue, issueRepo, fetchComments, commentsState]);
2996
2997
  if (!issue) {
2997
- return /* @__PURE__ */ jsx4(Panel, { title: "[0] Detail", isActive, width, children: /* @__PURE__ */ jsx4(Text4, { color: "gray", children: "No item selected" }) });
2998
+ return /* @__PURE__ */ jsx4(Panel, { title: "[0] Detail", isActive, width, height, children: /* @__PURE__ */ jsx4(Text4, { color: "gray", children: "No item selected" }) });
2998
2999
  }
2999
- return /* @__PURE__ */ jsxs4(Panel, { title: "[0] Detail", isActive, width, children: [
3000
+ return /* @__PURE__ */ jsxs4(Panel, { title: "[0] Detail", isActive, width, height, children: [
3000
3001
  /* @__PURE__ */ jsxs4(Text4, { color: "cyan", bold: true, children: [
3001
3002
  "#",
3002
3003
  issue.number,
@@ -5966,7 +5967,8 @@ function Dashboard({ config: config2, options, activeProfile }) {
5966
5967
  DetailPanel,
5967
5968
  {
5968
5969
  issue: selectedItem.issue,
5969
- width: termSize.cols,
5970
+ width: usableWidth,
5971
+ height: issuesPanelHeight + ACTIVITY_HEIGHT,
5970
5972
  isActive: true,
5971
5973
  issueRepo: selectedItem.repoName,
5972
5974
  fetchComments: handleFetchComments,
@@ -7209,7 +7211,7 @@ function resolveProjectId(projectId) {
7209
7211
  process.exit(1);
7210
7212
  }
7211
7213
  var program = new Command();
7212
- program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.14.0").option("--json", "Force JSON output").option("--human", "Force human-readable output").hook("preAction", (thisCommand) => {
7214
+ program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.14.1").option("--json", "Force JSON output").option("--human", "Force human-readable output").hook("preAction", (thisCommand) => {
7213
7215
  const opts = thisCommand.opts();
7214
7216
  if (opts.json) setFormat("json");
7215
7217
  if (opts.human) setFormat("human");