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

Redesign quiz from scratch #261

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

Conversation

Privat33r-dev
Copy link
Contributor

@Privat33r-dev Privat33r-dev commented May 7, 2024

Fixes #258

Still WIP, but is ready to use. Points to address:

  • Resolve situation with checkboxes: I need label to be big so when users clicks, checkboxes is also toggled; when I make checkbox inside of the label, CSS properties (e.g. to make text bold when checked) don't work through "~" operator. In theory, I can resolve with click event on JS, but it feels a bit dirty. For now I just made them invisible, but UI is somewhat sufficient.
  • Explain to user that he got the question correct/wrong.
  • Count total points received by user.
  • Submit text answer on Enter
  • Add alternative variants for open ended questions. Can be achieved by regex.
  • Limit styling only to the article to avoid design issues in other parts (bootstrap, jquery removal update in different PR)

UI Preview

To demonstrate all capabilities of new quiz system
Added questions metadata (total answered, correct answers etc.)
Renaming and other minor refactoring
@Privat33r-dev
Copy link
Contributor Author

@marcosnils I want your input on this PR :)

  1. Would it be acceptable to use regex as input for the answer by MD authors? Example: (docker )?(ps|container ls)
  2. Where it would be the most appropriate to output the quiz result?
  3. What would be the appropriate syntax for the question's explanation? (explanation is essential part of the quiz, since it help to provide insight on missed topic)
  4. How can we explain that question was correct/wrong? Some users are colorblind, so it might make sense to use icons for this in the container below(?) the question. Also visual cues might be useful part of feedback, maybe ✅ for correct and ❌ for the wrong ones on the right side?

@Privat33r-dev
Copy link
Contributor Author

@marcosnils hi! I want to follow up on this PR. It would be nice if you can find some time to provide response for the questions above so the PR can be improved. Even in its current state, it can be considered as ready to merge and improvements can follow in subsequent PRs.

@Privat33r-dev
Copy link
Contributor Author

@marcosnils hi! Any interest in reviewing this one? :)

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.

Change quiz & question format
1 participant