feat(webapp): rest timer in sets header
Shows mm:ss since the last set was added for the current exercise. Purely client-side — no round trip to the server. Resets on new exercise, clears when no current exercise or 0 sets, and survives draft restore. The settings-toggle gate is still TBD (Profile/settings feature isn't built yet); the timer is small and muted enough to keep always-on in the meantime. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f36912febe
commit
dabceeeb18
3 changed files with 81 additions and 1 deletions
|
|
@ -30,7 +30,10 @@
|
|||
<!-- Current exercise card (visible after name is entered) -->
|
||||
<div id="sets-section" class="card sets-section hidden">
|
||||
<div class="sets-header">
|
||||
<div class="section-label" id="sets-label">Sets</div>
|
||||
<div class="sets-header-left">
|
||||
<div class="section-label" id="sets-label">Sets</div>
|
||||
<span id="rest-timer" class="rest-timer hidden" aria-label="Time since last set">00:00</span>
|
||||
</div>
|
||||
<button id="btn-delete-exercise" class="btn-link btn-danger hidden">Remove exercise</button>
|
||||
</div>
|
||||
<div id="sets-list"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue