From c4e92b4542b1b52ee077caea909bc8514a7e9e91 Mon Sep 17 00:00:00 2001 From: Satya Patel Date: Mon, 2 Feb 2026 12:44:07 -0800 Subject: [PATCH] fix(marketing): add missing canonicals, FAQPage schema, breadcrumbs, and sitemap entries Add self-referencing canonicals to homepage and /community, add /community to sitemap, add FAQPage JSON-LD schema to homepage, add BreadcrumbList schema to blog and changelog post pages, and remove invalid SearchAction from WebSite schema. --- apps/marketing/src/app/blog/[slug]/page.tsx | 9 ++- .../src/app/changelog/[slug]/page.tsx | 9 ++- apps/marketing/src/app/community/page.tsx | 3 + .../app/components/FAQSection/FAQSection.tsx | 35 +---------- .../app/components/FAQSection/constants.ts | 32 ++++++++++ .../src/app/components/FAQSection/index.ts | 2 + apps/marketing/src/app/page.tsx | 14 ++++- apps/marketing/src/app/sitemap.ts | 6 ++ .../src/components/JsonLd/JsonLd.tsx | 58 ++++++++++++++++--- apps/marketing/src/components/JsonLd/index.ts | 2 + 10 files changed, 125 insertions(+), 45 deletions(-) create mode 100644 apps/marketing/src/app/components/FAQSection/constants.ts diff --git a/apps/marketing/src/app/blog/[slug]/page.tsx b/apps/marketing/src/app/blog/[slug]/page.tsx index 84304535dbe..9e808283021 100644 --- a/apps/marketing/src/app/blog/[slug]/page.tsx +++ b/apps/marketing/src/app/blog/[slug]/page.tsx @@ -2,7 +2,7 @@ import { COMPANY } from "@superset/shared/constants"; import type { Metadata } from "next"; import { notFound } from "next/navigation"; import { MDXRemote } from "next-mdx-remote/rsc"; -import { ArticleJsonLd } from "@/components/JsonLd"; +import { ArticleJsonLd, BreadcrumbJsonLd } from "@/components/JsonLd"; import { extractToc, getAllSlugs, @@ -42,6 +42,13 @@ export default async function BlogPostPage({ params }: PageProps) { url={url} image={post.image} /> + diff --git a/apps/marketing/src/app/changelog/[slug]/page.tsx b/apps/marketing/src/app/changelog/[slug]/page.tsx index 7e291ecc93c..775ae17fd9d 100644 --- a/apps/marketing/src/app/changelog/[slug]/page.tsx +++ b/apps/marketing/src/app/changelog/[slug]/page.tsx @@ -2,7 +2,7 @@ import { COMPANY } from "@superset/shared/constants"; import type { Metadata } from "next"; import { notFound } from "next/navigation"; import { MDXRemote } from "next-mdx-remote/rsc"; -import { ArticleJsonLd } from "@/components/JsonLd"; +import { ArticleJsonLd, BreadcrumbJsonLd } from "@/components/JsonLd"; import { getAllChangelogSlugs, getChangelogEntry } from "@/lib/changelog"; import { changelogMdxComponents } from "../components/ChangelogEntry/changelog-mdx-components"; import { ChangelogEntryLayout } from "./components/ChangelogEntryLayout"; @@ -31,6 +31,13 @@ export default async function ChangelogEntryPage({ params }: PageProps) { url={url} image={entry.image} /> + diff --git a/apps/marketing/src/app/community/page.tsx b/apps/marketing/src/app/community/page.tsx index f22db6887c2..1122b38ac76 100644 --- a/apps/marketing/src/app/community/page.tsx +++ b/apps/marketing/src/app/community/page.tsx @@ -6,6 +6,9 @@ export const metadata: Metadata = { title: "Community", description: "Join the Superset community to get help, share ideas, and stay up to date with the latest news and updates.", + alternates: { + canonical: `${COMPANY.MARKETING_URL}/community`, + }, }; interface GitHubRepoResponse { diff --git a/apps/marketing/src/app/components/FAQSection/FAQSection.tsx b/apps/marketing/src/app/components/FAQSection/FAQSection.tsx index a77db9bda5d..29095c98f76 100644 --- a/apps/marketing/src/app/components/FAQSection/FAQSection.tsx +++ b/apps/marketing/src/app/components/FAQSection/FAQSection.tsx @@ -3,39 +3,8 @@ import { AnimatePresence, motion } from "framer-motion"; import { useState } from "react"; import { HiPlus } from "react-icons/hi2"; - -interface FAQItem { - question: string; - answer: string; -} - -const FAQ_ITEMS: FAQItem[] = [ - { - question: "I already use an IDE like Cursor, is this for me?", - answer: - "Superset is designed to work with your existing tool, we natively support deep-linking to IDEs like Cursor so you can open your workspaces and files in your IDE.", - }, - { - question: "Which AI coding agents are supported?", - answer: - "Superset works with any CLI-based coding agent including Claude Code, OpenCode, OpenAI Codex, and more. If it runs in a terminal, it runs in Superset.", - }, - { - question: "How does the parallel agent system work?", - answer: - "Each agent runs in its own isolated Git worktree, which means they can work on different branches or features simultaneously without conflicts. You can monitor all agents in real-time and switch between them instantly.", - }, - { - question: "Is Superset free to use?", - answer: - "Yes, Superset is completely free and open source. You can self-host it, modify it, and use it however you like. The source code is available on GitHub under a permissive license.", - }, - { - question: "Can I use my own API keys?", - answer: - "Absolutely. Superset doesn't proxy any API calls. You use your own API keys directly with whatever AI providers you choose. This means you have full control over costs and usage.", - }, -]; +import type { FAQItem } from "./constants"; +import { FAQ_ITEMS } from "./constants"; function FAQAccordionItem({ item, diff --git a/apps/marketing/src/app/components/FAQSection/constants.ts b/apps/marketing/src/app/components/FAQSection/constants.ts new file mode 100644 index 00000000000..6c986186c25 --- /dev/null +++ b/apps/marketing/src/app/components/FAQSection/constants.ts @@ -0,0 +1,32 @@ +export interface FAQItem { + question: string; + answer: string; +} + +export const FAQ_ITEMS: FAQItem[] = [ + { + question: "I already use an IDE like Cursor, is this for me?", + answer: + "Superset is designed to work with your existing tool, we natively support deep-linking to IDEs like Cursor so you can open your workspaces and files in your IDE.", + }, + { + question: "Which AI coding agents are supported?", + answer: + "Superset works with any CLI-based coding agent including Claude Code, OpenCode, OpenAI Codex, and more. If it runs in a terminal, it runs in Superset.", + }, + { + question: "How does the parallel agent system work?", + answer: + "Each agent runs in its own isolated Git worktree, which means they can work on different branches or features simultaneously without conflicts. You can monitor all agents in real-time and switch between them instantly.", + }, + { + question: "Is Superset free to use?", + answer: + "Yes, Superset is completely free and open source. You can self-host it, modify it, and use it however you like. The source code is available on GitHub under a permissive license.", + }, + { + question: "Can I use my own API keys?", + answer: + "Absolutely. Superset doesn't proxy any API calls. You use your own API keys directly with whatever AI providers you choose. This means you have full control over costs and usage.", + }, +]; diff --git a/apps/marketing/src/app/components/FAQSection/index.ts b/apps/marketing/src/app/components/FAQSection/index.ts index dc66ed4c3e2..4a980fd8824 100644 --- a/apps/marketing/src/app/components/FAQSection/index.ts +++ b/apps/marketing/src/app/components/FAQSection/index.ts @@ -1 +1,3 @@ +export type { FAQItem } from "./constants"; +export { FAQ_ITEMS } from "./constants"; export { FAQSection } from "./FAQSection"; diff --git a/apps/marketing/src/app/page.tsx b/apps/marketing/src/app/page.tsx index 4ed11284d40..7c59435e654 100644 --- a/apps/marketing/src/app/page.tsx +++ b/apps/marketing/src/app/page.tsx @@ -1,7 +1,8 @@ -"use client"; - +import { COMPANY } from "@superset/shared/constants"; +import type { Metadata } from "next"; import dynamic from "next/dynamic"; - +import { FAQPageJsonLd } from "@/components/JsonLd"; +import { FAQ_ITEMS } from "./components/FAQSection"; import { HeroSection } from "./components/HeroSection"; // Lazy load below-fold sections to reduce initial JS bundle (~304 KiB unused JS) @@ -24,9 +25,16 @@ const CTASection = dynamic(() => import("./components/CTASection").then((mod) => mod.CTASection), ); +export const metadata: Metadata = { + alternates: { + canonical: COMPANY.MARKETING_URL, + }, +}; + export default function Home() { return (
+ diff --git a/apps/marketing/src/app/sitemap.ts b/apps/marketing/src/app/sitemap.ts index 0e1450229e5..9aced0ae772 100644 --- a/apps/marketing/src/app/sitemap.ts +++ b/apps/marketing/src/app/sitemap.ts @@ -25,6 +25,12 @@ export default function sitemap(): MetadataRoute.Sitemap { changeFrequency: "weekly", priority: 0.9, }, + { + url: `${baseUrl}/community`, + lastModified: new Date(), + changeFrequency: "monthly", + priority: 0.5, + }, { url: `${baseUrl}/privacy`, lastModified: new Date("2025-01-15"), diff --git a/apps/marketing/src/components/JsonLd/JsonLd.tsx b/apps/marketing/src/components/JsonLd/JsonLd.tsx index 4f633589134..476f88e7a27 100644 --- a/apps/marketing/src/components/JsonLd/JsonLd.tsx +++ b/apps/marketing/src/components/JsonLd/JsonLd.tsx @@ -108,14 +108,58 @@ export function WebsiteJsonLd() { "@type": "WebSite", name: COMPANY.NAME, url: COMPANY.MARKETING_URL, - potentialAction: { - "@type": "SearchAction", - target: { - "@type": "EntryPoint", - urlTemplate: `${COMPANY.MARKETING_URL}/blog?q={search_term_string}`, + }; + + return ( +