adjusted mocked data to the real schema merged recently in #7518
adjusted ManageContestForm to be able to handle both creation and edition of the contest:
created temporary state object
disabled input fields
extracted topic-related logic to its own hook
Test Plan
you need to be admin of community that have stake enabled + have FLAG_CONTEST=true in .env
everything is still based on mocked data
you should be able to go through the launch contest flow (contest won't be created on save/sign but it looks like it is) - go tocommunityId/manage/contests/launch
you can edit existing contests by going to communityId/manage/contests and clicking edit contest - save will not work as it is mocked data
Link to Issue
Closes: #7298
Description of Changes
Test Plan
FLAG_CONTEST=true
in.env
communityId/manage/contests/launch
communityId/manage/contests
and clickingedit contest
- save will not work as it is mocked datahttps://github.com/hicommonwealth/commonwealth/assets/14819225/bb582797-2246-4e6a-a2e3-a8a16eef9deb
Deployment Plan