Versions: read the releases a page at a time

Aperta
#1,007 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
11
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vevcom/project-next

Tutte le issue di vevcom/project-next

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.