refactor: Update Card component snapshots to use showStatusIndicator and improve clarity

This commit is contained in:
Mark McLaughlin
2026-02-10 11:36:23 -08:00
parent 544ccdbe1e
commit 6f20f8a300

View File

@@ -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' │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
`;