Blocklist: paginate + search #7055

Merged
infinite-persistence merged 5 commits from ip/paginate.blocklist into master 2021-09-10 17:36:09 +02:00
infinite-persistence commented 2021-09-10 11:39:25 +02:00 (Migrated from github.com)

Test

kp.odysee.com

Ticket

Closes #6834 Support pagination + search in moderation sections

Main changes

  • Added app-side pagination.
  • Improved the "moderator-block" visuals a bit
  • Added search bar for blocklists.
    • Fuzzy search is supported, but is slow when the list is huge. Ended up using "CONTAINS" search.

    • Can play around with other types if the search is not good enough:

      CASE SENSITIVE EQUALS: Case-sensitive equality trumps all. These will be first. (ex. France would match France, but not france)
      EQUALS: Case-insensitive equality (ex. France would match france)
      STARTS WITH: If the item starts with the given value (ex. Sou would match South Korea or South Africa)
      WORD STARTS WITH: If the item has multiple words, then if one of those words starts with the given value (ex. Repub would match Dominican Republic)
      CONTAINS: If the item contains the given value (ex. ham would match Bahamas)
      ACRONYM: If the item's acronym is the given value (ex. us would match United States)
      SIMPLE MATCH: If the item has letters in the same order as the letters of the given value (ex. iw would match Zimbabwe, but not Kuwait because it must be in the same order). Furthermore, if the item is a closer match, it will rank higher (ex. ua matches Uruguay more closely than United States of America, therefore Uruguay will be ordered before United States of America)

## Test kp.odysee.com ## Ticket Closes [#6834 Support pagination + search in moderation sections](https://github.com/lbryio/lbry-desktop/issues/6834) ## Main changes - Added app-side pagination. - Improved the "moderator-block" visuals a bit - Added search bar for blocklists. - Fuzzy search is supported, but is slow when the list is huge. Ended up using "CONTAINS" search. - Can play around with other types if the search is not good enough: > CASE SENSITIVE EQUALS: Case-sensitive equality trumps all. These will be first. (ex. France would match France, but not france) EQUALS: Case-insensitive equality (ex. France would match france) STARTS WITH: If the item starts with the given value (ex. Sou would match South Korea or South Africa) WORD STARTS WITH: If the item has multiple words, then if one of those words starts with the given value (ex. Repub would match Dominican Republic) CONTAINS: If the item contains the given value (ex. ham would match Bahamas) ACRONYM: If the item's acronym is the given value (ex. us would match United States) SIMPLE MATCH: If the item has letters in the same order as the letters of the given value (ex. iw would match Zimbabwe, but not Kuwait because it must be in the same order). Furthermore, if the item is a closer match, it will rank higher (ex. ua matches Uruguay more closely than United States of America, therefore Uruguay will be ordered before United States of America)
tzarebczan (Migrated from github.com) reviewed 2021-09-10 11:39:25 +02:00
tzarebczan commented 2021-09-10 17:36:03 +02:00 (Migrated from github.com)

This looks great, I know a creator that will be super happy!

This looks great, I know a creator that will be super happy!
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#7055
No description provided.