| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- 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,
- }
-
- // Order of surveyStages is strongly correlated with order of response_keys
- // in backend's mock.js
- const surveyStages = [
- 'aspect-1',
- 'aspect-2',
- 'aspect-3',
- 'aspect-4',
- 'aspect-5',
- 'aspect-6',
- 'name',
- 'email',
- 'password',
- 'zipcode',
- 'seeking',
- 'image',
- 'language',
- 'duration',
- 'presence',
- 'blurb',
- 'urgency',
- 'pronouns',
- 'distance'
- ]
-
- // TODO: in utils/survey.js modify _setSteps() to reorder survey steps from here
- const allSteps = {
- usa: {
- splash: 'splash',
- name: 'name',
- aspect01: 'aspect-1',
- aspect02: 'aspect-2',
- aspect03: 'aspect-3',
- password: 'password',
- zipcode: 'zipcode',
- seeking: 'seeking',
- urgency: 'urgency',
- aspect04: 'aspect-4',
- aspect05: 'aspect-5',
- aspect06: 'aspect-6',
- email: 'email',
- presence: 'presence',
- duration: 'duration',
- pronouns: 'pronouns',
- language: 'language',
- image: 'image',
- distance: 'distance',
- blurb: 'blurb',
- // experience: 'experience',
- // roles: 'role',
- },
- }
-
- 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,
- surveyStages,
- aspectResponses,
- aspectsArr,
- possible,
- }
|