Repository navigation
Commit 4bed4df
committed
Trim connect-time warning, structure save-failure dialog into sections
Feedback from in-editor testing: the connect-time read-only warning
was too wordy for a popup that appears on every connect to a
read-only board, and the save-failure dialog was a wall of prose
that's hard to scan at the moment a user actually has a problem.
Connect-time warning is now a single line with a 'How to fix' link:
Filesystem is read-only - you can browse files, but saving will
fail until USB Mass Storage is released. [How to fix].
Save-failure dialog is now structured with real <p>, <strong>, <ul>,
<code>, <em>, and <a> markup (MessageModal renders via innerHTML):
Could not save '/code.py'.
The board's filesystem is locked, usually because CIRCUITPY is
mounted on a computer over USB.
To fix:
- Disconnect the USB cable, or
- Disable USB Mass Storage in boot.py, then reset the board.
Note: ejecting the drive in your OS isn't always enough on its own.
[Disabling USB Mass Storage (Adafruit Learn)]
Your edits are still here - save again once the filesystem is
writable.
CSS already handles anchor styling in #message; the <ul> uses a small
inline margin to keep bullet indent compact inside the modal.1 parent ca6ed80 commit 4bed4df
1 file changed
Lines changed: 22 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
| 334 | + | |
| 335 | + | |
337 | 336 | | |
338 | | - | |
339 | 337 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
346 | 341 | | |
347 | 342 | | |
348 | 343 | | |
| |||
616 | 611 | | |
617 | 612 | | |
618 | 613 | | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
628 | 620 | | |
629 | | - | |
630 | | - | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
| |||
0 commit comments