mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
feat: enhance provider setup and authentication flow
- Refactored ProvidersSetupStep component to improve the UI and streamline provider status checks for Claude, Cursor, Codex, and OpenCode. - Introduced auto-verification for CLI authentication and improved error handling for authentication states. - Added loading indicators for provider status checks and enhanced user feedback for installation and authentication processes. - Updated setup store to manage verification states and ensure accurate representation of provider statuses. These changes enhance the user experience by providing clearer feedback and a more efficient setup process for AI providers.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -132,6 +132,7 @@ export interface SetupState {
|
|||||||
claudeCliStatus: CliStatus | null;
|
claudeCliStatus: CliStatus | null;
|
||||||
claudeAuthStatus: ClaudeAuthStatus | null;
|
claudeAuthStatus: ClaudeAuthStatus | null;
|
||||||
claudeInstallProgress: InstallProgress;
|
claudeInstallProgress: InstallProgress;
|
||||||
|
claudeIsVerifying: boolean;
|
||||||
|
|
||||||
// GitHub CLI state
|
// GitHub CLI state
|
||||||
ghCliStatus: GhCliStatus | null;
|
ghCliStatus: GhCliStatus | null;
|
||||||
@@ -164,6 +165,7 @@ export interface SetupActions {
|
|||||||
setClaudeAuthStatus: (status: ClaudeAuthStatus | null) => void;
|
setClaudeAuthStatus: (status: ClaudeAuthStatus | null) => void;
|
||||||
setClaudeInstallProgress: (progress: Partial<InstallProgress>) => void;
|
setClaudeInstallProgress: (progress: Partial<InstallProgress>) => void;
|
||||||
resetClaudeInstallProgress: () => void;
|
resetClaudeInstallProgress: () => void;
|
||||||
|
setClaudeIsVerifying: (isVerifying: boolean) => void;
|
||||||
|
|
||||||
// GitHub CLI
|
// GitHub CLI
|
||||||
setGhCliStatus: (status: GhCliStatus | null) => void;
|
setGhCliStatus: (status: GhCliStatus | null) => void;
|
||||||
@@ -202,6 +204,7 @@ const initialState: SetupState = {
|
|||||||
claudeCliStatus: null,
|
claudeCliStatus: null,
|
||||||
claudeAuthStatus: null,
|
claudeAuthStatus: null,
|
||||||
claudeInstallProgress: { ...initialInstallProgress },
|
claudeInstallProgress: { ...initialInstallProgress },
|
||||||
|
claudeIsVerifying: false,
|
||||||
|
|
||||||
ghCliStatus: null,
|
ghCliStatus: null,
|
||||||
cursorCliStatus: null,
|
cursorCliStatus: null,
|
||||||
@@ -255,6 +258,8 @@ export const useSetupStore = create<SetupState & SetupActions>()((set, get) => (
|
|||||||
claudeInstallProgress: { ...initialInstallProgress },
|
claudeInstallProgress: { ...initialInstallProgress },
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
setClaudeIsVerifying: (isVerifying) => set({ claudeIsVerifying: isVerifying }),
|
||||||
|
|
||||||
// GitHub CLI
|
// GitHub CLI
|
||||||
setGhCliStatus: (status) => set({ ghCliStatus: status }),
|
setGhCliStatus: (status) => set({ ghCliStatus: status }),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user