Commit 19de96c
authored
Use numeric rep inputs for all workout set entries (#116)
### Motivation
- The logger previously used a dropdown of range-derived options for non-AMRAP sets and a numeric input for AMRAP sets, which prevented submitting integers outside the configured range; the goal is to allow any integer rep value for all sets.
- This change unifies rep entry to a single integer-focused input and removes implicit range validation so users can enter any whole number regardless of template min/max or AMRAP status.
### Description
- Replaced the non-AMRAP `<select>` path with a unified `createRepsInput` helper so both AMRAP and non-AMRAP sets use `<input type="number">` with `step="1"` and `inputMode="numeric"`.
- Removed the range-driven `repOptions` generator and any `min` constraint so there is no template-enforced min/max on rep submission.
- Added integer normalization and validation in the input listener (parse with `Number.parseInt` and set `setCustomValidity` for non-integers) while preserving prefill behavior from drafts/previous sessions.
------
[Codex Task](https://chatgpt.com/codex/tasks/task_e_699455d655408325bf9a7393f657dcc8)1 parent b786915 commit 19de96c
1 file changed
Lines changed: 7 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | 362 | | |
375 | 363 | | |
376 | 364 | | |
| |||
387 | 375 | | |
388 | 376 | | |
389 | 377 | | |
390 | | - | |
| 378 | + | |
391 | 379 | | |
392 | 380 | | |
393 | 381 | | |
394 | | - | |
395 | 382 | | |
396 | | - | |
| 383 | + | |
397 | 384 | | |
398 | 385 | | |
399 | 386 | | |
| |||
441 | 428 | | |
442 | 429 | | |
443 | 430 | | |
444 | | - | |
| 431 | + | |
445 | 432 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
| 433 | + | |
| 434 | + | |
461 | 435 | | |
462 | 436 | | |
463 | 437 | | |
464 | 438 | | |
465 | | - | |
466 | | - | |
467 | | - | |
| 439 | + | |
468 | 440 | | |
469 | 441 | | |
470 | 442 | | |
471 | 443 | | |
472 | | - | |
473 | | - | |
474 | | - | |
| 444 | + | |
475 | 445 | | |
476 | 446 | | |
477 | 447 | | |
| |||
0 commit comments