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.
Changes proposed ✍️
What
🤖 Generated by Copilot at fe64d49
This pull request adds a new feature to the frontend that allows users to merge two organizations from different places in the UI. It introduces four new components:
organization-list-toolbar
,organization-dropdown
,organization-merge-dialog
, andorganization-selection-dropdown
that handle the UI and logic for the merge feature. It also adds two new methods to theorganization-service.js
file that make API calls to the backend for merging and not merging two organizations.
🤖 Generated by Copilot at fe64d49
Why
How
🤖 Generated by Copilot at fe64d49
organization-merge-dialog
that displays a modal dialog for merging two organizations (link)OrganizationService.mergeOrganizations
method to make the API call to the backend (link, link)app-organization-merge-suggestions-details
andapp-organization-selection-dropdown
to show the details and options of the organizations to merge (link)organization-selection-dropdown
that displays a dropdown input for selecting an organization to merge with (link)OrganizationService.listAutocomplete
andOrganizationService.find
methods to get the list of options and the details of the selected organization (link)app-autocomplete-one-input
andapp-avatar
components to render the dropdown input and the option slot (link)organization-list-toolbar
component that allows the user to merge two selected organizations (link)handleMergeOrganizations
to call theOrganizationService.mergeOrganizations
method and refresh the organization list (link, link)organization-dropdown
component that allows the user to merge the current organization with another one (link)organization-dropdown
component in theorganization-view-header
component that listens to the 'merge' event and assigns the current organization to theisMergeDialogOpen
variable (link)organization-view-header
component that renders theorganization-merge-dialog
component with a v-model that binds to theisMergeDialogOpen
variable (link, link)organization-view-header
component that holds the value of the organization to merge with, or null if none is selected (link)Checklist ✅
Feature
,Improvement
, orBug
.