Skip to content

fix(ui): handle empty starred list without NaN - #13

Merged
Tomlord1122 merged 1 commit into
Cometline:masterfrom
tomtom-bot7:fix/empty-starred-state
Sep 4, 2026
Merged

Tomlord1122 merged 1 commit into
Cometline:masterfrom
tomtom-bot7:fix/empty-starred-state

Conversation

@tomtom-bot7

Copy link
Copy Markdown
Contributor

Summary

  • Progress % no longer becomes NaN when the current set has 0 problems (0/0 shows 0%).
  • Empty list copy: No problems starred for the Starred set, filter miss message when filters are on, Loading... only while loading, otherwise No problems found.

Test plan

  • Open Starred with no stars: see 0/0 practiced / 0% (not NaN) and No problems starred (not Loading...).
  • Star a problem, switch to Starred: list and progress look normal.
  • Apply a filter with no matches: still see filter empty message.
  • Switch away from Starred to a non-empty set: progress percent works.

Guard progress percent when total is 0, and show a clear empty-state message (e.g. No problems starred) instead of Loading...
@Tomlord1122
Tomlord1122 merged commit 34d4992 into Cometline:master Sep 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants