From 96129d2339133027220d3b5fcb1c52f84bcc5cbb Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 24 May 2023 15:29:26 +0200 Subject: [PATCH 1/6] feat(front): make profile members link to profile on group admin view and the reverse Signed-off-by: Thomas Citharel --- js/src/views/Admin/AdminGroupProfile.vue | 58 +++++++++++++++++------- js/src/views/Admin/AdminProfile.vue | 48 ++++++++++++++------ 2 files changed, 76 insertions(+), 30 deletions(-) diff --git a/js/src/views/Admin/AdminGroupProfile.vue b/js/src/views/Admin/AdminGroupProfile.vue index 422672e2..a74050f2 100644 --- a/js/src/views/Admin/AdminGroupProfile.vue +++ b/js/src/views/Admin/AdminGroupProfile.vue @@ -114,26 +114,52 @@ >
-
- -
- + +
+ +
+ +
- {{ - props.row.actor.name - }}@{{ usernameWithDomain(props.row.actor) }}{{ props.row.actor.name }}@{{ usernameWithDomain(props.row.actor) }}
- @{{ usernameWithDomain(props.row.actor) }}@{{ usernameWithDomain(props.row.actor) }}
diff --git a/js/src/views/Admin/AdminProfile.vue b/js/src/views/Admin/AdminProfile.vue index 32ecf05d..9494ba99 100644 --- a/js/src/views/Admin/AdminProfile.vue +++ b/js/src/views/Admin/AdminProfile.vue @@ -199,23 +199,43 @@ v-slot="props" >
-
- -
- + +
+ +
+ +
- {{ - props.row.parent.name - }}{{ props.row.parent.name }}
- @{{ usernameWithDomain(props.row.parent) }} + @{{ usernameWithDomain(props.row.parent) }}
From 2933ee06791a24dbf8c8b2a2eabc67f71e56f361 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 24 May 2023 15:29:49 +0200 Subject: [PATCH 2/6] fix(graphql): fix calling GET_GROUP Signed-off-by: Thomas Citharel --- js/src/graphql/group.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/js/src/graphql/group.ts b/js/src/graphql/group.ts index c68278b5..689288b6 100644 --- a/js/src/graphql/group.ts +++ b/js/src/graphql/group.ts @@ -1,5 +1,4 @@ import gql from "graphql-tag"; -import { DISCUSSION_BASIC_FIELDS_FRAGMENT } from "./discussion"; import { RESOURCE_METADATA_BASIC_FIELDS_FRAGMENT } from "./resources"; import { POST_BASIC_FIELDS } from "./post"; import { ACTOR_FRAGMENT } from "./actor"; @@ -246,7 +245,6 @@ export const GROUP_FIELDS_FRAGMENTS = gql` } } ${GROUP_BASIC_FIELDS_FRAGMENTS} - ${DISCUSSION_BASIC_FIELDS_FRAGMENT} ${RESOURCE_METADATA_BASIC_FIELDS_FRAGMENT} `; @@ -278,8 +276,6 @@ export const GET_GROUP = gql` $postsLimit: Int $membersPage: Int $membersLimit: Int - $discussionsPage: Int - $discussionsLimit: Int ) { getGroup(id: $id) { mediaSize @@ -287,9 +283,6 @@ export const GET_GROUP = gql` } } ${GROUP_FIELDS_FRAGMENTS} - ${DISCUSSION_BASIC_FIELDS_FRAGMENT} - ${POST_BASIC_FIELDS} - ${RESOURCE_METADATA_BASIC_FIELDS_FRAGMENT} `; export const CREATE_GROUP = gql` From 3e0324d36ec5a8aa388e6b5d598a6f9a0c596797 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 24 May 2023 15:31:48 +0200 Subject: [PATCH 3/6] feat(front): make profiles and group admin views default to local Signed-off-by: Thomas Citharel --- js/src/views/Admin/GroupProfiles.vue | 2 +- js/src/views/Admin/ProfilesView.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/views/Admin/GroupProfiles.vue b/js/src/views/Admin/GroupProfiles.vue index cd30e587..dbd904ee 100644 --- a/js/src/views/Admin/GroupProfiles.vue +++ b/js/src/views/Admin/GroupProfiles.vue @@ -133,7 +133,7 @@ const preferredUsername = ref(""); const name = ref(""); const domain = ref(""); -const local = useRouteQuery("local", false, booleanTransformer); +const local = useRouteQuery("local", true, booleanTransformer); const suspended = useRouteQuery("suspended", false, booleanTransformer); const page = useRouteQuery("page", 1, integerTransformer); diff --git a/js/src/views/Admin/ProfilesView.vue b/js/src/views/Admin/ProfilesView.vue index 9d51b920..67bb16fb 100644 --- a/js/src/views/Admin/ProfilesView.vue +++ b/js/src/views/Admin/ProfilesView.vue @@ -119,7 +119,7 @@ const preferredUsername = ref(""); const name = ref(""); const domain = ref(""); -const local = useRouteQuery("local", false, booleanTransformer); +const local = useRouteQuery("local", true, booleanTransformer); const suspended = useRouteQuery("suspended", false, booleanTransformer); const page = useRouteQuery("page", 1, integerTransformer); From 94f186ce5080316cd633e0344651b0050c2f14d4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 24 May 2023 15:36:38 +0200 Subject: [PATCH 4/6] fix(front): increase padding next to arrow down in