Bug: Selected Paper Count Persists When Navigating Between Subjects

未关闭 适合新手
#577 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
frontend

调研方向

首先找到学科页面和单篇论文的选择状态,然后追踪切换到其他学科时该状态如何更新。检查“全选”的现有行为,并与逐篇选择论文进行比较。完成的标准是计数归零,且切换学科后所选内容不会保留。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
23
派生
67
平均合并
2 天 17 小时
30 天内合并 PR
7

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeChefVIT/papers-codechef 的其他 Issue

查看 CodeChefVIT/papers-codechef 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。