Improve error handling for REST API and database connection tests.
The SupabaseConnectionTest component was refactored into smaller, more manageable components to improve readability and maintainability.