Commit 96ca9ae
committed
feat(renderer): add Report on GitHub button to ErrorBoundary
When the renderer crashes, the fallback card now shows three actions:
Copy stack | Report on GitHub | Reload
Clicking "Report on GitHub" opens a pre-filled GitHub issue in the
system browser (routed via setWindowOpenHandler → shell.openExternal).
The issue body is pre-populated with app version (__APP_VERSION__),
platform (navigator.platform), timestamp, error message, and the first
3 000 characters of the stack trace.
GITHUB_REPO_URL is hardcoded from package.json repository.url so the
ErrorBoundary has no IPC dependency and keeps rendering even when the
main process is unresponsive.
i18n keys added: errorBoundary.reportOnGitHub (en + zh-CN).1 parent 8140687 commit 96ca9ae
3 files changed
Lines changed: 47 additions & 0 deletions
File tree
- apps/desktop/src/renderer/src/components
- packages/i18n/src/locales
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
74 | 113 | | |
75 | 114 | | |
76 | 115 | | |
| |||
86 | 125 | | |
87 | 126 | | |
88 | 127 | | |
| 128 | + | |
89 | 129 | | |
90 | 130 | | |
91 | 131 | | |
| |||
96 | 136 | | |
97 | 137 | | |
98 | 138 | | |
| 139 | + | |
99 | 140 | | |
100 | 141 | | |
101 | 142 | | |
102 | 143 | | |
103 | 144 | | |
104 | 145 | | |
105 | 146 | | |
| 147 | + | |
106 | 148 | | |
107 | 149 | | |
108 | 150 | | |
| |||
123 | 165 | | |
124 | 166 | | |
125 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
126 | 171 | | |
127 | 172 | | |
128 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| 574 | + | |
574 | 575 | | |
575 | 576 | | |
576 | 577 | | |
| |||
0 commit comments