feat(bounty): full config in settings + open single-claim submit-entry#684
Conversation
…b URL Add a read-only Configuration tab to the bounty settings page showing the mode (entry and claim rules) and organizer resources, so the on-chain choices made at creation are visible. Make the off-chain country and GitHub issue URL editable in the General tab, and expose country, githubIssueUrl and resources on the bounty detail type.
For OPEN + SINGLE_CLAIM, drop the separate claim step. The detail-page CTA now reads Submit entry and goes straight to the entry form, where submitting runs the on-chain apply then submit as one action. The first valid entry locks the bounty to that builder; the submit gate admits a first entrant while nobody else holds the claim, and the form shows the lock-in and reputation notices.
|
@Benjtalkshow is attempting to deploy a commit to the Threadflow Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Two bounty changes.
1. Surface the full configuration in bounty settings
The organizer settings page hid the mode and several fields chosen at creation, which was confusing. This adds a read-only Configuration tab (its own tab, alongside General / Rewards / Timeline / Close-out) showing the bounty mode ("How do contributors enter?" and "How is the work claimed?") plus organizer resources. The off-chain country and GitHub issue URL become editable in the General tab. On-chain values stay read-only.
2. Open single-claim: submit-entry, first entry locks in
For OPEN + SINGLE_CLAIM there is no longer a separate claim step. The detail-page CTA reads Submit entry and goes straight to the entry form, where submitting runs the on-chain apply then submit as one action. The first valid entry locks the bounty to that builder; a second entrant is rejected. The submit gate admits a first entrant while nobody else holds the claim, and the form shows the lock-in and reputation notices.
Notes
schema.d.tscarries a minimal, hand-applied addition ofcountry,githubIssueUrlandresourcestoBountyPublicDto(a full codegen regen produced unrelated backend drift, so it was kept out).Testing