Skip to content

Commit fe9a429

Browse files
committed
test(ui): update snapshots to reflect topic spacing fix
Update UI and SVG snapshots to align with recent layout adjustments that prevent double-spacing around TopicMessage components and correct the tool group boundaries. - Re-generated snapshots in `packages/cli/src/ui` to capture the corrected margin and border alignment logic.
1 parent 3bf5793 commit fe9a429

11 files changed

Lines changed: 66 additions & 63 deletions

packages/cli/src/ui/__snapshots__/ToolConfirmationFullFrame-Full-Terminal-Tool-Confirmation-Snapshot-renders-tool-confirmation-box-in-the-frame-of-the-entire-terminal.snap.svg

Lines changed: 9 additions & 11 deletions
Loading

packages/cli/src/ui/__snapshots__/ToolConfirmationFullFrame.test.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Full Terminal Tool Confirmation Snapshot > renders tool confirmation box in the frame of the entire terminal 1`] = `
4-
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
5-
> Can you edit InputPrompt.tsx for me?
4+
" > Can you edit InputPrompt.tsx for me?
65
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
6+
77
╭─────────────────────────────────────────────────────────────────────────────────────────────────╮
88
│ Action Required │
99
│ │
@@ -12,7 +12,7 @@ exports[`Full Terminal Tool Confirmation Snapshot > renders tool confirmation bo
1212
│ ... first 44 lines hidden (Ctrl+O to show) ... │
1313
│ 45 const line45 = true; │
1414
│ 46 const line46 = true; │
15-
│ 47 const line47 = true; │
15+
│ 47 const line47 = true; │
1616
│ 48 const line48 = true; │█
1717
│ 49 const line49 = true; │█
1818
│ 50 const line50 = true; │█

packages/cli/src/ui/components/__snapshots__/AlternateBufferQuittingDisplay.test.tsx.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ Tips for getting started:
4343
│ ✓ tool1 Description for tool 1 │
4444
│ │
4545
╰──────────────────────────────────────────────────────────────────────────╯
46-
4746
╭──────────────────────────────────────────────────────────────────────────╮
4847
│ ✓ tool2 Description for tool 2 │
4948
│ │
5049
╰──────────────────────────────────────────────────────────────────────────╯
51-
5250
╭──────────────────────────────────────────────────────────────────────────╮
5351
│ o tool3 Description for tool 3 │
5452
│ │
@@ -95,7 +93,6 @@ Tips for getting started:
9593
│ ✓ tool1 Description for tool 1 │
9694
│ │
9795
╰──────────────────────────────────────────────────────────────────────────╯
98-
9996
╭──────────────────────────────────────────────────────────────────────────╮
10097
│ ✓ tool2 Description for tool 2 │
10198
│ │

packages/cli/src/ui/components/__snapshots__/MainContent.test.tsx.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
exports[`MainContent > MainContent Tool Output Height Logic > 'ASB mode - Focused shell should expand' 1`] = `
44
"ScrollableList
55
AppHeader(full)
6+
67
╭──────────────────────────────────────────────────────────────────────────────────────────────╮
78
│ ⠋ Shell Command Running a long command... │
89
│ │
@@ -23,6 +24,7 @@ AppHeader(full)
2324
exports[`MainContent > MainContent Tool Output Height Logic > 'ASB mode - Unfocused shell' 1`] = `
2425
"ScrollableList
2526
AppHeader(full)
27+
2628
╭──────────────────────────────────────────────────────────────────────────────────────────────╮
2729
│ ⠋ Shell Command Running a long command... │
2830
│ │
@@ -42,6 +44,7 @@ AppHeader(full)
4244

4345
exports[`MainContent > MainContent Tool Output Height Logic > 'Normal mode - Constrained height' 1`] = `
4446
"AppHeader(full)
47+
4548
╭──────────────────────────────────────────────────────────────────────────────────────────────╮
4649
│ ⠋ Shell Command Running a long command... │
4750
│ │
@@ -61,6 +64,7 @@ exports[`MainContent > MainContent Tool Output Height Logic > 'Normal mode - Con
6164

6265
exports[`MainContent > MainContent Tool Output Height Logic > 'Normal mode - Unconstrained height' 1`] = `
6366
"AppHeader(full)
67+
6468
╭──────────────────────────────────────────────────────────────────────────────────────────────╮
6569
│ ⠋ Shell Command Running a long command... │
6670
│ │
@@ -93,6 +97,7 @@ exports[`MainContent > renders a ToolConfirmationQueue without an extra line whe
9397
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
9498
> Apply plan
9599
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
100+
96101
╭──────────────────────────────────────────────────────────────────────────────╮
97102
│ Ready to start implementation? │
98103
│ │
@@ -103,6 +108,7 @@ exports[`MainContent > renders a ToolConfirmationQueue without an extra line whe
103108

104109
exports[`MainContent > renders a split tool group without a gap between static and pending areas 1`] = `
105110
"AppHeader(full)
111+
106112
╭──────────────────────────────────────────────────────────────────────────╮
107113
│ ✓ test-tool A tool for testing │
108114
│ │
@@ -128,6 +134,7 @@ exports[`MainContent > renders a subagent with a complete box including bottom b
128134
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
129135
> Investigate
130136
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
137+
131138
╭──────────────────────────────────────────────────────────────────────────╮
132139
│ ≡ Running Agent... (ctrl+o to collapse) │
133140
│ │

packages/cli/src/ui/components/messages/__snapshots__/ToolGroupMessage.compact.test.tsx.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
exports[`ToolGroupMessage Compact Rendering > does not add an extra empty line between a compact tool and a standard tool 1`] = `
44
" ✓ ReadFolder Listing files → file1.txt
5-
65
╭──────────────────────────────────────────────────────────────────────────╮
76
│ ✓ non-compact-tool Doing something │
87
│ │
@@ -17,7 +16,6 @@ exports[`ToolGroupMessage Compact Rendering > does not add an extra empty line b
1716
│ │
1817
│ some large output │
1918
╰──────────────────────────────────────────────────────────────────────────╯
20-
2119
✓ ReadFolder Listing files → file1.txt
2220
"
2321
`;

packages/cli/src/ui/components/messages/__snapshots__/ToolGroupMessage.test.tsx.snap

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ exports[`<ToolGroupMessage /> > Golden Snapshots > renders empty tool calls arra
6262

6363
exports[`<ToolGroupMessage /> > Golden Snapshots > renders header when scrolled 1`] = `
6464
"╭──────────────────────────────────────────────────────────────────────────╮
65-
│ ✓ tool-1 Description 1. This is a long description that will need to b… │
66-
│──────────────────────────────────────────────────────────────────────────│ ▄
65+
│ ✓ tool-1 Description 1. This is a long description that will need to b… │ ▄
66+
│──────────────────────────────────────────────────────────────────────────│ █
67+
│ line3 │ █
6768
│ line4 │ █
6869
│ line5 │ █
6970
│ │ █
@@ -72,12 +73,13 @@ exports[`<ToolGroupMessage /> > Golden Snapshots > renders header when scrolled
7273
│ line1 │ █
7374
│ line2 │ █
7475
╰──────────────────────────────────────────────────────────────────────────╯ █
75-
7676
"
7777
`;
7878

7979
exports[`<ToolGroupMessage /> > Golden Snapshots > renders mixed tool calls including update_topic 1`] = `
80-
" Testing Topic: This is the description
80+
"
81+
Testing Topic: This is the description
82+
8183
╭──────────────────────────────────────────────────────────────────────────╮
8284
│ ✓ read_file Read a file │
8385
│ │
@@ -131,17 +133,18 @@ exports[`<ToolGroupMessage /> > Golden Snapshots > renders tool call with output
131133
`;
132134

133135
exports[`<ToolGroupMessage /> > Golden Snapshots > renders two tool groups where only the last line of the previous group is visible 1`] = `
134-
"╭──────────────────────────────────────────────────────────────────────────╮
136+
"╰──────────────────────────────────────────────────────────────────────────╯
137+
╭──────────────────────────────────────────────────────────────────────────╮
135138
│ ✓ tool-2 Description 2 │
136-
│ │
137-
│ line1 │
139+
│ │
140+
│ line1 │
138141
╰──────────────────────────────────────────────────────────────────────────╯ █
139-
140142
"
141143
`;
142144

143145
exports[`<ToolGroupMessage /> > Golden Snapshots > renders update_topic tool call using TopicMessage > update_topic_tool 1`] = `
144-
" Testing Topic: This is the description
146+
"
147+
Testing Topic: This is the description
145148
"
146149
`;
147150

0 commit comments

Comments
 (0)