Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change multiday fullDay Event behaviour #3396

Merged
merged 8 commits into from
Mar 28, 2024

Conversation

Paranoid93
Copy link
Contributor

Hey!

This PR should change the behaviour of starting fullDay events that last several days. The goal was to change the behavior of the "Starting today, ends T" (T=Tomorrow) event, so it should show how many days it will occur from the first day on

Before situation:

a fullDay event that started 'today' and ends several days later showed Today on the first day. The rest of the days it showed X days left.

grafik

Y => Yesterday
T => Tomorrow

Target situation with this commit:
a fullDay event that started 'today' shows 'X days left' from the first day on and 'Today' on the last day.

grafik

@rejas
Copy link
Collaborator

rejas commented Mar 24, 2024

Thanks for the PR. Makes sense for me, but the tests are failing for it :-(

@Paranoid93
Copy link
Contributor Author

Okay.. they were green before and as far as I see, nothing changed in the Code. Would you be fine that I edit the tests to only assert that the text "ends in" is contained, no matter how many days are following? That's the main goal of the PR.

@rejas rejas merged commit e004b33 into MagicMirrorOrg:develop Mar 28, 2024
6 checks passed
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.

None yet

2 participants