Skip to content

FE: Bounty wizard shell + step/draft machinery #598

@0xdevcollins

Description

@0xdevcollins

Context

Part of the Bounty Configure (Host a Bounty) milestone. Adds the wizard orchestrator and the step + draft state machinery, mirroring the hackathon wizard. No AI assist (deferred).

Blueprint to mirror

  • components/organization/hackathons/new/NewHackathonTab.tsx
  • hooks/use-hackathon-steps.ts, hooks/use-hackathon-draft.ts

Tasks

  • components/organization/bounties/new/constants.ts: StepKey = 'scope' | 'mode' | 'submission' | 'reward' | 'review', STEP_ORDER, StepData.
  • components/organization/bounties/new/NewBountyTab.tsx: orchestrator wiring steps + draft + publish + step-save, the funding-confirmation / progress modals, funding-source selection (managed / external / treasury), and the USDC pre-flight balance check. Remove all AI entry points.
  • hooks/use-bounty-steps.ts: URL ?step= navigation.
  • hooks/use-bounty-draft.ts: lazy create then PATCH (ensureDraftId), resume via useDraft, transform API sections to form state.

Acceptance criteria

  • Wizard navigates steps, autosaves sections, and resumes a draft by id.

Depends on

  • Bounty data layer (features/bounties).

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