Skip to content

feat(giveback): gate the page for geo-unavailable regions#6325

Merged
tsahimatsliah merged 1 commit into
mainfrom
feat/giveback-geo-gate-eng
Jul 15, 2026
Merged

feat(giveback): gate the page for geo-unavailable regions#6325
tsahimatsliah merged 1 commit into
mainfrom
feat/giveback-geo-gate-eng

Conversation

@tsahimatsliah

@tsahimatsliah tsahimatsliah commented Jul 15, 2026

Copy link
Copy Markdown
Member

What

Adds a full-page GeoGateFallback to the Giveback page. When Giveback isn't available in the visitor's region, the whole page is replaced with a single explicit gate that still explains what the campaign is:

Giveback is not available in your country yet
Giveback turns part of our growth budget into donations for causes the community picks, funded by daily.dev, at no cost to you.
It's in beta and rolling out to more countries soon.

Why

The Giveback FAQ already promises this — "If it isn't live where you are yet, you'll see a notice" — but no notice was ever rendered. Geo-blocked visitors currently just get the hero with no explanation. This closes that gap.

Wiring

  • Gate signal is the campaign-wide status.enabled field (resolves for anonymous visitors too, unlike per-user eligible which is null until sign-in).
  • Only gates after status resolves (!!status && !status.enabled) so the fallback never flashes before the campaign body while the overview query is in flight.
  • The funnel overlay and campaign body are both suppressed when geo-blocked.

Test plan

  • New GeoGateFallback.spec.tsx (provider-light render assertion) passes
  • typecheck-strict-changed.js clean
  • ESLint clean on changed files

🤖 Generated with Claude Code

Preview domain

https://feat-giveback-geo-gate-eng.preview.app.daily.dev

When Giveback isn't enabled for the visitor's region, replace the whole
experience with a single explicit "not available in your country yet"
gate that still explains, at a high level, what the campaign is. The
FAQ already promised this notice; this delivers it.

Wired to the campaign-wide `status.enabled` field, which resolves for
anonymous visitors too (unlike per-user `eligible`, which is null until
sign-in). Gated only after status resolves so the fallback never flashes
before the campaign body while the overview query is in flight.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Jul 15, 2026 8:55am
storybook Building Building Preview Jul 15, 2026 8:55am

Request Review

@tsahimatsliah tsahimatsliah merged commit dcf229e into main Jul 15, 2026
13 checks passed
@tsahimatsliah tsahimatsliah deleted the feat/giveback-geo-gate-eng branch July 15, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants