OptionalallowRm1Entry?: booleanOffer the optional 1RM / PB row on the Name step. Off by default: the
caller decides from the signed-in user with mayEnterRm1OnCreate —
someone who trains only themselves gets it, a coach does not (for whom the
value would be is unclear).
OptionalexistingAction?: ExistingActionHow the host resolves an existing exercise: "add" (a picker — the default, "Create and add" / "Add existing") or "open" (the library — "Create" / "Open existing").
Optionalinitial?: ExerciseCreateInitialOptionalonCreated?: (exercise: ExerciseMappedReturnDto) => voidOptionalonDirtyChange?: (dirty: boolean) => voidOptionalonDuplicate?: (existing: ExerciseMappedReturnDto) => voidOptionalsubtitle?: stringLine under the title.
Optionaltitle?: stringHeader title; defaults to "Create exercise".
OptionalvariantOf?: stringThe id of the exercise a new variant starts from. While the composition is still that exercise's own, it is not "already in your library" — the coach just hasn't changed anything yet — so Create waits for a change.
The pushable exercise-creation view — a DrawerView hosting the wizard. Push it onto an existing DrawerStack;
onClosedismisses (e.g.stack.pop) andonCreatedreceives the freshly-created exercise so the caller can insert it into a store / auto-select it.onCreatedruns side effects only — it must not dismiss;onClosefires straight after it on success.onDuplicateis the same contract for an exercise the user already owns: the header offers it the moment the composition matches one in the cached catalogue ("Add existing" / "Open existing", perexistingAction), and a create the server rejects as a duplicate lands there too. It receives the EXISTING exercise, andonClosefires straight after. Without a handler the wizard stays open and says the exercise already exists.