Jeremy Shen
e3e3763dc4
🐛 fix: sub-step readability, erase_all workaround, error state
Fix 1 — SubStepFrame readability:
- FONT_BODY (12pt) instead of FONT_SMALL dots/labels
- Number-circle colored dots (CIRCLE_PENDING/RUNNING/COMPLETE/ERROR)
- Accent-colored labels matching StepHeader (ACCENT_*)
- Percentage label next to running phase name
Fix 2 — erase_all full-chip erase:
- Creates temp zero-filled file of flash capacity (from flash_model)
- Uses -erase_only with dummy file instead of failing -erase_all flag
- Supports s25fl256s1 (32MB) which lacks density info for -erase_all
- _flash_capacity() maps model name→bytes
Fix 3 — Error state:
- set_phase('error') shows ✗ red on all sub-steps
- Only shows 'done' (green ●) on actual success
Fix 4 — Style consistency:
- Sub-step colors match StepHeader: CIRCLE_*/ACCENT_*/SUCCESS/DANGER
2026-06-10 13:51:41 +08:00
..
2026-06-10 13:51:41 +08:00
2026-06-08 11:33:50 +08:00
2026-06-10 13:21:32 +08:00
2026-06-09 17:53:48 +08:00
2026-06-10 13:45:57 +08:00
2026-06-10 13:51:41 +08:00
2026-06-08 11:33:50 +08:00
2026-06-08 11:33:50 +08:00
2026-06-10 13:21:32 +08:00
2026-06-10 13:39:11 +08:00
2026-06-08 11:33:50 +08:00
2026-06-10 12:13:02 +08:00
2026-06-10 09:43:02 +08:00