SurfSense/surfsense_web/components/editConnector
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
..
EditConnectorLoadingSkeleton.tsx small refactor, break down components 2025-04-16 20:52:38 -07:00
EditConnectorNameForm.tsx small refactor, break down components 2025-04-16 20:52:38 -07:00
EditGitHubConnectorConfig.tsx small refactor, break down components 2025-04-16 20:52:38 -07:00
EditSimpleTokenForm.tsx small refactor, break down components 2025-04-16 20:52:38 -07:00
EditSlackConnectorConfigForm.test.tsx 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
EditSlackConnectorConfigForm.tsx fix: Correct syntax error in EditSlackConnectorConfigForm 2025-05-29 03:25:00 +00:00
types.ts Fix: Ensure full Slack connector configuration is saved 2025-05-29 06:37:35 +00:00