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

Add Different Modes of PDF Generation for Quizzes #111

Open
yatikakain opened this issue Jan 5, 2025 · 5 comments
Open

Add Different Modes of PDF Generation for Quizzes #111

yatikakain opened this issue Jan 5, 2025 · 5 comments
Assignees

Comments

@yatikakain
Copy link
Contributor

yatikakain commented Jan 5, 2025

Description

Currently, the application allows generating a PDF with only questions. To enhance functionality and provide flexibility, a dropdown menu should be introduced. This menu will allow users to select one of the following options before generating the PDF:

  1. Questions Only (existing functionality).
  2. Questions with Answers.
  3. Answers Only.

Upon selection, the PDF will be downloaded with the chosen configuration.


Proposed Solution

1. Update UI:

  • Replace the existing "Generate PDF" button with a dropdown menu button.
  • The dropdown menu will contain the following options:
    • Generate PDF (Questions Only)
    • Generate PDF (Questions with Answers)
    • Generate PDF (Answers Only)

2. Modify generatePDF Logic:

  • Refactor the generatePDF function to accept an additional parameter, mode, which will determine:
    • Whether the PDF contains only questions, questions with answers, or only answers.
  • Implement conditional logic in generatePDF based on the selected mode.

3. UI Interaction:

  • Upon selecting an option from the dropdown, the selected mode will trigger the generatePDF function with the corresponding parameter.
  • The dropdown menu should close automatically after selection for a seamless user experience.

Benefits

  • Improved user experience with a more intuitive and flexible PDF generation process.
  • Streamlined functionality for educators and trainers to create and share customized quizzes or answer keys.

I would love to work on this issue, please assign this it to me.

Let me know if something needs to be updated or is unclear!

@Aditya062003
Copy link
Contributor

@yatikakain assigned this issue to you.

@yatikakain
Copy link
Contributor Author

@Aditya062003 Please check the PR #113

@Roaster05
Copy link
Contributor

@yatikakain the option to generate a pdf along with answers is already in the sidePanel at the bottom

@yatikakain
Copy link
Contributor Author

Thank you for pointing that out, @Roaster05

The existing functionality in the side panel is great for in-app users, but this issue focuses on integrating this needed features into the extension for a more seamless experience. By adding the dropdown options directly to the extension, users will have the flexibility to generate PDFs (Questions Only, Questions with Answers, or Answers Only) without needing to navigate to the side panel.

@Aditya062003
Copy link
Contributor

@Roaster05 LGTM! Should we go ahead and merge this?

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

No branches or pull requests

3 participants