Bug 506826 - Cannot add a review (no button shown) for app with no reviews
Summary: Cannot add a review (no button shown) for app with no reviews
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: 6.3.5
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-09 21:31 UTC by Thomas Bertels
Modified: 2025-08-30 09:55 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bertels 2025-07-09 21:31:32 UTC
SUMMARY
Some applications pages don't have a button to add review, even if the application is installed from Discover.

STEPS TO REPRODUCE
1. Open Discover
2. Search for "memento" app
3. Install Memento
4. Open Memento app page in Discover

OBSERVED RESULT
No button is shown to add a review (and Memento doesn't have any review).

EXPECTED RESULT
A button is shown to add a review.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
User locale: fr_BE.UTF-8
Comment 1 Harald Sitter 2025-07-10 08:33:04 UTC
Code looks fishy

>             visible: (reviewsSheet.sortModel.count > 0 || reviewsModel.fetching || reviewsError.hasError)

if there are no reviews already the model.count would be 0 and thus the entire reviews section is !visible.
Comment 2 Bug Janitor Service 2025-08-27 19:37:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1143
Comment 3 Nate Graham 2025-08-28 00:33:18 UTC
Git commit 5cf7b78cddb84c8fd66227628f354607f3f0df82 by Nate Graham.
Committed on 27/08/2025 at 23:53.
Pushed by ngraham into branch 'master'.

Allow writing reviews for apps with no existing reviews

Right now Discover hides the entire "Reviews" section for apps with no
reviews, which prevents them from getting any (at least from Discover).

Instead, allow the section to always be visible, and show a standard
placeholder message when there are no reviews.
FIXED-IN: 6.5.0

M  +22   -4    discover/qml/ApplicationPage.qml

https://invent.kde.org/plasma/discover/-/commit/5cf7b78cddb84c8fd66227628f354607f3f0df82