Skip to content
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

React Native - Add Settings Stack #347

Merged
merged 30 commits into from
Aug 30, 2024
Merged

React Native - Add Settings Stack #347

merged 30 commits into from
Aug 30, 2024

Conversation

noriega2112
Copy link
Contributor

@noriega2112 noriega2112 commented Aug 28, 2024

What this does

Add a description of what feature/page this PR intends to add or change.

Checklist

  • add main settings screen
  • add contact screen
  • add edit profile screen
  • enable user deletion

How to test

@oudeismetis oudeismetis temporarily deployed to tn-spa-bootstrapper-pr-347 August 28, 2024 22:59 Inactive
@noriega2112 noriega2112 had a problem deploying to tn-spa-bootstrapper-pr-347 August 28, 2024 23:06 Failure
@noriega2112 noriega2112 temporarily deployed to tn-spa-bootstrapper-pr-347 August 28, 2024 23:07 Inactive
@oudeismetis oudeismetis temporarily deployed to tn-spa-bootstrapper-pr-347 August 28, 2024 23:10 Inactive
@oudeismetis oudeismetis temporarily deployed to tn-spa-bootstrapper-pr-347 August 28, 2024 23:15 Inactive
@oudeismetis oudeismetis temporarily deployed to tn-spa-bootstrapper-pr-347 August 28, 2024 23:18 Inactive
@noriega2112 noriega2112 temporarily deployed to tn-spa-bootstrapper-pr-347 August 29, 2024 05:41 Inactive
@noriega2112 noriega2112 temporarily deployed to tn-spa-bootstrapper-pr-347 August 29, 2024 14:57 Inactive
@oudeismetis oudeismetis temporarily deployed to tn-spa-bootstrapper-pr-347 August 29, 2024 15:00 Inactive
@oudeismetis oudeismetis requested a deployment to tn-spa-bootstrapper-pr-347 August 29, 2024 15:09 Abandoned
This commit updates the user API to support partial updates. It adds a new custom service call `patchUser` that allows updating specific fields of a user object instead of sending the entire object. The `partialUserShape` is introduced to define the shape of the partial user object.

Code changes:
- Added `partialUserShape` to `user/models.ts`
- Added `patchUser` custom service call to `userApi` in `user/api.ts`
@noriega2112 noriega2112 temporarily deployed to tn-spa-bootstrapper-pr-347 August 29, 2024 16:49 Inactive
This commit adds a warning alert in the EditProfile screen to inform users about the permanent nature of account deletion. The alert provides a cancel option and a delete option, allowing users to make an informed decision. The alert is triggered when the user taps on the delete button.

Code changes:
- Added warning alert for account deletion in EditProfile screen
@noriega2112 noriega2112 temporarily deployed to tn-spa-bootstrapper-pr-347 August 29, 2024 18:23 Inactive
@noriega2112 noriega2112 temporarily deployed to tn-spa-bootstrapper-pr-347 August 29, 2024 23:18 Inactive
@noriega2112 noriega2112 temporarily deployed to tn-spa-bootstrapper-pr-347 August 29, 2024 23:21 Inactive
@noriega2112 noriega2112 marked this pull request as ready for review August 29, 2024 23:37
whusterj
whusterj previously approved these changes Aug 30, 2024
Copy link
Member

@whusterj whusterj left a comment

Choose a reason for hiding this comment

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

All checks are passing now! I think this is good to go if @lakardion signs off.

@whusterj
Copy link
Member

These checks are still showing up, and I'm not sure why:

image

@whusterj
Copy link
Member

@lakardion - Did you want to see changes made before merging, or can I go ahead and merge this in?

The patchUser service call in the user API is no longer used and can be safely removed. This commit removes the patchUser service call from the user API file.

Code changes:
- Removed patchUser service call in user API
This commit adds the useAuth hook to the EditProfile screen in order to retrieve the userId. The userId is used to retrieve the user's full name and display it in the EditProfile screen. This improves the user experience by pre-filling the full name input field with the user's current full name.

Code changes:
- Added useAuth hook to retrieve userId
- Pre-filled full name input field with user's current full name
@noriega2112 noriega2112 dismissed stale reviews from whusterj and lakardion via 411bfd6 August 30, 2024 17:43
@noriega2112 noriega2112 temporarily deployed to tn-spa-bootstrapper-pr-347 August 30, 2024 17:43 Inactive
This commit updates the import statements for user hooks in the user service file. The import paths have been changed to reflect the new file structure. This ensures that the user hooks are correctly imported and used in the user service.

Code changes:
- Updated import paths for user hooks in user service
@noriega2112
Copy link
Contributor Author

These checks are still showing up, and I'm not sure why:

image

@whusterj could it be a required check configured on the repo itself?

@lakardion
Copy link
Member

lakardion commented Aug 30, 2024

These checks are still showing up, and I'm not sure why:

image

Just made them to be gone. They were being required from Settings in the branch protection rules. Added playwright instead

@lakardion - Did you want to see changes made before merging, or can I go ahead and merge this in?

Ah yeah I approved since the comments weren't that big but Edwin fixed them I just reapproved! This should be good to go

@noriega2112 noriega2112 merged commit 99eb831 into main Aug 30, 2024
18 checks passed
@noriega2112 noriega2112 deleted the feature/settings-stack branch August 30, 2024 19:09
@whusterj
Copy link
Member

Awesome - thanks to you both!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants