From 8787a5c8bc98e11745bf48200763fb3d3e53024f Mon Sep 17 00:00:00 2001 From: andrewwallacespeckle <139135120+andrewwallacespeckle@users.noreply.github.com> Date: Mon, 2 Sep 2024 15:59:30 +0100 Subject: [PATCH] feat(fe2): Frontend should show a pre-filtered list of users for workspace members (#2845) * Show prefiltered list for members in workspace with project ownership rights * Fix: Added dropdown for project role * Fix typo --------- Co-authored-by: Mike Tasset --- .../components/form/select/ProjectRoles.vue | 3 +- .../components/project/page/InviteDialog.vue | 179 +++++++++++++----- .../components/projects/Dashboard.vue | 1 + .../lib/common/generated/gql/gql.ts | 4 +- .../lib/common/generated/gql/graphql.ts | 8 +- 5 files changed, 137 insertions(+), 58 deletions(-) diff --git a/packages/frontend-2/components/form/select/ProjectRoles.vue b/packages/frontend-2/components/form/select/ProjectRoles.vue index 148520d022..a9831b0ff4 100644 --- a/packages/frontend-2/components/form/select/ProjectRoles.vue +++ b/packages/frontend-2/components/form/select/ProjectRoles.vue @@ -3,7 +3,7 @@ v-model="selectedValue" :items="Object.values(Roles.Stream)" :multiple="multiple" - clearable + :clearable="clearable" name="projectRoles" label="Project roles" class="min-w-[150px]" @@ -57,6 +57,7 @@ const emit = defineEmits<{ const props = defineProps<{ multiple?: boolean modelValue?: ValueType + clearable?: boolean }>() const elementToWatchForChanges = ref(null as Nullable) diff --git a/packages/frontend-2/components/project/page/InviteDialog.vue b/packages/frontend-2/components/project/page/InviteDialog.vue index 501ec086c1..a705ba5076 100644 --- a/packages/frontend-2/components/project/page/InviteDialog.vue +++ b/packages/frontend-2/components/project/page/InviteDialog.vue @@ -2,65 +2,94 @@
- - - - -
- - +
+
+ +
+
Add users from workspace
+
+ +
+

No available users found.

+
+