Skip to content
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

[BUU] Filter my catalogue #11057

Closed
mariocarabotta opened this issue Jun 19, 2023 · 2 comments · Fixed by #11163
Closed

[BUU] Filter my catalogue #11057

mariocarabotta opened this issue Jun 19, 2023 · 2 comments · Fixed by #11163
Assignees

Comments

@mariocarabotta
Copy link
Collaborator

mariocarabotta commented Jun 19, 2023

Context

This issue enhances the display of the product list table #10694.

Out of scope

Description

- As an: enterprise user
- On page: /admin/products
- I want to be able to: filter my products by producer and category
- So that: I can find the products I'm looking for

Acceptance Criteria & Tests

Scenario 1: Single producer
Given that I am in /admin/products
And my enterprise only has one producers
When the page has loaded my products
Then I see only a filter for categories (All categories pre-selected)
And I don't see a filter for producers

Scenario 2: Multiple producers
Given that I am in /admin/products
And my enterprise only has more than one producer
When the page has loaded my products
Then I see a filter for categories (All categories pre-selected)
And a filter for producers (All producers pre-selected

Note: logic to display producers picker would be the same as tracked in #11200 (decoupled from the original product table display)

Scenario 3: Selecting different option
Given that I am in /admin/products
When I select a different option for Producer or Category
Then the picker shows my new selection
And the table does not refresh

Scenario 4: Searching within filter
Given that I am in /admin/products
And I have opened a filter
When I search within a filter
Then I see a subset of options based on my search

Scenario 5: Filtering
Given that I am in /admin/products
And I have selected a different option for Producer or Category
When I search
Then the table refreshes
And shows products that match my filters

Scenario 6: Pagination
Given I have filtered my products
And there are more results than what are displayed on the table
When I go to the second page of the results
Then I see more products
And the filter remains as per my selection

Design specs

A prototype is available here (categories can be clicked on) > https://www.figma.com/proto/v1zbrWDZSRd3Nqoe0SJ2Sm/Engineering-Delivery?page-id=378%3A3907&type=design&node-id=378-3908&viewport=546%2C542%2C0.58&t=OOUsawRfEBZzOZVj-1&scaling=min-zoom&starting-point-node-id=378%3A3908&mode=design

Figma screens are available here > https://www.figma.com/file/v1zbrWDZSRd3Nqoe0SJ2Sm/Engineering-Delivery?type=design&node-id=378%3A3907&mode=design&t=TgZ3irJGBg2CvOuz-1

New components and styles

Component Example
Relaxed dropdown closed Screenshot 2023-07-12 at 16 40 17
Relaxed dropdown open - with inline search Screenshot 2023-07-12 at 16 40 59
@mariocarabotta mariocarabotta self-assigned this Jun 19, 2023
@mariocarabotta mariocarabotta added the design-needed issues requiring design label Jun 19, 2023
@mariocarabotta mariocarabotta changed the title As an enterprise user, I want to filter my catalogue so that I can quickly see the products with specific characteristics [BUU] As an enterprise user, I want to filter my catalogue so that I can quickly see the products with specific characteristics Jun 19, 2023
@mariocarabotta mariocarabotta changed the title [BUU] As an enterprise user, I want to filter my catalogue so that I can quickly see the products with specific characteristics [BUU] Filter my catalogue Jun 26, 2023
@jibees jibees self-assigned this Jul 12, 2023
@mariocarabotta mariocarabotta removed the design-needed issues requiring design label Jul 12, 2023
@RachL
Copy link
Contributor

RachL commented Jul 25, 2023

@jibees scenario 1 here is not working in the linked PR. Is that intended? (filter is on All producers)

image

@jibees
Copy link
Contributor

jibees commented Jul 25, 2023

oops... Sorry about that. I forgot for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants