[OCaml] High Intensity Training Online
feat remove doctrine-note callouts from the UI
Drop the four doctrine-note passages and their style. These notes explained Heavy Duty rationale in the workout and home views. They are UI prose, not the deviation acknowledgement, so the override gate and the replace-not-append record behaviour stay intact.
Changed files
ENHANCEMENTS.org
@@ -0,0 +1,15 @@
1
Added:
#+title: Hito UI Enhancements
2
Added:
#+startup: overview
3
Added:
4
Added:
* UI enhancement requests
5
Added:
** DONE Remove all doctrine-note elements
6
Added:
** TODO Use one desktop-to-mobile breakpoint
7
Added:
Desktop has top navigation. Mobile has an identical bottom navigation.
8
Added:
** TODO Use three always-available navigation actions
9
Added:
Use `Home`, `Routine` when the user is not logging (changing to `Current Workout` while logging), and `<username>` for the workout log. Keep all three actions available in both modes.
10
Added:
** TODO Simplify the top bar brand
11
Added:
Replace the top bar brand with `hito` in Work Sans, without a subtitle.
12
Added:
** TODO Remove the mobile hamburger menu
13
Added:
Do not show a hamburger menu on mobile.
14
Added:
** TODO Add placeholders to load and reps fields
15
Added:
Add placeholder values to the load and reps fields on the workout logging page.
lib/web/assets/hito.css
@@ -277,16 +277,6 @@
277
277
font-variant-numeric: tabular-nums;
278
278
}
279
279
280
Removed:
.doctrine-note {
281
Removed:
max-width: 46rem;
282
Removed:
margin: 1.25rem 0;
283
Removed:
border-left: 4px solid var(--brass);
284
Removed:
color: #47350f;
285
Removed:
background: var(--brass-wash);
286
Removed:
font-size: 0.95rem;
287
Removed:
padding: 0.85rem 1rem;
288
Removed:
}
289
Removed:
290
280
fieldset {
291
281
margin: 1rem 0 0;
292
282
padding: 0.875rem;
lib/web/pages.ml
@@ -423,13 +423,6 @@
423
423
[
424
424
txt "Heavy Duty requires recovery before the next workout.";
425
425
];
426
Removed:
tag "p"
427
Removed:
[ class_ "doctrine-note" ]
428
Removed:
[
429
Removed:
txt
430
Removed:
"The stimulus is immediate. Recovery is the work that \
431
Removed:
follows it.";
432
Removed:
];
433
426
begin_form request ~routine ~override:true
434
427
"Begin under override";
435
428
];
@@ -784,26 +777,12 @@
784
777
tag "p"
785
778
[ class_ "done" ]
786
779
[ txt "%s" (describe_stimulus stimulus) ];
787
Removed:
tag "p"
788
Removed:
[ class_ "doctrine-note" ]
789
Removed:
[
790
Removed:
txt
791
Removed:
"A correction replaces the recorded set. It does not add \
792
Removed:
volume; the logbook states one fact per slot.";
793
Removed:
];
794
780
form_for_stimulus request ~action_path:(edit_action active_slot)
795
781
~slot:active_slot ~prescription ~enhanced ~recorded:stimulus
796
782
~submit:"Save correction" ~errors ();
797
783
]
798
784
| None ->
799
785
[
800
Removed:
tag "p"
801
Removed:
[ class_ "doctrine-note" ]
802
Removed:
[
803
Removed:
txt
804
Removed:
"Record the effort as it occurred. The logbook does not \
805
Removed:
revise the fact.";
806
Removed:
];
807
786
form_for_stimulus request
808
787
~action_path:(record_action active_slot)
809
788
~slot:active_slot ~prescription ~enhanced ~errors ();
@@ -817,13 +796,6 @@
817
796
tag "p"
818
797
[ class_ "done" ]
819
798
[ txt "Everything prescribed has been recorded." ];
820
Removed:
tag "p"
821
Removed:
[ class_ "doctrine-note" ]
822
Removed:
[
823
Removed:
txt
824
Removed:
"The record is evidence. Keep it complete before drawing \
825
Removed:
conclusions from it.";
826
Removed:
];
827
799
]
828
800
else []
829
801
in