Bug: Selected Paper Count Persists When Navigating Between Subjects

Aberta Para iniciantes
#577 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 4 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
68/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
frontend

Direção de pesquisa

Comece localizando a página da disciplina e o estado de seleção de cada artigo. Em seguida, acompanhe como esse estado é atualizado ao navegar para outra disciplina. Verifique o comportamento atual de “Selecionar tudo” e compare com a seleção individual de artigos. O trabalho estará concluído quando a contagem voltar a zero e as seleções não forem mantidas após a troca de disciplina.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
23
Forks
67
Merge médio
2d 17h
PRs com merge (30d)
7

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de CodeChefVIT/papers-codechef

Todas as issues de CodeChefVIT/papers-codechef

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.