SurfSense/surfsense_web/hooks
google-labs-jules[bot] 9311e12c87 Fix: Use live API data for Slack channel discovery
Replaced mock data in the Slack connector's channel management UI with a real API call to the backend.

- Implemented `discoverSlackChannelsAPI` in the `useConnectorEditPage` hook to fetch channels from `/api/search-source-connectors/slack/:connectorId/discover-channels`.
- Updated the `handleDiscoverChannels` function in `EditConnectorPage` to use this new API function.
- Ensured consistent `SlackChannelInfo` type usage.

This fixes a bug where incorrect Slack channel names were displayed due to the UI using stale mock data instead of actual data reflecting the bot's true channel memberships.
2025-05-29 04:34:14 +00:00
..
index.ts feat: monorepo 2025-04-07 23:47:06 -07:00
use-api-key.ts feat: monorepo 2025-04-07 23:47:06 -07:00
use-connectors.ts feat: monorepo 2025-04-07 23:47:06 -07:00
use-documents.ts fix: Docs & Chats in other search spaces 2025-04-17 23:19:56 -07:00
use-mobile.ts feat: monorepo 2025-04-07 23:47:06 -07:00
use-search-spaces.ts feat: monorepo 2025-04-07 23:47:06 -07:00
useConnectorEditPage.ts Fix: Use live API data for Slack channel discovery 2025-05-29 04:34:14 +00:00
useSearchSourceConnectors.test.ts I've added comprehensive unit and integration tests for the recently implemented Slack connector features. This includes tests for backend logic (SlackHistory, indexing tasks, API routes) and frontend components and hooks. 2025-05-28 10:48:28 +00:00
useSearchSourceConnectors.ts feat: Enhance Slack Connector Functionality 2025-05-28 09:36:25 +00:00