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

IBX-9169: Enable searching by content's name in the Trash #1388

Merged
merged 13 commits into from
Nov 27, 2024

Conversation

barw4
Copy link
Contributor

@barw4 barw4 commented Nov 4, 2024

🎫 Issue IBX-9169

Related PRs:

ibexa/core#448

Description:

image

@ViniTou
Copy link
Contributor

ViniTou commented Nov 4, 2024

However, as I understand why and this beeing low cost - question is should it just target 5.0 to be rules obidient.

@barw4
Copy link
Contributor Author

barw4 commented Nov 4, 2024

@ViniTou it's highly requested unfortunately lately so I think we need to bend the rules a bit here

Copy link
Member

@adamwojs adamwojs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a really great feature! I think we should switch the position of "Content name" and "Creator" fields as well as remove "Content name" label to align filters in trash to design system, for example:

image

@barw4
Copy link
Contributor Author

barw4 commented Nov 6, 2024

@adamwojs done, please see the ticket's description for updated looks

@barw4 barw4 force-pushed the ibx-9169-search-content-by-name-trash branch from b42563c to 58f8508 Compare November 6, 2024 09:05
Copy link
Contributor

@katarzynazawada katarzynazawada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few improvements are needed:

  1. Label and placeholder for creator filter should be different, using Search by creator gives the impression that two searches are available. We can use the same as in global search (consulted with @juskora):
Screenshot 2024-11-07 at 14 35 46
  1. Missing search button
Screenshot 2024-11-07 at 14 51 34
  1. Clicking X button in input field should reload the page.
  2. Entering only the beginning of the name of the content into the search does not find the content, e.g. trash for trashtest. It is inconsistent with the rest of the search in the system (apart from global search, which works differently).
  3. When the search criteria are not met another empty state is needed as in other places
    Justyna's recommendation:

Sorry, there are no contents for your search
Try again with new search criteria.

Screenshot 2024-11-07 at 15 02 31
  1. The list header should be different after the search Results for "xxx"(x), e.g.
Screenshot 2024-11-07 at 15 07 16
  1. Typing * in search returns all contents.
Screenshot 2024-11-07 at 15 38 31
  1. This may be a little out of the scope of the task, but it may be worthwhile on this occasion to align this list with the others in the system and add an Apply and Clear filters button. See please: https://www.figma.com/design/4sbNQyNLhFFwxWDH89Rf9X/🟢-%5BIbexa%5D-Design-System?node-id=2814-93260&node-type=frame&t=q0HqwddEw9pvhEzI-0

@adamwojs
Copy link
Member

@barw4 Could you please apply @katarzynazawada suggestions ?

@barw4
Copy link
Contributor Author

barw4 commented Nov 18, 2024

@katarzynazawada @adamwojs

  1. done
  2. done
  3. done
  4. Not possible with the current criterion implementation. Content name searching works in the same way as the main content search and implementing a new criterion seems like an overkill.
  5. done
  6. This is easily doable for a list that has only a single filter like attribute groups but for a list that has multiple filters it's not so straightforward. If you have selected 3 filters, which one will you show? All of them? First one? For example, payment methods have also a constant header. done
  7. It's the same criterion as in global content search, I'm not sure there is much we can do here without introducing a completely new criterion (please see 4.)
  8. The issue is we are using an old date picker here and it's simply not compatible with the new adaptive filters. We could replace it but it will take a bit of time so I'm not sure it's worth it right now

@katarzynazawada
Copy link
Contributor

This is easily doable for a list that has only a single filter like attribute groups but for a list that has multiple filters it's not so straightforward. If you have selected 3 filters, which one will you show? All of them? First one? For example, payment methods have also a constant header.

@barw4 Payment methods have a constant header but it's a bug 🙂 See please: https://issues.ibexa.co/browse/IBX-5593
Expected result from the ticket: Depending on criteria we should end up with "List" for none selected, "Results" for filtering and "Result for [phrase]" for search.

@barw4
Copy link
Contributor Author

barw4 commented Nov 18, 2024

@katarzynazawada thank you for the explanation, fixed.

Copy link
Contributor

@katarzynazawada katarzynazawada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 500 error when using pagination in the trash
Screenshot 2024-11-21 at 13 20 17
  1. Empty state for searching is not fully correct.
    Try again with new search criteria. is missing below Sorry, there are no contents for your search
Screenshot 2024-11-21 at 14 33 52 Screenshot from catalog for comparison. Screenshot 2024-11-21 at 14 43 24

@alongosz alongosz merged commit 1671a3d into 4.6 Nov 27, 2024
27 checks passed
@alongosz alongosz deleted the ibx-9169-search-content-by-name-trash branch November 27, 2024 15:14
@mnocon mnocon added the Doc needed The changes require some documentation label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Doc needed The changes require some documentation Feature New feature request QA approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.