SurfSense/surfsense_web/hooks
google-labs-jules[bot] 95b3d97800 Fix: Ensure full Slack connector configuration is saved
I've modified `useConnectorEditPage.ts` to correctly save all Slack connector settings.

- I updated `editConnectorSchema` in `types.ts` to include a `config` field in `EditConnectorFormValues`.
- I replaced the `handleSaveChanges` function in `useConnectorEditPage.ts` with a version that reads the complete Slack configuration from `formData.config` (populated by `EditSlackConnectorConfigForm` and channel selection).
- This ensures that settings like `slack_selected_channel_ids`, `slack_membership_filter_type`, and other Slack-specific options are included in the payload to the backend and persisted correctly.
- I updated post-save logic to correctly reset the form's `config` field for Slack connectors.

This addresses the issue where changes to Slack connector configurations, other than just the bot token, were not being saved.
2025-05-29 06:37:35 +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: Ensure full Slack connector configuration is saved 2025-05-29 06:37:35 +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