mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-15 22:14:46 +00:00
Connect services from one wizard, with no tokens in the browser
Every entry point (the Connectors page and drawer, Add Source, Add Tool, the chat) opens one connect wizard: sign in or paste the credentials, choose what to sync (content services only, skippable), then a summary with Try it in chat. Tool services create their tools on sign-in with write actions needing approval, and each action's permission (Always allow, Needs approval, Off) can be changed in the wizard or the drawer. The drawer also reconnects, syncs more content, refreshes an MCP server's tools and removes a connection, keeping or deleting what it feeds. The file pickers work from a connection id and fetch a short-lived picker token when they need one; no session token is kept in localStorage any more, and any left by an older build is claimed once and removed. S3 and Reddit reuse the keys stored on a connection. A tool whose account needs signing in pauses on a Connect card in the chat; after connecting, Continue resumes the call. A connection whose sign-in stops working raises a Reconnect toast. The Connectors page is hidden when the backend does not report connectors_enabled.
This commit is contained in:
1 parent
3511004f50
commit
6e2ee43944
43 files changed
+2989
-555
No files matched your search
+3
-2
@@ -600,8 +600,9 @@ overlay. The app has one
|
||||
`ToastViewport`, mounted in `App.tsx`; it is the live region
|
||||
(`role="status"`, `aria-live="polite"`) and the fixed stack, so `Toast`
|
||||
cards carry no role and no toast renders its own rail or positioning. Top
|
||||
to bottom it holds `TeamNotificationToast`, `ToolApprovalToast`,
|
||||
`UploadToast` and `ActionToast`, and it moves to the bottom-left while the
|
||||
to bottom it holds `TeamNotificationToast`, `ConnectionHealthToast` (a
|
||||
connection that needs reconnecting, with a Reconnect action),
|
||||
`ToolApprovalToast`, `UploadToast` and `ActionToast`, and it moves to the bottom-left while the
|
||||
workflow Preview drawer is open. A new toast component returns only its
|
||||
`Toast` cards and is added to that viewport. A page that reports the result
|
||||
of an action (the admin Users actions) dispatches
|
||||
|
||||
Reference in new issue
Block a user