chore: add run-pictopy script#1171
Conversation
|
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughIntroduces a new PowerShell orchestrator script that launches and manages the PictoPy frontend with two backend services as coordinated background jobs, monitoring their health, collecting and displaying color-coded logs, handling errors, and performing cleanup on exit. Changes
Sequence DiagramsequenceDiagram
participant User
participant Orchestrator as run-pictopy.ps1
participant Backend
participant Sync
participant Frontend as Tauri Frontend
User->>Orchestrator: Execute script
Orchestrator->>Orchestrator: Setup environment
Orchestrator->>Backend: Start as background job
Orchestrator->>Sync: Start as background job
Orchestrator->>Frontend: Launch via npm run tauri dev
loop Health Monitoring
Orchestrator->>Backend: Check job status
Orchestrator->>Sync: Check job status
Orchestrator->>Orchestrator: Collect & aggregate logs
Orchestrator->>User: Display color-coded logs
end
alt Backend/Sync Crash
Backend-->>Orchestrator: Critical error
Orchestrator->>Orchestrator: Throw error
else Normal Exit
User->>Orchestrator: Close/Ctrl+C
end
Orchestrator->>Backend: Stop job
Orchestrator->>Sync: Stop job
Orchestrator->>Orchestrator: Kill processes (ports 52123/52124)
Orchestrator->>Orchestrator: Reset directory
Orchestrator->>User: Confirmation message
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ Finishing touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Addressed Issues:
Fixes #(issue number)
Screenshots/Recordings:
Additional Notes:
Checklist
We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.
Summary by CodeRabbit