Commit 6f2e181
v0.8.8 (4/4): why-comments on three non-obvious functions
Three functions did clever things without explaining why. Comments
added in the spirit of existing ones on exerciseSeries / ldShifts.
- rankBodyNames: documents the score tiers so the next reader
doesn't have to guess what 0/1/2/3 mean.
- reconstructInterval: explains that it's the inverse of
unrollIntervalBlocks and the assumption that all work/rest
rounds are identical (because the UI only lets the user enter
one work template + one rest template).
- openExerciseInfo: explains the synchronous-window.open trick to
dodge popup blockers, the placeholder + fill pattern, and the
fallback to a direct deep-link when the popup is blocked.
No code changes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 085f3b3 commit 6f2e181
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
597 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
598 | 601 | | |
599 | 602 | | |
600 | 603 | | |
| |||
833 | 836 | | |
834 | 837 | | |
835 | 838 | | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
836 | 845 | | |
837 | 846 | | |
838 | 847 | | |
| |||
1042 | 1051 | | |
1043 | 1052 | | |
1044 | 1053 | | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1045 | 1060 | | |
1046 | 1061 | | |
1047 | 1062 | | |
1048 | | - | |
1049 | 1063 | | |
1050 | 1064 | | |
1051 | 1065 | | |
| |||
0 commit comments