Goals: the error banner and the "No goals yet" hint show at the same time

オープン 初心者向け
#3,872 コメント 6 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@KartikeyG-world がすでに取り組んでいます。

2026年11月29日 から。

  • #3952 @KartikeyG-world による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
73/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
nextjs, react, typescript
領域
frontend

調査の方向性

src/components/GoalTracker.tsx の627行目付近にある goals.length === 0 分岐から始め、同期エラーと読み込み結果がどのように表現されるかをたどってください。失敗した空の読み込みと成功した空の読み込みを対象に、コンポーネントテストを追加または更新してください。失敗した読み込みでは空状態のヒントを表示せずにエラーと再試行または更新の操作を表示し、成功した空の読み込みではヒントを表示できれば完了です。このファイルも変更する #3824 と調整してください。

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

説明

good first issue level 1 level:beginner status:assigned type:bug
Summary

When loading goals fails, the Goals card shows "Failed to load goals. Please try again." and "No goals yet. Set your first one below..." together. The second message is wrong: we don't know there are no goals, we just couldn't load them.

Where

src/components/GoalTracker.tsx (the goals.length === 0 branch around line 627 renders regardless of the sync error)

Expected outcome

While the load error is showing, don't show the empty-state hint (keep the retry/refresh action). Show the hint only after a successful load that returned no goals.

Acceptance criteria
  • A component test: a failed load shows the error and not the empty hint; a successful empty load shows the hint
  • Note: #3824 translates this file; coordinate or rebase on it
主要言語
TypeScript
スター
246
フォーク
436
平均マージ
9時間 33分
マージ済み PR(30日)
213

環境構築

はじめの一歩

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

Priyanshu-byte-coder/devtrack のほかの issue

Priyanshu-byte-coder/devtrack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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