Skip to content

Conversation

@tariknz
Copy link
Owner

@tariknz tariknz commented Jun 21, 2025

No description provided.

Copilot AI review requested due to automatic review settings June 21, 2025 21:14
@tariknz tariknz enabled auto-merge (squash) June 21, 2025 21:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the DriverRatingBadge component to round the driver licence rating and format the displayed license string with a single decimal.

  • Updated default license value to "R 0.0".
  • Modified regex and formatting logic to round the license number to one decimal.
  • Adjusted unit tests to expect the new formatting output.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/frontend/components/Standings/components/DriverRatingBadge/DriverRatingBadge.tsx Updated default license value and revised license formatting logic to round to one decimal.
src/frontend/components/Standings/components/DriverRatingBadge/DriverRatingBadge.spec.tsx Modified tests to match the new display output and added tests for rounding behavior.

@tariknz tariknz merged commit 27a9157 into main Jun 21, 2025
1 check passed
@tariknz tariknz deleted the feat/round-licence-rating branch June 21, 2025 21:17
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.

2 participants