-
Notifications
You must be signed in to change notification settings - Fork 170
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
feat: replace all total xp computations with new backend api #2228
Conversation
Pull Request Test Coverage Report for Build 3144282862Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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.
LGTM 👍
@@ -79,6 +81,8 @@ export const fetchAssessment = (id: number) => action(FETCH_ASSESSMENT, id); | |||
|
|||
export const fetchAssessmentOverviews = () => action(FETCH_ASSESSMENT_OVERVIEWS); | |||
|
|||
export const getTotalXp = () => action(GET_TOTAL_XP); |
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.
just a nit, maybe fetchTotalXp
would be a little better? This is so that it is consistent with fetchGrading
and fetchAssessmentOverviews
.
Description
Implements the new api route introduced to backend in this PR: source-academy/backend#859
The user profile slide over and XP bar in achievement dashboard will now both get the total XP of the user from the new backend GET
/user/total_xp
route.Also includes minor cosmetic changes to the user profile slide over, and achievement milestone components.