From 6f20f8a300dd5458681c2e9d40c5e3d41cf16996 Mon Sep 17 00:00:00 2001 From: Mark McLaughlin Date: Tue, 10 Feb 2026 11:36:23 -0800 Subject: [PATCH] refactor: Update Card component snapshots to use showStatusIndicator and improve clarity --- .../shared/__snapshots__/Card.test.tsx.snap | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/packages/cli/src/ui/components/shared/__snapshots__/Card.test.tsx.snap b/packages/cli/src/ui/components/shared/__snapshots__/Card.test.tsx.snap index 885c31ba59..c49e8bad33 100644 --- a/packages/cli/src/ui/components/shared/__snapshots__/Card.test.tsx.snap +++ b/packages/cli/src/ui/components/shared/__snapshots__/Card.test.tsx.snap @@ -1,33 +1,40 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Card > renders a 'Canceled' card with prefix=true 1`] = ` +exports[`Card > renders ''Delegate to agent'' card with status='Canceled' and showStatusIndicator=true 1`] = ` "╭ - Delegate to agent Delegating to agent 'cli_help' ──────────────────────────────────────────────╮ │ 🤖💭 Execution limit reached (ERROR_NO_COMPLETE_TASK_CALL). Attempting one final recovery turn │ │ with a grace period. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯" `; -exports[`Card > renders a 'Confirming' card with prefix=true 1`] = ` -"╭ ? Shell node -v && which gemini ─────────────────────────────────────────────────────────────────╮ -│ ls /usr/local/bin | grep 'xattr' │ -╰──────────────────────────────────────────────────────────────────────────────────────────────────╯" -`; - -exports[`Card > renders a 'Error' card with prefix=true 1`] = ` +exports[`Card > renders ''Error'' card with status='Error' and showStatusIndicator=true 1`] = ` "╭ x Error 429 You exceeded your current quota ─────────────────────────────────────────────────────╮ │ Go to https://aistudio.google.com/apikey to upgrade your quota tier, or submit a quota increase │ │ request in https://ai.google.dev/gemini-api/docs/rate-limits │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯" `; -exports[`Card > renders a 'Pending' card with prefix=true 1`] = ` +exports[`Card > renders ''Fixed Width Card'' card with status='Pending' and showStatusIndicator=true 1`] = ` +"╭ o Fixed Width Card ──────────────────╮ +│ This card has a fixed width of 40 │ +│ characters. │ +╰──────────────────────────────────────╯" +`; + +exports[`Card > renders ''Gemini CLI update available'' card with status='Pending' and showStatusIndicator=true 1`] = ` "╭ o Gemini CLI update available 0.26.0 → 0.27.0 ───────────────────────────────────────────────────╮ │ Installed via Homebrew. Please update with "brew upgrade gemini-cli". │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯" `; -exports[`Card > renders a 'Success' card with prefix=true 1`] = ` +exports[`Card > renders ''ReadFolder'' card with status='Success' and showStatusIndicator=true 1`] = ` "╭ ✓ ReadFolder /usr/local/bin ─────────────────────────────────────────────────────────────────────╮ │ Listed 39 item(s). │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯" `; + +exports[`Card > renders ''Shell'' card with status='Confirming' and showStatusIndicator=true 1`] = ` +"╭ ? Shell node -v && which gemini ─────────────────────────────────────────────────────────────────╮ +│ ls /usr/local/bin | grep 'xattr' │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────╯" +`;