-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement/566 Confirm Classification before Save #609
Conversation
@jeffpaul We have discussed on a call that we should display a message when there are no more unique terms returned from the ClassifAI but IMO, we should keep displaying the taxonomy dropdown(s) even if there are no terms or only the terms that are already exist In the post. So if there are no terms, users may want to add more terms, and because they are already updating the terms in the popup, why not give them the ability to add terms in the empty terms taxonomy? For now, I have kept the taxonomy dropdowns regardless of whether there are no AI terms or any existing terms. cc @dkotter |
@faisal-alvi one item that came up in UAT today was that when we changed the Taxonomy selected in the ClassifAI settings (e.g., changing Category from Watson Category to the WP native Category) that the modal displayed in the editor did not properly update to show the newly selected mapped taxonomy. So, please look to update to ensure the modal shows whichever taxonomies are selected from the settings. |
Adding a bit more to the above, did a little digging and seems one of the issues is these lines: https://github.com/10up/classifai/pull/609/files#diff-b387b736a54bc04206792307dd8c2dffb5b5c416d7189f0063c352b2e8ce2142R256-R259. Seems we only support the Watson custom taxonomies but we need to support all taxonomies, since we allow them to map the data returned from Watson to any registered taxonomy within the settings page. I think the most common scenario is someone mapping those to the core category and tag taxonomies so we need to ensure those work. If I comment out those mentioned lines, I do then see inputs in the modal for those taxonomies but no terms show up, so I'm assuming something else here needs to be changed as well. I guess one thing we may end up needing to figure out is how to address hierarchical taxonomies (like categories). Seems we may need to have UI in place for both hierarchical and non-hierarchical taxonomies, whereas now we really only support non-hierarchical. |
The popup was limited to the Watson taxonomies, classifai/src/js/taxonomy-controls.js Lines 230 to 235 in c39ddc6
I have updated it to cover any taxonomy selected in the ClassifAI settings.
@dkotter This requires some discussion on UI. I think this should be handled later in the other issue/PR. |
Description of the Change
Screenshots
Closes #566
How to test the Change
Changelog Entry
Credits
Props @jeffpaul @dkotter @faisal-alvi
Checklist: