Skip to content

#14 Feature: Remove Collaborator From Board#70

Merged
msaeedsaeedi merged 2 commits into
v0.2.0from
14-feature-remove-collaborator-from-board
Jun 13, 2025
Merged

#14 Feature: Remove Collaborator From Board#70
msaeedsaeedi merged 2 commits into
v0.2.0from
14-feature-remove-collaborator-from-board

Conversation

@msaeedsaeedi

Copy link
Copy Markdown
Owner

Description

This pull request introduces a new feature for removing collaborators from boards, along with related backend and frontend changes. The backend now supports a DELETE endpoint for collaborator removal, while the frontend integrates this functionality into the board collaborators dialog. Below is a summary of the key changes:

Backend Changes

  • Added a new DeleteCollaboratorDto class to validate the email of the collaborator to be removed (apps/backend/src/board/dto/deleteCollaborator.dto.ts).
  • Implemented a removeCollaborator method in the BoardService to handle the removal logic, including error handling for non-existent collaborators (apps/backend/src/board/board.service.ts).
  • Added a removeCollaborator endpoint to the BoardController for handling DELETE requests (apps/backend/src/board/board.controller.ts).

Frontend Changes

  • Updated the board collaborators dialog to include a "Remove" button for each collaborator, styled with a trash icon, and wired it to call the new handleCollaboratorRemove method (apps/frontend/src/app/components/board-collaborators-dialog/board-collaborators-dialog.component.html).
  • Added the handleCollaboratorRemove method to the BoardCollaboratorsDialogComponent to interact with the backend and update the UI upon successful removal (apps/frontend/src/app/components/board-collaborators-dialog/board-collaborators-dialog.component.ts).
  • Introduced a removeCollaborator method in the frontend BoardService to send DELETE requests to the backend (apps/frontend/src/app/services/board.service.ts).

Miscellaneous Changes

  • Adjusted the layout and styles in the board collaborators dialog for better alignment and spacing (apps/frontend/src/app/components/board-collaborators-dialog/board-collaborators-dialog.component.html).
  • Refactored collaborator role control logic into a reusable method for cleaner code structure (apps/frontend/src/app/components/board-collaborators-dialog/board-collaborators-dialog.component.ts).

Issue

closes #14

@msaeedsaeedi msaeedsaeedi self-assigned this Jun 13, 2025
@msaeedsaeedi msaeedsaeedi added the feature New functionality label Jun 13, 2025
@changeset-bot

changeset-bot Bot commented Jun 13, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 12ece18

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@archboard/frontend Minor
@archboard/backend Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@msaeedsaeedi
msaeedsaeedi marked this pull request as ready for review June 13, 2025 06:33
@msaeedsaeedi
msaeedsaeedi merged commit 3090736 into v0.2.0 Jun 13, 2025
1 check passed
@msaeedsaeedi
msaeedsaeedi deleted the 14-feature-remove-collaborator-from-board branch June 13, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant