Skip to content

Commit

Permalink
[front] - refacto: NewDialog wave 4 (#9914)
Browse files Browse the repository at this point in the history
* [front] - refactor: migrate dialog components to new design system

 - Replaced various Dialog components across multiple setup components with the NewDialog system from @dust-tt/sparkle.
 - Removed unused state hooks and related functions that handled the dialog open/close states.
 - Streamlined the import of React to avoid importing specific named exports and used the base React import with destructuring for hooks.
 - Cleaned up the codebase by removing commented-out lines and unnecessary eslint-disable comments.

* [front] - refactor: streamline dialog descriptions for various API setups

 - Removed redundant wrapper divs and merged paragraphs for brevity in API setup descriptions
 - Simplified layout by removing unnecessary flex gap in dialog container elements

* [front/components/providers] - feature: add universal ProviderSetup component for service configuration

 - Introduce a new general ProviderSetup component to handle configuration of different service providers
 - Refactor existing provider setup pages to use the new universal component, reducing redundancy
 - Update provider setup flow to fetch and mutate SWR data for real-time UI updates
 - Implement state management to handle provider testing, enabling, disabling, and state transitions
 - Add dynamic field rendering based on provider configuration requirements

[front/pages/w/[wId]/developers/providers] - refactor: integrate universal ProviderSetup into providers page

 - Replace individual provider setup components with the new universal ProviderSetup component
 - Introduce state hooks to manage selected provider IDs and setup modal visibility
 - Enable setup and editing of both model and service providers through the unified interface
 - Streamline configuration setup process for various service providers with a consistent UI/UX approach
 - Remove now-redundant individual provider setup components to simplify the codebase

* [misc] - refactor: remove various AI provider setup components

 - Deleted setup components for Anthropic, Azure OpenAI, BrowserlessAPI, Deepseek, Google AI Studio, Mistral AI, OpenAI, SerpAPI, Serper, and TogetherAI from the project
 - It seems like a consolidation or deprecation of AI provider integrations in favor of a streamlined or updated approach

* [front] - refactor: update import statement in ProviderSetup component

 - Modified React import to only import types where necessary for cleaner code organization

* [providers] - refactor: centralize provider configurations

 - Extract provider configurations for models and services into a central location for better management and reusability
 - Remove duplicate provider configuration code from the providers page and reference the centralized configurations instead
  • Loading branch information
JulesBelveze authored Jan 13, 2025
1 parent 5ff5a8b commit 29b6223
Show file tree
Hide file tree
Showing 12 changed files with 548 additions and 2,304 deletions.
209 changes: 0 additions & 209 deletions front/components/providers/AnthropicSetup.tsx

This file was deleted.

Loading

0 comments on commit 29b6223

Please sign in to comment.