@kud/gh-ink 0.26.1 → 0.26.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/index.js +13 -5
- 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);
|
|
@@ -2989,12 +2990,19 @@ var App = ({
|
|
|
2989
2990
|
}
|
|
2990
2991
|
),
|
|
2991
2992
|
hasCiStatus ? /* @__PURE__ */ jsx(CiStatusLine, { state: ciStatusState, job: ciJob }) : null,
|
|
2992
|
-
|
|
2993
|
-
|
|
2993
|
+
/* @__PURE__ */ jsx(
|
|
2994
|
+
Box,
|
|
2994
2995
|
{
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2996
|
+
flexDirection: "column",
|
|
2997
|
+
minHeight: Math.max(5, rows - 10 - (hasCiStatus ? 2 : 0)),
|
|
2998
|
+
children: state.phase === "loading" ? /* @__PURE__ */ jsx(LoadingScreen, { label: `Fetching ${title}\u2026` }) : /* @__PURE__ */ jsx(
|
|
2999
|
+
NoRowsScreen,
|
|
3000
|
+
{
|
|
3001
|
+
reason: state.phase === "empty" ? "empty" : "failed",
|
|
3002
|
+
detail: state.phase === "failed" ? state.message : emptyHint,
|
|
3003
|
+
onRetry: () => revalidate(true)
|
|
3004
|
+
}
|
|
3005
|
+
)
|
|
2998
3006
|
}
|
|
2999
3007
|
)
|
|
3000
3008
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-ink",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
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",
|