Fixed two major credential management issues:
1. Fix SSH key upload button not responding (Issue #232)
- Error handling was silently swallowing exceptions
- Added proper error propagation in axios functions
- Improved error display to show specific error messages
- Users now see actual error details instead of generic messages
2. Improve credential editing to show actual content
- Both "Upload File" and "Paste Key" modes now display existing data
- Upload mode: shows current key content in read-only preview area
- Paste mode: shows editable key content in textarea
- Smart input method switching preserves existing data
- Enhanced button labels and status indicators
Key changes:
- Fixed handleApiError propagation in main-axios.ts credential functions
- Enhanced CredentialEditor.tsx with key content preview
- Improved error handling with console logging for debugging
- Better UX with clear status indicators and preserved data
These fixes resolve the "Add Credential button does nothing" issue
and provide full visibility of credential content during editing.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>