feat(giveback): gate the page for geo-unavailable regions#6325
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
idoshamun
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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
status.enabledfield (resolves for anonymous visitors too, unlike per-usereligiblewhich isnulluntil sign-in).!!status && !status.enabled) so the fallback never flashes before the campaign body while the overview query is in flight.Test plan
GeoGateFallback.spec.tsx(provider-light render assertion) passestypecheck-strict-changed.jsclean🤖 Generated with Claude Code
Preview domain
https://feat-giveback-geo-gate-eng.preview.app.daily.dev