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 simple profile page #34

Closed
wants to merge 1 commit into from

Conversation

sweep-ai[bot]
Copy link
Contributor

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

Description

This pull request introduces a new endpoint in the backend for fetching user data and updates the profile page in the frontend to display this data. The goal is to provide a simple profile page where users can see their ID, email, and app email alias.

Summary

  • Added a new GET endpoint /api/me in the backend main.py file to return the current user's data, including id, email, and app_email_alias.
  • Updated the profile page in the frontend to display the user's ID, email, and app email alias by modifying profile.vue.
  • Utilized dependency injection in the backend to ensure that the endpoint retrieves the data of the currently authenticated user.
  • Enhanced the user experience by providing more detailed information on the profile page.

Files Modified:

  • backend/app/main.py: Added a new endpoint to fetch and return user data.
  • frontend/pages/profile.vue: Updated to display additional user information.

Directories Affected:

  • backend/app/: Enhanced API capabilities to include user data retrieval.
  • frontend/pages/: Improved the profile page to provide a more informative user profile.

Fixes #33.


💡 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 27, 2024

Rollback Files For Sweep

  • Rollback changes to frontend/pages/profile.vue
  • Rollback changes to backend/app/main.py
  • Rollback changes to backend/app/db.py

This is an automated message generated by Sweep AI.

@sweep-ai sweep-ai bot added the sweep label May 27, 2024
@sweep-ai sweep-ai bot mentioned this pull request May 27, 2024
Copy link

netlify bot commented May 27, 2024

Deploy Preview for kg1-site ready!

Name Link
🔨 Latest commit eff1760
🔍 Latest deploy log https://app.netlify.com/sites/kg1-site/deploys/665497cba6c0890008b3886f
😎 Deploy Preview https://deploy-preview-34--kg1-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 64 (🔴 down 36 from production)
Accessibility: 90 (🟢 up 1 from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 77 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@sweep-ai sweep-ai bot closed this May 27, 2024
@sweep-ai sweep-ai bot deleted the sweep/add_a_simple_profile_page branch May 27, 2024 14:39
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 simple profile page
1 participant