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

[TBCCT-22] Profile page #38

Merged
merged 6 commits into from
Oct 16, 2024
Merged

[TBCCT-22] Profile page #38

merged 6 commits into from
Oct 16, 2024

Conversation

agnlez
Copy link
Member

@agnlez agnlez commented Oct 14, 2024

This pull request includes significant updates to both the backend and frontend parts of the project, focusing on email service refactoring, status code corrections, and enhancements to the user interface components.

Backend Changes:

  • Email Service Refactoring:

    • Replaced direct usage of NodemailerEmailService with EmailProviderFactory in email.module.ts to support different email services based on environment. (email.module.ts)
    • Introduced EmailProviderFactory to dynamically provide email service implementations based on environment configuration. (email.provider.ts)
    • Updated MockEmailService to handle SendMailDTO and ensure compatibility with Jest for testing. (mock-email.service.ts)
  • Status Code Correction:

    • Changed the HTTP status code from 201 Created to 200 OK for user update operations to correctly reflect the operation result. (users.controller.ts)
    • Updated integration tests to expect 200 OK instead of 201 Created. (users-me.spec.ts)

Frontend Changes:

  • UI Components and Pages:

    • Added AlertDialog and Dialog components using Radix UI for consistent and accessible dialog interfaces. (alert-dialog.tsx, dialog.tsx) [1] [2]
    • Implemented ConfirmEmailPage and ProfilePage with necessary hooks and query client prefetching for better user experience and performance. (confirm-email/[token]/page.tsx, profile/page.tsx) (client/src/app/auth/confirm-email/[token]/page.tsxR1-R5, client/src/app/profile/page.tsxR4-R23)
    • Added Toaster component for displaying toast notifications globally. (layout.tsx, toaster.tsx) [1] [2]
  • Dependencies:

    • Updated package.json to include new dependencies for Radix UI components. (package.json)

These changes collectively improve the codebase by enhancing modularity, correcting status codes, and providing a more robust and user-friendly frontend.

@agnlez agnlez self-assigned this Oct 14, 2024
Copy link

vercel bot commented Oct 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tnc-blue-carbon-cost-tool-ghps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 16, 2024 8:48am

@agnlez agnlez marked this pull request as ready for review October 16, 2024 08:57
@agnlez agnlez merged commit 291c204 into dev Oct 16, 2024
3 checks passed
@agnlez agnlez deleted the TBCCT-22-fe-profile-page branch October 16, 2024 08:58
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