Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions apps/web/components/integrations/chrome-detail.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client"

import { CHROME_EXTENSION_URL } from "@repo/lib/constants"
import { cn } from "@lib/utils"
import { dmSans125ClassName } from "@/lib/fonts"
import { ChromeIcon } from "@/components/integration-icons"
Expand Down Expand Up @@ -33,11 +34,7 @@ function PillButton({

export function ChromeDetail() {
const handleInstall = () => {
window.open(
"https://chromewebstore.google.com/detail/supermemory/afpgkkipfdpeaflnpoaffkcankadgjfc",
"_blank",
"noopener,noreferrer",
)
window.open(CHROME_EXTENSION_URL, "_blank", "noopener,noreferrer")
analytics.onboardingChromeExtensionClicked({ source: "integrations" })
}

Expand Down
6 changes: 2 additions & 4 deletions apps/web/components/onboarding/setup/integrations-step.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client"

import { CHROME_EXTENSION_URL } from "@repo/lib/constants"
import { useState } from "react"
import { Button } from "@ui/components/button"
import { MCPDetailView } from "@/components/mcp-modal/mcp-detail-view"
Expand Down Expand Up @@ -113,10 +114,7 @@ export function IntegrationsStep() {
analytics.onboardingChromeExtensionClicked({
source: "onboarding",
})
window.open(
"https://chromewebstore.google.com/detail/supermemory/afpgkkipfdpeaflnpoaffkcankadgjfc",
"_blank",
)
window.open(CHROME_EXTENSION_URL, "_blank")
} else {
analytics.onboardingIntegrationClicked({
integration: card.title,
Expand Down
6 changes: 2 additions & 4 deletions apps/web/components/onboarding/x-bookmarks-detail-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Button } from "@ui/components/button"
import { cn } from "@lib/utils"
import { dmSansClassName } from "@/lib/fonts"
import Image from "next/image"
import { CHROME_EXTENSION_URL } from "@repo/lib/constants"

interface XBookmarksDetailViewProps {
onBack: () => void
Expand All @@ -29,10 +30,7 @@ const steps = [

export function XBookmarksDetailView({ onBack }: XBookmarksDetailViewProps) {
const handleInstall = () => {
window.open(
"https://chromewebstore.google.com/detail/supermemory/afpgkkipfdpeaflnangednailhoegogi",
"_blank",
)
window.open(CHROME_EXTENSION_URL, "_blank")
}

return (
Expand Down
7 changes: 2 additions & 5 deletions apps/web/components/settings/integrations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useAuth } from "@lib/auth-context"
import { generateId } from "@lib/generate-id"
import {
ADD_MEMORY_SHORTCUT_URL,
CHROME_EXTENSION_URL,
RAYCAST_EXTENSION_URL,
SEARCH_MEMORY_SHORTCUT_URL,
} from "@repo/lib/constants"
Expand Down Expand Up @@ -215,11 +216,7 @@ export default function Integrations() {
}, [searchParams, hasTriggeredRaycast, createRaycastApiKeyMutation, org])

const handleChromeInstall = () => {
window.open(
"https://chromewebstore.google.com/detail/supermemory/afpgkkipfdpeaflnpoaffkcankadgjfc",
"_blank",
"noopener,noreferrer",
)
window.open(CHROME_EXTENSION_URL, "_blank", "noopener,noreferrer")
analytics.onboardingChromeExtensionClicked({ source: "settings" })
analytics.extensionInstallClicked()
}
Expand Down
2 changes: 2 additions & 0 deletions packages/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ const SEARCH_MEMORY_SHORTCUT_URL =
const ADD_MEMORY_SHORTCUT_URL =
"https://www.icloud.com/shortcuts/0fd3e855be444845b457f94c78c2c8d9"
const RAYCAST_EXTENSION_URL = "https://www.raycast.com/supermemory/supermemory"
const CHROME_EXTENSION_URL = "https://chromewebstore.google.com/detail/supermemory/afpgkkipfdpeaflnpoaffkcankadgjfc"

export {
BIG_DIMENSIONS_NEW,
DEFAULT_PROJECT_ID,
SEARCH_MEMORY_SHORTCUT_URL,
ADD_MEMORY_SHORTCUT_URL,
RAYCAST_EXTENSION_URL,
CHROME_EXTENSION_URL,
}