merge-steward 0.8.0 → 0.8.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.
@@ -34,10 +34,24 @@ export function QueueListView({ entries, recentlyCompleted, selectedEntryId, rec
34
34
  const displayedEvents = useMemo(() => recentEvents.slice(-eventRows), [eventRows, recentEvents]);
35
35
  const queueBlockLabel = summarizeQueueBlock(queueBlock);
36
36
  // Spec chain: main ─ #A ✓ ─ #B ● ─ #C ○
37
+ // Includes recently completed entries so the cascade stays visible.
37
38
  const chainEntries = useMemo(() => {
38
- const active = entries.filter((e) => !TERMINAL_STATUSES.includes(e.status));
39
- return active.sort((a, b) => a.position - b.position);
40
- }, [entries]);
39
+ const seen = new Set();
40
+ const all = [];
41
+ for (const e of entries) {
42
+ if (!TERMINAL_STATUSES.includes(e.status) && !seen.has(e.id)) {
43
+ all.push(e);
44
+ seen.add(e.id);
45
+ }
46
+ }
47
+ for (const e of recentlyCompleted) {
48
+ if (!seen.has(e.id)) {
49
+ all.push(e);
50
+ seen.add(e.id);
51
+ }
52
+ }
53
+ return all.sort((a, b) => a.position - b.position);
54
+ }, [entries, recentlyCompleted]);
41
55
  return (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [chainEntries.length > 0 && (_jsxs(Box, { marginBottom: 1, gap: 0, children: [_jsx(Text, { dimColor: true, children: "main" }), chainEntries.map((entry) => {
42
56
  const ci = ciStatusIcon(entry);
43
57
  return (_jsxs(Box, { gap: 0, children: [_jsx(Text, { dimColor: true, children: " \u2500 " }), _jsxs(Text, { bold: true, children: ["#", entry.prNumber] }), _jsx(Text, { color: ci.color, children: ` ${ci.icon}` })] }, entry.id));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merge-steward",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Serial merge queue for GitHub — rebase, CI-gate, and merge PRs one at a time",
5
5
  "type": "module",
6
6
  "repository": {