feat: docs and ui tweaks

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-07-06 19:26:35 -07:00
parent 64f2b4a6eb
commit 271a21aee6
103 changed files with 2161 additions and 2625 deletions

View file

@ -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);