Commit Graph

126 Commits

Author SHA1 Message Date
b278d275bb Polish social milestone chart curves 2026-08-17 11:19:41 +02:00
eb932ebdaa Publish milestones per channel and add Instagram
Consent is bound to the channel it was given for: approving a post on X says
nothing about Instagram. Publishing state moves from the SocialMilestone row
into SocialMilestonePost, one row per channel, where a missing row means no
consent. The dialog asks per channel, shows the text each one will publish and
keeps a separate handle for each; Instagram captions end in hashtags because a
link there is not clickable.

Also fixes three problems in the existing X path:

- A QR code already past several thresholds produced one prompt per threshold,
  and since the post quotes the current scan count, every one of them would
  have published the same number. Only the highest threshold is announced now.
- Detection ran after every unique scan and re-read the QR code's full scan
  history just to hit skipDuplicates. Known milestones are filtered first.
- A failed post stayed failed forever because the consent dialog only opens
  once. The queue now retries three times on its own, spaces first attempts by
  SOCIAL_MILESTONE_MIN_GAP_HOURS, and Settings lists every milestone per
  channel with restart and revoke.

The worker no longer renders the card itself; it downloads the image the app
renders at /s/m/<token>/og, which also serves the new square and portrait
formats. Instagram publishing stays off until SOCIAL_MILESTONE_CHANNELS and
SOCIAL_WORKER_CHANNELS both name it.

Schema changes are manual SQL, see sql/2026-08-16_*.sql. Run both before
deploying this version.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 13:46:13 +02:00
55c04761ce Polish milestone dialog and one-time delivery 2026-08-14 23:43:20 +02:00
13879e3d3a Fix milestone publisher and social previews 2026-08-14 19:35:29 +02:00
4ec70ed30f Harden milestone sharing and X publishing 2026-08-14 18:19:55 +02:00
d8f7202bf6 Fix milestone sharing previews and publisher recovery 2026-08-14 14:33:29 +02:00
e7581e488d Fix milestone sharing and test worker routing 2026-08-14 14:03:05 +02:00
8ef5221f71 Show total scans in social milestones 2026-08-14 13:08:40 +02:00
8e34f97afb Align milestone charts and self-share flow 2026-08-14 13:04:09 +02:00
aa3b4d02ab Render milestone charts from real scan history 2026-08-14 12:59:37 +02:00
925540f3c6 Improve social milestone sharing flow 2026-08-14 12:31:10 +02:00
f7d82aa5bd Add consented social milestone posting 2026-08-14 09:03:21 +02:00
53ef4b3b91 Serve the app on app.qrmaster.net, marketing on www
Splits the two hostnames across one deployment. No files move: the Next app still
serves every route on both hosts, and the middleware decides per host which paths it
owns and 301s the rest. /login and /signup stay on www - all 82 marketing CTAs point
at /signup, which carries a hard canonical to www plus ad traffic.

src/lib/hosts.ts is the single source of truth for the boundary (APP_PATH_PREFIXES,
isAppPath, wwwUrl, appUrl, urlForPath). The middleware and every absolute-URL builder
read from it so they cannot drift apart.

- Split the overloaded NEXT_PUBLIC_APP_URL into a www and an app origin. It previously
  fed both public URLs and in-app URLs, so any single value was wrong somewhere. Most
  important: QRCodeCard encodes this origin into the QR code the user downloads and
  prints, so it must stay on www.
- Route Stripe return URLs, email links and OAuth redirects per path rather than
  against one origin, so /dashboard lands on app and /pricing on www.
- Cross the host boundary once, after a successful login: the router cannot push across
  origins, so that jump needs a full load. The user arrives signed in because the
  session cookie is scoped to COOKIE_DOMAIN.
- Keep the app host out of search indexes: X-Robots-Tag on every response plus a
  Disallow-all robots.txt via rewrite, and /sitemap.xml redirects to www.
- Point the TikTok callback fallback at www explicitly. It used to read
  NEXT_PUBLIC_APP_URL, whose meaning changed here, and only the apex domain is
  verified with TikTok.

