Bug: Selected Paper Count Persists When Navigating Between Subjects

Đang mở Phù hợp với người mới
#577 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu bằng cách xác định trang môn học và trạng thái chọn từng bài báo, sau đó theo dõi cách trạng thái đó được cập nhật khi chuyển sang môn học khác. Kiểm tra hành vi hiện tại của chức năng Chọn tất cả và so sánh với việc chọn từng bài báo. Hoàn thành khi số lượng được đặt lại về không và các lựa chọn không được giữ lại sau khi đổi môn học.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
23
Fork
67
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CodeChefVIT/papers-codechef

Tất cả issue của CodeChefVIT/papers-codechef

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.