mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-10 03:28:14 +00:00
- Fix `authClient.apiKey.create()` returning undefined: better-auth resolves to `{ data, error }`, not the key directly. Use `res.data.key` (with `res.error` handling) in both `RaycastDetail` and `settings/integrations.tsx`.
- Extract `RaycastSetupModal` and reuse it across the nova home Raycast card and the Settings → Integrations Raycast modal. The new modal matches the plugins-connect design system (icon box, pill close, inset card with shared `InstallSteps`, install pill).
- Add `/settings/integrations` redirect page so `app.supermemory.ai/settings/integrations?q=raycast` lands on the Integrations tab and auto-opens the Raycast modal (the `?q=raycast` auto-trigger logic already existed; the route was the missing piece).
16 lines
396 B
TypeScript
16 lines
396 B
TypeScript
"use client"
|
|
|
|
import { useEffect } from "react"
|
|
import { useRouter, useSearchParams } from "next/navigation"
|
|
|
|
export default function SettingsIntegrationsPage() {
|
|
const router = useRouter()
|
|
const searchParams = useSearchParams()
|
|
|
|
useEffect(() => {
|
|
const qs = searchParams.toString()
|
|
router.replace(`/settings${qs ? `?${qs}` : ""}#integrations`)
|
|
}, [router, searchParams])
|
|
|
|
return null
|
|
}
|