Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

salief/channel page pagination #577

Closed
wants to merge 3 commits into from

Conversation

salieflewis
Copy link
Contributor

@salieflewis salieflewis commented Apr 10, 2024

  • update channel w/ id query
  • update channel w/ id getter
  • wip

--

Pushing this up so I don't lose the code, but going to try and first grab a more accurate number for the ChannelDetails component using a direct SQL query.

@ioeylim Do you have thoughts about how PaginationControls fits with the current placement of ChannelDetails? My first thought is that ChannelDetails gets moved somewhere to the top of the page such that the bottoms of both the index route and channel route are identical.

CleanShot 2024-04-10 at 16 16 07@2x

Copy link

vercel bot commented Apr 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
river-site ✅ Ready (Inspect) Visit Preview Apr 10, 2024 8:15pm
river-site-metadata ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2024 8:15pm

Copy link

railway-app bot commented Apr 10, 2024

This PR is being deployed to Railway 🚅

river-delta-production: ◻️ REMOVED

@ioeylim
Copy link
Contributor

ioeylim commented Apr 10, 2024

  • update channel w/ id query
  • update channel w/ id getter
  • wip

--

Pushing this up so I don't lose the code, but going to try and first grab a more accurate number for the ChannelDetails component using a direct SQL query.

@ioeylim Do you have thoughts about how PaginationControls fits with the current placement of ChannelDetails? My first thought is that ChannelDetails gets moved somewhere to the top of the page such that the bottoms of both the index route and channel route are identical.

CleanShot 2024-04-10 at 16 16 07@2x

Off-rip, I think channel pages should not be paginated and perhaps lazy loaded? I don't know how feasible this gets when a channel has like 400 items, but I do think it's nice/important to not break the flow

@salieflewis
Copy link
Contributor Author

  • update channel w/ id query
  • update channel w/ id getter
  • wip

--
Pushing this up so I don't lose the code, but going to try and first grab a more accurate number for the ChannelDetails component using a direct SQL query.
@ioeylim Do you have thoughts about how PaginationControls fits with the current placement of ChannelDetails? My first thought is that ChannelDetails gets moved somewhere to the top of the page such that the bottoms of both the index route and channel route are identical.
CleanShot 2024-04-10 at 16 16 07@2x

Off-rip, I think channel pages should not be paginated and perhaps lazy loaded? I don't know how feasible this gets when a channel has like 400 items, but I do think it's nice/important to not break the flow

By lazy loaded I'm assuming you mean infinite scroll, correct? There is a large degree of changes that would need to be made in order to make that possible. Not saying it is impossible, but would require a bit of rearchitecting our component structure. I think it makes sense to continue with the existing pagination approach, are you opposed to this?

If not can I pose the original question to you again.

@ioeylim
Copy link
Contributor

ioeylim commented Apr 12, 2024

  • update channel w/ id query
  • update channel w/ id getter
  • wip

--
Pushing this up so I don't lose the code, but going to try and first grab a more accurate number for the ChannelDetails component using a direct SQL query.
@ioeylim Do you have thoughts about how PaginationControls fits with the current placement of ChannelDetails? My first thought is that ChannelDetails gets moved somewhere to the top of the page such that the bottoms of both the index route and channel route are identical.
CleanShot 2024-04-10 at 16 16 07@2x

Off-rip, I think channel pages should not be paginated and perhaps lazy loaded? I don't know how feasible this gets when a channel has like 400 items, but I do think it's nice/important to not break the flow

By lazy loaded I'm assuming you mean infinite scroll, correct? There is a large degree of changes that would need to be made in order to make that possible. Not saying it is impossible, but would require a bit of rearchitecting our component structure. I think it makes sense to continue with the existing pagination approach, are you opposed to this?

If not can I pose the original question to you again.

Screenshot 2024-04-12 at 1 12 21 PM

Thoughts on this comment @salieflewis?

@salieflewis
Copy link
Contributor Author

New PR is #586

Keeping this up for the comments.

@salieflewis salieflewis deleted the salief/channel-page-pagination branch April 18, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants