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

CoursewareSearch - Show filters if needed only #1287

Merged
merged 4 commits into from
Feb 9, 2024

Conversation

rijuma
Copy link
Member

@rijuma rijuma commented Feb 8, 2024

Description
Ticket: KBK-108 🔒

These changes hide the filter options with no results (no use). It also hides the filter entirely if the results consists of only one result type. In addition to this, I'm fixing some other minor issues that prevented the search results to show properly.

UI changes
Full results
all-result-types

Partial filters results
two-result-types

Only one result type (no need for filtering)
one-result-type-only

Removed double message on empty results (also improved the UI a bit)
no-results

Copy link
Contributor

@schenedx schenedx left a comment

Choose a reason for hiding this comment

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

👍

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (174de4b) 88.33% compared to head (d4c40b8) 88.35%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1287      +/-   ##
==========================================
+ Coverage   88.33%   88.35%   +0.01%     
==========================================
  Files         291      291              
  Lines        4929     4936       +7     
  Branches     1242     1242              
==========================================
+ Hits         4354     4361       +7     
  Misses        561      561              
  Partials       14       14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rijuma rijuma changed the title Rijuma/search filter update CoursewareSearch - Show filters if needed only Feb 8, 2024
@rijuma rijuma marked this pull request as ready for review February 8, 2024 20:41
@rijuma rijuma merged commit efd57c3 into master Feb 9, 2024
7 checks passed
@rijuma rijuma deleted the rijuma/search-filter-update branch February 9, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants