-
Notifications
You must be signed in to change notification settings - Fork 210
PM-3686 group submissions in challenge details #7177
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
Merged
kkartunov
merged 6 commits into
develop
from
PM-3686_group-submissions-in-challenge-details
Feb 18, 2026
+345
−147
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
734fbd3
PM-3686 #time 4h group submissions in challenge details page
vas3a 3957f2a
deploy
vas3a 0330f00
Lint #time 15min
vas3a 5a0cdd1
lint
vas3a c3cd1a3
PM-3686 #time 45m qa feedback
vas3a e08aaea
hide rating & actions column for f2f
vas3a File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ export default function SubmissionHistoryRow({ | |
| finalScore, | ||
| provisionalScore, | ||
| submissionTime, | ||
| createdAt, | ||
| isReviewPhaseComplete, | ||
| status, | ||
| challengeStatus, | ||
|
|
@@ -42,9 +43,11 @@ export default function SubmissionHistoryRow({ | |
| }; | ||
| const provisionalScoreValue = parseScore(provisionalScore); | ||
| const finalScoreValue = parseScore(finalScore); | ||
| const submissionMoment = submissionTime ? moment(submissionTime) : null; | ||
|
|
||
| const timeField = isMM ? submissionTime : createdAt; | ||
| const submissionMoment = timeField ? moment(timeField) : null; | ||
| const submissionTimeDisplay = submissionMoment | ||
| ? `${submissionMoment.format('DD MMM YYYY')} ${submissionMoment.format('HH:mm:ss')}` | ||
| ? submissionMoment.format('MMM DD, YYYY HH:mm') | ||
| : 'N/A'; | ||
| const getInitialReviewResult = () => { | ||
| if (status === 'failed') return <FailedSubmissionTooltip />; | ||
|
|
@@ -85,13 +88,17 @@ export default function SubmissionHistoryRow({ | |
| {getFinalScore()} | ||
| </div> | ||
| </div> | ||
| <div styleName="col-3 col"> | ||
| <div styleName="mobile-header">PROVISIONAL SCORE</div> | ||
| <div> | ||
| {getInitialReviewResult()} | ||
| </div> | ||
| </div> | ||
| <div styleName={`col-4 col ${isMM ? 'mm' : ''}`}> | ||
| { | ||
| isMM && ( | ||
| <div styleName="col-3 col"> | ||
| <div styleName="mobile-header">PROVISIONAL SCORE</div> | ||
| <div> | ||
| {getInitialReviewResult()} | ||
| </div> | ||
| </div> | ||
| ) | ||
| } | ||
| <div styleName={`${isMM ? 'col-4' : 'col-3'} col ${isMM ? 'mm' : ''}`}> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [ |
||
| <div styleName="mobile-header">TIME</div> | ||
| <div> | ||
| {submissionTimeDisplay} | ||
|
|
@@ -134,6 +141,8 @@ SubmissionHistoryRow.defaultProps = { | |
| provisionalScore: null, | ||
| isReviewPhaseComplete: false, | ||
| isLoggedIn: false, | ||
| createdAt: null, | ||
| submissionTime: null, | ||
| }; | ||
|
|
||
| SubmissionHistoryRow.propTypes = { | ||
|
|
@@ -154,7 +163,11 @@ SubmissionHistoryRow.propTypes = { | |
| submissionTime: PT.oneOfType([ | ||
| PT.string, | ||
| PT.oneOf([null]), | ||
| ]).isRequired, | ||
| ]), | ||
| createdAt: PT.oneOfType([ | ||
| PT.string, | ||
| PT.oneOf([null]), | ||
| ]), | ||
| challengeStatus: PT.string.isRequired, | ||
| isReviewPhaseComplete: PT.bool, | ||
| auth: PT.shape().isRequired, | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
[⚠️
maintainability]The logic for selecting
timeFieldbased onisMMcould lead to confusion if the conditions forisMMchange in the future. Consider making the logic more explicit or documenting the rationale for this choice to improve maintainability.