Blocklist: paginate + search #7055

Merged
infinite-persistence merged 5 commits from ip/paginate.blocklist into master 2021-09-10 17:36:09 +02:00

5 commits

Author SHA1 Message Date
infinite-persistence
7afc482ed1
Add search bar to BlockList
6834

- Only supports channel-name search, per 6834. Channel-title search would probably be too heavy on the client side.
- Fuzzy search is possible, but is too slow on huge lists. Ended up with a simpler `matchSorter.rankings.CONTAINS`, which I think would cover typical cases.
2021-09-10 17:43:58 +08:00
infinite-persistence
95d846ce2a
Improve 'moderator-block' list visuals
- Added "Blocked on behalf of" to make things clearer.
- Use smaller ClaimPreview for delegators to save space (there might be lots of delegators)
2021-09-10 17:14:13 +08:00
infinite-persistence
bfade8357a
Paginate blocklists
6834
2021-09-10 17:14:12 +08:00
infinite-persistence
01b4749650
Refactored blocklists into BlockList; no functional change
Reason:
- With each list (Personal, Admin, Mod, Muted), there's a bunch of useEffects and variables needed to handle the state. All of them are doing 99% similar things.
2021-09-10 16:59:02 +08:00
infinite-persistence
719a304d27
Paginate: add option to disable history and url param 2021-09-10 16:59:02 +08:00