Skip to content

Conversation

@hentrymartin
Copy link
Collaborator

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-3065
https://topcoder.atlassian.net/browse/PM-3074
https://topcoder.atlassian.net/browse/PM-3076

What's in this PR?

  • Added Back to Challenge button in AI review page
  • Fixed scorecard dropdown UI issues
  • Fixed icon alignment issue in mobile screen

flex-shrink: 0;
height: 20px;
width: 20px;
@include ltemd {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Ensure that the ltemd mixin is defined and behaves as expected. If it's not defined in this file, verify its definition elsewhere to confirm it applies the intended styles correctly.

try {
if (challengeInfo?.id) {
// Ensure the challenge details reflect the latest data (e.g., active phase)
await mutate(`challengeBaseUrl/challenges/${challengeInfo?.id}`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
The mutate function is called with a hardcoded string challengeBaseUrl/challenges/${challengeInfo?.id}. Ensure that challengeBaseUrl is defined and correctly imported or used here, as it is not shown in the diff. If it's a typo or missing import, it could lead to runtime errors.


const pastPrefix = '/past-challenges/'
// eslint-disable-next-line no-restricted-globals
const idx = location.pathname.indexOf(pastPrefix)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
Using location.pathname directly can be problematic in environments where location is not defined, such as during server-side rendering. Consider using a safer method to access the current path that is compatible with both client and server environments.

@kkartunov kkartunov merged commit ff77f1c into dev Nov 27, 2025
8 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.

3 participants