Skip to content

FE: Sidebar nav entry + codegen + end-to-end verification #602

@0xdevcollins

Description

@0xdevcollins

Context

Part of the Bounty Configure (Host a Bounty) milestone. Adds the navigation entry points and runs the end-to-end verification once the backend endpoints exist.

Tasks

  • Edit components/organization/OrganizationSidebar.tsx (~lines 206-251): add a Bounties menu item (/organizations/{orgId}/bounties) and a Post Bounty quick action (/organizations/{orgId}/bounties/new).
  • Run npm run codegen after the backend draft endpoints land; confirm BountyDraftResponseDto and UpdateBountyDraftDto appear in lib/api/generated/schema.d.ts.
  • End-to-end verification (testnet):
    • Create a draft in each of the six combinations (Open / Application-light / Application-full x single claim / competition); save each step; reload to confirm resume round-trips claimType / entryType / submissionVisibility / prizeTiers / deadline.
    • Publish MANAGED; confirm draft -> draft_awaiting_funding -> open, one winner for single claim and the multi-position split for a competition (multiple winners).
    • Negative gates: a competition with shortlistSize < 2; open + single claim with no reputationMinimum; an application entry type with no applicationWindowCloseAt. All should block in the wizard and 400 server-side if bypassed.

Acceptance criteria

  • All six combinations are publishable on testnet.
  • Nav entries are live.
  • Negative gate checks block as expected.

Depends on

  • All other frontend issues + the backend draft controller.

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