-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat(ui): show item counts on inbox filter tabs #1922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -960,13 +960,13 @@ export function Inbox() { | |
| items={[ | ||
| { | ||
| value: "mine", | ||
| label: "Mine", | ||
| label: `Mine (${mineIssues.length})`, | ||
| }, | ||
| { | ||
| value: "recent", | ||
| label: "Recent", | ||
| label: `Recent (${touchedIssues.length})`, | ||
| }, | ||
| { value: "unread", label: "Unread" }, | ||
| { value: "unread", label: `Unread (${unreadTouchedIssues.length})` }, | ||
|
||
| { value: "all", label: "All" }, | ||
| ]} | ||
| /> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mineIssuesRawandtouchedIssuesRawboth default to[](lines 586 and 599), so all three counts render asMine (0),Recent (0),Unread (0)while the queries are in-flight. The tab bar is always rendered beforeallLoadedis true, so users will briefly see zeros before the real numbers appear. Consider suppressing the count suffix while loading, e.g.:Prompt To Fix With AI
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Now the count is hidden while query is loading, so no more (0) flash. Pushed in 139c62f.