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

Revamp search filters #5742

Merged
merged 10 commits into from
Apr 7, 2021
Merged

Revamp search filters #5742

merged 10 commits into from
Apr 7, 2021

Conversation

infinite-persistence
Copy link
Contributor

@infinite-persistence infinite-persistence commented Mar 24, 2021

Issue

Closes #4945: Simplify / revamp search filters for odysee (and lbry.tv)

"Infinite scroll" will be attempted in another PR. Added

Merging notes

  • ui/util/query-param.js
  • ui/component/searchOptions/view.jsx

When merging into Odysee, solve the conflict for the above 2 files by simply taking the master version directly. It has been updated to handle SIMPLE_SITE.

Changes

  • Tweaked the claim type = file | channel | everything widget a little to hopefully make it more intuitive.
  • Added "Sort By".
  • Added "Upload Date" (hidden for now until it's available in Lighthouse).
  • Fixed the affected files to handle both Desktop and Odysee.
  • Tweaked the layout to be more condensed so that we can see some results as we change the filter.
  • Added animations.
  • Added "Exact match" option that helps user to surround with quotes (Tom-suggested).

Differences with Odysee

This will happen automatically when merged to Odysee:

  • "Other" (application types) will be hidden
  • "Result Count" will be hidden No more "results count" for all platforms after adding infinite scroll.
Click to expand...

image

@jessopb
Copy link
Member

jessopb commented Mar 25, 2021

Nice, bob is testing this.

@infinite-persistence
Copy link
Contributor Author

infinite-persistence commented Mar 26, 2021

Addition

  • Added infinite scroll

@jessopb, @tzarebczan,
The only item remaining is "Upload Date", which requires a Lighthouse update.
I think it's in a merge-able state (assuming passed re-review on new infinite scroll), although waiting for Lighthouse is ok too.

@infinite-persistence infinite-persistence force-pushed the ip/search-filter-4945 branch 2 times, most recently from 9fcf5dc to eb18680 Compare March 30, 2021 07:43
@infinite-persistence
Copy link
Contributor Author

Addition

  • Added "Upload Date".

No more known pending changes at this moment.

@infinite-persistence
Copy link
Contributor Author

Set to Draft

  • Found a crashing issue on Recommendations, probably due to the changes to support Infinite Search (i.e. accumulating data &from=xx). Looking into it.
  • But GUI is still good for review.

@infinite-persistence
Copy link
Contributor Author

Update

  • Fix concat mistake
  • Rebased to master

@infinite-persistence infinite-persistence marked this pull request as ready for review April 2, 2021 14:57
@neb-b neb-b mentioned this pull request Apr 2, 2021
9 tasks
Copy link

@neb-b neb-b left a comment

Choose a reason for hiding this comment

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

This looks great. Just one comment/question.


return {
isSearching: selectIsSearching(state),
showNsfw: showMature,
uris: uris,
isAuthenticated: selectUserVerifiedEmail(state),
searchOptions: selectSearchOptions(state),
isQueryMaxed: isQueryMaxed,
Copy link

Choose a reason for hiding this comment

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

maybe something like hasReachedMaxResultsLength?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good. Also, I'll rebase to fix the conflict

@neb-b
Copy link

neb-b commented Apr 6, 2021

I will do a styling pass and push up a commit. Then it can be merged.

- This change makes it work for both Desktop and Odysee. When merging back to Odysee, just take the file from `master` (barring any changes from someone else).

- Given that we'll be opening up the search filter for Odysee, the only "simple site" customization that was back-ported is `free_only=true`.
## Issue
4945: Simplify / revamp search filters for odysee (and lbry.tv)

## Changes
- Tweaked the "claim type = file | channel | everything" a little to hopefully make it more intuitive.
- Added "Sort By".
- Added "Upload Date".
- Fixed the affected files to handle both Desktop and Odysee.
- Tweaked the layout to be more condensed so that we can see some results as we change the filter.
- Added animations.
- Added "Exact match" option that helps user to surround with quotes.
Requires further work in IAPI
@infinite-persistence
Copy link
Contributor Author

infinite-persistence commented Apr 7, 2021

Update

  • Rename isQueryMaxed -> hasReachedMaxResultsLength

Bug

  • When changing "Sort By", the from field should be resetting to 0 but it is not. We might only get the last few results if we continue from where we left off.

@seanyesmunt feel free to add the GUI pass commits, but hold off the merge due to the bug.

@infinite-persistence
Copy link
Contributor Author

@seanyesmunt,

  • bug fixed (please review)
  • style pass merged

@neb-b neb-b merged commit 6718f15 into master Apr 7, 2021
@neb-b neb-b deleted the ip/search-filter-4945 branch April 7, 2021 16:08
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.

Simplify / revamp search filters for odysee (and lbry.tv)
3 participants