@kud/gh-ink 0.61.1 → 0.61.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 +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2722,10 +2722,6 @@ var BrowseScreen = ({
|
|
|
2722
2722
|
// rows, so the tree never grows taller than the terminal inside the frame.
|
|
2723
2723
|
rows - 10 - (filterActive ? 2 : 0) - (reserveCiRow ? 2 : 0) - (reserveStripRow ? 2 : 0)
|
|
2724
2724
|
);
|
|
2725
|
-
useEffect(() => {
|
|
2726
|
-
setCursors((p) => ({ ...p, [activeId]: 0 }));
|
|
2727
|
-
setViewStarts((p) => ({ ...p, [activeId]: 0 }));
|
|
2728
|
-
}, [search]);
|
|
2729
2725
|
useEffect(() => {
|
|
2730
2726
|
setLocalSections(applyWork(sections));
|
|
2731
2727
|
}, [sections]);
|
|
@@ -2780,6 +2776,10 @@ var BrowseScreen = ({
|
|
|
2780
2776
|
const searched = search != null ? filterBySearch([rawSection], search, login) : [rawSection];
|
|
2781
2777
|
const filtered = repoFilter.size > 0 ? filterByRepos(searched, repoFilter, login) : searched;
|
|
2782
2778
|
const section = filterActive ? { ...rawSection, items: filtered[0]?.items ?? [] } : rawSection;
|
|
2779
|
+
useEffect(() => {
|
|
2780
|
+
setCursors((p) => ({ ...p, [activeId]: firstSelectable(section) }));
|
|
2781
|
+
setViewStarts((p) => ({ ...p, [activeId]: 0 }));
|
|
2782
|
+
}, [search]);
|
|
2783
2783
|
const allRepos = reposInSections(localSections);
|
|
2784
2784
|
const { cursor: repoCursor, setCursor: setRepoCursor } = useListCursor(
|
|
2785
2785
|
allRepos.length,
|
|
@@ -2972,7 +2972,7 @@ var BrowseScreen = ({
|
|
|
2972
2972
|
}
|
|
2973
2973
|
return;
|
|
2974
2974
|
}
|
|
2975
|
-
if (searchInput) {
|
|
2975
|
+
if (searchInput && !key.upArrow && !key.downArrow) {
|
|
2976
2976
|
if (key.return) return setSearchInput(false);
|
|
2977
2977
|
if (key.escape) {
|
|
2978
2978
|
setSearch(null);
|
|
@@ -3516,7 +3516,7 @@ var BrowseScreen = ({
|
|
|
3516
3516
|
/* @__PURE__ */ jsx(Text3, { color: colors.info, children: " / " }),
|
|
3517
3517
|
/* @__PURE__ */ jsx(Text3, { children: search }),
|
|
3518
3518
|
searchInput ? /* @__PURE__ */ jsx(Text3, { color: colors.info, children: "\u258F" }) : null,
|
|
3519
|
-
/* @__PURE__ */ jsx(Text3, { dimColor: true, children: ` ${matchCount} match${matchCount !== 1 ? "es" : ""}${searchInput ? " \u21B5 accept \xB7 esc clear" : " esc clear"}` })
|
|
3519
|
+
/* @__PURE__ */ jsx(Text3, { dimColor: true, children: ` ${matchCount} match${matchCount !== 1 ? "es" : ""}${searchInput ? " \u2191\u2193 move \xB7 \u21B5 accept \xB7 esc clear" : " esc clear"}` })
|
|
3520
3520
|
] }) : repoFilter.size > 0 ? /* @__PURE__ */ jsxs(Box, { marginBottom: 1, children: [
|
|
3521
3521
|
/* @__PURE__ */ jsx(Text3, { color: colors.accent, children: " \u25C9 " }),
|
|
3522
3522
|
/* @__PURE__ */ jsx(Text3, { children: `${repoFilter.size} repo${repoFilter.size !== 1 ? "s" : ""}` }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-ink",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.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",
|