ls1intum / Hephaestus

Hephaestus - A Generative AI Mentor for Agile Software Development
MIT License
8 stars 1 forks source link

Leaderboard: Custom Sliding Time Window #100

Closed GODrums closed 1 month ago

GODrums commented 2 months ago

Motivation

We want to be able to set custom timeframes for the leaderboard. This allows us to create sliding time windows with custom dates for the client.

Description

This PR adds support for custom sliding time windows in both the server- and client-side:

Example URL: http://localhost:4200/?after=2024-09-18T10:15:30%2001:00&before=2024-09-20T10:15:30%2001:00 -> sets after to: 2024-09-19 10:15:30 UTC +1 -> sets before to: 2024-09-20 10:15:30 UTC +1

In the future, this should be combined with UI elements (e.g. button, range-slider) to allow the visitor of the website to filter the timeframe they would like to see.

Checklist

General

Client (if applicable)

Server (if applicable)