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

comments order #903

Open
carlostkd opened this issue Mar 19, 2022 · 1 comment
Open

comments order #903

carlostkd opened this issue Mar 19, 2022 · 1 comment

Comments

@carlostkd
Copy link

There is anyway to make the comments on discussion pages to appear most recent first ?

thanks in advanced

@elrido
Copy link
Contributor

elrido commented Mar 19, 2022

Not in the current UI, no.

The order is determined on the server side (by sequence the comments got posted) and the client side renders the list in the order received (indentation is determined based on parent IDs - every comment has it's own ID and a parent, the root being the paste itself). It would be conceivable to render them back to top (indentation could be a bit fiddly as it would require a look-ahead scan to determine the current depth, which is simple to keep track of, the other way around) and add some UI component to re-render the comments according to such a selection. Implementing this would require changes in the templates (adding the UI component) and the JS logic to render the comments.

Personally I'd prefer to see pagination support #5 for very large discussions, ideally with a URL component to keep track of the last visited page of the discussion. This, too, would avoid having to scroll past endless discussions and finding where one last left off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants