| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- const aspectsArr = [1, 2, 3, 4, 5, 6]
-
- // Splash page is unique in survey steps and therefore is simply spliced in
- // during survey generation
- const splash = {
- response_key_id: 20,
- response_key_category: 'splash',
- response_key_prompt: 'splash page',
- response_key_description: 'required for splash page rendering',
- aspect: null,
- category: 'splash',
- component: 'Splash',
- survey_stage: 'splash',
- placeholder: null,
- invalidInputPrompt: null,
- }
-
- // Auth page is also unique in survey steps and is spliced in as well
- const auth = {
- response_key_id: 21,
- response_key_category: 'auth',
- response_key_prompt: 'auth page',
- response_key_description: 'required to authenticate user signup',
- aspect: null,
- category: 'auth',
- component: 'Auth',
- survey_stage: 'auth',
- placeholder: null,
- invalidInputPrompt: null,
- }
-
- // Easily reorder steps of survey here:
- const allSteps = {
- usa: {
- email: 'email',
- password: 'password',
- name: 'name',
- seeking: 'seeking',
- aspect01: 'aspect-1',
- aspect02: 'aspect-2',
- aspect03: 'aspect-3',
- zipcode: 'zipcode',
- urgency: 'urgency',
- aspect04: 'aspect-4',
- aspect05: 'aspect-5',
- aspect06: 'aspect-6',
- presence: 'presence',
- duration: 'duration',
- pronouns: 'pronouns',
- language: 'language',
- image: 'image',
- distance: 'distance',
- blurb: 'blurb',
- // experience: 'experience',
- // roles: 'role',
- },
- }
- const surveyStages = {
- 7: allSteps.usa.name,
- 8: allSteps.usa.email,
- 9: allSteps.usa.password,
- 10: allSteps.usa.zipcode,
- 11: allSteps.usa.seeking,
- 12: allSteps.usa.image,
- 13: allSteps.usa.language,
- 14: allSteps.usa.duration,
- 15: allSteps.usa.presence,
- 16: allSteps.usa.blurb,
- 17: allSteps.usa.urgency,
- 18: allSteps.usa.pronouns,
- 19: allSteps.usa.distance,
- 1: allSteps.usa.aspect01,
- 2: allSteps.usa.aspect02,
- 3: allSteps.usa.aspect03,
- 4: allSteps.usa.aspect04,
- 5: allSteps.usa.aspect05,
- 6: allSteps.usa.aspect06,
- }
-
- const aspectResponses = {
- usa: {
- never: 'never',
- rarely: 'rarely',
- not_really: 'not really',
- occasionally: 'occasionally',
- mostly: 'mostly',
- often: 'often',
- everytime: 'everytime',
- },
- }
-
- const possible = {}
- possible.usa = {
- email: [],
- name: [],
- seeking: ['position', 'candidate'],
- language: ['english', 'spanish'],
- // key 13
- urgency: [
- 'actively_looking',
- 'open_to_the_right_opportunity',
- 'casually_browsing',
- ],
- // key 11
- presence: ['remote', 'in_person', 'hybrid', 'flexible'],
- // key 10
- duration: ['full-time', 'part-time', 'contract', 'flexible'],
- // Experience and roles concat, key: 14
- // experience: ['associate', 'junior', 'mid-level', 'senior', 'staff'],
- // roles: {
- // type: [
- // 'back-end',
- // 'database',
- // 'front-end',
- // 'full-stack',
- // 'qa',
- // 'security',
- // 'system',
- // 'test',
- // ],
- // position: [
- // 'administrator',
- // 'analyst',
- // 'architect',
- // 'developer',
- // 'engineer',
- // 'manager',
- // 'technician',
- // ],
- // candidate: ['hiring_manager', 'recruiter'],
- // },
- pronouns: ['she/her', 'she/they', 'he/him', 'he/they', 'they/them'],
- // role: ['role1', 'role2'],
- image: [],
- zipcode: [],
- blurb: [],
- }
-
- export {
- allSteps,
- splash,
- auth,
- surveyStages,
- aspectResponses,
- aspectsArr,
- possible,
- }
|