mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-10 22:32:16 +02:00
feat: docs and ui tweaks
This commit is contained in:
parent
64f2b4a6eb
commit
271a21aee6
103 changed files with 2161 additions and 2625 deletions
|
|
@ -2,3 +2,21 @@ import { atom } from "jotai";
|
|||
|
||||
// Atom to control the connector dialog open state from anywhere in the app
|
||||
export const connectorDialogOpenAtom = atom(false);
|
||||
|
||||
/**
|
||||
* Requests the connector dialog to start an import flow for a specific
|
||||
* connector type (Google Drive / Composio Drive / OneDrive / Dropbox), set by
|
||||
* the Documents sidebar "Import" menu. `useConnectorDialog` consumes and clears
|
||||
* it.
|
||||
*
|
||||
* - `mode: "auto"` routes by connected-account count: none -> OAuth connect,
|
||||
* one -> edit view, many -> accounts list. Used by "Connect" and "Manage".
|
||||
* - `mode: "connect"` always starts a fresh OAuth connect, even when an account
|
||||
* already exists. Used by "Add another account".
|
||||
*/
|
||||
export interface ImportConnectorRequest {
|
||||
connectorType: string;
|
||||
mode: "auto" | "connect";
|
||||
}
|
||||
|
||||
export const importConnectorRequestAtom = atom<ImportConnectorRequest | null>(null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue