Skip to content

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

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions