-
Notifications
You must be signed in to change notification settings - Fork 133
Two impovents and one bug fix #1488
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
base: master
Are you sure you want to change the base?
Conversation
…e gruped by time to make it look cleaner. 2:) On top of the standings screen there will be a disclaimer that all unplyed matches are counted as drwas.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1488 +/- ##
=======================================
Coverage 94.94% 94.94%
=======================================
Files 120 120
Lines 4350 4350
=======================================
Hits 4130 4130
Misses 220 220 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| export function compareDateTime(datetime1: string, datetime2: string) { | ||
| return parseISO(datetime1) > parseISO(datetime2); | ||
| return parseISO(datetime1).getTime() - parseISO(datetime2).getTime(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return parseISO(datetime1).getTime() - parseISO(datetime2).getTime(); | |
| return dayjs(datetime1) - dayjs(datetime2); |
I try to use dayjs now everywhere since that's also what mantine uses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I have two suggestions
Also, CI fails on typing errors: https://github.com/evroon/bracket/actions/runs/20457073860/job/58811681300?pr=1488
| values.players_can_be_in_multiple_teams, | ||
| values.auto_assign_courts, | ||
| values.start_time.toISOString(), | ||
| new Date(values.start_time).toISOString(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this already works right?
If not, it should just be:
| new Date(values.start_time).toISOString(), | |
| values.start_time, |
Fixed Docker compose for new postgress version from #1389
Did my own quick fix against irritation. Is see something simmilar was done in #1267 please use #1267
And added sorting for the dashboard to look cleaner.