This repository was archived by the owner on Mar 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Feature/quick fixes after ga release #523
Merged
+56
−15
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fba5dfc
SUP-2387, Dealing with stats for design and non-rated sub-tracks
8c90d8d
Merge branch 'dev' into feature/quick-fixes-after-ga-release
5790094
SUP-2410, Fix ordering of sub-tracks on profile and dashboard
5ce61d5
Merge branch 'dev' into feature/quick-fixes-after-ga-release
c0346df
SUP-2410, Fix ordering of sub-tracks on profile and dashboard
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.design(ng-if="vm.track == 'DESIGN'") | ||
|
||
.bottom | ||
h2.detailed Details | ||
|
||
ul.vertical-stats | ||
li.first | ||
.left Win Percentage | ||
.right {{vm.typeStats.winPercent | percentage | empty}} | ||
|
||
li(ng-if="profileVm.isUser") | ||
.left Inquiries | ||
.right {{vm.typeStats.numInquiries | empty}} | ||
|
||
li(ng-if="profileVm.isUser") | ||
.left Submissions | ||
.right {{vm.typeStats.submissions | empty}} | ||
|
||
li | ||
.left Submission Rate | ||
.right {{vm.typeStats.submissionRate | percentage | empty}} | ||
|
||
li.first(ng-if="profileVm.isUser") | ||
.left Passed Screening | ||
.right {{vm.typeStats.passedScreening | empty}} | ||
|
||
li | ||
.left Screening Success Rate | ||
.right {{vm.typeStats.screeningSuccessRate | percentage | empty}} | ||
|
||
li | ||
.left Average Placement | ||
.right {{vm.typeStats.avgPlacement | number: 2 | empty}} |
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 |
---|---|---|
|
@@ -28,9 +28,7 @@ | |
vm.pageName = vm.subTrack.toLowerCase().replace(/_/g, ' '); | ||
|
||
vm.tabs = []; | ||
if (vm.track !== 'DESIGN') { | ||
vm.tabs.push('statistics'); | ||
} | ||
vm.tabs.push('statistics'); | ||
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. vm.tabs can be defined & initialized in the same line. |
||
|
||
if (vm.track !== 'COPILOT') { | ||
vm.tabs.push( vm.subTrack === 'SRM' ? 'Past srm': 'challenges'); | ||
|
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 |
---|---|---|
|
@@ -108,7 +108,8 @@ | |
'rating': subTrack.rank.rating || 0, | ||
'wins': subTrack.wins, | ||
'submissions': (subTrack.submissions && subTrack.submissions.submissions) || 0, | ||
'mostRecentEventDate': new Date(subTrack.mostRecentEventDate) | ||
'mostRecentEventDate': new Date(subTrack.mostRecentEventDate), | ||
'mostRecentSubmissionDate': new Date(subTrack.mostRecentSubmission) | ||
}; | ||
}).filter(function(subTrack) { | ||
return !(subTrack.subTrack == 'COPILOT_POSTING' && subTrack.track == 'DEVELOP'); | ||
|
@@ -124,7 +125,8 @@ | |
'challenges': subTrack.challenges, | ||
'wins': subTrack.wins, | ||
'submissions': (subTrack.submissions) || 0, | ||
'mostRecentEventDate': new Date(subTrack.mostRecentEventDate) | ||
'mostRecentEventDate': new Date(subTrack.mostRecentEventDate), | ||
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. is 'mostRecentEventDate' even needed now? If not please remove, one less item to test :) 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. Yes, we need it. We show this information in details tables under statistics tab. |
||
'mostRecentSubmissionDate': new Date(subTrack.mostRecentSubmission) | ||
}; | ||
}); | ||
} | ||
|
@@ -135,7 +137,8 @@ | |
'subTrack': 'SRM', | ||
'rank': srmStats.rank.rank, | ||
'rating': srmStats.rank.rating, | ||
'mostRecentEventDate': new Date(srmStats.rank.mostRecentEventDate) | ||
'mostRecentEventDate': new Date(srmStats.rank.mostRecentEventDate), | ||
'mostRecentSubmissionDate': new Date(srmStats.mostRecentSubmission) | ||
}); | ||
} | ||
if (stats.DATA_SCIENCE && stats.DATA_SCIENCE.MARATHON_MATCH && stats.DATA_SCIENCE.MARATHON_MATCH.rank) { | ||
|
@@ -145,7 +148,8 @@ | |
'subTrack': 'MARATHON_MATCH', | ||
'rank': marathonStats.rank.rank, | ||
'rating': marathonStats.rank.rating, | ||
'mostRecentEventDate': new Date(marathonStats.rank.mostRecentEventDate) | ||
'mostRecentEventDate': new Date(marathonStats.rank.mostRecentEventDate), | ||
'mostRecentSubmissionDate': new Date(marathonStats.mostRecentSubmission) | ||
}); | ||
} | ||
if (stats.COPILOT) { | ||
|
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
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.
Should we use ng-switch instead?
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 omitted that because I would need to add a new wrapper div which may break some CSS. Isn't it?