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

Sweep: Add a store to store user information to create an onboarding flow #37

Closed

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented May 28, 2024

Description

This pull request introduces a centralized store for managing user information, facilitating an improved onboarding flow. By leveraging the Pinia library, we've encapsulated user data fetching and state management logic within a dedicated store, streamlining data access across components.

Summary

  • Added a new userStore using Pinia in frontend/components/userStore.ts to manage user state globally.
  • Implemented fetchUserData action within the store to asynchronously fetch user data from the backend and update the store state.
  • Modified frontend/app.vue to fetch user data on component mount using the newly created userStore.
  • Refactored frontend/pages/profile.vue to utilize the userStore for user data instead of fetching and managing its own state, simplifying the component logic and ensuring a single source of truth for user data.
  • Utilized computed properties in frontend/pages/profile.vue to reactively display user information, enhancing UI consistency and responsiveness.

This change not only simplifies state management across the application but also lays foundational work for further enhancements to the user onboarding process and overall user experience.

Fixes #36.


💡 To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

This is an automated message generated by Sweep AI.

Copy link
Contributor Author

sweep-ai bot commented May 28, 2024

Rollback Files For Sweep

  • Rollback changes to frontend/components/userStore.ts
  • Rollback changes to frontend/pages/profile.vue
  • Rollback changes to frontend/app.vue

This is an automated message generated by Sweep AI.

Copy link

netlify bot commented May 28, 2024

Deploy Preview for kg1-site failed.

Name Link
🔨 Latest commit f4fee69
🔍 Latest deploy log https://app.netlify.com/sites/kg1-site/deploys/6655f0ebc8234f0008a7e461

@ydennisy ydennisy closed this May 29, 2024
@ydennisy ydennisy deleted the sweep/add_a_store_to_store_user_information_to branch May 29, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a store to store user information to create an onboarding flow
1 participant