Skip to content
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

Improve hacker export feature #1023

Open
wants to merge 1 commit into
base: develop
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
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
28 changes: 16 additions & 12 deletions src/features/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,10 @@ class SearchContainer extends React.Component<{}, ISearchState> {
this.state.account &&
this.state.account.accountType === UserType.STAFF
) {
headers.push({ label: CONSTANTS.AGE_LABEL, key: 'accountId.age' });
headers.push({ label: CONSTANTS.PHONE_NUMBER_LABEL, key: 'accountId.age' });
headers.push({ label: 'Resume', key: 'application.general.URL.resume' });
headers.push({ label: 'Github', key: 'application.general.URL.github' });
headers.push({
label: CONSTANTS.DRIBBBLE_LINK_LABEL,
key: 'application.general.URL.dribbble',
});
headers.push({
label: CONSTANTS.PERSONAL_LABEL,
key: 'application.general.URL.personal',
Expand All @@ -222,6 +220,10 @@ class SearchContainer extends React.Component<{}, ISearchState> {
label: CONSTANTS.OTHER_LINK_LABEL,
key: 'application.general.URL.other',
});
headers.push({
label: 'Number of previous hackathons',
key: 'application.shortAnswer.previousHackathons'
})
headers.push({
label: CONSTANTS.SKILLS_LABEL,
key: 'application.shortAnswer.skills',
Expand All @@ -242,10 +244,10 @@ class SearchContainer extends React.Component<{}, ISearchState> {
label: CONSTANTS.SHIRT_SIZE_LABEL,
key: 'application.accommodation.shirtSize',
});
headers.push({
label: CONSTANTS.ATTENDENCE_OPTION_PREFERENCE_LABEL,
key: 'application.accommodation.attendancePreference',
});
// headers.push({
// label: CONSTANTS.ATTENDENCE_OPTION_PREFERENCE_LABEL,
// key: 'application.accommodation.attendancePreference',
// });
headers.push({
label: CONSTANTS.IMPAIRMENTS_LABEL,
key: 'application.accommodation.impairments',
Expand All @@ -254,10 +256,10 @@ class SearchContainer extends React.Component<{}, ISearchState> {
label: CONSTANTS.BARRIERS_LABEL,
key: 'application.accommodation.barriers',
});
headers.push({
label: CONSTANTS.TRAVEL_LABEL,
key: 'application.accommodation.travel',
});
// headers.push({
// label: CONSTANTS.TRAVEL_LABEL,
// key: 'application.accommodation.travel',
// });
headers.push({
label: CONSTANTS.ETHNICITY_LABEL,
key: 'application.other.ethnicity',
Expand All @@ -271,6 +273,8 @@ class SearchContainer extends React.Component<{}, ISearchState> {
label: CONSTANTS.PRONOUN_LABEL,
key: 'accountId.pronoun',
});
headers.push({label: CONSTANTS.DIETARY_RESTRICTIONS_LABEL, key: 'accountId.dietaryRestrictions'});
headers.push({label: 'Authorize MLH to send emails', key: 'application.other.sendEmail'})
}
const tempHeaders: string[] = [];
headers.forEach((header) => {
Expand Down