Skip to content

Add batch comparison feature to display common free timetable slots#2

Open
ayushs206 wants to merge 1 commit intoACM-Thapar:mainfrom
ayushs206:feature/get-free-slots
Open

Add batch comparison feature to display common free timetable slots#2
ayushs206 wants to merge 1 commit intoACM-Thapar:mainfrom
ayushs206:feature/get-free-slots

Conversation

@ayushs206
Copy link

Fix #1

This PR introduces a new timetable comparison feature that allows users to select multiple batches and view their common free slots.

Key changes:

  • Added a new /compare page where users can select multiple batches.
  • Implemented logic to compute common free slots across selected batches.
  • Introduced a responsive grid layout to visualize free slots clearly.
  • Replaced the editable timetable view with a simplified grid for comparison.
  • Optimized column widths since cells only display "FREE".
  • Added responsive behavior for smaller screens (short day labels and compressed grid).

UI improvements:

  • Added a navigation link to access the compare feature.
  • Improved grid responsiveness for mobile devices.
  • Reduced column width and simplified cell content for better readability.

This feature helps students quickly identify common free time slots between different batches.

image image image

- Implemented Compare and CompareResult pages with batch selection and navigation.
- Added FreeSlotGrid component to visualize available slots.
- Introduced BatchCountBox for dynamic batch selection.
- Created free-grid CSS for responsive layout.
- Updated Home page to link to the Compare page.
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.

FEATURE REQUEST: time table comparison to find free slots for 2 batches

1 participant