wordpress-mobile / wordpress-mobile/WordPress-Android
Categories: Suppress error message when trying to add an existing category.
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
A user suggested an enhancement while adding categories that actually meets the current behavior in the iOS app. In their case, the site has hundreds of categories, which makes it difficult to scroll through many pages and select the desired ones.
Requested here: 5608189-zd-woothemes
Expected behavior
When trying to create a category that already exists, instead of displaying an error message, the app would either:
- Apply the existing category, in case it was not yet applied (
Current behavior on iOS); - Ignore the error, in case the category was already applied (
Current behavior on iOS).
Actual behavior
When trying to create a category that already exists, a toast with the message Adding category failed is displayed and nothing happens with the category.
Steps to reproduce the behavior
- Create a new post
- Post settings > Categories
- Try to create a category that already exists
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue from a new post through Post settings > Categories, then locate the Android category-creation flow. Compare the existing-category outcomes described for iOS: apply the category if needed and otherwise ignore the duplicate; done means no “Adding category failed” toast and the expected category state is preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100