Add go to page navigation to channel pagination options #1166
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#1166
Loading…
Reference in a new issue
No description provided.
Delete branch "channel-pagination-go-to-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This would close #711.
The component used for pagination (react-navigate) doesn't offer customisation options, so a separate control for choosing the target page is needed. The implementation is such that the user would enter a page number and presses the enter key.
@seanyesmunt assigning this code review to you based on what we discussed in slack.
@miikkatu Thanks for the contribution!!
You should be able to use
<FormRow verticallyCenterered> ... </FormRow>
and<FormField type="text" prefix={__('Go to page:')} />
Instead of adding more css. I think the only thing you might need to do is add a class
input__paginate
or something to set a width on the input so it isn't too long. And a new prop toFormRow
, maybecentered
? To addjustify-content: center
Something like this:
Please feel free to reach out on discord if you have any questions!
Almost there. I would like to avoid adding a lot of CSS for this
I updated the PR. I agree that the suggested solution is definitely better.
I also fixed some unrelated issues in the same file that prevented committing, because of the new rules introduced after the initial PR.
The new version looks like this:
@miikkatu Awesome! Looking a lot better. Could you just change the
paginate-channel
id to a class?That id is now a class, done!
Sweet! I'll merge once the tests pass. @tzarebczan Will reach out with LBC payment