github prathameshkhade/SysAdmin v1.0.13
Release v1.0.13

latest releases: v1.1.1, v1.1.0, v1.0.32...
10 months ago

Here's what I've fixed:

  1. Connection Manager:
  • Added validation to prevent duplicate host+username combinations
  • Added validation to prevent duplicate connection names
  • Fixed the setDefaultConnection method to ensure only one connection can be default
  • Added proper error handling and validation in save/update methods
  • Added a helper method _isDuplicateConnection to check for duplicates
  1. Dashboard Screen:
  • Updated the _refreshConnection logic to refresh when:
    • Default connection has changed
    • Current connection failed
    • Current connection status is not "Connected"
  • This ensures proper reconnection attempts in all necessary scenarios
  1. SSH Manager Screen:
  • Added validation to handle duplicate connections
  • Added logic to verify and fix multiple default connections
  • Improved error handling and user feedback
  • Added proper state management for connection updates

Additional improvements and corner cases handled:

  1. Error Handling:
  • All operations now properly throw and handle exceptions
  • User-friendly error messages are shown
  • Proper state cleanup on errors
  1. State Management:
  • Better handling of mounted checks
  • Proper cleanup of connections
  • Improved state updates
  1. Validation:
  • Host + username combination must be unique
  • Connection names must be unique
  • Only one default connection allowed
  1. Edge Cases:
  • Handles case when multiple defaults are found
  • Handles connection failures gracefully
  • Manages connection state properly during updates
  • Proper cleanup when navigating between screens

Don't miss a new SysAdmin release

NewReleases is sending notifications on new releases.