Bug 509926

Summary: Show updates count in a badge rather than brackets
Product: [Applications] Discover Reporter: John Veness <john.kde>
Component: UpdatesAssignee: Taras Oleksyn <taras.oleksyn>
Status: RESOLVED FIXED    
Severity: wishlist CC: aleixpol, kde, nate, taras.oleksyn
Priority: NOR Keywords: junior-jobs
Version First Reported In: 6.4.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.6.0
Sentry Crash Report:
Attachments: Current Discover update count display
Thunderbird unread email messages count
Amateur mockup of suggested Discover update count
Updates count badge mocks

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