[Bug] 诊断导出后显示保存结果与写入失败提示

Aperta
#62 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bun, electron, react, typescript

Direzione di ricerca

Start with the export click handler in packages/ui/src/components/settings/DiagnosticsTab.tsx (around lines 56-63), then the export channel wrapper in packages/ui/src/client/diagnostics.ts (around lines 117-130), and the desktop save dialog and write in apps/electron/src/main/index.ts (around lines 413-424). Add a result state for success, cancel and write failure, with a retryable message in the current language, then write component tests that mock the IPC response for each of the three outcomes and check the label and button state. Done when all three states render correctly and the button returns to its idle label in each case.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:desktop bug help wanted

问题与复现

在「设置 → 诊断」点击导出。组件测试分别让导出通道返回保存成功、用户取消和 EACCES 写入失败。三种情况下按钮都恢复到「导出诊断」,界面也没有结果反馈。保存失败后,用户无法判断诊断文件是否落盘。

在 Windows 和 Bun 1.4.2 上基于 main 的 579395e 验证。 使用模拟导出通道进行组件层复验。

验收标准

  • 保存成功时显示完成提示,写入失败时给出当前语言下可重试的提示,取消保存时回到待操作状态。
  • 模拟三种结果分别验证界面状态及按钮恢复。测试使用合成的诊断快照和 IPC 响应。

源码起点

认领前可先说明准备完成的范围,再评论 /claim。参与方式见 #7。

Lingua principale
TypeScript
Stelle
206
Fork
37
Merge medio
7h 8m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ydflow/Trail

Tutte le issue di ydflow/Trail

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.