Skip to content

#4511 competition performance - #4523

Merged
wavehassman merged 7 commits into
feature/executive-summaryfrom
#4511-Competition-Performance
Sep 20, 2026
Merged

wavehassman merged 7 commits into
feature/executive-summaryfrom
#4511-Competition-Performance

Conversation

@HLaPides

@HLaPides HLaPides commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Changes

Created a competition performance component that meets the following criteria:

FSAE / FHE subtabs
renders final place, total points earned, best/worst static event, best/worst dynamic event, acceleration top time, endurance laps completed, autocross top time, endurance average lap time

Notes

The Width was hardcoded at 500px to emulate the size of the component on the full executive summary mock, This is noted in comments and will be easy to change if/when it needs to be.

I added a check to make sure that both endurance laps and max laps existed before rendering the text. Idea was that if i just checked for endurance laps it could result in something like 40/N/A which would've caused the same readability issue.

Test Cases

Tested to make sure it rendered placements properly e.g (1st, 2nd, 3rd, 4th, 11th, 12th, 21st)
Tested case where donut graph had no points to display
Tested case where endurance laps/ max laps were undefined.

Screenshots

Normal window size (FSAE):
Fullscreen_competition

Smallest window size:
image

FSAE tab:
FSAE_Competition_Demo

FHE tab:
FHE_Competition_Demo

No wheel or endurance laps:
image

To Do

  1. For the visualization wheel I did not find a points per event in the schema so I just made it do the total number of points without a breakdown of points per event. Will need to be fixed when the schema is updated, but added the fix where it won't render if there is nothing to display.

Closes #4511

@HLaPides HLaPides self-assigned this Sep 17, 2026
@staysgt
staysgt self-requested a review September 17, 2026 21:58

@staysgt staysgt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks really good so far!

<UnderlinedLabel label="Worst Dynamic Event" value={performance.worstDynamicEvent ?? 'N/A'} />
</Box>

<Box flex="1 1 140px" display="flex" justifyContent="center" alignItems="flex-start">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of having total points set to zero if it doesn't exist, I think we should instead only display the donut graph if there are points to display. Same with the max points; only display the donut graph if totalPointsEarned and maxPoints are both defined

Comment on lines +180 to +183
<StatBlock
value={`${performance.enduranceLapsCompleted ?? 'N/A'}/${PLACEHOLDER_MAX_ENDURANCE_LAPS}`}
label="Endurance Laps Completed"
/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For the endurance laps completed, if endurance laps is undefined and max laps is set, it will display something like: N/A/40, which is difficult to read. Instead we should only display this section if enduranceLapsCompleted is defined

…h 'origin/feature/executive-summary' into #4511-Competition-Performance
@HLaPides
HLaPides changed the base branch from develop to feature/executive-summary September 18, 2026 16:19

@staysgt staysgt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Really good work!

@staysgt
staysgt requested a review from wavehassman September 19, 2026 12:17

@wavehassman wavehassman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

great job!

@wavehassman
wavehassman merged commit fd59917 into feature/executive-summary Sep 20, 2026
4 checks passed
@wavehassman
wavehassman deleted the #4511-Competition-Performance branch September 20, 2026 18:19
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.

[Executive Summary] - Competition Performance section

3 participants