Skip to content

feat: show incoming warnings as stylized icons instead of text - #17

Merged
bin101 merged 1 commit into
mainfrom
feat/incoming-warning-icons
Jul 25, 2026
Merged

feat: show incoming warnings as stylized icons instead of text#17
bin101 merged 1 commit into
mainfrom
feat/incoming-warning-icons

Conversation

@bin101

@bin101 bin101 commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Trial: replace the big auto-fit text label on the incoming-warning screen with a stylized icon per WarningType (car behind, hazard triangle, stop octagon, regroup people, attention ring+bang), drawn with plain U8g2 vector primitives -- no bitmap/XBM assets introduced.
  • The original short label (e.g. HAZARD AHEAD) is kept as a small caption under the icon so meaning stays unambiguous while riders learn the icons.
  • Removes the now-dead auto-fit text ladder (kWarningFontLadder/splitLabelInTwo), shrinking the firmware slightly.
  • Regenerates the incoming-warning mockup SVG and updates its description in docs/ui-mockups.md.

Display-only change -- no wire-format bytes touched, so no Protocol::kVersion bump.

Test plan

  • pio run builds successfully
  • pio test -e native -- all 78 cases pass
  • On-device: flash two devices, trigger each of the 4 menu warnings plus the double-click ATTENTION gesture, confirm each icon + caption renders correctly on the receiver and short-click still dismisses

Trial: replace the big auto-fit text label in the incoming-warning
screen with a stylized pictogram per warning type, drawn from plain
U8g2 vector primitives (no bitmap assets). The original short label
is kept as a small caption underneath so meaning stays unambiguous
while riders learn the icons.

Display-only change, no wire-format bytes touched -- no kVersion bump.
@bin101
bin101 merged commit 65315d5 into main Jul 25, 2026
2 checks passed
@bin101
bin101 deleted the feat/incoming-warning-icons branch July 25, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant