Skip to content

Added an option to delete trainees, volunteers and organisations - #418

Merged
stasel merged 1 commit into
mainfrom
frontend/delete-ui
Oct 7, 2026
Merged

stasel merged 1 commit into
mainfrom
frontend/delete-ui

Conversation

@stasel

@stasel stasel commented Oct 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings October 7, 2026 13:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@stasel
stasel merged commit 1aa219f into main Oct 7, 2026
4 checks passed
@stasel
stasel deleted the frontend/delete-ui branch October 7, 2026 18:29
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.

2 participants