fix(server): prevent invalid IP server creation and add SSH validation #58
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.
This pull request refactors the
NewServerModal.vuecomponent to improve the SSH server addition workflow, enhance error handling, and provide clearer user feedback during connection testing. The changes focus on validating input, restructuring connection logic, and updating the UI to better communicate connection status and errors.Connection Workflow Improvements
testConnectionBeforeSave,testConnectionAfterKeyDeployment) and a newcreateServermethod to handle server creation only after a successful connection. [1] [2] [3]handleDialogOpenChangefunction. [1] [2]Validation and Error Handling
isValidIPfunction, which is now used to enable/disable connection actions.errorModalOpen) that displays detailed connection failure information, troubleshooting steps, and connection logs to the user. [1] [2] [3]User Interface Enhancements
Code Structure and Maintainability
UI Consistency
These changes collectively make the server addition process more robust, user-friendly, and maintainable.