Host splitting is inert while both origins are equal, so development is unaffected.

Verified: tsc clean, production build succeeds including the Edge middleware bundle,
and the path-to-host mapping is unit-checked (prefix traps like /created and
/settings-guide stay on www, query strings do not break matching).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-12 19:44:08 +02:00
ca1e432f80 Clarity 2026-08-11 21:50:42 +02:00
6d29aa0be1 Mozzila extension 2026-08-06 10:58:19 +02:00
8c50bf71c5 SEO blog post 2026-08-05 19:32:52 +02:00
49c85288a1 Add developer ecosystem page and footer links 2026-08-02 00:11:29 +02:00
ab63d4b916 fix V2 2026-07-27 20:47:36 +02:00
70d97aa970 Copy overhaul + qr designs 2026-07-27 17:54:59 +02:00
62ac1ad819 Copy updates: pricing, marketing-campaigns page, signup, tool pages 2026-07-26 21:57:06 +02:00
7b81464a1d Atom eve seo 2026-07-15 18:08:51 +02:00
48e9e2992c TikTok V6 2026-07-13 18:51:52 +02:00
671c1a1559 SEO V2 2026-07-10 21:52:36 +02:00
bb528d6ef9 SEO 2026-07-10 13:07:15 +02:00
854670197b TikTok V4 2026-07-10 11:26:47 +02:00
01284f5283 Fix 2026-07-07 00:10:29 +02:00
68b2ac0089 11 seo pages 2026-07-06 21:53:53 +02:00
Timo Knuth
b0b70640ab Terms page 2026-07-02 10:18:20 +02:00
Timo Knuth
22a987029b SEO: compare/guide pSEO pages + internal links + intent differentiation 2026-06-22 13:22:11 +02:00
Timo Knuth
0866c200a0 Weekly SEO 2026-06-08 20:33:38 +02:00
Timo Knuth
a7cbbee084 SEO 2026-05-27 20:37:15 +02:00
Timo Knuth
09f5859af2 Product hunt launch 2026-05-27 14:33:58 +02:00
Timo Knuth
81d1fdd280 weekly seo 2026-05-11 11:10:30 +02:00
Timo Knuth
35e7e77f6b GSC seo 2026-05-10 23:00:06 +02:00
Timo Knuth
8741edc362 /restaurants 2026-04-30 16:59:27 +02:00
Timo Knuth
105857c348 Remove impeccable A/B variants from Hero -- keep only FlippingCards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 23:51:57 +02:00
Timo Knuth
aab808c553 Impeccable 2026-04-29 20:34:09 +02:00
Timo Knuth
9b31e77daa mehr SEO 2026-04-27 22:21:52 +02:00
Timo Knuth
c4fac0f726 SEO + Stripe 2026-04-27 17:10:30 +02:00
Timo Knuth
c6f20f7f0b Onboarding verbessern 2026-04-23 19:24:33 +02:00
Timo Knuth
eacaef1fbd Refine onboarding UI and fix dashboard checklist progress 2026-04-23 19:03:41 +02:00
fc0e6a0a69 npm run build 2026-04-23 14:52:13 +02:00
Timo Knuth
7d2724b65d revops + onboarding 2026-04-22 20:01:46 +02:00
Timo Knuth
aa2628834b Barcode fix 2026-04-17 23:24:22 +02:00
Timo Knuth
5894f4619d Barcode workflow 2026-04-17 22:56:49 +02:00
Timo Knuth
1bb782467b Validation error 2026-04-17 09:16:07 +02:00
Timo Knuth
231a85ffa4 Popup free generatoren 2026-04-16 19:34:26 +02:00
Timo Knuth
6b73ac5c50 feat: implement pricing strategy, subscription tiers, and core infrastructure for QR code management 2026-04-14 19:34:47 +02:00
Timo Knuth
6ccab068d8 feat: add SEO outreach templates, testimonial components, and supporting data schemas 2026-04-12 23:41:32 +02:00
Timo Knuth
cc4afb6f51 feat: implement author pages, app layout, and authentication client infrastructure 2026-04-08 19:39:01 +02:00