Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue #138 #150 #151 #152

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ishaanxgupta
Copy link

Solves issues #138 #150 #151


Description

This PR implements two significant enhancements to the History Page:

  1. Sidebar for Easy Navigation: Introduced a sidebar to provide quick access to quiz history, enabling users to navigate through past quizzes without clutter.
  2. Addition of Description and Context: Included context fields for each quiz, offering users more insights into their previously generated quizzes.

Changes Made

Sidebar Implementation

  • Added a SidePanel View for organized and enhanced navigation of quiz history.
  • Implemented a toggle mechanism to open/close the sidebar.
  • Styled the sidebar for seamless integration with the platform’s theme.

Description and Context in History

  • Updated the quiz structure to include description and context fields during quiz generation.
  • Displayed these fields on the History Page under each quiz entry.
  • Truncation mechanism for long text with a "Read More" toggle.

Additional Enhancements

  • Adjusted the getQuizzesFromLocalStorage function to accommodate the new fields.
  • Ensured both the sidebar and context-related changes are responsive and visually consistent.

Implementation Details

Sidebar Features

  • The sidebar is accessible via a menu icon on the top-right corner of the Home Page.
  • Displays a list of past quizzes, clickable to navigate directly.

Context and Description Display

  • Added description and context fields under each quiz in the History Page.
  • Each field is truncated to maintain a clean layout with an option to expand.

Screenshots

image

Sidebar.added.mp4

@ishaanxgupta
Copy link
Author

@Aditya062003
Waiting for your review.

Thanks

@Aditya062003
Copy link
Contributor

Hey, we already have a button below that redirects you to previous quizzes, how is this any faster than that?

@ishaanxgupta
Copy link
Author

Hi @Aditya062003,
But for example, if we are in the create quiz page or the type of quiz selection page, then we have to go all back up to the main page. In future, if more pages get added, then navigation becomes an issue
So I added this feature just for faster viewing of previous pages, and also, if required, we can add a header that allows easy navigation.
Further in this PR, I have also resolved the issue of topic description in the history page, and the newly created quizzes used to get displayed at the bottom. I have reversed the addition of list of quizzes so newly created quizzes come up at the top

Further, if you want any changes or want me to raise PR for some of the changes from this, I will make PR for that.
Thanks

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.

2 participants