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

Scroll area for filters and search results #3808

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fiskus
Copy link
Member

@fiskus fiskus commented Nov 30, 2023

Screenshot from 2023-12-05 12-41-25

  • Changelog entry (skip if change is not significant to end users, e.g. docs only)

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Attention: 55 lines in your changes are missing coverage. Please review.

Comparison is base (b4a9498) 35.58% compared to head (2ea2d07) 35.55%.

Files Patch % Lines
catalog/app/components/Filters/List.tsx 0.00% 20 Missing ⚠️
catalog/app/containers/Search/Search.tsx 0.00% 18 Missing ⚠️
catalog/app/components/Layout/Layout.tsx 0.00% 10 Missing ⚠️
catalog/app/containers/NavBar/NavBar.tsx 0.00% 4 Missing ⚠️
...log/app/components/SearchResults/SearchResults.tsx 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3808      +/-   ##
==========================================
- Coverage   35.58%   35.55%   -0.04%     
==========================================
  Files         709      709              
  Lines       31110    31142      +32     
  Branches     4651     4667      +16     
==========================================
  Hits        11071    11071              
- Misses      18892    18924      +32     
  Partials     1147     1147              
Flag Coverage Δ
api-python 91.22% <ø> (ø)
catalog 10.57% <0.00%> (-0.02%) ⬇️
lambda 86.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@fiskus fiskus marked this pull request as ready for review December 1, 2023 12:13
@fiskus fiskus force-pushed the filters-scroll-area-with-buttons branch from a8499f6 to 7f2dc31 Compare December 1, 2023 15:16
@fiskus fiskus requested a review from nl0 December 1, 2023 15:53
@nl0
Copy link
Member

nl0 commented Dec 4, 2023

the ux feels too complicated and clumsy. i believe we can make it simpler by doing away with the custom top/bottom indicators and scrollable containers

@fiskus
Copy link
Member Author

fiskus commented Dec 4, 2023

What do you mean by scrollable containers? Containers for keywords filter? It's no longer scrollable, it has "Show more" button, and show the whole list without scroll

Top/bottom indicators are additional buttons, just to show that something is hidden at top or at bottom. You can use scroll instead of buttons. The similar UX is in vertical tabs component https://v4.mui.com/components/tabs/#vertical-tabs

@nl0
Copy link
Member

nl0 commented Dec 4, 2023

Containers for keywords filter?

nope

It's no longer scrollable, it has "Show more" button, and show the whole list without scroll

that's good

Top/bottom indicators are additional buttons, just to show that something is hidden at top or at bottom. You can use scroll instead of buttons.

i don't think they are necessary and i believe they just clutter the UI.

i meant smth like this, without too much custom logic and controls, just some css positioning stuff:

Faceted search scroll

@nl0 nl0 mentioned this pull request Dec 4, 2023
@fiskus fiskus force-pushed the filters-scroll-area-with-buttons branch from 553a514 to cd41d4c Compare December 5, 2023 11:40
@fiskus
Copy link
Member Author

fiskus commented Dec 5, 2023

Rewrote layout using sticky app header

Copy link
Member

@nl0 nl0 left a comment

Choose a reason for hiding this comment

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

this feels solid. some cosmetic issues:

  1. the background of these inputs should be white i believe, probably some z-index issue
Screenshot 2023-12-07 at 12 20 43
  1. filters section could use some margin at the bottom
Screenshot 2023-12-07 at 12 16 50
  1. some broken layout in the enum control
Screenshot 2023-12-07 at 12 24 08

tbh i liked the "enclosure" we had around the variants before in this place:

Screenshot 2023-12-07 at 12 21 35
  1. sometimes the filters section gets h-scrolled
Screenshot 2023-12-07 at 12 26 15
  1. toolbar gradient in both sections: scrolled contents are partially visible in the background:
Screenshot 2023-12-07 at 12 15 18 Screenshot 2023-12-07 at 12 17 48

i think the transparent part should start just below the toolbar contents:

Screenshot 2023-12-07 at 12 15 10
  1. seems like there's some z-index issue here (preview bg is visible above the toolbar):
Screenshot 2023-12-07 at 12 15 31

@nl0
Copy link
Member

nl0 commented Dec 8, 2023

also, while you're at it, it might make sense to fix the enum options wrapping to multiple lines (simple white-space: nowrap would help)

@drernie
Copy link
Contributor

drernie commented Dec 9, 2023

After reviewing:

I have reluctantly concluded that @fiskus should not spend any more time on this PR, so he can start working on MOAB deliverables with Dima.

My rationale is that successfully shipping MOAB in January is more important than a highly-polished faceted search this month. @kevinemoore has already said that the observed cosmetic issues, though serious, are not blockers. The reality is that most customers will only install a December release in their 'staging' stacks, and may well provide feedback that obsolete portions of this PR.

@nl0 I believe your options are:

  1. Ignore this PR and ship the release without it
  2. Approve and merge this PR even though it does not address your concerns
  3. Find some other way to address them (e.g., fix them yourself)
  4. Throw an Exception, if you cannot in good conscience sign off on a release with this feature set

Please let me know at Monday's D&D which way you are leaning. Thanks.

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.

None yet

3 participants