Goals: the error banner and the "No goals yet" hint show at the same time
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 73/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- nextjs, react, typescript
- Domain
- frontend
Research direction
Start in src/components/GoalTracker.tsx at the goals.length === 0 branch around line 627 and trace how the sync error and load result are represented. Add or update a component test for failed and successful empty loads. Done when a failed load shows the error and retry or refresh action without the empty hint, while a successful empty load shows the hint; coordinate with #3824, which also changes this file.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 246
- Forks
- 436
- Avg merge
- 9h 33m
- Merged PRs (30d)
- 213
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Priyanshu-byte-coder/devtrack
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Priyanshu-byte-coder/devtrack#4067 ·
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Priyanshu-byte-coder/devtrack#4066 ·
Maintainers usually reply within 1 day
-
Webhook manager: replace the browser confirm() dialogs with ConfirmModalPossibly taken @Nandaninaulaa claimed this 5 days ago. Opengood first issue level 1 level:beginner status:assigned type:design
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Priyanshu-byte-coder/devtrack#3889 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Goals form: square arcade buttons for recurrence, Create goal and RefreshPossibly taken @KartikeyG-world claimed this 5 days ago. Opengood first issue level 1 level:beginner status:assigned type:design
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Priyanshu-byte-coder/devtrack#3877 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Add route tests for /api/user/settings/discord-testPossibly taken @sam-zc claimed this 7 days ago. Opengood first issue level 1 level:beginner status:assigned type:testing
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Priyanshu-byte-coder/devtrack#3746 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in Priyanshu-byte-coder/devtrack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
callstackincubator/simlock#2113 ·
Maintainers usually reply within 1 day
-
BUG: Backend Docker build fails due to Go version mismatchPossibly taken @Aakriti0207 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 93/100
gittuf/visualizer#203 ·
Maintainers usually reply within 2 days
-
bug 🐛
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
BaaRai/ARTEX#981 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day