Skip to content

Commit 472b0a1

Browse files
UwicyezaGkanu-cast
authored andcommitted
Fetch invitation statistics (#463)
1 parent c4ba4bf commit 472b0a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+995
-935
lines changed

src/Mutations/invitationStats.tsx

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { gql } from '@apollo/client';
2+
export const GET_INVITATIONS_STATISTICS_QUERY = gql`
3+
query GetInvitationStatistics($orgToken: String!){
4+
getInvitationStatistics(orgToken: $orgToken){
5+
totalInvitations
6+
pendingInvitationsCount
7+
getPendingInvitationsPercentsCount
8+
getAcceptedInvitationsPercentsCount
9+
acceptedInvitationsCount
10+
}
11+
}
12+
`;

src/components/tests/__snapshots__/AdminTraineeDashboard.test.tsx.snap

+91-128
Large diffs are not rendered by default.

src/components/tests/__snapshots__/ButtonLoading.test.tsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Button Loading Renders the button 1`] = `
44
<div
5-
className="flex w-fit py-1 px-3 bg-primary justify-center font-bold md"
5+
className="flex w-fit py-1 px-3 bg-primary justify-center font-bold md font-serif"
66
>
77
<div
88
className="flex w-full gap-2 justify-center items-center"

src/components/tests/__snapshots__/DashHeader.test.tsx.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
exports[`DashHeader test Should render DashHeader 1`] = `
44
<div
5-
className="w-screen py-4 z-20 bg-indigo-100 dark:bg-dark-bg page-header"
5+
className="font-serif w-screen py-4 z-20 bg-indigo-100 dark:bg-dark-bg page-header"
66
>
77
<div
8-
className="px-3 flex items-center w-full "
8+
className="px-3 flex items-center w-full font-serif"
99
>
1010
<div
1111
className="flex px-5 lg:hidden"
@@ -107,7 +107,7 @@ exports[`DashHeader test Should render DashHeader 1`] = `
107107
className="inline-flex relative items-center p-0 text-sm font-medium text-center text-black ml-auto dark:bg-dark-bg rounded-lg focus:ring-4 focus:outline-none focus:ring-blue-300 dark:focus:ring-blue-800"
108108
>
109109
<button
110-
className="min-w-fit px-4 cursor-pointer "
110+
className="min-w-fit px-4 cursor-pointer font-serif"
111111
id="theme-switch"
112112
onClick={[Function]}
113113
type="button"

src/components/tests/__snapshots__/Footer.test.tsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`<Footer/> Renders Header 1`] = `
44
<div
5-
className="w-full bg-indigo-100 dark:bg-dark-bg undefined page-footer"
5+
className="w-full bg-indigo-100 dark:bg-dark-bg undefined page-footer font-serif"
66
>
77
<div
88
className="px-2 flex flex-col lg:flex-row justify-between items-center w-full h-full"

src/components/tests/__snapshots__/Header.test.tsx.snap

+36-36
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Header Tests Should render the header with home 1`] = `
44
<div
5-
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined"
5+
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined font-serif"
66
>
77
<div
88
className="px-3 flex justify-between items-center w-full h-full"
@@ -103,7 +103,7 @@ exports[`Header Tests Should render the header with home 1`] = `
103103
className="hidden lg:flex w-2/3 justify-end "
104104
>
105105
<button
106-
className="min-w-fit px-4 cursor-pointer "
106+
className="min-w-fit px-4 cursor-pointer font-serif"
107107
id="theme-switch"
108108
onClick={[Function]}
109109
type="button"
@@ -127,7 +127,7 @@ exports[`Header Tests Should render the header with home 1`] = `
127127
onClick={[Function]}
128128
>
129129
<button
130-
className="btn primary lg undefined"
130+
className="btn primary lg undefined font-serif"
131131
disabled={false}
132132
type="button"
133133
>
@@ -141,7 +141,7 @@ exports[`Header Tests Should render the header with home 1`] = `
141141
onClick={[Function]}
142142
>
143143
<button
144-
className="btn transparentbtn lg mr-8"
144+
className="btn transparentbtn lg mr-8 font-serif"
145145
disabled={false}
146146
type="button"
147147
>
@@ -155,7 +155,7 @@ exports[`Header Tests Should render the header with home 1`] = `
155155
className="flex px-5 lg:hidden"
156156
>
157157
<button
158-
className="min-w-fit px-4 cursor-pointer "
158+
className="min-w-fit px-4 cursor-pointer font-serif"
159159
id="theme-switch"
160160
onClick={[Function]}
161161
type="button"
@@ -257,7 +257,7 @@ exports[`Header Tests Should render the header with home 1`] = `
257257
onClick={[Function]}
258258
>
259259
<button
260-
className="btn transparentbtn lg mr-8"
260+
className="btn transparentbtn lg mr-8 font-serif"
261261
disabled={false}
262262
type="button"
263263
>
@@ -272,7 +272,7 @@ exports[`Header Tests Should render the header with home 1`] = `
272272

273273
exports[`Header Tests Should render the header with no active 1`] = `
274274
<div
275-
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined"
275+
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined font-serif"
276276
>
277277
<div
278278
className="px-3 flex justify-between items-center w-full h-full"
@@ -372,7 +372,7 @@ exports[`Header Tests Should render the header with no active 1`] = `
372372
className="hidden lg:flex w-2/3 justify-end "
373373
>
374374
<button
375-
className="min-w-fit px-4 cursor-pointer "
375+
className="min-w-fit px-4 cursor-pointer font-serif"
376376
id="theme-switch"
377377
onClick={[Function]}
378378
type="button"
@@ -396,7 +396,7 @@ exports[`Header Tests Should render the header with no active 1`] = `
396396
onClick={[Function]}
397397
>
398398
<button
399-
className="btn primary lg undefined"
399+
className="btn primary lg undefined font-serif"
400400
disabled={false}
401401
type="button"
402402
>
@@ -410,7 +410,7 @@ exports[`Header Tests Should render the header with no active 1`] = `
410410
onClick={[Function]}
411411
>
412412
<button
413-
className="btn transparentbtn lg mr-8"
413+
className="btn transparentbtn lg mr-8 font-serif"
414414
disabled={false}
415415
type="button"
416416
>
@@ -424,7 +424,7 @@ exports[`Header Tests Should render the header with no active 1`] = `
424424
className="flex px-5 lg:hidden"
425425
>
426426
<button
427-
className="min-w-fit px-4 cursor-pointer "
427+
className="min-w-fit px-4 cursor-pointer font-serif"
428428
id="theme-switch"
429429
onClick={[Function]}
430430
type="button"
@@ -526,7 +526,7 @@ exports[`Header Tests Should render the header with no active 1`] = `
526526
onClick={[Function]}
527527
>
528528
<button
529-
className="btn transparentbtn lg mr-8"
529+
className="btn transparentbtn lg mr-8 font-serif"
530530
disabled={false}
531531
type="button"
532532
>
@@ -541,7 +541,7 @@ exports[`Header Tests Should render the header with no active 1`] = `
541541

542542
exports[`Header Tests Should render the header with no active 2`] = `
543543
<div
544-
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined"
544+
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined font-serif"
545545
>
546546
<div
547547
className="px-3 flex justify-between items-center w-full h-full"
@@ -631,7 +631,7 @@ exports[`Header Tests Should render the header with no active 2`] = `
631631
className="hidden lg:flex w-2/3 justify-end "
632632
>
633633
<button
634-
className="min-w-fit px-4 cursor-pointer "
634+
className="min-w-fit px-4 cursor-pointer font-serif"
635635
id="theme-switch"
636636
onClick={[Function]}
637637
type="button"
@@ -655,7 +655,7 @@ exports[`Header Tests Should render the header with no active 2`] = `
655655
onClick={[Function]}
656656
>
657657
<button
658-
className="btn primary lg undefined"
658+
className="btn primary lg undefined font-serif"
659659
disabled={false}
660660
type="button"
661661
>
@@ -665,7 +665,7 @@ exports[`Header Tests Should render the header with no active 2`] = `
665665
</button>
666666
</a>
667667
<button
668-
className="btn transparentbtn lg text-red-500 font-bolf dark:text-dark-text-fill mr-8 border border-red-600 dark:border-dark-text-fill"
668+
className="btn transparentbtn lg text-red-500 font-bolf dark:text-dark-text-fill mr-8 border border-red-600 dark:border-dark-text-fill font-serif"
669669
disabled={false}
670670
onClick={[Function]}
671671
type="button"
@@ -679,7 +679,7 @@ exports[`Header Tests Should render the header with no active 2`] = `
679679
className="flex px-5 lg:hidden"
680680
>
681681
<button
682-
className="min-w-fit px-4 cursor-pointer "
682+
className="min-w-fit px-4 cursor-pointer font-serif"
683683
id="theme-switch"
684684
onClick={[Function]}
685685
type="button"
@@ -768,7 +768,7 @@ exports[`Header Tests Should render the header with no active 2`] = `
768768
</a>
769769
</li>
770770
<button
771-
className="btn transparentbtn lg text-red-500 font-bolf dark:text-dark-text-fill mr-8 border border-red-600 dark:border-dark-text-fill"
771+
className="btn transparentbtn lg text-red-500 font-bolf dark:text-dark-text-fill mr-8 border border-red-600 dark:border-dark-text-fill font-serif"
772772
disabled={false}
773773
onClick={[Function]}
774774
type="button"
@@ -781,7 +781,7 @@ exports[`Header Tests Should render the header with no active 2`] = `
781781

782782
exports[`Header Tests Should render the header with no active 3`] = `
783783
<div
784-
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined"
784+
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined font-serif"
785785
>
786786
<div
787787
className="px-3 flex justify-between items-center w-full h-full"
@@ -882,7 +882,7 @@ exports[`Header Tests Should render the header with no active 3`] = `
882882
className="hidden lg:flex w-2/3 justify-end "
883883
>
884884
<button
885-
className="min-w-fit px-4 cursor-pointer "
885+
className="min-w-fit px-4 cursor-pointer font-serif"
886886
id="theme-switch"
887887
onClick={[Function]}
888888
type="button"
@@ -906,7 +906,7 @@ exports[`Header Tests Should render the header with no active 3`] = `
906906
onClick={[Function]}
907907
>
908908
<button
909-
className="btn primary lg undefined"
909+
className="btn primary lg undefined font-serif"
910910
disabled={false}
911911
type="button"
912912
>
@@ -920,7 +920,7 @@ exports[`Header Tests Should render the header with no active 3`] = `
920920
onClick={[Function]}
921921
>
922922
<button
923-
className="btn transparentbtn lg mr-8"
923+
className="btn transparentbtn lg mr-8 font-serif"
924924
disabled={false}
925925
type="button"
926926
>
@@ -934,7 +934,7 @@ exports[`Header Tests Should render the header with no active 3`] = `
934934
className="flex px-5 lg:hidden"
935935
>
936936
<button
937-
className="min-w-fit px-4 cursor-pointer "
937+
className="min-w-fit px-4 cursor-pointer font-serif"
938938
id="theme-switch"
939939
onClick={[Function]}
940940
type="button"
@@ -1036,7 +1036,7 @@ exports[`Header Tests Should render the header with no active 3`] = `
10361036
onClick={[Function]}
10371037
>
10381038
<button
1039-
className="btn transparentbtn lg mr-8"
1039+
className="btn transparentbtn lg mr-8 font-serif"
10401040
disabled={false}
10411041
type="button"
10421042
>
@@ -1051,7 +1051,7 @@ exports[`Header Tests Should render the header with no active 3`] = `
10511051

