Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Jan 12, 2026

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-2631 - Design 2 round: Checkpoint reviewer doesn't see any data on checkpoint submissions and checkpoint screening tabs and also on review tab
https://topcoder.atlassian.net/browse/PM-2663 - Design Ch: Approvers dont seen screening and review details

What's in this PR?

Allow approvers to see submissions in the screening & reivews tabs
Allow checkpoint reviewers to see the submissions in the checkpoint screening & submissions tabs.

resources,
}: ChallengeDetailContextModel = useContext(ChallengeDetailContext)
const { actionChallengeRole, isPrivilegedRole }: useRoleProps = useRole()
const { actionChallengeRole, isPrivilegedRole, hasApproverRole }: useRoleProps = useRole()

Choose a reason for hiding this comment

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

[⚠️ correctness]
The addition of hasApproverRole to the destructured object from useRole() should be verified to ensure that it is correctly implemented and used throughout the component. Ensure that useRole() is returning hasApproverRole as expected.

const validReviewPhaseSubmissions = baseReviews.filter(hasReviewPhaseReview)

if (isPrivilegedRole || (isChallengeCompleted && hasPassedReviewThreshold)) {
if (isPrivilegedRole || hasApproverRole || (isChallengeCompleted && hasPassedReviewThreshold)) {

Choose a reason for hiding this comment

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

[⚠️ correctness]
The condition now includes hasApproverRole, which changes the logic for determining valid review phase submissions. Ensure that this change aligns with the intended business logic and that hasApproverRole is correctly set for users who should have access.

@vas3a vas3a merged commit 9544f71 into dev Jan 12, 2026
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