feat(workout): correct last set from local events
Add a recovery path for mistyped completed-set weight: append a typed correction event, replay it through the local projection, and make undo restore the previous session state. req: examples/001 req: local/001 req: local/003 req: local/004
This commit is contained in:
@@ -16,9 +16,16 @@
|
||||
<button class="quiet-action" type="button" data-hemx-handle="skip_exercise">Skip exercise</button>
|
||||
</div>
|
||||
<form class="micro-form" data-hemx-handle="change_weight" method="post">
|
||||
<label>Adjust weight <input name="kg" value="52.5" inputmode="decimal" aria-label="Weight in kilograms"></label>
|
||||
<label>Adjust next weight <input name="kg" value="52.5" inputmode="decimal" aria-label="Weight in kilograms"></label>
|
||||
<button type="submit">Save</button>
|
||||
</form>
|
||||
<details class="recovery-tools">
|
||||
<summary>Fix last set</summary>
|
||||
<form class="micro-form" data-hemx-handle="correct_last_set" method="post">
|
||||
<label>Correct last set <input name="kg" value="24" inputmode="decimal" aria-label="Corrected last set weight in kilograms"></label>
|
||||
<button type="submit">Correct</button>
|
||||
</form>
|
||||
</details>
|
||||
<form class="voice-strip" data-hemx-handle="record_note" method="post">
|
||||
<label>Session note <input name="text" value="left shoulder felt tight"></label>
|
||||
<button type="submit">Record</button>
|
||||
|
||||
Reference in New Issue
Block a user