Repository navigation
Commit 8c2e782
committed
Make desktop error banners selectable and copyable
The error banner used WinUI's nonselectable message presentation, preventing
users from copying diagnostics. Keep the native banner while rendering its
message in a selectable text control.
Replace the message body with wrapped, scrollable text and add a Copy action.
Copy uses the full message and reports success separately. Clipboard failures
preserve the original error and offer text selection as a fallback; a new error
clears prior copy feedback. The text exposes its contents to accessibility tools
and marks errors as assertive accessibility updates.
Users can copy either selected text or the complete diagnostic without
transcribing it, including long messages and Unicode paths.
The ARM64 single-file desktop build passed. UI automation selected a real
validation error containing a Unicode path and verified that Copy produced
exactly the displayed text. Holding the Windows clipboard open confirmed that
copy failure retained the error and showed the fallback. The banner was
visually inspected. No Rust behavior changed.
Design-Signed-Off-By: Codex (GPT-6); design-review=cfcf1 parent fa15828 commit 8c2e782
2 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
284 | 295 | | |
285 | 296 | | |
286 | 297 | | |
| |||
0 commit comments