vibetunnel/ios/VibeTunnel/Views
David Collado 8f20a0ef26 Implement auto-login functionality for iOS app
- Add AuthenticationError enum for proper error handling in authentication domain
- Add attemptAutoLogin(profile:) method to AuthenticationService that:
  - Checks for valid existing tokens first
  - Retrieves stored credentials from Keychain using profile ID
  - Attempts authentication with stored username/password
  - Throws AuthenticationError for graceful fallback to manual login

- Update ServerProfilesViewModel.connectToProfile() to:
  - Remove early return that immediately showed login modal
  - Attempt auto-login first when authentication required
  - Only show login modal when auto-login fails (graceful fallback)
  - Maintain existing connection flow for no-auth servers

- Enhance server setup UI to capture username during profile creation:
  - Add username field to ConnectionViewModel
  - Add username input to ServerConfigForm
  - Update profile creation to store actual username instead of hardcoded "admin"
  - Default to "admin" if username field is empty for backward compatibility

- Update EnhancedConnectionView to pass username binding to form
- Build verification: All changes compile successfully

This implements a "Terminus-like experience" where users configure credentials once during server setup and enjoy automatic authentication thereafter, with graceful fallback to manual login when needed.
2025-07-03 13:18:48 +01:00
..
Common lots of work on iOS 2025-06-23 14:58:11 +02:00
Connection Implement auto-login functionality for iOS app 2025-07-03 13:18:48 +01:00
FileBrowser feat(ios): add light mode support, iPad keyboard shortcuts, and extended toolbar (#141) 2025-06-30 01:00:12 +01:00
Sessions fix: iOS authentication flow and ConnectionManager architecture improvements (#169) 2025-07-01 14:57:38 +01:00
Settings Add SwiftLint and SwiftFormat Husky pre-commit hooks for iOS and mac (#165) 2025-07-01 06:24:59 +01:00
Terminal Add SwiftLint and SwiftFormat Husky pre-commit hooks for iOS and mac (#165) 2025-07-01 06:24:59 +01:00
Welcome feat: Powerful Mac menu bar with rich view and session tracking (#176) 2025-07-01 14:54:30 +01:00
FileBrowserView.swift feat(ios): add light mode support, iPad keyboard shortcuts, and extended toolbar (#141) 2025-06-30 01:00:12 +01:00
FileEditorView.swift feat(ios): add light mode support, iPad keyboard shortcuts, and extended toolbar (#141) 2025-06-30 01:00:12 +01:00
QuickLookWrapper.swift lots of work on iOS 2025-06-23 14:58:11 +02:00
SystemLogsView.swift feat(ios): add light mode support, iPad keyboard shortcuts, and extended toolbar (#141) 2025-06-30 01:00:12 +01:00