@kud/gh-ink 0.26.1 → 0.26.3

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2749,6 +2749,7 @@ var App = ({
2749
2749
  tabHelp,
2750
2750
  emptyHint
2751
2751
  }) => {
2752
+ const { rows } = useWindowSize();
2752
2753
  const [state, setState] = useState({ phase: "loading" });
2753
2754
  const [pending, setPending] = useState(null);
2754
2755
  const [refreshing, setRefreshing] = useState(false);
@@ -2841,7 +2842,8 @@ var App = ({
2841
2842
  return known.remaining >= Math.max(known.cost, 1) * 2;
2842
2843
  };
2843
2844
  const revalidate = (manual = false) => {
2844
- if (!manual && !canAffordAuto()) {
2845
+ const gated = !manual && !!displayedKey.current;
2846
+ if (gated && !canAffordAuto()) {
2845
2847
  setSkippedForBudget(true);
2846
2848
  return;
2847
2849
  }
@@ -2989,12 +2991,19 @@ var App = ({
2989
2991
  }
2990
2992
  ),
2991
2993
  hasCiStatus ? /* @__PURE__ */ jsx(CiStatusLine, { state: ciStatusState, job: ciJob }) : null,
2992
- state.phase === "loading" ? /* @__PURE__ */ jsx(LoadingScreen, { label: `Fetching ${title}\u2026` }) : /* @__PURE__ */ jsx(
2993
- NoRowsScreen,
2994
+ /* @__PURE__ */ jsx(
2995
+ Box,
2994
2996
  {
2995
- reason: state.phase === "empty" ? "empty" : "failed",
2996
- detail: state.phase === "failed" ? state.message : emptyHint,
2997
- onRetry: () => revalidate(true)
2997
+ flexDirection: "column",
2998
+ minHeight: Math.max(5, rows - 6 - (hasCiStatus ? 2 : 0)),
2999
+ children: state.phase === "loading" ? /* @__PURE__ */ jsx(LoadingScreen, { label: `Fetching ${title}\u2026` }) : /* @__PURE__ */ jsx(
3000
+ NoRowsScreen,
3001
+ {
3002
+ reason: state.phase === "empty" ? "empty" : "failed",
3003
+ detail: state.phase === "failed" ? state.message : emptyHint,
3004
+ onRetry: () => revalidate(true)
3005
+ }
3006
+ )
2998
3007
  }
2999
3008
  )
3000
3009
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/gh-ink",
3
- "version": "0.26.1",
3
+ "version": "0.26.3",
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",