sharezone-app icon indicating copy to clipboard operation
sharezone-app copied to clipboard

Events page always colors dates in red.

Open Jonas-Sander opened this issue 2 years ago • 1 comments

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:

  1. Go to events page
  2. Add an event for two days in the future
  3. 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

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

Jonas-Sander avatar Feb 15 '22 22:02 Jonas-Sander

Color is currently hardcoded here: https://github.com/SharezoneApp/sharezone-app/blob/main/app/lib/timetable/src/widgets/events/calender_event_card.dart#L54

Jonas-Sander avatar Feb 15 '22 22:02 Jonas-Sander