Skip to content

FE: Scope + Reward + Review tabs and Zod schemas #600

@0xdevcollins

Description

@0xdevcollins

Context

Part of the Bounty Configure (Host a Bounty) milestone. Adds the remaining wizard steps and their Zod schemas.

Blueprint to mirror

  • components/organization/hackathons/new/tabs/* and tabs/schemas/*

Tasks

  • tabs/ScopeTab.tsx: title, description, optional GitHub issue URL/number, reward currency.
  • tabs/RewardTab.tsx: one prize tier for a single-claim bounty; up to 3 tiers for a competition (multiple winners). Reuse the prize-pool math in lib/utils/hackathon-escrow.ts (getTotalPrizePoolForFunding, buildWinnerDistribution, 2.5% platform fee).
  • tabs/ReviewTab.tsx: live preview, validation summary, and the publish CTA (disabled until valid).
  • tabs/schemas/scopeSchema.ts, tabs/schemas/rewardSchema.ts.

Acceptance criteria

  • The full wizard validates end to end.
  • The review step blocks publish until all sections are valid.

Depends on

  • Wizard shell + step machinery (sibling issue).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions