Add ability to search through publishes. #7535

Merged
Ruk33 merged 8 commits from 3139-ability-to-search-through-publishes into master 2022-04-15 05:06:00 +02:00
Ruk33 commented 2022-04-06 16:54:38 +02:00 (Migrated from github.com)

Fixes

Issue Number: https://github.com/lbryio/lbry-desktop/issues/3139

What is the current behavior?

Users can't search through their publishes.

What is the new behavior?

Users can search through their publishes:

image

image

image

Other information

PR Checklist

Toggle...

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I added a line describing my change to CHANGELOG.md
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below
## Fixes Issue Number: https://github.com/lbryio/lbry-desktop/issues/3139 <!-- Tip: - Add keywords to directly close the Issue when the PR is merged. - Skip the keyword if the Issue contains multiple items. - https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> ## What is the current behavior? Users can't search through their publishes. ## What is the new behavior? Users can search through their publishes: ![image](https://user-images.githubusercontent.com/1719111/162003765-7777f533-08c2-4999-ae35-73ee21d32f75.png) ![image](https://user-images.githubusercontent.com/1719111/162003843-cbd0a7d8-0a0a-463f-85aa-53656b902a15.png) ![image](https://user-images.githubusercontent.com/1719111/162003899-81ac4b89-ce39-4a72-9dd7-80f8896abc99.png) ## Other information <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. --> ## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> <details><summary>Toggle...</summary> What kind of change does this PR introduce? - [ ] Bugfix - [x] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I added a line describing my change to CHANGELOG.md - [x] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below </details>
Ruk33 (Migrated from github.com) reviewed 2022-04-06 17:41:52 +02:00
@ -35,3 +53,4 @@
const { search } = location;
const params = {};
params[PAGE_PARAM] = Number(page);
Ruk33 (Migrated from github.com) commented 2022-04-06 17:41:52 +02:00

@jessopb I'm not entirely happy with this but I couldn't think of a better way to work around this issue.

@jessopb I'm not entirely happy with this but I couldn't think of a better way to work around this issue.
jessopb (Migrated from github.com) reviewed 2022-04-07 15:05:19 +02:00
@ -35,3 +53,4 @@
const { search } = location;
const params = {};
params[PAGE_PARAM] = Number(page);
jessopb (Migrated from github.com) commented 2022-04-07 15:05:19 +02:00

Seems to work really well. I don't think you need "disableHistory" - that mostly doesn't exist except if it's passed to <Paginate as a prop, and only on one page.

Seems to work really well. I don't think you need "disableHistory" - that mostly doesn't exist except if it's passed to <Paginate as a prop, and only on one page.
jessopb commented 2022-04-07 15:05:26 +02:00 (Migrated from github.com)

I think this works well. 3 things,

  1. During loading, let's not say "No results".
  2. It would be good to debounce the filtering while typing?
  3. Maybe make Reposts searchable or disabled?
I think this works well. 3 things, 1) During loading, let's not say "No results". 2) It would be good to debounce the filtering while typing? 3) Maybe make Reposts searchable or disabled?
jessopb commented 2022-04-07 17:12:10 +02:00 (Migrated from github.com)

I think we should put the search term in the params too, so when you navigate forward, then back again, you have both page and search term.

I think we should put the search term in the params too, so when you navigate forward, then back again, you have both page and search term.
Ruk33 (Migrated from github.com) reviewed 2022-04-15 02:42:44 +02:00
@ -35,3 +53,4 @@
const { search } = location;
const params = {};
params[PAGE_PARAM] = Number(page);
Ruk33 (Migrated from github.com) commented 2022-04-15 02:42:44 +02:00

Updated. Thanks @jessopb for the comment.

Updated. Thanks @jessopb for the comment.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#7535
No description provided.