Repository navigation
Expand file tree
/
Copy pathui-frames.toml
More file actions
2927 lines (2588 loc) · 89.7 KB
/
Copy pathui-frames.toml
File metadata and controls
2927 lines (2588 loc) · 89.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Every frame of the UI snapshot sweep, as data. `obc shot` reads this table, stages the
# environment a frame names, renders it through the headless simulator, and compares the result
# against `ui-snapshots.sha256` — one digest row for each frame.
#
# obc shot --list the frames and the screen each one reaches
# obc shot routemenu render one frame
# obc shot 'statistics*' render a family
# obc shot map --vs origin/develop render the frame here and there, and compare
# obc shot --all [DIR] the full sweep
# obc shot --check [DIR] compare a sweep against the digest manifest
#
# A frame row:
#
# name the PNG basename, and the name `obc shot` knows the frame by
# map the map the simulator opens, from [paths]
# env one or more staging recipes from firmware/tools/ui_frames/environments.py
# script the gesture script (the simulator README lists the tokens)
# expect the `screens!` variant the script must reach, or the render fails
# args further simulator arguments
# boot `false` opens the map directly instead of the device's power-on state
# langs render one frame for each language, named `<name>-<lang>`
#
# A script can use a `{name}` fragment from [script] and a `t*n` repetition (`f*8` is eight `f`
# tokens). Every frame states `expect`, because a scripted recipe is a hostage to the menus it
# walks: insert one station and `B u p d d d d p` quietly snapshots a different screen under the
# old name. A frame is only in the net if `ui-snapshots.sha256` has its digest row, which
# `obc shot --check` and `obc suites check` both hold you to.
[paths]
grimsel = "{fixtures}/sim-grimsel/grimsel.obcm"
gpx = "{fixtures}/sim-grimsel/tracks/grimsel-climb.gpx"
monaco = "{fixtures}/sim-monaco/monaco.obcm"
upgpx = "{fixtures}/sim-monaco/tracks/monaco-upahead.gpx"
cork = "{fixtures}/sim-assistant-west-cork/west-cork.obcm"
freiburg = "{fixtures}/sim-freiburg/freiburg.obcm"
peaks = "{repo}/sim/desktop/assets/grimsel-demo.obcm"
# A tiny replay that lies *on* specs/vectors' `route-waypoints.obcr` ("Vector Loop") — the Grimsel
# climb GPX is far off it, so it cannot drive the waypoint chip and ticks. It stops ~300 m short of
# the "Pass Summit" waypoint; its provenance is pinned in the assets README.
wptgpx = "{repo}/fixtures/sources/vector/vector-loop-replay.gpx"
[script]
# Start a stored route outside map coverage after the connection fails.
start_unguided = "p*4 f p f p"
# Menu navigation: Home's press (and back-hold) opens the compass Menu — the single door into the
# app — so the Route menu is `p p` from boot (open Menu, then press the Routes station, which the
# menu starts on). The compass menu is Routes / Rides / Map / Peaks / Settings, so Settings is one
# Up step (`u`, wrapping) from the Routes start, Rides is one down (`d`), Map two down (`d d`). `w`
# settles the needle sweep after a step — and the back-hold charge indicator (a half-disc at the
# right screen edge) decays over a few frames, so a script that snapshots within ~3 tokens of a `B`
# ends in `w` too, or the residue bakes into the PNG.
peak = "B d d d p f"
peak_article = "{peak} p f p f"
place_detail = "A p d d d p u p f p f"
landmarks = "A d d d p f"
detour_pre = "p p p p T"
dfu_pre = "B u p d*5 p d d d p p"
up_base = "p p p p T A d p f*400 w"
# Open the timeline's context sheet, press its Filter row into the nested editor, stage the Water
# choice and commit, then close the sheet — so the list comes back filtered. Every `p` that starts
# a page slide is followed by `w`, because the sheet owns its input while a slide runs.
up_filter_water = "C p w d p w b f*400 w"
# Turn the Auto climb panel off (open the Climb row's editor, one step wraps Auto -> Off, commit),
# then climb back to Home.
u5_climb_off = "B u p p d d p d p b b b"
# Use the same settings path as the device. This commits Dark and returns to Home, so a themed
# frame can prepend this fragment to an ordinary Home-based recipe without a simulator-only seam.
theme_dark = "B u p d p d p d p b b b"
[[frame]]
name = "home"
map = "{grimsel}"
expect = "Home"
args = ["--clock", "2025-07-10T09:41", "--battery", "45"]
# The Route list: arrow-less, column-aligned two-line rows (distance under the name, the climb group
# at a fixed second column) with no footer — hold-to-delete moved to the Route overview (T3, #681).
[[frame]]
name = "routemenu"
map = "{grimsel}"
env = "routes"
script = "p p"
expect = "RouteMenu"
# The Route menu with a trip (the `trips` env): the "Alpen Traverse" row, its full name over
# "Day 1 next · 3 days", above the loose grimsel route. `p p p` opens the trip's day list: the trip
# name as the title, one row per resolvable day ("Day 1 Andermatt" over "Mon · 2 km ▲76 m"), the
# cursor on the next day. These frames have no progress record, so no day is ticked.
[[frame]]
name = "routemenu-trips"
map = "{grimsel}"
env = "trips"
script = "p p"
expect = "RouteMenu"
[[frame]]
name = "trip-stage-list"
map = "{grimsel}"
env = "trips"
script = "p p p"
expect = "RouteMenu"
# With a progress record (`--trip-progress DAY:METRES:LAST`): all three days finished, so the trip
# row reads "Done · 3 days"; and Day 1 finished, so the day list ticks Day 1 and the cursor is on
# Day 2.
[[frame]]
name = "routemenu-trip-done"
map = "{grimsel}"
env = "trips"
script = "p p"
expect = "RouteMenu"
args = ["--trip-progress", "2:0:2"]
[[frame]]
name = "trip-stage-list-ticked"
map = "{grimsel}"
env = "trips"
script = "p p p"
expect = "RouteMenu"
args = ["--trip-progress", "0:1000:0"]
# A seven-day day list scrolls: the title bar cuts the trip name clear of the "1 / 7" counter.
[[frame]]
name = "trip-days-week"
map = "{grimsel}"
env = "trip-week"
script = "p p p"
expect = "RouteMenu"
# The trip cascade-delete confirm (TR3): long-press the folder (`h` fires the completed hold) → the
# warning-red hold-guarded "Delete all" + "Cancel" card, naming the trip. Entry selects Cancel.
[[frame]]
name = "trip-delete-confirm"
map = "{grimsel}"
env = "trips"
script = "p p h"
expect = "TripDelete"
[[frame]]
name = "menu"
map = "{grimsel}"
script = "B w"
expect = "Menu"
args = ["--battery", "45"]
# Peak View's geographic fixture: Live follows the preset's stopped-compass heading;
# Select freezes that panorama and selects its most prominent visible summit.
# Geographic fixture files are independent from the map. `f` finishes the full panorama before
# capture or Browse input.
[[frame]]
name = "peak-view"
map = "{grimsel}"
script = "{peak}"
expect = "PeakView"
args = ["--peak-view", "gornergrat"]
[[frame]]
name = "peak-view-scheidegg"
map = "{grimsel}"
script = "{peak}"
expect = "PeakView"
args = ["--peak-view", "scheidegg"]
[[frame]]
name = "peak-view-glockner"
map = "{grimsel}"
script = "{peak}"
expect = "PeakView"
args = ["--peak-view", "glockner"]
[[frame]]
name = "peak-view-browse"
map = "{grimsel}"
script = "{peak} p"
expect = "PeakView"
args = ["--peak-view", "gornergrat"]
# A heading outside the initial west-facing crop proves that Live mode discovers a different set
# of named ridge summits from the fixture's full-circle peak catalog.
[[frame]]
name = "peak-view-heading-east"
map = "{grimsel}"
script = "{peak}"
expect = "PeakView"
args = ["--peak-view", "gornergrat", "--heading", "90"]
# Up enters Browse from the right edge and steps left through the ridge candidates.
[[frame]]
name = "peak-view-inner-ridge"
map = "{grimsel}"
script = "{peak} u u u"
expect = "PeakView"
args = ["--peak-view", "gornergrat", "--heading", "90"]
# Down enters Browse from the left edge and steps right. Generic labels stay in place.
[[frame]]
name = "peak-view-matterhorn"
map = "{grimsel}"
script = "{peak} d d"
expect = "PeakView"
args = ["--peak-view", "gornergrat"]
# Installed summit identity, shared reading/photo/Sources, and restored Browse panorama.
[[frame]]
name = "peak-article-indicator"
map = "{peaks}"
script = "{peak} p f"
expect = "PeakView"
args = ["--center", "7961000,46585000", "--heading", "141.25"]
boot = false
[[frame]]
name = "peak-article"
map = "{peaks}"
script = "{peak_article}"
expect = "PeakArticle"
args = ["--center", "7961000,46585000", "--heading", "141.25"]
boot = false
[[frame]]
name = "peak-photo"
map = "{peaks}"
script = "{peak_article} u f"
expect = "LandmarkPhoto"
args = ["--center", "7961000,46585000", "--heading", "141.25"]
boot = false
[[frame]]
name = "peak-sources"
map = "{peaks}"
script = "{peak_article} u f C p f"
expect = "LandmarkSources"
args = ["--center", "7961000,46585000", "--heading", "141.25"]
boot = false
[[frame]]
name = "peak-article-back"
map = "{peaks}"
script = "{peak_article} u f b b f"
expect = "PeakView"
args = ["--center", "7961000,46585000", "--heading", "141.25"]
boot = false
# The Rides screen: the "Alps traverse" trip folder at its newest ride, then the two loose rides,
# in the Route menu's two-line row. `p` presses into the Rides screen from the Menu (one `d` step
# + `w` settle).
[[frame]]
name = "rides"
map = "{grimsel}"
env = "tracks"
script = "B d w p"
expect = "Rides"
# The folder pressed: the trip's name in the title bar, its totals over a hairline, and its rides
# newest first, each with its weekday date.
[[frame]]
name = "rides-trip"
map = "{grimsel}"
env = "tracks"
script = "B d w p p"
expect = "Rides"
# The Ride detail of Day 2, page 1 of 3: the date line, the ridden track on the Grimsel map in the
# trail red with its start dot, the distance and ride-time line, the average speed, and the selected
# Delete-ride row.
[[frame]]
name = "ride-detail"
map = "{grimsel}"
env = "tracks"
script = "B d w p p p"
expect = "RideDetail"
# Page 2 of Day 2 after one Down: the profile in page 1's map band, the climb and the descent.
[[frame]]
name = "ride-detail-elevation"
map = "{grimsel}"
env = "tracks"
script = "B d w p p p d"
expect = "RideDetail"
# Page 3 of Day 2, which recorded HR only: the one HR graph, and no ledger rows. The ride recorded
# a 185 bpm max HR and a 250 W FTP, so the fields show their zones.
[[frame]]
name = "ride-detail-hr"
map = "{grimsel}"
env = "tracks"
script = "B d w p p p d d"
expect = "RideDetail"
args = ["--sensors", "demo"]
# Page 2 of Day 1, which recorded no sensor, so the counter reads 2/2.
[[frame]]
name = "ride-detail-elevation-nohr"
map = "{grimsel}"
env = "tracks"
script = "B d w p p d p d"
expect = "RideDetail"
# Page 1 of the loose "Sensor Ride", which recorded all three sensors.
[[frame]]
name = "ride-detail-sensor-ride"
map = "{grimsel}"
env = "tracks"
script = "B d w p d p"
expect = "RideDetail"
# Page 2 of the "Sensor Ride".
[[frame]]
name = "ride-detail-sensor-elevation"
map = "{grimsel}"
env = "tracks"
script = "B d w p d p d"
expect = "RideDetail"
# Page 3 of the "Sensor Ride", reached with Up from page 1: the HR and power graphs over the whole
# ride, then AVG RPM and KJ. The ride has three samples, so each graph has three bars, and the
# middle sample has no reading. The captions are cut to the block in every language.
[[frame]]
name = "ride-detail-sensors"
map = "{grimsel}"
env = "tracks"
script = "B d w p d p u"
expect = "RideDetail"
args = ["--sensors", "demo"]
[[frame]]
name = "ride-detail-sensors"
map = "{grimsel}"
env = "tracks"
script = "B d w p d p u"
expect = "RideDetail"
args = ["--sensors", "demo"]
langs = ["de", "fr", "es"]
# The detail's delete charging: `H` partial-holds Select, so the Delete-ride row draws its shaded
# base and the warning-red fill. On the board a hold step repaints only this row.
[[frame]]
name = "ride-detail-delete"
map = "{grimsel}"
env = "tracks"
script = "B d w p p p H"
expect = "RideDetail"
# The delete row HIDDEN while a ride is being recorded (owner review round 1 — no greyed face):
# ride route 0 (`p p p p` → Map, riding) **with the GPX replay driving fixes** — the tracking
# session only starts once positions flow, and `is_tracking` (the hiding predicate) is
# `session.is_some()`, so without `--gpx` this frame would wrongly show the live delete row. Then
# out to the main Menu — a bare `B` reaches it from anywhere since #1515 D3 — step to the Rides
# station (`d w`), press through the trip folder into the detail: the page ends at the stat ledger
# with NO Delete-ride row at all, and `H` fills nothing.
[[frame]]
name = "ride-detail-recording"
map = "{grimsel}"
env = ["routes", "tracks"]
script = "{start_unguided} B d w p p p H"
expect = "RideDetail"
args = ["--gpx", "{gpx}", "--at", "30"]
[[frame]]
name = "menu-pois"
map = "{grimsel}"
script = "B d d w"
expect = "Menu"
# POIs browser (#425): the category list, then a populated nearest-16 list. The list's bearing
# arrows are live, so pin a deterministic fix (grimsel map centre) + heading so they reproduce.
[[frame]]
name = "assistant"
map = "{grimsel}"
script = "A"
expect = "Assistant"
# The last, inactive action stays visible and selectable while a route is active.
[[frame]]
name = "assistant-riding"
map = "{grimsel}"
env = "eta-route"
script = "p*4 f d p A w d*6"
expect = "Assistant"
args = ["--gpx", "{gpx}", "--at", "10"]
[[frame]]
name = "poi-list"
map = "{grimsel}"
script = "A p p u p f"
expect = "PoiList"
args = ["--center", "8305000,46601000", "--heading", "0"]
# POI detail (#444, reworked in #685): category glyph on the name row, the promoted distance +
# bearing row, the hours block with the OPEN/CLOSED pill riding the "Today" caption line
# (right-aligned — owner review round 2's overlay fix), and the full-width "Route here" footer
# bar. The hours/badge need the hours-rich monaco fixture (grimsel has no shop hours). Pin the
# Resupply "Carrefour" supermarket (--center on it → row 0), a fix + heading for the live arrow,
# and a deterministic --clock (Mon 2025-01-06 12:00 → OPEN). `p d p` presses into the list, draws
# once to fill the lazy snapshot, then presses the POI into its detail.
[[frame]]
name = "poi-detail"
map = "{monaco}"
script = "{place_detail}"
expect = "PoiDetail"
args = ["--center", "7416969,43730798", "--heading", "0", "--clock", "2025-01-06T12:00"]
# Select Carrefour while open, then advance the trusted clock past its 21:00 closing time.
# Closed places are excluded from a new nearby query; an already-open detail must update in place.
[[frame]]
name = "poi-detail-closed"
map = "{monaco}"
script = "{place_detail}"
expect = "PoiDetail"
args = ["--center", "7416969,43730798", "--heading", "0", "--clock", "2025-01-06T12:00", "--clock-after-script", "2025-01-06T23:00"]
# The layout worst case (owner review round 2's overlay bug): a two-line wrapping name
# ("Pharmacie du Jardin Exot..") + the format's two-intervals-per-day maximum (split lunch hours,
# Mon 08:30-12:30 / 15:00-19:00) — the stack that used to push the badge under the Route-here
# bar. With the badge on the Today line the whole block clears the footer. Pharmacy is one more
# step into the category list than Resupply.
[[frame]]
name = "poi-detail-split-hours"
map = "{monaco}"
script = "A p d*4 p u p f p f"
expect = "PoiDetail"
args = ["--center", "7413793,43734832", "--heading", "0", "--clock", "2025-01-06T12:00"]
# Selected-place profile controls and real offline Visit preview share the production owner.
[[frame]]
name = "route-plan-context"
map = "{monaco}"
script = "{place_detail} C"
expect = "ContextDrawer"
args = ["--heading", "0", "--center", "7416969,43730798", "--clock", "2025-01-06T12:00"]
[[frame]]
name = "route-plan-biketype-editor"
map = "{monaco}"
script = "{place_detail} C p w d"
expect = "ContextDrawer"
args = ["--heading", "0", "--center", "7416969,43730798", "--clock", "2025-01-06T12:00"]
[[frame]]
name = "landmarks"
map = "{cork}"
script = "{landmarks}"
expect = "Landmarks"
args = ["--heading", "0", "--center", "-9829419,51482665"]
[[frame]]
name = "landmark-photo"
map = "{cork}"
script = "{landmarks} p f u f"
expect = "LandmarkPhoto"
args = ["--heading", "0", "--center", "-9829419,51482665"]
[[frame]]
name = "landmark-sources"
map = "{cork}"
script = "{landmarks} p f C p f"
expect = "LandmarkSources"
args = ["--heading", "0", "--center", "-9829419,51482665"]
# The photo's credit starts on its own page after the article's two.
[[frame]]
name = "landmark-sources-photo"
map = "{cork}"
script = "{landmarks} p f C p f d f d f"
expect = "LandmarkSources"
args = ["--heading", "0", "--center", "-9829419,51482665"]
[[frame]]
name = "visit-preview"
map = "{cork}"
script = "{landmarks} p p f p f"
expect = "VisitReview"
args = ["--heading", "0", "--center", "-9825560,51485575"]
[[frame]]
name = "visit-accepted"
map = "{cork}"
script = "{landmarks} p p f p f p f"
expect = "Map"
args = ["--heading", "0", "--center", "-9825560,51485575"]
[[frame]]
name = "journey-resume"
env = "journey"
script = "f p f"
expect = "Journey"
args = ["--heading", "0", "--center", "-9825560,51485575"]
[[frame]]
name = "find-place"
map = "{cork}"
script = "A p p f"
expect = "FindPlace"
args = ["--heading", "0", "--center", "-9829419,51482665"]
# Find preferences share the existing drawer from overview, recommendations, and the browser.
[[frame]]
name = "find-context"
map = "{cork}"
script = "A p C w"
expect = "ContextDrawer"
[[frame]]
name = "find-context-all"
map = "{cork}"
script = "A p C w p"
expect = "ContextDrawer"
[[frame]]
name = "find-results-six"
map = "{cork}"
script = "A p C w d p w d"
expect = "ContextDrawer"
[[frame]]
name = "find-six-closed"
map = "{monaco}"
script = "A p C w p d p w d p w b d d d p f*64"
expect = "FindPlace"
args = ["--center", "7416969,43730798", "--heading", "0", "--clock", "2025-01-06T23:00"]
[[frame]]
name = "map-context-live"
map = "{monaco}"
env = "monaco-route"
script = "{detour_pre} C"
expect = "ContextDrawer"
args = ["--gpx", "{upgpx}", "--at", "25"]
[[frame]]
name = "detour-chooser"
map = "{monaco}"
env = "monaco-route"
script = "{detour_pre} C d p w"
expect = "Detour"
args = ["--gpx", "{upgpx}", "--at", "25"]
[[frame]]
name = "detour-planning"
map = "{monaco}"
env = "monaco-route"
script = "{detour_pre} C d p w p"
expect = "NavPlanning"
args = ["--gpx", "{upgpx}", "--at", "25", "--hold", "detour"]
[[frame]]
name = "detour-preview"
map = "{monaco}"
env = "monaco-route"
script = "{detour_pre} C d p d d p f"
expect = "DetourPreview"
args = ["--gpx", "{upgpx}", "--at", "25"]
[[frame]]
name = "detour-fail"
map = "{monaco}"
env = "monaco-route"
script = "{detour_pre} C d p w p"
expect = "NavFail"
args = ["--gpx", "{upgpx}", "--at", "25", "--inject", "detour-fail=exhausted"]
[[frame]]
name = "detour-committed"
map = "{monaco}"
env = "monaco-route"
script = "{detour_pre} C d p d d p f p f T"
expect = "Climb"
args = ["--gpx", "{upgpx}", "--at", "25"]
# --- Settings ------------------------------------------------------------------------------------
# System — so every settings screen sits two levels down. The shape of every script below is:
# B u p open the Menu, one Up step to the Settings station, press -> the Settings list
# 5 System)
# p press into the group
# d × R [p] step to row R inside it, and press if that row opens a page / cycles a value
[[frame]]
name = "settings"
map = "{grimsel}"
script = "B u p w"
expect = "Settings"
# Ride settings: the Data fields door and three value rows (Auto-flip, Climb panel, Waypoints),
# each stating its value under the label.
[[frame]]
name = "ride-settings"
map = "{grimsel}"
script = "B u p p w"
expect = "Ride"
# The effort limits at the foot of the Ride page, with the demo's max HR and FTP set, and the FTP
# editor open on the committed 250 W.
[[frame]]
name = "ride-settings-effort"
map = "{grimsel}"
script = "B u p p d*5 w"
expect = "Ride"
args = ["--sensors", "demo"]
[[frame]]
name = "ride-ftp-editor"
map = "{grimsel}"
script = "B u p p d*6 p w"
expect = "ContextDrawer"
args = ["--sensors", "demo"]
# A value row pressed: the drawer's editor rises as a sheet over the page, on the committed choice.
[[frame]]
name = "ride-climb-editor"
map = "{grimsel}"
script = "B u p p d d p w"
expect = "ContextDrawer"
# The Bike type row is **gone** from this group (#1515 D4d): it is the one row of the create-route
# confirm card's own context sheet now — see the `route-plan-context` frame, its only home.
# Its four hero-bike frames left with it, and the group's remaining rows shift up one slot.
# Data fields (row 0) — the WYSIWYG grid editor.
[[frame]]
name = "fields"
map = "{grimsel}"
script = "B u p p p"
expect = "StatFields"
# The full-page waypoint list added through the picker lands on its own editor page.
[[frame]]
name = "fields-wpt-panel"
map = "{grimsel}"
script = "B u p p p d*6 p d*8 p"
expect = "StatFields"
# The picker shows single-cell, full-row and full-page footprints together.
[[frame]]
name = "addfield-sizes"
map = "{grimsel}"
script = "B u p p p d*6 p d*8"
expect = "AddField"
# Category fields in a saved layout show their icon, localized name and sample distance.
[[frame]]
name = "fields-next-category"
map = "{grimsel}"
script = "B u p p p"
expect = "StatFields"
args = ["--stat-fields", "next-water,next-campsite,next-lodging"]
# The effort fields in the Fields editor: the picker's last rows, one Up step from its top (the list
# wraps), with KJ single and the two graphs wide; and the three placed, the graphs previewed as wide
# tiles under their picker names.
[[frame]]
name = "addfield-effort"
map = "{grimsel}"
script = "B u p p p d*6 p u"
expect = "AddField"
langs = ["de", "fr", "es"]
[[frame]]
name = "addfield-effort"
map = "{grimsel}"
script = "B u p p p d*6 p u"
expect = "AddField"
[[frame]]
name = "fields-effort"
map = "{grimsel}"
script = "B u p p p"
expect = "StatFields"
args = ["--stat-fields", "hr-graph,kj,power,power-graph"]
# The Waypoints mode row (epic #523): the group's 4th row, under Climb. Three steps park the amber
# cursor on it, showing the default `Approach` mode.
[[frame]]
name = "settings-ride-waypoints"
map = "{grimsel}"
script = "B u p p d d d"
expect = "Ride"
# Display (group 1): Brightness (the quick drawer's row, reachable here too) and the idle-return
# timeout. The three Map-overlay switches left this page in #1515 D4c — they are rows of the map's
# own sheet now, see `map-display-sheet.png`, their only home. The second frame opens the timeout's
# editor: an axis, so the knob sits on the committed 30 s and the track ends clamp.
[[frame]]
name = "display"
map = "{grimsel}"
script = "B u p d p"
expect = "Display"
[[frame]]
name = "display-idle-editor"
map = "{grimsel}"
script = "B u p d p d d p w"
expect = "ContextDrawer"
# Sound (group 2): the Sound level and the Key tones switch. The hub shows the door only on a
# platform with a sounder.
[[frame]]
name = "sound"
map = "{grimsel}"
script = "B u p d d p"
expect = "Sound"
# Connections (group 3): the Bluetooth switch, the Sensors door, the phone's status line (read-only,
# the cursor skips it), then the pairing code's door while no phone is paired, or the guarded Forget
# row while there is a bond to drop. Paired: two steps select the Forget row (the shaded guarded
# base), and a partial hold fills it warning-red.
[[frame]]
name = "connections"
map = "{grimsel}"
script = "B u p d d d p"
expect = "Connections"
# Unpaired: two steps select the pairing code's door, and Select opens the code.
[[frame]]
name = "connections-pair"
map = "{grimsel}"
script = "B u p d d d p d d"
expect = "Connections"
[[frame]]
name = "connections-pair"
map = "{grimsel}"
script = "B u p d d d p d d"
expect = "Connections"
langs = ["de", "fr", "es"]
[[frame]]
name = "pair-phone"
map = "{grimsel}"
script = "B u p d d d p d d p"
expect = "PairPhone"
[[frame]]
name = "connections-paired"
map = "{grimsel}"
script = "B u p d d d p"
expect = "Connections"
args = ["--ble", "paired"]
[[frame]]
name = "connections-forget-selected"
map = "{grimsel}"
script = "B u p d d d p d d"
expect = "Connections"
args = ["--ble", "paired"]
[[frame]]
name = "connections-forget-hold"
map = "{grimsel}"
script = "B u p d d d p d d H"
expect = "Connections"
args = ["--ble", "paired"]
# Sensors screen (BLE sensors epic #707, SE7) — the Sensors door, one step under the switch.
# `--sensors screen`
# drives the sim's fake central manager: the three-row list (Heart rate Connected 78%, Power
# Searching, Cadence Not set — the HR row selected, so its hold-to-forget footer shows), and the scan
# list one press deeper (the HR-filtered discovered sensors, name/address + RSSI). A third run with no
# fake manager pins the empty `Searching...` state while the scan finds nothing.
[[frame]]
name = "sensors"
map = "{grimsel}"
script = "B u p d d d p d p"
expect = "Sensors"
args = ["--sensors", "screen"]
[[frame]]
name = "sensors-scan"
map = "{grimsel}"
script = "B u p d d d p d p p"
expect = "SensorScan"
args = ["--sensors", "screen"]
[[frame]]
name = "sensors-scanning"
map = "{grimsel}"
script = "B u p d d d p d p p"
expect = "SensorScan"
# Power (group 4): the GPS fix-interval value row + the power-saver switch, then the interval's
# editor: the 17-rung ladder, a rung per second up to ten and the long rests beyond.
[[frame]]
name = "power"
map = "{grimsel}"
script = "B u p d*4 p"
expect = "Power"
[[frame]]
name = "power-gps-editor"
map = "{grimsel}"
script = "B u p d*4 p p w"
expect = "ContextDrawer"
# System (group 5) — the device page: the Units value row, then the Date & Time, Language,
# Firmware, About and Factory reset doors. Six rows, five on the panel, so the page scrolls. The
# page itself first, then the Units editor (a two-choice ring), then each door's page.
[[frame]]
name = "system"
map = "{grimsel}"
script = "B u p d*5 p"
expect = "System"
[[frame]]
name = "system-units-editor"
map = "{grimsel}"
script = "B u p d*5 p p w"
expect = "ContextDrawer"
# The page scrolled to its last row: the Factory reset door, a door in warning red, on the cursor.
[[frame]]
name = "system-reset-row"
map = "{grimsel}"
script = "B u p d*5 p d*5"
expect = "System"
# Date & Time: two read-only rows and the UTC offset value row, then the offset's editor — the one
# dense axis, 105 quarter hours, so the track shows only its ends.
[[frame]]
name = "datetime"
map = "{grimsel}"
script = "B u p d*5 p d p"
expect = "DateTime"
[[frame]]
name = "datetime-offset-editor"
map = "{grimsel}"
script = "B u p d*5 p d p p w"
expect = "ContextDrawer"
# The Language pick list (epic #602): the four languages by flag and endonym, the tick on the
# committed one. The cursor opens on it; two steps down park it on Français — pinning the ç glyph
# the Latin font (#601) adds.
[[frame]]
name = "language"
map = "{grimsel}"
script = "B u p d*5 p d d p"
expect = "Language"
[[frame]]
name = "language-french"
map = "{grimsel}"
script = "B u p d*5 p d d p d d"
expect = "Language"
# The About page (#1149) — System row 4, above Reset: the read-only credits page.
[[frame]]
name = "about"
map = "{grimsel}"
script = "B u p d*5 p d*4 p"
expect = "About"
# Factory Reset is the group's last row: five steps in, press to open, arm (press), then a
# partial-hold to fill the bar. (Four steps stopped on About until this recipe was corrected.)
[[frame]]
name = "reset-hold"
map = "{grimsel}"
script = "B u p d*5 p d*5 p p H"
expect = "Reset"
# The Firmware page (epic #615 S5, #620) — System row 3, the SD-sideload action ("Install update")
# over the read-only device-info rows.
[[frame]]
name = "firmware"
map = "{grimsel}"
script = "B u p d*5 p d d d p"
expect = "Firmware"
# The row inert while a ride records: ride route 0 (`p p p p`, GPX-driven so the session is live),
# out to the Menu with the global escape (`B`), then Settings -> System -> Firmware. The row draws
# recessed with the "Recording" cue under it.
[[frame]]
name = "firmware-recording"
map = "{grimsel}"
env = ["routes", "tracks"]
script = "{start_unguided} B u p d*5 p d d d p"
expect = "Firmware"
args = ["--gpx", "{gpx}", "--at", "30"]
# The SD-sideload update flow (epic #615 S5, #620). The scan/arm runs board-side; the script leaves
# the "Checking card..." wait on top (Firmware -> Install), and --dfu scan/error answer it
# through the real notify_dfu_scan_result seam (the sim stages a synthetic package and runs the
# real obc-dfu scan). --dfu progress then presses Install so the "Preparing update..." spinner shows.
[[frame]]
name = "dfu-check"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuCheck"
[[frame]]
name = "dfu-confirm"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuConfirm"
args = ["--dfu", "scan=normal"]
[[frame]]
name = "dfu-confirm-same"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuConfirm"
args = ["--dfu", "scan=same"]
[[frame]]
name = "dfu-confirm-first"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuConfirm"
args = ["--dfu", "scan=first"]
[[frame]]
name = "dfu-progress"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuProgress"
args = ["--dfu", "progress=normal"]
# The terminal "Installing update" card — the static pre-reset frame the MIP panel holds through
# the whole bootloader install (no spinner by design: the frame freezes at the reset, and the LED
# is named as the liveness signal). --dfu installing runs the board drain's show_dfu_installing swap.
[[frame]]
name = "dfu-installing"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuInstalling"
args = ["--dfu", "installing=normal"]
[[frame]]
name = "dfu-error-notfound"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuError"
args = ["--dfu", "error=notfound"]
[[frame]]
name = "dfu-error-unreadable"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuError"
args = ["--dfu", "error=unreadable"]
[[frame]]
name = "dfu-error-damaged"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuError"
args = ["--dfu", "error=damaged"]
[[frame]]
name = "dfu-error-toolarge"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuError"
args = ["--dfu", "error=toolarge"]
# OBCU v2 (#997): the file is intact but not signed by us — its own card, not "damaged".
[[frame]]
name = "dfu-error-untrusted"
map = "{grimsel}"
script = "{dfu_pre}"
expect = "DfuError"
args = ["--dfu", "error=untrusted"]
# The one-time post-update toast, raised through the real notify_update_confirmed seam. A
# deliberately long git-describe tag exercises the version wrap to a second centred line.
[[frame]]
name = "dfu-updated"
map = "{grimsel}"
expect = "DfuUpdated"
args = ["--dfu", "confirmed=v1.0.0-14-g0a1b2c3-dirty"]
# Its failure twin, raised through the real notify_update_failed seam: the boot-outcome reconcile
# found the armed update is not what is running. Both verdicts — the bootloader consumed the arm and
# rolled back (with the staged version named), and an arm the bootloader never consumed (no version
# to name, so the card is the sentence alone). The reverted frame reuses the long git-describe tag
# from the toast above: this card centres the version on ONE line, so the tag runs off both edges —
# the toast's wrap has no counterpart here. Recorded, not fixed, by the verification baseline.
[[frame]]
name = "dfu-failed-reverted"
map = "{grimsel}"
expect = "DfuFailed"
args = ["--dfu", "failed=reverted:v1.0.0-14-g0a1b2c3-dirty"]
[[frame]]
name = "dfu-failed-notstarted"
map = "{grimsel}"
expect = "DfuFailed"
args = ["--dfu", "failed=notstarted"]
# Riding flows: Home press → Menu → Routes (p) → Route menu → pick (p) → overview → START (p) → Map.
# The overview also carries the guarded Delete-route row (T3 #681, reordered by owner review round
# 1): the bottommost element, below the START RIDE row. Since owner review round 3 the two action
# rows are the Pause-menu (ride_control) family — entry selects START (the standard amber-selected
# row), a step moves onto the Delete row (its shaded base draws only while selected), and only then
# does a hold charge the delete. While the route is the active ride's the row is hidden entirely (no
# greyed face); that state is unreachable by gesture (the active route's overview never opens from
# the menu), so it has no frame — the route_overview guard tests pin it.
# Entry shows page 1: the Grimsel climb on the device map with its bike-type chip, over one
# distance and estimated-time line.
[[frame]]
name = "routeoverview"
map = "{grimsel}"
env = "eta-route"
script = "p p p"