Versions: read the releases a page at a time

Open
#1,007 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
backend, frontend

Research direction

Start with versionsOperations.readAll and the /versions page that renders its notes, then compare with omegaquoteOperations.readPage and the shared helpers in src/lib/paging. Replace readAll with a paged readPage and render only the requested page's notes. Done when /versions loads further pages on scroll and the footer link /versions#<tag> still resolves to the newest version on the first page.

Written by the indexing model from the issue text.

Description

versionsOperations.readAll (#1005) reads every version and renders the notes of all of them as markdown on each view of /versions. That is fine with the 12 releases we have now, but it grows with every release.

Turn it into readPage, paged the way the other lists are (src/lib/paging, as omegaquoteOperations.readPage does). Then render only the notes of the page asked for, and let /versions load more as the user scrolls. The link from the footer to /versions#<tag> must still find the current version, which is the newest, so it is on the first page.

Dominant language
TypeScript
Stars
11
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vevcom/project-next

All issues in vevcom/project-next

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.