[Bug]: Sub Categories and Parent Categories should be shown if available
Summary
When I browse the category on a details page of an upload, I see the blank sub-categories and parent categories page. For some categories, there are no sub and parent-categories available. So in that case, we should display a message(e.g. using Snackbar or maybe just showing text in the middle of the screen). Also, the screen is still blank for some categories despite having sub-categories available on the category page.
Steps to reproduce
- Open any image(self uploaded or from the Explore tab) details page
- Click on any category from the Categories section
- Switch to sub-categories tab
- You'll see a blank screen even sub-categories are available on the category page
Expected behaviour
There should be a message similar to this No sub-categories available, if not available. And should show the sub-categories list if available.
Actual behaviour
The screen is blank with no response message.
Device name
SAMSUNG A14
Android version
ANDROID 14
Commons app version
4.2.1
Device logs
No response
Screen-shots
Category Page
Would you like to work on the issue?
Yes
I would say showing text in the middle of the screen is the best, rather than a snackbar :-)
Doesn't it already say No subcategories found ? E.g. in latest F-droid release 4.2.1~14b6c455b on Android 14:
https://github.com/commons-app/apps-android-commons/assets/156656/42f34763-7fa9-462b-accc-757085fdaeea
Perhaps it only happens in some specific cases? Of I misunderstood how to reproduce it?
Somehow category search isn't even working for me.
Thanks for discovering this bug! I will close in favor of #5758, thanks for your understanding.