feat(giveback): baseline /giveback page behind feature flag (Phase 1)#6139
Draft
tsahimatsliah wants to merge 1 commit into
Draft
feat(giveback): baseline /giveback page behind feature flag (Phase 1)#6139tsahimatsliah wants to merge 1 commit into
tsahimatsliah wants to merge 1 commit into
Conversation
Phase 1 of the Giveback initiative: a flag-gated, mock-backed baseline of the /giveback page so design can review the core layout. Purely additive - new route plus a new shared features/giveback folder, touching no existing surfaces. - featureGiveback flag (default on in development only) - Typed model with compliance fields + full status enums (mirrors intended API) - Mock campaign/levels/profile + GivebackContext with dev review controls - Baseline UI: hero, community goal progress, personal roadmap/levels with locked secret-reward tiles - Minimal dev review toggle to preview goal % and level states - RTL specs for baseline render + toggle behavior Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Phase 1 of the Giveback initiative — a flag-gated, mock-backed baseline of the
/givebackpage so design can review the core layout and feel before we layer richer interactions.This PR is purely additive: a new route + a new
packages/shared/src/features/giveback/folder. It touches no existing surfaces and renders nothing when the flag is off.What's included
featureGivebackflag (default on in development only, off in prod).types.ts) with compliance fields (isLoveAction,donationEligible,isComplianceSensitive,isRewarded) and full status enums — shaped to mirror the intended backend GraphQL contract for a clean future swap.mock.ts) +GivebackContextholding state and the dev review controls.GivebackHero— mission framing ("Daily Dev funds the donation. You help unlock it.")CommunityGoalProgress—$X of $10,000with progress bar + honest pending notePersonalRoadmap— level path (reusesQuestLevelProgressCircle) with locked secret-reward tilesGivebackReviewToggle— minimal dev-only control to preview goal % (0/25/50/99/100) and level (1–5). The full QA/dev panel comes in a later phase.Out of scope (later phases)
Action catalog, submission win-moment + thresholds, causes + Love actions, community feed + celebrations, full QA/dev panel, entry points (Wallet/Profile/banner/feed), geo-gating + paid-flow, public page, and backend wiring. See the master plan.
Test plan
/givebackredirects home, renders nothing; no existing surface affected.node scripts/typecheck-strict-changed.jspassessrc/features/giveback/components/GivebackPage.spec.tsx)Made with Cursor
Preview domain
https://feat-giveback-mvp.preview.app.daily.dev