@d3lm/pr-stats 0.2.4 → 0.2.5
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/tui-app.mjs +9 -3
- package/package.json +1 -1
package/dist/tui-app.mjs
CHANGED
|
@@ -1178,7 +1178,10 @@ function Placeholder({
|
|
|
1178
1178
|
}
|
|
1179
1179
|
function LoadProgress({ load }) {
|
|
1180
1180
|
if (!load.total) {
|
|
1181
|
-
return /* @__PURE__ */
|
|
1181
|
+
return /* @__PURE__ */ jsxs4("box", { flexDirection: "row", columnGap: 1, children: [
|
|
1182
|
+
/* @__PURE__ */ jsx5("text", { fg: theme.muted, children: loadLabel(load) }),
|
|
1183
|
+
/* @__PURE__ */ jsx5(Spinner, {})
|
|
1184
|
+
] });
|
|
1182
1185
|
}
|
|
1183
1186
|
const done = load.done ?? 0;
|
|
1184
1187
|
const cells = Math.min(done / load.total, 1) * BAR_WIDTH;
|
|
@@ -1196,7 +1199,7 @@ function LoadProgress({ load }) {
|
|
|
1196
1199
|
] });
|
|
1197
1200
|
}
|
|
1198
1201
|
function loadLabel(load) {
|
|
1199
|
-
return load.phase === "search" ? "searching PRs
|
|
1202
|
+
return load.phase === "search" ? "searching PRs" : "fetching PR details";
|
|
1200
1203
|
}
|
|
1201
1204
|
|
|
1202
1205
|
// src/tui/components/QueuePanel.tsx
|
|
@@ -4008,7 +4011,10 @@ function buildHeatmapCard({ title, subtitle, grid, columns, legend }) {
|
|
|
4008
4011
|
});
|
|
4009
4012
|
const columnWidths = columns.map((column) => column.label.length + 2);
|
|
4010
4013
|
const header = [
|
|
4011
|
-
{
|
|
4014
|
+
{
|
|
4015
|
+
text: ` ${["00 03", "06 09", "12 15", "18 21"].map((label) => label.padEnd(12)).join(" ")}`,
|
|
4016
|
+
fg: theme.dim
|
|
4017
|
+
},
|
|
4012
4018
|
{ text: columns.map((column, i) => column.label.padStart(columnWidths[i])).join(""), fg: theme.dim }
|
|
4013
4019
|
];
|
|
4014
4020
|
const lines = [header];
|