Skip to content

Previous year questions Improvement #978

@ShahanasParapporu

Description

@ShahanasParapporu

Summary

To improve the Previous Year questions section under the Dashboard screen by adding the filter functionality (button already present), and by adding a sorting mechanism according to year, exam type etc.

Also add a search functionality for Previous year qp section.

Motivation

This will improve the accurate search results for students specifically looking for any year's question paper or trying to filter out options.

Possible Solution

1:Add a search input box that allows users to type in any keyword (e.g., subject, exam type, or year).
2:On every keypress, the table rows will be filtered dynamically, showing only the rows that match the search term.
3:Enable sorting by clicking on the arrows on headers.
4:Sorting will toggle between ascending and descending order.

Implementation approach:
1:Use JavaScript event listeners on the search input and sortable table headers.
2:For searching, filter rows by checking if the text content matches the search string.
3:For sorting, convert table rows into an array, sort them, and re-append them into the table body.
4:Keep the design lightweight with vanilla JS and CSS, avoiding external dependencies for performance and maintainability.

Metadata

Metadata

Labels

enhancementNew feature or requestgssoc2025This issue is part of GirlScript Summer of Code 2025level 2medium issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions