Repository navigation
Added an option to delete trainees, volunteers and organisations - #418
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The deletion flows use existing endpoints, protect destructive actions with confirmation, and refresh all relevant cached results.
Review effort: Balanced
Findings: None
What changed in this PR
Adds profile deletion controls for trainees, volunteers, and organisations using existing backend endpoints.
Changes:
- Adds reusable destructive-action and confirmation components.
- Adds deletion mutations with list/search cache refreshes and navigation.
- Moves profile controls into headers and displays deletion success messages.
| File | Description |
|---|---|
client/src/features/volunteers/VolunteersOverviewPage.tsx |
Displays deletion success messages. |
client/src/features/volunteers/profile/VolunteerProfile.tsx |
Adds header actions. |
client/src/features/volunteers/profile/VolunteerHeader.tsx |
Hosts profile buttons. |
client/src/features/volunteers/profile/VolunteerActions.tsx |
Implements volunteer deletion flow. |
client/src/features/volunteers/data/mutations.ts |
Adds deletion mutation and cache refreshes. |
client/src/features/volunteers/api/api.ts |
Adds delete API call. |
client/src/features/trainees/TraineesPage.tsx |
Displays deletion success messages. |
client/src/features/trainee-profile/profile/TraineeActions.tsx |
Implements trainee deletion flow. |
client/src/features/trainee-profile/profile/ProfileHeader.tsx |
Hosts profile buttons. |
client/src/features/trainee-profile/profile/components/TraineeProfile.tsx |
Adds header actions. |
client/src/features/trainee-profile/data/mutations.ts |
Adds deletion mutation and cache refreshes. |
client/src/features/trainee-profile/api/api.ts |
Adds delete API call. |
client/src/features/organisations/profile/OrganisationProfile.tsx |
Adds header actions. |
client/src/features/organisations/profile/OrganisationHeader.tsx |
Hosts profile buttons. |
client/src/features/organisations/profile/OrganisationActions.tsx |
Implements organisation deletion flow. |
client/src/features/organisations/OrganisationsOverviewPage.tsx |
Displays deletion success messages. |
client/src/features/organisations/data/mutations.ts |
Adds deletion mutation and cache refreshes. |
client/src/features/organisations/api/api.ts |
Adds delete API call. |
client/src/components/SuccessMessageSnackbar.tsx |
Shows navigation-based success feedback. |
client/src/components/profile/ProfileTabBar.tsx |
Separates tabs from profile controls. |
client/src/components/profile/ProfileButtons.tsx |
Provides shared profile controls. |
client/src/components/profile/ProfileActionsButton.tsx |
Provides the actions menu. |
client/src/components/profile/DeleteProfileDialog.tsx |
Adds typed-name deletion confirmation. |
client/src/components/ConfirmationDialog.tsx |
Supports icons, content, and disabled confirmation. |
CLIENT_STRUCTURE.md |
Documents the new components. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.