mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
1. New chat messages saving to old thread (race condition) 2. Feedback modal null handling issue (boolean | null not coerced to boolean) 3. Wrong icon on Integrations tab (was Cable, now Sun) 4. Wrong icon on Graph tab (was LayoutGridIcon, now GraphIcon) 5. Missing cursor pointer on header tabs 6. Default view was "graph" instead of "list"
32 lines
1.1 KiB
TypeScript
32 lines
1.1 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 = ["graph", "list", "integrations"] as const
|
|
export type ViewParamValue = (typeof viewLiterals)[number]
|
|
export const viewParam = parseAsStringLiteral(viewLiterals).withDefault("list")
|
|
export const categoriesParam = parseAsArrayOf(parseAsString, ",").withDefault(
|
|
[],
|
|
)
|
|
export const projectParam = parseAsString.withDefault("sm_project_default")
|