-
Notifications
You must be signed in to change notification settings - Fork 476
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
[TOOL-3525] Dashboard: Add delete account in account settings page #6339
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6339 +/- ##
=======================================
Coverage 54.60% 54.60%
=======================================
Files 874 874
Lines 54525 54525
Branches 3680 3680
=======================================
Hits 29772 29772
Misses 24658 24658
Partials 95 95
|
Merge activity
|
…6339) <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the management of teams and accounts in the application. It introduces a new method to fetch the default team and updates various components to utilize this information, improving user experience and functionality. ### Detailed summary - Added `getDefaultTeam` function to fetch the default team using an API call. - Updated `TeamRootPage` to use `getDefaultTeam` instead of fetching all teams. - Modified middleware to redirect using the default team. - Refactored account settings page to include `defaultTeamSlug` and `defaultTeamName`. - Enhanced `DangerSettingCard` to manage confirmation dialog state. - Updated `AccountSettingsPageUI` to handle account deletion with relevant alerts for errors. - Added UI components for handling account deletion status responses in the storybook. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1c9bcc9
to
853ed47
Compare
PR-Codex overview
This PR focuses on refactoring the team retrieval logic in the
TeamRootPage
and middleware to use thegetDefaultTeam
function. It also enhances the account settings page by integrating default team information and updating the delete account functionality to handle various states.Detailed summary
TeamRootPage
withgetDefaultTeam()
.getDefaultTeam()
.AccountSettingsPage
to includedefaultTeamSlug
anddefaultTeamName
.DangerSettingCard
to manage confirmation dialog state.AccountSettingsPageUI
to pass default team info and handle account deletion.DeleteAccountCard
.