Merged
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR introduces a comprehensive first-time user onboarding wizard for Hagicode Desktop, along with supporting infrastructure including CI/CD Feishu notifications, unified update source configuration, enhanced version management UI, Redux state management layers, IPC communication handlers, and extensive English/Chinese internationalization. Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant UI as Renderer UI
participant Store as Redux Store
participant Thunk as Async Thunk
participant IPC as IPC Bridge
participant Main as Main Process
participant VM as VersionManager
participant DM as DependencyManager
participant WSM as WebServiceManager
User->>UI: Enter Onboarding
UI->>Store: dispatch(checkOnboardingTrigger())
Store->>Thunk: execute thunk
Thunk->>IPC: electronAPI.checkTriggerCondition()
IPC->>Main: onboarding:check-trigger
Main->>Main: OnboardingManager.checkTriggerCondition()
Main-->>IPC: { shouldShow: true }
IPC-->>Thunk: result
Thunk-->>Store: fulfilled payload
User->>UI: Click Next → Download
UI->>Store: dispatch(downloadPackage())
Store->>Thunk: execute thunk
Thunk->>IPC: electronAPI.downloadPackage()
IPC->>Main: onboarding:download-package
Main->>VM: VersionManager.installVersion(versionId, onProgress)
VM->>VM: downloadPackage(onProgress callback)
VM-->>Main: progress events
Main->>IPC: emit onboarding:download-progress
IPC-->>UI: progress callback
UI->>Store: dispatch(setDownloadProgress(progress))
Store-->>UI: update UI
VM-->>Main: download complete
Main-->>Thunk: { success: true, version }
Thunk-->>Store: fulfilled with version
Store-->>UI: update downloadProgress state
User->>UI: Click Next → Dependencies
UI->>Store: dispatch(installDependencies(version))
Store->>Thunk: execute thunk
Thunk->>IPC: electronAPI.installDependencies(version)
IPC->>Main: onboarding:install-dependencies
Main->>DM: DependencyManager.installDependencies()
DM-->>Main: progress events
Main->>IPC: emit onboarding:dependency-progress
IPC-->>UI: progress callback
UI->>Store: dispatch(setDependenciesStatus(status))
User->>UI: Click Next → Launch Service
UI->>Store: dispatch(startService(version))
Store->>Thunk: execute thunk
Thunk->>IPC: electronAPI.startService(version)
IPC->>Main: onboarding:start-service
Main->>WSM: WebServiceManager.start()
WSM->>WSM: checkPortAvailable() + auto-increment
WSM-->>Main: service running
Main->>IPC: emit onboarding:service-progress
IPC-->>UI: progress callback
UI->>Store: dispatch(setServiceProgress(running))
User->>UI: Complete Onboarding
UI->>Store: dispatch(completeOnboarding(version))
Store->>Thunk: execute thunk
Thunk->>IPC: electronAPI.completeOnboarding(version)
IPC->>Main: onboarding:complete
Main->>Main: OnboardingManager.completeOnboarding()
Main->>Main: emit onboarding:open-hagicode event
Main-->>IPC: event to renderer
IPC-->>UI: openHagicode callback
UI->>UI: Navigate away, show Hagicode
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit
Release Notes
New Features
Improvements
Documentation