From 7490f285dae588f658f1a9fa8436dc4fd86d6bb6 Mon Sep 17 00:00:00 2001 From: "A.K.M. Adib" Date: Thu, 5 Mar 2026 23:10:50 -0500 Subject: [PATCH] update snapshots --- .../__snapshots__/AskUserDialog.test.tsx.snap | 97 +++---------------- .../ExitPlanModeDialog.test.tsx.snap | 21 ++-- 2 files changed, 26 insertions(+), 92 deletions(-) diff --git a/packages/cli/src/ui/components/__snapshots__/AskUserDialog.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/AskUserDialog.test.tsx.snap index 9644026634..a14f90789a 100644 --- a/packages/cli/src/ui/components/__snapshots__/AskUserDialog.test.tsx.snap +++ b/packages/cli/src/ui/components/__snapshots__/AskUserDialog.test.tsx.snap @@ -1,17 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`AskUserDialog > Choice question placeholder > uses default placeholder when not provided 1`] = ` -"Select your preferred language: - - 1. TypeScript - 2. JavaScript -● 3. Enter a custom value - -Enter to submit · Esc to cancel -" -`; - -exports[`AskUserDialog > Choice question placeholder > uses default placeholder when not provided 2`] = ` "Select your preferred language: 1. TypeScript @@ -23,17 +12,6 @@ Enter to submit · Esc to cancel `; exports[`AskUserDialog > Choice question placeholder > uses placeholder for "Other" option when provided 1`] = ` -"Select your preferred language: - - 1. TypeScript - 2. JavaScript -● 3. Type another language... - -Enter to submit · Esc to cancel -" -`; - -exports[`AskUserDialog > Choice question placeholder > uses placeholder for "Other" option when provided 2`] = ` "Select your preferred language: 1. TypeScript @@ -47,25 +25,13 @@ Enter to submit · Esc to cancel exports[`AskUserDialog > Scroll Arrows (useAlternateBuffer: false) > shows scroll arrows correctly when useAlternateBuffer is false 1`] = ` "Choose an option -▲ -● 1. Option 1 - Description 1 - 2. Option 2 - Description 2 -▼ - -Enter to select · ↑/↓ to navigate · Esc to cancel -" -`; - -exports[`AskUserDialog > Scroll Arrows (useAlternateBuffer: false) > shows scroll arrows correctly when useAlternateBuffer is false 2`] = ` -"Choose an option - ▲ ● 1. Option 1 Description 1 2. Option 2 Description 2 + 3. Option 3 + Description 3 ▼ Enter to select · ↑/↓ to navigate · Esc to cancel @@ -75,45 +41,6 @@ Enter to select · ↑/↓ to navigate · Esc to cancel exports[`AskUserDialog > Scroll Arrows (useAlternateBuffer: true) > shows scroll arrows correctly when useAlternateBuffer is true 1`] = ` "Choose an option -● 1. Option 1 - Description 1 - 2. Option 2 - Description 2 - 3. Option 3 - Description 3 - 4. Option 4 - Description 4 - 5. Option 5 - Description 5 - 6. Option 6 - Description 6 - 7. Option 7 - Description 7 - 8. Option 8 - Description 8 - 9. Option 9 - Description 9 - 10. Option 10 - Description 10 - 11. Option 11 - Description 11 - 12. Option 12 - Description 12 - 13. Option 13 - Description 13 - 14. Option 14 - Description 14 - 15. Option 15 - Description 15 - 16. Enter a custom value - -Enter to select · ↑/↓ to navigate · Esc to cancel -" -`; - -exports[`AskUserDialog > Scroll Arrows (useAlternateBuffer: true) > shows scroll arrows correctly when useAlternateBuffer is true 2`] = ` -"Choose an option - ● 1. Option 1 Description 1 2. Option 2 @@ -197,8 +124,8 @@ Enter to submit · Tab/Shift+Tab to edit answers · Esc to cancel exports[`AskUserDialog > hides progress header for single question 1`] = ` "Which authentication method should we use? -● 1. OAuth 2.0 - Industry standard, supports SSO +● 1. OAuth 2.0 + Industry standard, supports SSO 2. JWT tokens Stateless, good for APIs 3. Enter a custom value @@ -210,8 +137,8 @@ Enter to select · ↑/↓ to navigate · Esc to cancel exports[`AskUserDialog > renders question and options 1`] = ` "Which authentication method should we use? -● 1. OAuth 2.0 - Industry standard, supports SSO +● 1. OAuth 2.0 + Industry standard, supports SSO 2. JWT tokens Stateless, good for APIs 3. Enter a custom value @@ -225,8 +152,8 @@ exports[`AskUserDialog > shows Review tab in progress header for multiple questi Which framework? -● 1. React - Component library +● 1. React + Component library 2. Vue Progressive framework 3. Enter a custom value @@ -238,8 +165,8 @@ Enter to select · ←/→ to switch questions · Esc to cancel exports[`AskUserDialog > shows keyboard hints 1`] = ` "Which authentication method should we use? -● 1. OAuth 2.0 - Industry standard, supports SSO +● 1. OAuth 2.0 + Industry standard, supports SSO 2. JWT tokens Stateless, good for APIs 3. Enter a custom value @@ -253,8 +180,8 @@ exports[`AskUserDialog > shows progress header for multiple questions 1`] = ` Which database should we use? -● 1. PostgreSQL - Relational database +● 1. PostgreSQL + Relational database 2. MongoDB Document database 3. Enter a custom value diff --git a/packages/cli/src/ui/components/__snapshots__/ExitPlanModeDialog.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/ExitPlanModeDialog.test.tsx.snap index 75e3bf58e8..10d08418a5 100644 --- a/packages/cli/src/ui/components/__snapshots__/ExitPlanModeDialog.test.tsx.snap +++ b/packages/cli/src/ui/components/__snapshots__/ExitPlanModeDialog.test.tsx.snap @@ -14,7 +14,8 @@ Implementation Steps Files to Modify -... last 2 lines hidden (Ctrl+O to show) ... + - src/index.ts - Add auth middleware + - src/config.ts - Add auth configuration options 1. Yes, automatically accept edits Approves plan and allows tools to run automatically @@ -40,7 +41,8 @@ Implementation Steps Files to Modify -... last 2 lines hidden (Ctrl+O to show) ... + - src/index.ts - Add auth middleware + - src/config.ts - Add auth configuration options ● 1. Yes, automatically accept edits Approves plan and allows tools to run automatically @@ -71,13 +73,17 @@ Implementation Steps 5. Add SAML provider support in src/auth/providers/SAMLProvider.ts 6. Add LDAP provider support in src/auth/providers/LDAPProvider.ts 7. Create token refresh mechanism in src/auth/TokenManager.ts -... last 23 lines hidden (Ctrl+O to show) ... + 8. Add multi-factor authentication in src/auth/MFAService.ts + 9. Implement session timeout handling in src/auth/SessionManager.ts + 10. Add audit logging for auth events in src/auth/AuditLogger.ts +... last 20 lines hidden (Ctrl+O to show) ... -● 1. Yes, automatically accept edits - Approves plan and allows tools to run automatically +▲ +● 1. Yes, automatically accept edits + Approves plan and allows tools to run automatically 2. Yes, manually accept edits Approves plan but requires confirmation for each tool - 3. Type your feedback... +▼ Enter to select · ↑/↓ to navigate · Ctrl+X to edit plan · Esc to cancel " @@ -97,7 +103,8 @@ Implementation Steps Files to Modify -... last 2 lines hidden (Ctrl+O to show) ... + - src/index.ts - Add auth middleware + - src/config.ts - Add auth configuration options ● 1. Yes, automatically accept edits Approves plan and allows tools to run automatically