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

Participation progress bar #2233

Closed
janno42 opened this issue Jun 28, 2024 · 1 comment · Fixed by #2234
Closed

Participation progress bar #2233

janno42 opened this issue Jun 28, 2024 · 1 comment · Fixed by #2234
Assignees
Labels
[C] Backend Focuses on backend implementation [C] Frontend Focuses on frontend implementation [P] Major Major priority

Comments

@janno42
Copy link
Member

janno42 commented Jun 28, 2024

For the active semester, a progress bar for the total participation value (how many voters submitted evaluations) should be displayed. It should show the percentage of total voters divided by the total number of participants in that semester. The bar should be divided into several steps, each of which is labeled.

  • A settings variable defines the steps. Each step has a percentage value and a label (e.g., 0.4: "1 000 €", 0.8: "5 000 €").
  • The highest step defines at which value the bar is filled (in the example above, a participation value of 0.8 would be represented by a completely filled bar.
  • The progress bar can be turned off by setting the variable to an empty value.
  • Two settings variables EXCLUDED_COURSE_TYPE_IDS and EXCLUDED_EVALUATION_IDS define which evaluations are not taken into account when calculating the participation value.
  • Evaluations are only taken into account if they do not meet any of these conditions:
    • They are excluded by their ID
    • They have an excluded CourseType
    • They are a single_result
    • They are in a state lower than APPROVED
    • They are not rewarded
    • They are private

The progress bar should be displayed at the top of the student index page.
An explanatory text that is defined in a settings variable (HTML formatting should be supported) should be displayed in a (initially collapsed) text area below the progress bar.
Also, the text "The last evaluation was submitted N minutes/hours/days ago" should be displayed next to it.

@janno42 janno42 added [C] Backend Focuses on backend implementation [C] Frontend Focuses on frontend implementation [P] Major Major priority labels Jun 28, 2024
@Kakadus
Copy link
Collaborator

Kakadus commented Jun 28, 2024

They are private

I think only a Course can be private, so every evaluation in a private course should be excluded, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C] Backend Focuses on backend implementation [C] Frontend Focuses on frontend implementation [P] Major Major priority
Development

Successfully merging a pull request may close this issue.

3 participants