Skip to content

Commit

Permalink
Added BulkRatingModal
Browse files Browse the repository at this point in the history
  • Loading branch information
shema-surge committed Oct 31, 2024
1 parent fe125aa commit d1c2270
Show file tree
Hide file tree
Showing 16 changed files with 1,054 additions and 90 deletions.
61 changes: 61 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"url-polyfill": "^1.1.12",
"vite": "^5.4.7",
"vite-tsconfig-paths": "^5.0.1",
"xlsx": "^0.18.5",
"zod": "^3.23.8"
},
"devDependencies": {
Expand Down
52 changes: 52 additions & 0 deletions src/Mutations/Ratings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,55 @@ export const REJECT_RATING = gql`
rejectRating(user: $user, sprint: $sprint)
}
`;

export const GET_RATINGS_BY_COHORT = gql`
query getRatingsByCohort($cohortId: String!, $orgToken: String!){
getRatingsByCohort(cohortId: $cohortId, orgToken: $orgToken){
id
sprint
}
}
`

export const ADD_RATINGS_BY_FILE = gql`
mutation addRatingsByFile($file: Upload!, $cohortId: String!, $sprint: Int!, $orgToken: String!){
addRatingsByFile(file: $file, cohortId: $cohortId, sprint: $sprint orgToken: $orgToken){
NewRatings {
user {
email
}
sprint
phase
quality
quantity
professional_Skills
feedbacks {
sender {
email
}
content
createdAt
}
cohort {
name
}
}
RejectedRatings{
email
quantity
quality
professional_skills
feedBacks
}
UpdatedRatings {
quantity
quality
professional_Skills
feedbacks {
content
}
oldFeedback
}
}
}
`
9 changes: 9 additions & 0 deletions src/Mutations/cohortMutations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@ export const DeleteCohort = gql`
}
}
`;

export const GET_USER_COHORTS = gql`
query getUserCohorts($orgToken: String!){
getUserCohorts(orgToken: $orgToken) {
id
name
}
}
`
12 changes: 12 additions & 0 deletions src/Mutations/teamMutation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,15 @@ export const DeleteTeam = gql`
}
`;

export const GET_TEAMS_BY_COHORT = gql`
query getTeamsByCohort($cohortId: String!,$orgToken: String!) {
getTeamsByCohort(cohortId: $cohortId,orgToken: $orgToken){
id
name
members {
email
role
}
}
}
`
Loading

0 comments on commit d1c2270

Please sign in to comment.