Skip to content

feat(giveback): wire suggest-a-cause submission flow#6293

Merged
idoshamun merged 3 commits into
mainfrom
feat/giveback-suggest-cause
Jul 8, 2026
Merged

feat(giveback): wire suggest-a-cause submission flow#6293
idoshamun merged 3 commits into
mainfrom
feat/giveback-suggest-cause

Conversation

@idoshamun

@idoshamun idoshamun commented Jul 8, 2026

Copy link
Copy Markdown
Member

What

Replaces the placeholder "Suggest now" reveal CTA with a real cause-nomination flow.

  • New GivebackSuggestCauseForm (required cause URL + optional note → "we'll review it" confirmation) and GivebackSuggestCauseModal.
  • useSuggestContributionCause hook + suggestContributionCause mutation.
  • Two entry points, both gated on the new featureGivebackSuggestCause flag (default off):
    • the reward reveal's "Suggest now" now opens the form inline (dismisses when the flag is off);
    • a persistent "Suggest a cause" prompt on the Causes tab.

Backend: dailydotdev/daily-api#TBD (add suggestContributionCause).

Notes

  • Set the flag to match the reward's feature-access cohort.
  • Backend enforces the suggest_causes feature access, so the flag leaking can't bypass authorization.

Test plan

  • Form spec (submit disabled until valid URL, submits url+note, omits empty note)
  • Strict typecheck + lint clean

Preview domain

https://feat-giveback-suggest-cause.preview.app.daily.dev

Replaces the placeholder "Suggest now" reveal CTA with a real nomination
form: a required cause URL plus an optional note, submitted for review via
a new suggestContributionCause mutation. Adds a persistent "Suggest a cause"
entry on the Causes tab. Both entry points are gated on the new
featureGivebackSuggestCause flag (default off).
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
daily-webapp Error Error Jul 8, 2026 10:44am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Jul 8, 2026 10:44am

Request Review

@idoshamun idoshamun merged commit cba0674 into main Jul 8, 2026
11 of 12 checks passed
@idoshamun idoshamun deleted the feat/giveback-suggest-cause branch July 8, 2026 10:49
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.

1 participant