Skip to content

Abrar/feature/performance score frontend#389

Open
abrar-deakin wants to merge 9 commits into
mainfrom
abrar/feature/performance-score-frontend
Open

Abrar/feature/performance score frontend#389
abrar-deakin wants to merge 9 commits into
mainfrom
abrar/feature/performance-score-frontend

Conversation

@abrar-deakin
Copy link
Copy Markdown
Collaborator

Implemented performance scoring endpoint integration into frontend.

Changes:

  • Added guard score API integration
  • Displayed current rating on Home screen
  • Displayed performance summary on Profile screen
image image

@TeddyScript101
Copy link
Copy Markdown
Collaborator

TeddyScript101 commented May 17, 2026

Code Review Summary

In your previous submission, you have the wrong type of API response.
image

Without proper decomposition or data massaging, this is what you have done
setGuardScore(score)

image

Actual shape of "data" from the API response
image

Because of this, the score of a guard will forever be '0.0'
image

@abrar-deakin
Copy link
Copy Markdown
Collaborator Author

I have addressed the review comments and fixed the API response handling issue. The performance score is now displaying correctly on both the Home and Profile screens. Please see the updated screenshots attached. Thank you!

image image

@Krisha190235
Copy link
Copy Markdown
Collaborator

Request changes. The core feature works, but the duplicate API call in HomeScreen, copy-pasted logic across screens, and leftover console.log statements should be addressed before merging.

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