Participation panel revamp and fixes

Apollo is a pain in the ass with pagination & filters, so this removes
the tabs system and uses a <select> to filter instead

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-06-18 15:23:05 +02:00
parent 8676582080
commit b61d12b5fd
18 changed files with 347 additions and 486 deletions

View File

@@ -212,6 +212,7 @@ export const LOGGED_USER_PARTICIPATIONS = gql`
}
}
participantStats {
going
notApproved
participant
}

View File

@@ -1,5 +1,4 @@
import gql from "graphql-tag";
import { COMMENT_FIELDS_FRAGMENT } from "@/graphql/comment";
const participantQuery = `
role,
@@ -466,6 +465,8 @@ export const PARTICIPANTS = gql`
query($uuid: UUID!, $page: Int, $limit: Int, $roles: String, $actorId: ID!) {
event(uuid: $uuid) {
id,
uuid,
title,
participants(page: $page, limit: $limit, roles: $roles, actorId: $actorId) {
${participantsQuery}
},