mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 23:21:27 -07:00
refactor: Update Card component snapshots to use showStatusIndicator and improve clarity
This commit is contained in:
@@ -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`] = `
|
||||
"[38;2;249;226;175m╭[39m [1m[38;2;249;226;175m-[39m[22m [1m[38;2;249;226;175mDelegate to agent[39m[22m [38;2;249;226;175m[2mDelegating to agent 'cli_help'[22m[39m [38;2;249;226;175m──────────────────────────────────────────────╮[39m
|
||||
[38;2;249;226;175m│[39m 🤖💭 Execution limit reached (ERROR_NO_COMPLETE_TASK_CALL). Attempting one final recovery turn [38;2;249;226;175m│[39m
|
||||
[38;2;249;226;175m│[39m with a grace period. [38;2;249;226;175m│[39m
|
||||
[38;2;249;226;175m╰──────────────────────────────────────────────────────────────────────────────────────────────────╯[39m"
|
||||
`;
|
||||
|
||||
exports[`Card > renders a 'Confirming' card with prefix=true 1`] = `
|
||||
"[38;2;137;180;250m╭[39m [38;2;137;220;235m?[39m [1m[38;2;137;180;250mShell[39m[22m [38;2;137;180;250m[2mnode -v && which gemini[22m[39m [38;2;137;180;250m─────────────────────────────────────────────────────────────────╮[39m
|
||||
[38;2;137;180;250m│[39m ls /usr/local/bin | grep 'xattr' [38;2;137;180;250m│[39m
|
||||
[38;2;137;180;250m╰──────────────────────────────────────────────────────────────────────────────────────────────────╯[39m"
|
||||
`;
|
||||
|
||||
exports[`Card > renders a 'Error' card with prefix=true 1`] = `
|
||||
exports[`Card > renders ''Error'' card with status='Error' and showStatusIndicator=true 1`] = `
|
||||
"[38;2;243;139;168m╭[39m [1m[38;2;243;139;168mx[39m[22m [1m[38;2;243;139;168mError[39m[22m [38;2;243;139;168m[2m429 You exceeded your current quota[22m[39m [38;2;243;139;168m─────────────────────────────────────────────────────╮[39m
|
||||
[38;2;243;139;168m│[39m Go to https://aistudio.google.com/apikey to upgrade your quota tier, or submit a quota increase [38;2;243;139;168m│[39m
|
||||
[38;2;243;139;168m│[39m request in https://ai.google.dev/gemini-api/docs/rate-limits [38;2;243;139;168m│[39m
|
||||
[38;2;243;139;168m╰──────────────────────────────────────────────────────────────────────────────────────────────────╯[39m"
|
||||
`;
|
||||
|
||||
exports[`Card > renders a 'Pending' card with prefix=true 1`] = `
|
||||
exports[`Card > renders ''Fixed Width Card'' card with status='Pending' and showStatusIndicator=true 1`] = `
|
||||
"[38;2;108;112;134m╭[39m [38;2;166;227;161mo[39m [1m[38;2;203;166;247mFixed Width Card[39m[22m [38;2;108;112;134m──────────────────╮[39m
|
||||
[38;2;108;112;134m│[39m This card has a fixed width of 40 [38;2;108;112;134m│[39m
|
||||
[38;2;108;112;134m│[39m characters. [38;2;108;112;134m│[39m
|
||||
[38;2;108;112;134m╰──────────────────────────────────────╯[39m"
|
||||
`;
|
||||
|
||||
exports[`Card > renders ''Gemini CLI update available'' card with status='Pending' and showStatusIndicator=true 1`] = `
|
||||
"[38;2;108;112;134m╭[39m [38;2;166;227;161mo[39m [1m[38;2;203;166;247mGemini CLI update available[39m[22m [38;2;203;166;247m[2m0.26.0 → 0.27.0[22m[39m [38;2;108;112;134m───────────────────────────────────────────────────╮[39m
|
||||
[38;2;108;112;134m│[39m Installed via Homebrew. Please update with "brew upgrade gemini-cli". [38;2;108;112;134m│[39m
|
||||
[38;2;108;112;134m╰──────────────────────────────────────────────────────────────────────────────────────────────────╯[39m"
|
||||
`;
|
||||
|
||||
exports[`Card > renders a 'Success' card with prefix=true 1`] = `
|
||||
exports[`Card > renders ''ReadFolder'' card with status='Success' and showStatusIndicator=true 1`] = `
|
||||
"[38;2;108;112;134m╭[39m [38;2;166;227;161m✓[39m [1m[38;2;166;227;161mReadFolder[39m[22m [38;2;166;227;161m[2m/usr/local/bin[22m[39m [38;2;108;112;134m─────────────────────────────────────────────────────────────────────╮[39m
|
||||
[38;2;108;112;134m│[39m Listed 39 item(s). [38;2;108;112;134m│[39m
|
||||
[38;2;108;112;134m╰──────────────────────────────────────────────────────────────────────────────────────────────────╯[39m"
|
||||
`;
|
||||
|
||||
exports[`Card > renders ''Shell'' card with status='Confirming' and showStatusIndicator=true 1`] = `
|
||||
"[38;2;137;180;250m╭[39m [38;2;137;220;235m?[39m [1m[38;2;137;180;250mShell[39m[22m [38;2;137;180;250m[2mnode -v && which gemini[22m[39m [38;2;137;180;250m─────────────────────────────────────────────────────────────────╮[39m
|
||||
[38;2;137;180;250m│[39m ls /usr/local/bin | grep 'xattr' [38;2;137;180;250m│[39m
|
||||
[38;2;137;180;250m╰──────────────────────────────────────────────────────────────────────────────────────────────────╯[39m"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user