Skip to content

Display applied filters in HTML report#63

Closed
sparshsinghal885 wants to merge 3 commits intoksauraj:masterfrom
sparshsinghal885:feat/display-filters
Closed

Display applied filters in HTML report#63
sparshsinghal885 wants to merge 3 commits intoksauraj:masterfrom
sparshsinghal885:feat/display-filters

Conversation

@sparshsinghal885
Copy link
Contributor

Description

This PR resolves the issue of generated HTML files lacking context. It introduces a feature to display a summary of all user-selected filters directly at the top of the HTML report. This makes the output files self-documenting and much more useful when shared.

Summary of Changes

  • Filter Tracking: Implemented a dictionary (applied_filters) that is initialized at the start of a counseling session.
  • Data Propagation: This dictionary is passed through the function call stack, with each step adding the relevant user choice (e.g., year, round, institute type).
  • Dynamic Rendering: The display_df_web function now uses this dictionary to dynamically generate an "Applied Filters" list in the HTML output.

Example of New Output

The generated HTML file will now include a section like this:

!

Applied Filters:

  • Counseling Type: JOSAA
  • Year: 2023
  • Round: 6
  • Institute Type: NITs
  • Program: Computer Science and Engineering
  • Institute: All
  • Quota: All India, Home State
  • Seat Type: OPEN, EWS
  • Gender: Gender-Neutral
  • Your Rank (Show colleges with closing rank >): 12424

Adds a new section to the generated HTML output that lists all the filters applied by the user. This makes the reports self-contained and easier to understand and share.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant