Report a problem: a diagnostic summary with no personal data, shown as it would be shared, with Copy and the issue page
The app menu's "Report a problem…" opens a small dialog with the summary (reportModel.ts, English on purpose: the people who read reports do): the app and framework versions, the system and webview (coarse, from the user agent), the language and how it was chosen, the mode, the theme and icon pack ids, the file names of the plugins that are on, what paused itself (the panel's `reportDetails`), and safe mode. The model has no field for an account, a handle, an address, a tab or a path, and a value that is not made of id characters is left out rather than trimmed into shape, so nothing of that kind can ride along (tested with hostile input). The dialog sends nothing: Copy puts the text on the clipboard, and "Open the issue page" opens `ShellSite.menu.report.issueUrl` bare in the system browser (the summary is never put in a URL). Without an issue page the button is off and the dialog says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1b0a489b36
commit
7c683598a4
12 changed files with 396 additions and 9 deletions
|
|
@ -99,3 +99,20 @@
|
|||
.bt-safe-chip:hover .bt-safe-leave { color: var(--bt-text); }
|
||||
.bt-safe-chip:disabled { opacity: .6; cursor: default; }
|
||||
.bt-app-sub .bt-app-note { max-width: 300px; }
|
||||
|
||||
/* "Report a problem" (ReportDialog.tsx): the summary, exactly as it would be shared. */
|
||||
.bt-report { width: min(560px, 100%); max-height: min(86vh, 620px); display: flex; flex-direction: column; overflow: hidden; }
|
||||
.bt-report:focus { outline: 0; }
|
||||
.bt-report-head { display: flex; align-items: center; gap: 8px; padding-block: 16px 4px; padding-inline: 20px 12px; }
|
||||
.bt-report-head h2 { margin: 0; flex: 1; font: 700 17px/1.2 var(--bt-ui); letter-spacing: -.015em; color: var(--bt-text); }
|
||||
.bt-report-lede, .bt-report-note { margin: 0; padding: 0 20px; color: var(--bt-muted); font: 400 12.5px/1.5 var(--bt-ui); }
|
||||
.bt-report-note { padding-top: 10px; color: var(--bt-text-2); }
|
||||
.bt-report-text {
|
||||
flex: 1 1 auto; min-height: 150px; margin: 12px 20px 0; padding: 12px 14px; box-sizing: border-box; resize: none; overflow: auto;
|
||||
border: 1px solid var(--bt-line); border-radius: var(--bt-r3); background: var(--bt-field); color: var(--bt-text);
|
||||
font: 400 12px/1.65 var(--bt-mono); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; text-align: left; /* rtl-ok: the report is English */
|
||||
}
|
||||
.bt-report-text:focus-visible { outline: 0; border-color: transparent; box-shadow: var(--bt-ring); }
|
||||
.bt-report-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; }
|
||||
.bt-report-copied { margin-inline-end: auto; color: var(--bt-muted); font: 500 12px/1 var(--bt-ui); }
|
||||
.bt-report-foot .bt-glyph { width: 15px; height: 15px; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue