-
Notifications
You must be signed in to change notification settings - Fork 197
Live next competitor page #13044
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: main
Are you sure you want to change the base?
Live next competitor page #13044
Conversation
next-frontend/src/app/(wca)/competitions/[competitionId]/competitors/page.tsx
Outdated
Show resolved
Hide resolved
| return ( | ||
| <TabCompetitors | ||
| id={competitionId} | ||
| isLive={hasPassed(competitionInfo.start_date)} |
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.
You should probably also check for the competition end date not having passed as well
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.
well.. the competitors tab is not shown if the competition end date has passed
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.
That does not keep anyone from bookmarking a link to this page while it's still visible, and then trying to open it 10 days later
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.
Why are you introducing this new route as a pure redirect?
Is this an existing page that needs to be implemented to keep deep-link backwards compatibility?
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.
it is, but just on the wca live side so maybe we don't actually need it
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.
I would actually argue that we don't. Because the use of stable competition IDs is a new concept, WCA Live used to use integer IDs for that. So we're breaking any and all old links anyways.
Basically enables a "live" mode for the competitor table that links to the live results. We should probably add a search bar like in the current wca live page?