Skip to content

Conversation

saviit
Copy link
Contributor

@saviit saviit commented Jun 9, 2025

Adds badge functionality to TIM:

  • badges that can be assigned (= given) to users or groups
  • associated UI components for creating, modifying, viewing, assigning badges
  • leaderboard component: ranks groups ("teams") based on the number of badges the group has

TODO:

@saviit saviit marked this pull request as draft June 9, 2025 10:54
saviit and others added 21 commits June 10, 2025 09:17
# Conflicts:
#	timApp/i18n/messages.fi.xlf
#	timApp/i18n/messages.sv.xlf
Co-authored-by: Denis Zhidkikh <dezhidki@jyu.fi>
The `externalTemplates` attribute for `modelAnswer` allows to fetch content from external URLs and insert it into the rendered modelAnswer.

Usage example:

```yml
modelAnswer:
  externalTemplates:
    example:
      url: https://example.com
  answer: |
    Answer content

    ~~~html
    {{example}}
    ~~~
```

The downloaded content is cached by default by the URL. The cache can be purged via the public GET /modelAnswer/clearCache path (allowing e.g., CI to purge cache).
This commit adds a `destCourseGroup` attribute. The attribute allows explicitly specifying the destination course group when exporting grades and when multiple groups are specified in the `groups` attribute.
Consolidate fetching item access info into one request per directory, instead of one per item

Structure a clearer scheme and styles for badges

Preparation for localized badges and info texts

Set up order and logic for how the displayed badge is chosen
# Conflicts:
#	timApp/i18n/messages.fi.xlf
#	timApp/i18n/messages.sv.xlf

# Conflicts:
#	timApp/i18n/messages.fi.xlf
#	timApp/i18n/messages.sv.xlf
saviit and others added 30 commits September 10, 2025 20:50
…ation for fetching user badges via personal group
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.

6 participants