Draft
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements a new account setup flow by replacing the old pet selection and goal setting with a character selection mechanism integrated with the user profile API. Key changes include updating the theme colors, modifying the SetUp screen to support character selection, and adding a new API endpoint along with corresponding client logic for setting the user's character.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/theme/colors.ts | Added new color definitions (accent, disabled, white) to support the new theme. |
| src/screens/SetUp.tsx | Replaced dinosaur and goal selection with character selection and updated flow. |
| src/navigation/TabNavigator.tsx | Configured tab navigation to include new screens for the account setup flow. |
| src/navigation/AppNavigator.tsx | Updated routing logic based on the user profile with character data. |
| src/components/setup/PetSelection.tsx | Retained legacy pet selection component (may be refactored or removed later). |
| src/components/setup/GoalSetting.tsx | Introduced a new goal setting component. |
| src/api/userService.ts | Added the setCharacter method to update the user's character in the backend. |
| src/api/endpoints.ts | Added a new endpoint for user character updates. |
| src/api/client.ts | Enhanced token validation and refresh logic in the API client. |
…ent infinite loops and improve error management.
…y, updating API endpoints, and improving token validation in request interceptor.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Attention
Other Changes