Bug 509926 - Show updates count in a badge rather than brackets
Summary: Show updates count in a badge rather than brackets
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: Updates (other bugs)
Version First Reported In: 6.4.5
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Taras Oleksyn
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2025-09-25 12:42 UTC by John Veness
Modified: 2025-12-14 18:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.6.0
Sentry Crash Report:


Attachments
Current Discover update count display (7.25 KB, image/png)
2025-09-25 12:42 UTC, John Veness
Details
Thunderbird unread email messages count (4.30 KB, image/png)
2025-09-25 12:43 UTC, John Veness
Details
Amateur mockup of suggested Discover update count (7.72 KB, image/png)
2025-09-25 13:03 UTC, John Veness
Details
Updates count badge mocks (132.04 KB, image/png)
2025-10-15 07:55 UTC, Taras Oleksyn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Veness 2025-09-25 12:42:18 UTC
SUMMARY
This is a user interface design suggestion.

When viewing the count of updates in Discover, currently it is a number in brackets just after the word "Updates". I think it would look more modern to have the count shown in a coloured "badge" or a "pill" or whatever the terminology is, right-aligned (in left-to-right languages), like is commonly used in email clients for a count of unread messages.

STEPS TO REPRODUCE
1. Wait for some updates to be available
2. Run Discover
3. Look at the Updates entry in the left-hand pane

OBSERVED RESULT
The word "Updates (x)" where x is the number of updates, plus an exclamation mark badge right-aligned.

EXPECTED RESULT
The word "Updates" on the left, plus the number of updates in the badge right-aligned.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250923
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
Currently, Discover will show "Updates (0)" when there are no updates. If this suggested change is done and the count is zero, I think the coloured badge should not appear at all, so that it doesn't draw the eye, so it should just say "Updates" on its own.
Comment 1 John Veness 2025-09-25 12:42:56 UTC
Created attachment 185251 [details]
Current Discover update count display
Comment 2 John Veness 2025-09-25 12:43:25 UTC
Created attachment 185252 [details]
Thunderbird unread email messages count
Comment 3 John Veness 2025-09-25 13:03:44 UTC
Created attachment 185254 [details]
Amateur mockup of suggested Discover update count
Comment 4 Nate Graham 2025-09-25 15:30:44 UTC
Sure, seems like a good idea. Wanna implement it? Shouldn't be too hard.
Comment 5 Taras Oleksyn 2025-10-15 07:55:16 UTC
Hi all,  
already implemented that, please take a look at attached mocks, what design would be appropriate? 

1. Kirigami.Card with background (I'm leaning towards this)
2. Kirigami.Card without background
3. Kirigami.ShadowedRectangle
Comment 6 Taras Oleksyn 2025-10-15 07:55:52 UTC
Created attachment 185794 [details]
Updates count badge mocks
Comment 7 Bug Janitor Service 2025-10-15 08:16:53 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1186
Comment 8 Aleix Pol 2025-12-14 18:32:00 UTC
Git commit 3f860a4df8f77520c2b70a1d4a3c925ee6f64f09 by Aleix Pol Gonzalez, on behalf of Taras Oleksyn.
Committed on 14/12/2025 at 18:31.
Pushed by apol into branch 'master'.

Replace updates icon with count badge in drawer

Replace the icon indicator for updates with a badge that displays the actual update count.
FIXED-IN: 6.6.0

M  +7    -8    discover/qml/ActionListItem.qml
M  +50   -1    discover/qml/DiscoverDrawer.qml
M  +3    -1    discover/qml/DiscoverWindow.qml

https://invent.kde.org/plasma/discover/-/commit/3f860a4df8f77520c2b70a1d4a3c925ee6f64f09