sharezone-app
sharezone-app copied to clipboard
Events page always colors dates in red.
Describe the bug
When viewing events on the event page then those events will always have a red ("urgent") color regardless when the date is.
Steps to reproduce the bug
Steps to reproduce the behavior:
- Go to events page
- Add an event for two days in the future
- Add an event for two months in the future
Current broken behavior
The color of the date of both events will be colored red.
Expected behavior
Only the dates of events in the near future (e.g. 7 days? idk) / urgent events should be colored red.
(There expected behavior should be discussed further e.g. maybe the dates of exams should be colored red sooner than normal events as you might need more preparation for exams)
Screenshots, videos or logs
![image](https://user-images.githubusercontent.com/29028262/154162685-fbc1c25c-b4eb-4134-90a5-187757ac9086.png)
Tested device
- Device: MacBook Pro 2018
- OS: Big Sur 11.6
- App type: web app
- App version: 1.6.2 (316)
Additional context
Reported by discord user here: https://discord.com/channels/545668860859252746/623985162488905759/943167486365433946
Color is currently hardcoded here: https://github.com/SharezoneApp/sharezone-app/blob/main/app/lib/timetable/src/widgets/events/calender_event_card.dart#L54