Fix instance launching to create single instance#21
Merged
Conversation
- Modified CreateManager component to launch instance immediately on form submit - Added loading spinner (Loader2) during instance creation - Shows prominent blue alert with launch status message - Only redirects to managers view after successful instance launch - Stores SSH keys in localStorage automatically - Handles launch failures gracefully with error state - Changed button text from "Create Manager" to "Launch Instance" for clarity
Changes to manager-list.tsx: - Added automatic status polling every 10 seconds to keep instance states current - Implemented optimistic UI updates for start/stop/reboot/terminate actions - Enhanced status badges to show loading state with animated spinner during operations - Improved action feedback with immediate state changes and error reversion Changes to instance-controls.tsx: - Fixed API authentication to use header-based credentials (x-aws-* headers) - Added automatic status refresh every 10 seconds when instance exists - Implemented optimistic state updates for start/stop/reboot operations - Added periodic polling during reboot (every 5s for 2 minutes) - Enhanced error handling with automatic state reversion on failures - Improved user feedback with more descriptive toast messages Status display improvements: - Shows "starting...", "stopping...", "rebooting...", "terminating..." during actions - Displays real-time state changes from AWS (pending, stopping, running, stopped, etc.) - Color-coded badges for different states (green=running, yellow=stopped, etc.) - Animated spinner indicators during state transitions All instance control buttons (Start, Stop, Restart, Terminate) now work reliably with proper status feedback.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
No description provided.