10521052
exports[`Header Tests Should render the header with pricing active 1`] = `
10531053
<div
1054-
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined"
1054+
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined font-serif"
10551055
>
10561056
<div
10571057
className="px-3 flex justify-between items-center w-full h-full"
@@ -1152,7 +1152,7 @@ exports[`Header Tests Should render the header with pricing active 1`] = `
11521152
className="hidden lg:flex w-2/3 justify-end "
11531153
>
11541154
<button
1155-
className="min-w-fit px-4 cursor-pointer "
1155+
className="min-w-fit px-4 cursor-pointer font-serif"
11561156
id="theme-switch"
11571157
onClick={[Function]}
11581158
type="button"
@@ -1176,7 +1176,7 @@ exports[`Header Tests Should render the header with pricing active 1`] = `
11761176
onClick={[Function]}
11771177
>
11781178
<button
1179-
className="btn primary lg undefined"
1179+
className="btn primary lg undefined font-serif"
11801180
disabled={false}
11811181
type="button"
11821182
>
@@ -1190,7 +1190,7 @@ exports[`Header Tests Should render the header with pricing active 1`] = `
11901190
onClick={[Function]}
11911191
>
11921192
<button
1193-
className="btn transparentbtn lg mr-8"
1193+
className="btn transparentbtn lg mr-8 font-serif"
11941194
disabled={false}
11951195
type="button"
11961196
>
@@ -1204,7 +1204,7 @@ exports[`Header Tests Should render the header with pricing active 1`] = `
12041204
className="flex px-5 lg:hidden"
12051205
>
12061206
<button
1207-
className="min-w-fit px-4 cursor-pointer "
1207+
className="min-w-fit px-4 cursor-pointer font-serif"
12081208
id="theme-switch"
12091209
onClick={[Function]}
12101210
type="button"
@@ -1306,7 +1306,7 @@ exports[`Header Tests Should render the header with pricing active 1`] = `
13061306
onClick={[Function]}
13071307
>
13081308
<button
1309-
className="btn transparentbtn lg mr-8"
1309+
className="btn transparentbtn lg mr-8 font-serif"
13101310
disabled={false}
13111311
type="button"
13121312
>
@@ -1321,7 +1321,7 @@ exports[`Header Tests Should render the header with pricing active 1`] = `
13211321

13221322
exports[`Header Tests Should render the header with product active 1`] = `
13231323
<div
1324-
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined"
1324+
className="w-screen h-[8vh] z-10 bg-white dark:bg-dark-bg page-header undefined font-serif"
13251325
>
13261326
<div
13271327
className="px-3 flex justify-between items-center w-full h-full"
@@ -1421,7 +1421,7 @@ exports[`Header Tests Should render the header with product active 1`] = `
14211421
className="hidden lg:flex w-2/3 justify-end "
14221422
>
14231423
<button
1424-
className="min-w-fit px-4 cursor-pointer "
1424+
className="min-w-fit px-4 cursor-pointer font-serif"
14251425
id="theme-switch"
14261426
onClick={[Function]}
14271427
type="button"
@@ -1445,7 +1445,7 @@ exports[`Header Tests Should render the header with product active 1`] = `
14451445
onClick={[Function]}
14461446
>
14471447
<button
1448-
className="btn primary lg undefined"
1448+
className="btn primary lg undefined font-serif"
14491449
disabled={false}
14501450
type="button"
14511451
>
@@ -1459,7 +1459,7 @@ exports[`Header Tests Should render the header with product active 1`] = `
14591459
onClick={[Function]}
14601460
>
14611461
<button
1462-
className="btn transparentbtn lg mr-8"
1462+
className="btn transparentbtn lg mr-8 font-serif"
14631463
disabled={false}
14641464
type="button"
14651465
>
@@ -1473,7 +1473,7 @@ exports[`Header Tests Should render the header with product active 1`] = `
14731473
className="flex px-5 lg:hidden"
14741474
>
14751475
<button
1476-
className="min-w-fit px-4 cursor-pointer "
1476+
className="min-w-fit px-4 cursor-pointer font-serif"
14771477
id="theme-switch"
14781478
onClick={[Function]}
14791479
type="button"
@@ -1575,7 +1575,7 @@ exports[`Header Tests Should render the header with product active 1`] = `
15751575
onClick={[Function]}
15761576
>
15771577
<button
1578-
className="btn transparentbtn lg mr-8"
1578+
className="btn transparentbtn lg mr-8 font-serif"
15791579
disabled={false}
15801580
type="button"
15811581
>

src/components/tests/__snapshots__/ProfileCoverpage.test.tsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`<ProfileTabs/> Renders Profile Tabs 1`] = `
44
<div
5-
className="bg-cover bg-no-repeat bg-defaultCover bg-center bg-fixed h-[28vh] md:h-[26vh] flex flex-row text-center align-center items-center"
5+
className="font-serif bg-cover bg-no-repeat bg-defaultCover bg-center bg-fixed h-[28vh] md:h-[26vh] flex flex-row text-center align-center items-center"
66
style={
77
Object {
88
"backgroundImage": "url(https://images.unsplash.com/photo-1483168527879-c66136b56105?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3016&q=80)",

src/components/tests/__snapshots__/ProfileDropdown.test.tsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`<ProfileDropdown/> Renders the Dropdown 1`] = `
44
<div
5-
className="w-screen h-screen fixed top-0 left-0 z-50 px-4"
5+
className="font-serif w-screen h-screen fixed top-0 left-0 z-50 px-4"
66
>
77
<div
88
aria-label="background"

0 commit comments

Comments
 (0)