mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-22 06:53:57 +00:00
- New Configure tab with sidebar sections: Integrations, Models, Automations - Merge org/personal connection tabs into one grid: per-card scope chips, admin scope dropdown, Slack as a card, custom MCP via modal - Automations: always-visible template cards with dashed blank-create tile - Home: Connect your tools only shows unconnected apps Fixes ENG-1075
62 lines
1.6 KiB
TypeScript
62 lines
1.6 KiB
TypeScript
import {
|
|
parseAsString,
|
|
parseAsBoolean,
|
|
parseAsStringLiteral,
|
|
parseAsArrayOf,
|
|
} from "nuqs"
|
|
|
|
// Modal states
|
|
export const addDocumentParam = parseAsStringLiteral([
|
|
"note",
|
|
"link",
|
|
"file",
|
|
"connect",
|
|
] as const)
|
|
export const mcpParam = parseAsBoolean.withDefault(false)
|
|
export const searchParam = parseAsBoolean.withDefault(false)
|
|
export const qParam = parseAsString.withDefault("")
|
|
export const docParam = parseAsString
|
|
export const fullscreenParam = parseAsBoolean.withDefault(false)
|
|
export const chatParam = parseAsBoolean
|
|
export const threadParam = parseAsString
|
|
export const shareParam = parseAsBoolean.withDefault(false)
|
|
export const feedbackParam = parseAsBoolean.withDefault(false)
|
|
|
|
// View & filter states
|
|
const viewLiterals = [
|
|
"dashboard",
|
|
"graph",
|
|
"list",
|
|
"integrations",
|
|
"configure",
|
|
"chat",
|
|
"digests",
|
|
// Integration sub-views — each card is its own view
|
|
"mcp",
|
|
"plugins",
|
|
"chrome",
|
|
"connections",
|
|
"shortcuts",
|
|
"raycast",
|
|
"import",
|
|
] as const
|
|
export type ViewParamValue = (typeof viewLiterals)[number]
|
|
export const viewParam =
|
|
parseAsStringLiteral(viewLiterals).withDefault("dashboard")
|
|
|
|
// Kept for backwards compat with components that pass integration hints.
|
|
// "notion"/"google-drive" are connection providers, not view modes — they open the connect modal.
|
|
export type IntegrationParamValue =
|
|
| "mcp"
|
|
| "plugins"
|
|
| "chrome"
|
|
| "connections"
|
|
| "shortcuts"
|
|
| "raycast"
|
|
| "import"
|
|
| "notion"
|
|
| "google-drive"
|
|
export const categoriesParam = parseAsArrayOf(parseAsString, ",").withDefault(
|
|
[],
|
|
)
|
|
export const projectParam = parseAsArrayOf(parseAsString, ",").withDefault([])
|