Skip to content

feat: Theory Questions QoL - #5148

Open
WillShaw1100 wants to merge 1 commit into
VATSIM-UK:mainfrom
WillShaw1100:theory-questions-qol
Open

feat: Theory Questions QoL#5148
WillShaw1100 wants to merge 1 commit into
VATSIM-UK:mainfrom
WillShaw1100:theory-questions-qol

Conversation

@WillShaw1100

Copy link
Copy Markdown
Contributor

Series of Updates to the Theory Questions Page including:

  • A stats page showing how many times the question has been used but which options are chosen.
  • The ability to enable/disable a question directly on the table.
  • A slightly more modern approach to question creation/editing
  • Various other small QoL changes and small bug fixes
image image

return $question->answer == $option ? "Option {$option} (Correct)" : "Option {$option}";
}

protected function renderProgressBar(float $percentage, ?int $count = null): string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use something like https://filamentphp.com/plugins/devletes-progress-bar to make the bars. I'd like to avoid raw HTML in the filament resources as much as possible.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my first plan using the exact one youd mentioned but I was concerned about potentially having something else to keep maintained, if that makes sense. I have another version using that plugin that i saved just in case. Ill switch it later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants