Skip to content

[INTS25] - Add "Times Applied" Column to Review Dashboard #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions components/admin/ReviewTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ const ReviewTable: React.FC<TableProps> = ({

const createStudentRow = (application: any) => {
const app = application.application;
const mapToNumericalValue = {
"This is my first time!": "0",
Once: "1",
Twice: "2",
"3 or more": "3+",
};

return {
id: app.id,
Expand All @@ -78,6 +84,7 @@ const ReviewTable: React.FC<TableProps> = ({
),
term: app.academicYear,
program: app.program,
timesApplied: mapToNumericalValue[app.timesApplied],
status: app.status,
secondChoice: app.secondChoiceRole,
secondChoiceStatus: app.secondChoiceStatus,
Expand Down
9 changes: 9 additions & 0 deletions components/admin/ReviewTableColumn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ export const getReviewTableColumns = (): MUIDataTableColumn[] => {
searchable: true,
},
},
{
name: "timesApplied",
label: "Times Applied",
options: {
filter: false,
sort: true,
searchable: true,
},
},
{
name: "score",
label: "Score",
Expand Down
3 changes: 3 additions & 0 deletions graphql/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const queries = {
lastName
locationPreference
program
timesApplied
pronouns
pronounsSpecified
resumeUrl
Expand All @@ -70,6 +71,7 @@ export const applicationTableQueries = {
academicYear
resumeUrl
program
timesApplied
status
secondChoiceRole
secondChoiceStatus
Expand Down Expand Up @@ -97,6 +99,7 @@ export const applicationTableQueries = {
academicYear
resumeUrl
program
timesApplied
status
secondChoiceRole
secondChoiceStatus
Expand Down
Loading