Skip to content

Feat: setup account flow #23

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Feat: setup account flow #23

wants to merge 3 commits into from

Conversation

Rice9547
Copy link
Member

Description

Attention

Other Changes

@Rice9547 Rice9547 requested a review from Copilot April 25, 2025 18:37
Copy link

@Copilot 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 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.

…y, updating API endpoints, and improving token validation in request interceptor.
@jyx0615 jyx0615 marked this pull request as draft April 26, 2025 01:30
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.

1 participant