Fixes a bug where the timeframe parameters assumed invalid states on browser tab change or same page-navigation, i.e. when clicking on the logo in the header.
Description
This PR is a follow-up to #188 and fixes:
after/before-param consistency in the URL:
when switching tabs
when navigating on the same page (e.g. removing query params without changing the page -> revelant for Hephaestus-logo in header) go back to default timeframe (i.e. current week)
remove state logic from home component and move to timeframe component
incorrect time ranges in current week ("Custom Range") - now uses the actual end date of the week instead of current minute
Testing Instructions
Run application-server and webapp
Navigate through different leaderboards
Use the Hephaestus-Logo and check if you get navigated back to the default leaderboard
Go to a different browser tab and back (state should stay the same)
Leave the leaderboard open for a few minutes and check if the state stays valid after switching timeframes back and worth
Screenshots (if applicable)
Checklist
General
[x] PR title is clear and descriptive
[x] PR description explains the purpose and changes
[x] Code follows project coding standards
[x] Self-review of the code has been done
[x] Changes have been tested locally
[ ] Screenshots have been attached (if applicable)
[ ] Documentation has been updated (if applicable)
Client (if applicable)
[x] UI changes look good on all screen sizes and browsers
[x] No console errors or warnings
[x] User experience and accessibility have been tested
[ ] Added Storybook stories for new components
[ ] Components follow design system guidelines (if applicable)
Motivation
Fixes a bug where the timeframe parameters assumed invalid states on browser tab change or same page-navigation, i.e. when clicking on the logo in the header.
Description
This PR is a follow-up to #188 and fixes:
Testing Instructions
application-server
andwebapp
Screenshots (if applicable)
Checklist
General
Client (if applicable)