Skip to content

Commit 12427fb

Browse files
authored
Added BulkRatingModal (#597)
1 parent 244d11c commit 12427fb

15 files changed

+839
-59
lines changed

Diff for: package-lock.json

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
"url-polyfill": "^1.1.12",
119119
"vite": "^5.4.7",
120120
"vite-tsconfig-paths": "^5.0.1",
121+
"xlsx": "^0.18.5",
121122
"zod": "^3.23.8"
122123
},
123124
"devDependencies": {

Diff for: src/Mutations/Ratings.tsx

+52
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,55 @@ export const REJECT_RATING = gql`
149149
rejectRating(user: $user, sprint: $sprint)
150150
}
151151
`;
152+
153+
export const GET_RATINGS_BY_COHORT = gql`
154+
query getRatingsByCohort($cohortId: String!, $orgToken: String!){
155+
getRatingsByCohort(cohortId: $cohortId, orgToken: $orgToken){
156+
id
157+
sprint
158+
}
159+
}
160+
`
161+
162+
export const ADD_RATINGS_BY_FILE = gql`
163+
mutation addRatingsByFile($file: Upload!, $cohortId: String!, $sprint: Int!, $orgToken: String!){
164+
addRatingsByFile(file: $file, cohortId: $cohortId, sprint: $sprint orgToken: $orgToken){
165+
NewRatings {
166+
user {
167+
email
168+
}
169+
sprint
170+
phase
171+
quality
172+
quantity
173+
professional_Skills
174+
feedbacks {
175+
sender {
176+
email
177+
}
178+
content
179+
createdAt
180+
}
181+
cohort {
182+
name
183+
}
184+
}
185+
RejectedRatings{
186+
email
187+
quantity
188+
quality
189+
professional_skills
190+
feedBacks
191+
}
192+
UpdatedRatings {
193+
quantity
194+
quality
195+
professional_Skills
196+
feedbacks {
197+
content
198+
}
199+
oldFeedback
200+
}
201+
}
202+
}
203+
`

Diff for: src/Mutations/cohortMutations.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,12 @@ export const DeleteCohort = gql`
4343
}
4444
}
4545
`;
46+
47+
export const GET_USER_COHORTS = gql`
48+
query getUserCohorts($orgToken: String!){
49+
getUserCohorts(orgToken: $orgToken) {
50+
id
51+
name
52+
}
53+
}
54+
`

Diff for: src/Mutations/teamMutation.tsx

+12
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,15 @@ export const DeleteTeam = gql`
5353
}
5454
`;
5555

56+
export const GET_TEAMS_BY_COHORT = gql`
57+
query getTeamsByCohort($cohortId: String!,$orgToken: String!) {
58+
getTeamsByCohort(cohortId: $cohortId,orgToken: $orgToken){
59+
id
60+
name
61+
members {
62+
email
63+
role
64+
}
65+
}
66+
}
67+
`

0 commit comments

Comments
 (0)