lbry-desktop/ui
infinite-persistence 344da194ca
Resolve claim and stream types when there is a filter (#696)
* Resolve claim and stream types when there is a filter

## Symptom
Channel Page 'Content Type' filter not working

## Issue
The Advanced Filter work by placing a `?content=` URL param. The list component then parses it and makes the `claim_search` params accordingly. But:

1. There is a mix up in how the list component treats `?content=`.
    - The original code seems to treat this as a way to define the type externally but only for a list without `claimType` defined via code. In other words, if `claimType="something"`, `?content=` is ignored.
    - On the other hand, the Advanced Filter relies on `?content=` being used.

2. `?content=` is then split between `claimType` and `streamType`. The current code does not check if the split makes sense, e.g. if `?content=channel` and `streamType=['video']`, these 2 are incompatible and produces no results.

## Change
1. I'm not really sure what's the original intention, but let's just make `?content=` as an override/filter.

2. `?content=` should probably be limited to always be a subset of `claimType` and `streamType`. But this seems complicated to do, so for now let's just make always override/filter everything.  For that, we need to make sure the filtered `claimType` -- `streamType` combo makes sense.

* Fix 'Channel' filter not working in Wild West

## Cause
The Wild West list defines `release_time` to be 1 week ago. As long as this parameter exists, a channel `claim_search` produces no results (I thought channels have creation dates?). That is why an unfiltered Wild West never showed Channel Tiles.

## Change
The existing `release_time` handling does seem to hint that we should not set the parameter when searching for Channels. Expanded that to consider the final (filtered) claim type, not just the original.
2022-01-14 11:06:13 -05:00
..
component Resolve claim and stream types when there is a filter (#696) 2022-01-14 11:06:13 -05:00
constants [Playlist] Pull in sorting changes from desktop + Add Drag-n-Drop + Handle unavailable/deleted claims (#641) 2022-01-12 14:14:12 -05:00
effects Fix "you are offline" nag being stuck 2021-12-22 12:41:05 +08:00
modal Thumb: make CDN limit an env so we can change easily 2022-01-13 13:18:41 +08:00
page Fix advanced filter showing up in Wild West (#695) 2022-01-13 22:00:41 -05:00
redux Find and Pass mentioned channel name + claim id on comment_create (#690) 2022-01-14 09:50:09 -05:00
scss [Playlist] Pull in sorting changes from desktop + Add Drag-n-Drop + Handle unavailable/deleted claims (#641) 2022-01-12 14:14:12 -05:00
util Fallback to main language (xx) when sub-language (xx-yy) is not supported. (#682) 2022-01-12 09:46:57 -05:00
analytics.js Reduce triple call to single call, improve video loading, fix embed play button being off-center (#546) 2022-01-06 14:28:27 -05:00
app.js
comments.js Comment Moderation - time based bans 2021-09-03 07:17:56 +08:00
i18n.js Add env to auto report new strings in console 2022-01-05 00:26:31 -08:00
index.jsx [oEmbed] some changes and fixes (#392) 2021-12-01 10:36:52 -05:00
lbry.js Un-authenticated resolve (#341) 2021-11-24 09:33:34 -05:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
reducers.js Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
rewards.js Change logic for daily reward claiming to weekly 2021-12-23 02:40:58 -05:00
store.js Sync: handle fast-actions being reverted 2021-12-29 10:32:38 -05:00