[Bug] 新建提醒写入失败时保留表单并提示

オープン
#68 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

Start with the new-alert handler in packages/ui/src/components/alert/AlertList.tsx (around lines 40-46), then the state update in packages/ui/src/atoms/alertAtoms.ts (lines 134-141), and the save channel in packages/ui/src/client/alerts.ts. Run bun test packages/ui/src/atoms/alertAtoms.test.ts first to see the current behaviour with a mocked alerts.saveRules returning EACCES. Done means a failed save keeps the form open with an error and a retry option, the list matches what was actually saved, and a retry after failure produces exactly one rule.

索引モデルが issue の本文から書いたものです。

説明

area:desktop bug help wanted

最小复现

让模拟的 alerts.saveRules 返回 EACCES,再新建一条 AAPL.US 价格提醒。在隔离状态测试中,保存失败后列表仍新增了一条规则,错误状态为空。重新读取模拟存储时,这条规则消失。提醒列表的新建处理也会直接关闭表单。

验证环境为 Windows、Bun 1.4.2,基于 main 的 579395e。

验收标准

  • 新建提醒写入失败时保留用户填写的内容,显示可重试的提示,并使列表反映实际保存状态。
  • 用模拟 IPC 验证失败和成功。失败后重试成功时只生成一条规则,刷新后仍能读取。

源码起点

验证入口 bun test packages/ui/src/atoms/alertAtoms.test.ts。

可以先在本条说明准备完成的范围,再评论 /claim。贡献入口见 #7。

主要言語
TypeScript
スター
206
フォーク
37
平均マージ
7時間 8分
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ydflow/Trail のほかの issue

ydflow/Trail の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。