feat(marketing): add unlisted /media press kit page

Merged
KI
2mo ago
+1924-0

Summary

  • Adds /media, a press kit page on the marketing site, so journalists (starting with Japanese press) have one link with the approved company boilerplate, the Superset Mobile launch, logo and product image downloads, and the press contact.
  • Linked from the header's Resources menu and the footer's Company column as "Media kit". It is still noindex, nofollow and not in the sitemap.
  • Translated into all 17 locales, so /ja/media renders in Japanese.

Why / Context

Press needs one place with the official description, current news, and brand files instead of pulling them from email threads. Our first reader is a Japanese outlet, so the Japanese version matters as much as the English one.

How It Works

  • apps/marketing/src/app/[lang]/media/page.tsx sets metadata the same way /mobile and /enterprise do (localizedAlternates, Lingui msg). It renders four sections: About, Latest news, Brand assets, and Press contact.
  • The About text is the approved boilerplate, word for word, in a single <Trans> so translators can localize numbers naturally.
  • Latest news describes Superset Mobile using only claims already made on /mobile and in the mobile blog post. The launch date goes through formatDate in the page's locale. It links to COMPANY.APP_STORE_URL and to /mobile in the reader's language. It does not link the blog post, which is unlisted.
  • Brand assets, all existing art with no new images generated: logos are the light vector logo (/title.svg), the bracket symbol SVG and the 1024px app icon (copied into public/media/ from apps/desktop), plus the black and white wordmark PNGs under /assets/emails/. Product images are /og-image.png (the desktop app with its tagline) and hero.png / diffs.png from the mobile post. Each card uses download with a clean filename such as superset-logo-light.svg.
  • Press contact is founders${COMPANY.EMAIL_DOMAIN}, which renders as founders@superset.sh.

Change outside apps/marketing

packages/trpc/src/router/leaderboard/reserved-handles.ts gains "media". Without it, the marketing proxy treats /media as a leaderboard profile handle and never reaches the page. reserved-handles.test.ts also fails for any unreserved marketing route folder.

Manual QA Checklist

  • /media and /ja/media return 200 on the dev server, with <meta name="robots" content="noindex, nofollow">
  • Titles are Media kit | Superset and メディアキット | Superset
  • /ja/media shows the Japanese boilerplate, 2026年9月21日, and a link to /ja/mobile
  • No console errors or exceptions on either page (headless Chrome over CDP), and all 8 asset previews load
  • Asset labels wrap instead of truncating in the three-column logo grid
  • Reviewer: the Japanese boilerplate reads well to a native speaker (see Known Limitations)

Testing

  • bun run typecheck (apps/marketing)
  • bun run lint (repo-wide Biome, clean)
  • bun test in apps/marketing (149 pass), packages/i18n (157 pass), and packages/trpc/src/router/leaderboard/reserved-handles.test.ts (8 pass)
  • bun run check:i18n: 0 missing in every locale, and compile --strict passes

Known Limitations

  • An agent wrote the translations, including the Japanese boilerplate. The Japanese version localizes numbers (13万人, 150万, 1万2,000人, GitHub スター 1.4 万以上) and writes Rakuten as 楽天. It should be approved before it goes to press, because the English wording is what was approved.
  • If a leaderboard user already has the handle media, reserving it hides their profile at /media. I couldn't check production data.

Follow-ups

  • To let search engines index it, remove robots from generateMetadata and add a sitemap entry.

Summary by cubic

Adds an unlisted /media press kit page so journalists have one link with the approved company boilerplate, the Superset Mobile launch, downloadable logos and product images, and a press contact. The page is noindex, nofollow and excluded from the sitemap; making it public is a separate decision.

  • Linked from the header's Resources menu and the footer's Company column as "Media kit".
  • Translated into all 17 locales, including a Japanese version at /ja/media.
  • Reserves "media" as a leaderboard handle in packages/trpc so the proxy routes /media to the page instead of a user profile.
  • Brand assets reuse existing files in apps/marketing/public plus the symbol SVG and 1024px app icon copied from apps/desktop.
  • Japanese translations were written by an agent and need native-speaker review before publication.

Summary by CodeRabbit

  • New Features
    • Added a localized media kit with company information, the latest news, downloadable brand assets and product images, and a press contact link.
    • Added links to the media kit in the site header and footer.
    • Added translations for media kit and related product content across supported languages.
  • Bug Fixes
    • Reserved “media” so it can’t be used as a profile handle.