Bug: Selected Paper Count Persists When Navigating Between Subjects

Aperta Adatta ai principianti
#577 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia individuando la pagina della materia e lo stato di selezione dei singoli articoli, quindi segui come viene aggiornato tale stato quando si passa a un’altra materia. Controlla il comportamento attuale di «Seleziona tutto» e confrontalo con la selezione individuale degli articoli. Il lavoro è completato quando il conteggio torna a zero e le selezioni non vengono mantenute dopo il cambio di materia.

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

Descrizione

Bug: Selected Paper Count Persists When Navigating Between Subjects

Description

When selecting individual question papers, the selected paper count indicator increases as expected. However, when navigating to a different subject (a completely different page), the selection count does not reset.

Instead, the count carries over from the previously visited subject when I use the individual select button under each paper, even though the user is now viewing papers belonging to a different subject.

Steps to Reproduce
  1. Navigate to any subject.
  2. Select a few individual question papers.
  3. Note the selected paper count.
  4. Navigate to a different subject.
  5. Observe that the selection count still reflects the previous subject's selections when you click the select button under each paper.
Expected Behaviour
  • The selection count should reset to zero when navigating to a different subject.
  • Selections from one subject should not carry over to another subject.
  • The selection state should be scoped to the currently viewed subject.
Actual Behaviour

The selection count persists across different subjects and continues from where it was left on the previous page. It only resets when the Select All button is pressed.

I'd also be happy to work on this feature and raise a PR for it if the maintainers are open to the contribution.

Lingua principale
TypeScript
Stelle
23
Fork
67
Merge medio
2g 17h
PR unite (30g)
7

Preparare l'ambiente

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 CodeChefVIT/papers-codechef

Tutte le issue di CodeChefVIT/papers-codechef

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.