Description: the new category management flow has some flaws that should be fixed before we test the new experience with users
Acceptance criteria:
Hi @pmcpinto,
The category list should appear on the first click
What should we show after clicking the input? Is it ok to show the first 20 categories?
I think a total of 10 is a good starting point (including sub-categories). @jarekmorawski what do you think?
Will we load the next items as the user scrolls down the list? If so, 10 sounds like a good starting point.
@louwie17 is working on The user should see an option to create a new category when he starts typing
and this is the ongoing PR https://github.com/woocommerce/woocommerce/pull/35132
Having a discussion with @louwie17 about
Will we load the next items as the user scrolls down the list? If so, 10 sounds like a good starting point.
We have some things to say. Currently the category dropdown field component was made to manage nested categories in the form of a tree which is created client side only because the server does not returns a category tree but a category list. So paginating a list that will looks like a tree it's not something trivial to do. For now the category dropdown requests the first 100 categories from the server. If the total is less than 100 the filtering process happends client side if not then it happends server side. There are diferent ways to implement a pagination that matches the requirement described above but I think this should be a topic to discuss as a team.
In order to not block this issue I suggest:
cc: @jarekmorawski @pmcpinto
For the AC2 focus only on showing the categories already loaded by the current category component algorithm as it is right now.
LGTM for the MVP @mdperez86.
Let's continue the discussion on the final solution.
For the AC2 focus only on showing the categories already loaded by the current category component algorithm as it is right now.
LGTM as well. Thanks for surfacing potential issues with the categories list pagination