bolt.diy/app/components/chat
Stijnus 552f08acea
Some checks are pending
Docker Publish / docker-build-publish (push) Waiting to run
Update Stable Branch / prepare-release (push) Waiting to run
feat: update connectiontab and datatab security fix (#1614)
* feat: update connectiontab and datatab security fix

# Connection Components and Diagnostics Updates

## GitHub Connection Component Changes
- Updated the disconnect button styling to match Vercel's design:
  - Changed from `<Button>` component to native `<button>` element
  - Added red background (`bg-red-500`) with hover effect (`hover:bg-red-600`)
  - Updated icon from `i-ph:sign-out` to `i-ph:plug`
  - Simplified text to just "Disconnect"
  - Added connection status indicator with check-circle icon and "Connected to GitHub" text

## ConnectionDiagnostics Tab Updates
### Added New Connection Diagnostics
- Implemented diagnostics for Vercel and Supabase connections
- Added new helper function `safeJsonParse` for safer JSON parsing operations

### Diagnostic Checks Added
- **Vercel Diagnostics:**
  - LocalStorage token verification
  - API endpoint connectivity test
  - Connection status validation
  - Reset functionality for Vercel connection

- **Supabase Diagnostics:**
  - LocalStorage credentials verification
  - API endpoint connectivity test
  - Connection status validation
  - Reset functionality for Supabase connection

### UI Enhancements
- Added new status cards for Vercel and Supabase
- Implemented reset buttons with consistent styling
- Added loading states during diagnostics
- Enhanced error handling and user feedback

### Function Updates
- Extended `runDiagnostics` function to include Vercel and Supabase checks
- Added new reset helper functions for each connection type
- Improved error handling and status reporting
- Enhanced toast notifications for better user feedback

### Visual Consistency
- Matched styling of new diagnostic cards with existing GitHub and Netlify cards
- Consistent use of icons and status indicators
- Uniform button styling across all connection types
- Maintained consistent spacing and layout patterns

### Code Structure
- Organized diagnostic checks into clear, separate sections
- Improved error handling and type safety
- Enhanced code readability and maintainability
- Added comprehensive status compilation for all connections

These changes ensure a consistent user experience across all connection types while providing robust diagnostic capabilities for troubleshooting connection issues.

# DataTab.tsx Changes

## Code Cleanup
- Removed unused variables from useDataOperations hook:
  - Removed `handleExportAPIKeys`
  - Removed `handleUndo`
  - Removed `lastOperation`

This change improves code quality by removing unused variables and resolves ESLint warnings without affecting any functionality.

* Test commit to verify pre-commit hook
2025-04-08 13:06:43 +02:00
..
chatExportAndImport feat: new improvement for the GitHub API Authentication Fix (#1537) 2025-03-29 21:12:47 +01:00
APIKeyManager.tsx fix: api-key manager cleanup and log error on llm call (#1077) 2025-01-13 04:21:29 +05:30
Artifact.tsx feat: integrate Supabase for database operations and migrations 2025-03-19 23:11:31 +00:00
AssistantMessage.tsx feat: update connectiontab and datatab security fix (#1614) 2025-04-08 13:06:43 +02:00
BaseChat.module.scss
BaseChat.tsx feat(deploy): add deploy alert system for build and deployment status 2025-04-04 11:22:56 +01:00
Chat.client.tsx feat: update connectiontab and datatab security fix (#1614) 2025-04-08 13:06:43 +02:00
ChatAlert.tsx fix: show netlify deployed link 2025-02-25 19:02:03 +00:00
CodeBlock.module.scss
CodeBlock.tsx
ExamplePrompts.tsx
FilePreview.tsx
GitCloneButton.tsx whitelist vue and svelte files 2025-04-04 05:54:34 -07:00
ImportFolderButton.tsx feat: new improvement for the GitHub API Authentication Fix (#1537) 2025-03-29 21:12:47 +01:00
Markdown.module.scss
Markdown.spec.ts
Markdown.tsx feat: enhanced Code Context and Project Summary Features (#1191) 2025-01-29 15:37:20 +05:30
Messages.client.tsx fix: auto scroll fix, scroll allow user to scroll up during ai response (#1299) 2025-02-12 01:11:14 +05:30
ModelSelector.tsx Add click outside handler to close ModelSelector dropdown 2025-02-15 16:59:58 +01:00
NetlifyDeploymentLink.client.tsx feat: add Vercel integration for project deployment 2025-03-27 00:06:10 +00:00
ProgressCompilation.tsx fix: show netlify deployed link 2025-02-25 19:02:03 +00:00
ScreenshotStateManager.tsx
SendButton.client.tsx
SpeechRecognition.tsx
StarterTemplates.tsx revert 2025-01-30 23:05:04 +01:00
SupabaseAlert.tsx feat: integrate Supabase for database operations and migrations 2025-03-19 23:11:31 +00:00
SupabaseConnection.tsx refactor: remove debug log and improve button layout in SupabaseConnection 2025-03-25 13:54:15 +00:00
ThoughtBox.tsx feat: added support for reasoning content (#1168) 2025-01-25 16:16:19 +05:30
UserMessage.tsx feat: make user made changes persistent after reload (#1387) 2025-02-27 13:34:57 +05:30
VercelDeploymentLink.client.tsx feat: add Vercel integration for project deployment 2025-03-27 00:06:10 +00:00