diff options
| author | Dhravya Shah <[email protected]> | 2025-09-18 12:16:50 -0700 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2025-09-18 12:16:50 -0700 |
| commit | 315d8e413b99c79c5f8ea4192ae69e6592caa737 (patch) | |
| tree | f2c6bfce7cf83666d346f313e1804541b44dff21 /apps | |
| parent | fix (diff) | |
| parent | ui: enable chrome extension download (#423) (diff) | |
| download | supermemory-315d8e413b99c79c5f8ea4192ae69e6592caa737.tar.xz supermemory-315d8e413b99c79c5f8ea4192ae69e6592caa737.zip | |
Merge branch 'main' of https://github.com/supermemoryai/supermemory
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/components/views/integrations.tsx | 46 | ||||
| -rw-r--r-- | apps/web/lib/analytics.ts | 16 |
2 files changed, 47 insertions, 15 deletions
diff --git a/apps/web/components/views/integrations.tsx b/apps/web/components/views/integrations.tsx index 4ac44c02..b3e3c92d 100644 --- a/apps/web/components/views/integrations.tsx +++ b/apps/web/components/views/integrations.tsx @@ -334,23 +334,53 @@ export function IntegrationsView() { </div> {/* Chrome Extension */} - <div className="bg-white/5 rounded-xl border border-white/10 overflow-hidden opacity-75"> + <div className="bg-white/5 rounded-xl border border-white/10 overflow-hidden"> <div className="p-4 sm:p-5"> <div className="flex items-start gap-3"> <div className="p-2 bg-orange-500/20 rounded-lg flex-shrink-0"> <ChromeIcon className="h-5 w-5 text-orange-400" /> </div> - <div className="flex-1 min-w-0"> - <div className="flex flex-col sm:flex-row sm:items-center gap-2 mb-1"> + <div className="flex-1 min-w-0 mb-3"> + <div className="flex flex-col sm:flex-row sm:items-baseline sm:justify-between gap-2 mb-1"> <h3 className="text-white font-semibold text-base"> Chrome Extension </h3> - <div className="px-2 py-1 bg-orange-500/20 text-orange-400 text-xs rounded-full flex-shrink-0 w-fit"> - Coming Soon - </div> + <Button + className="text-white bg-secondary w-fit" + onClick={() => { + window.open( + "https://chromewebstore.google.com/detail/supermemory/afpgkkipfdpeaflnpoaffkcankadgjfc", + "_blank", + "noopener,noreferrer", + ) + analytics.extensionInstallClicked() + }} + size="sm" + variant="ghost" + > + <ChromeIcon className="h-3 w-3 mr-1" /> + Add to Chrome + </Button> </div> - <p className="text-white/70 text-sm leading-relaxed"> - Save web content with one click + </div> + </div> + <div className="space-y-2"> + <div className="flex items-center gap-3"> + <div className="w-1.5 h-1.5 bg-orange-400 rounded-full flex-shrink-0" /> + <p className="text-white/80 text-sm"> + Save any webpage to supermemory + </p> + </div> + <div className="flex items-center gap-3"> + <div className="w-1.5 h-1.5 bg-orange-400 rounded-full flex-shrink-0" /> + <p className="text-white/80 text-sm"> + Import All your Twitter Bookmarks + </p> + </div> + <div className="flex items-center gap-3"> + <div className="w-1.5 h-1.5 bg-orange-400 rounded-full flex-shrink-0" /> + <p className="text-white/80 text-sm"> + Bring all your chatGPT memories to Supermemory </p> </div> </div> diff --git a/apps/web/lib/analytics.ts b/apps/web/lib/analytics.ts index b1fd09d5..28f1d4fe 100644 --- a/apps/web/lib/analytics.ts +++ b/apps/web/lib/analytics.ts @@ -1,4 +1,4 @@ -import posthog from "posthog-js"; +import posthog from "posthog-js" export const analytics = { userSignedOut: () => posthog.capture("user_signed_out"), @@ -7,11 +7,11 @@ export const analytics = { tourSkipped: () => posthog.capture("tour_skipped"), memoryAdded: (props: { - type: "note" | "link" | "file"; - project_id?: string; - content_length?: number; - file_size?: number; - file_type?: string; + type: "note" | "link" | "file" + project_id?: string + content_length?: number + file_size?: number + file_type?: string }) => posthog.capture("memory_added", props), memoryDetailOpened: () => posthog.capture("memory_detail_opened"), @@ -41,4 +41,6 @@ export const analytics = { mcpViewOpened: () => posthog.capture("mcp_view_opened"), mcpInstallCmdCopied: () => posthog.capture("mcp_install_cmd_copied"), -}; + + extensionInstallClicked: () => posthog.capture("extension_install_clicked"), +} |