fix: refactor connectors api and state to show skeleton and store cache, fix backend file name bug#953
Merged
Merged
Conversation
edwinjosechittilappilly
approved these changes
Feb 11, 2026
mfortman11
approved these changes
Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new, unified connector management system in the frontend, enabling users to view, connect, disconnect, and manage third-party connectors (such as Google Drive, OneDrive, and SharePoint) through a set of new React hooks, API integrations, and a UI component. The changes provide a more robust, user-friendly experience for handling connector authentication, status, and actions.
The most important changes are:
Connector Management Hooks and API Integration
useGetConnectorsQueryhook to fetch available connectors and their statuses, and defined a comprehensiveConnectortype to standardize connector data throughout the app. (frontend/app/api/queries/useGetConnectorsQuery.ts)useConnectConnectorMutationanduseDisconnectConnectorMutationhooks to handle connector authentication (including OAuth flow) and disconnection, with optimistic updates and error handling. (frontend/app/api/mutations/useConnectConnectorMutation.ts,frontend/app/api/mutations/useDisconnectConnectorMutation.ts) [1] [2]useGetConnectorTokenQueryto retrieve access tokens for connectors, supporting resource-specific tokens and error handling. (frontend/app/api/queries/useGetConnectorTokenQuery.ts)Connector Management UI
ConnectorCardscomponent to display all connectors, show their connection status, and provide actions for connecting, disconnecting, and managing knowledge uploads, with loading and error states. (frontend/app/settings/_components/connector-cards.tsx)API Improvements and Bug Fixes
connection_id,max_files,selected_files, andsettings), making the sync process more flexible. (frontend/app/api/mutations/useSyncConnector.ts)frontend/app/auth/callback/page.tsx)