codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 69 forks source link

Persistent references to post history entries & pagination #1229

Open Oaphi opened 10 months ago

Oaphi commented 10 months ago

Also reported: https://meta.codidact.com/posts/291622

Describe the bug

The issue is two-fold:

  1. If the number of history entries for a given post exceeds the number of items per page, there's no UI to navigate to the rest of the entries.
  2. Links to history entries rely on indices which makes them not true permalinks as what constitutes an Nth entry is determined on the fly and is page-relative.

To Reproduce

Opening any history view for a post with more than 20 history entries, for example, https://codegolf.codidact.com/posts/287238/history.

Expected behavior

  1. Pagination component present.
  2. Immutable links to history entries.

Additional context

Special thanks to @trichoplax for noticing the issue.