Page body
What this surface does
This docs pack covers both challenge creation and challenge editing, but the FE uses two different interaction models:
/challenges/createis a five-step creation wizard/challenges/:idis a single-screen edit form with a duplicate shortcut and right-side preview helpers
Both paths configure the same underlying challenge payload: title, game target, multiplier/min-bet goal, optional prize definition, creator identity, targeting tags, and active state.
Create mode vs edit mode
Create mode
Create mode is a guided wizard with these steps:
Game & TitleChallenge GoalPrize SetupCreator InfoVisibility
Each step uses Next Step to advance. The first two steps are the only ones with hard FE validation:
Game & Titlerequires a selected game and non-empty titleChallenge Goalrequires a valid multiplier greater than0
Prize Setup, Creator Info, and Visibility can remain empty from the FE point of view, although operators usually still review them before final submit.
Edit mode
Edit mode renders one long page instead of the wizard. It adds:
Duplicatein the page header- a live
Edit Previewsidebar Original Challenge Infowith the current record id, stored status, and created date
Edit mode only exposes Active as the visible lifecycle toggle. The stored backend status is still sent back in the update payload, but the operator is not editing it through a dedicated status input on this screen.
What operators should enter carefully
GameandMultiplierdefine the core goal.- Currency minimum bet values should be reviewed carefully because they shape challenge eligibility.
Activecontrols whether the challenge remains enabled after save.Prizeis configured in its own reward block and can represent different reward models, but the FE does not block save when the prize step is empty.Allow Bonus Participationchanges how bonus-using players are treated in the challenge.Created Byidentity and image are operator-facing presentation fields used in challenge display.Search playeris a helper workflow that can prefill creator name and user id before the operator fine-tunes the visible attribution.
Common caveats
- The create page auto-fills some values from the selected game and from creator loyalty information.
- Currency setup is a two-step workflow: set EUR first, then optionally
Auto-calculate Alland expandShow other currenciesfor manual overrides. - Creator image configuration has two source modes: direct URL or selected asset.
- Create mode submits a fixed
status: activepayload. Edit mode keeps the existing challengestatusin the update payload even though onlyActiveis visibly editable. Duplicateon the edit page is not a dedicated clone endpoint. The FE rebuilds a create payload from the current form values and calls the normal create mutation.- The right-side preview card and original challenge metadata are display helpers only. They do not save, publish, or close the challenge.
- A challenge can be admin-created while still depending on player-side challenge runtime afterward.