refactor(marketing): share the store badges with the mobile launch post
Merged
KI
2mo ago+27+27+01234567890123456789-10-10-01234567890123456789
Summary
Follow-up to #7611 and #7655 now that the /mobile page is on main. The launch post stays hidden (draft: true).
- Promotes
StoreBadgesfrom the mobile page folder to[lang]/components/, since the post now uses it too. It reads the launch flag fromMobileLaunchProviderinstead of taking anisLaunchedprop, and takes asourcefor analytics plus anandroidHref(defaults to#android) mobile_store_clickednow carriessource:mobile_pagefrom the landing page,blog_superset_mobilefrom the post, so installs can be attributed to the post- Registers
StoreBadgesas a blog MDX component and uses it as the post's first CTA, replacing the untracked markdown link - Post copy: links to
/mobile, uses the region-neutral App Store URL thatCOMPANY.APP_STORE_URLuses, and makes the Android waitlist link relative (/mobile#android)
Launch-day order matters: enable the mobile-launch flag first, then remove the post's draft: true line. With the flag off the badge in the post reads "Coming soon to App Store".
Test plan
-
bun run typecheck, biome,bun test(141 pass),bun run check:i18n(no catalog changes),valeon the post - Dev server, flag off:
/mobilerenders unchanged with both badges pointing at#android; the post (draft line removed locally) renders the badges pointing at/mobile#android, links to/mobile, and has no/us/store URL - Preview with the flag on: App Store badge is live in both places and the click event carries
source
Summary by cubic
Shares the store badges between the mobile landing page and the mobile launch post so installs from the post are tracked. The post stays hidden (draft: true).
- Moves
StoreBadgesto[lang]/components/and makes it read the launch flag fromMobileLaunchProviderinstead of anisLaunchedprop. - The badges now accept a
sourceand anandroidHref(defaults to#android). mobile_store_clickednow reportssource:mobile_pageon the landing page andblog_superset_mobileon the post.- Registers
StoreBadgesas a blog MDX component and replaces the post's untracked CTA markdown link with it. - Updates the post copy to link to
/mobile, use the region-neutral App Store URL, and use a relative Android waitlist link.
Rollout
- Enable the
mobile-launchflag before removing the post'sdraft: trueline. - With the flag off, the post badge shows "Coming soon to App Store".
Summary by CodeRabbit
-
New Features
- Added reusable App Store and Google Play badges to blog content.
- Added support for directing Android badge links to a specified destination.
- Improved mobile app download tracking across supported badge placements.
-
Updates
- Updated mobile download links and requirements text in the mobile app blog post.
- Standardized app store badge behavior between the mobile page and blog content.