{"size": 6759, "ext": "js", "max_stars_repo_path": "src/utils/data.js", "max_stars_repo_name": "AJKemps/story-squad-fe-c", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/utils/data.js", "max_issues_repo_name": "AJKemps/story-squad-fe-c", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utils/data.js", "max_forks_repo_name": "AJKemps/story-squad-fe-c", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.1625, "max_line_length": 149, "alphanum_fraction": 0.6246486167}
// ScreenData is used to serve as the repo for screen and game state
// 1. display instruction panel content for the state
// 2. route that each state belongs too
// 3. game related state also have a game control that can navigate to and from the state

export const screenData = {
  home: {
    route: '/',
  },
  MISSION_NOT_STARTED: {
    route: '/dashboard',
    instruction: {
      title: 'Welcome to Story Squad',
      content: 'Accept your mission to start an adventure!',
      buttonLabel: 'OK',
      navigateToOnClick: null,
      hasShown: false,
      showEveryTime: false,
      isModal: false,
    },
  },
  submissionStart: {
    route: '/mission',
    instruction: {
      title: 'Are you ready to accept the challenge?',
      content:
        "To begin your journey, click the 'READ' icon to start the story!\n",
      buttonLabel: 'OK',
      navigateToOnClick: null,
      showEveryTime: false,
      hasShown: false,
      isModal: false,
    },
  },
  incompleteSubmissions: {
    route: '/mission',
    instruction: {
      title: 'Incomplete Submissions',
      content:
        'You have not completed all required submissions, click accept mission to resume',
      buttonLabel: 'OK',
      navigateToOnClick: null,
      showEveryTime: false,
      hasShown: true,
      isModal: false,
    },
  },
  readComplete: {
    route: '/mission',
    instruction: {
      title: 'Great Job!',
      content: 'Its time to get creative. Click on one of the prompts.',
      buttonLabel: 'OK',
      navigateToOnClick: null,
      hasShown: false,
      showEveryTime: false,
      isModal: false,
    },
  },
  submissionWriteStart: {
    route: '/mission/write',
    instruction: {
      title: 'Instruction',
      content:
        'Once you finish writing your story, please take a picture of all your pages and upload them. After all, pages are uploaded, click submit. ',
      buttonLabel: 'OK',
      showEveryTime: false,
      navigateToOnClick: null,
      isModal: false,
    },
  },
  submissionWriteComplete: {
    route: '/mission',
    instruction: {
      title: 'Submitted',
      content: 'Your Story has been submitted',
      buttonLabel: 'OK',
      navigateToOnClick: null,
      hasShown: false,
      showEveryTime: false,
      isModal: false,
    },
  },
  submissionDrawStart: {
    route: '/mission/draw',
    instruction: {
      title: 'Instruction',
      content:
        'Once you finish your drawing, please take a picture of all your pages and upload them. After all, pages are uploaded, click submit. ',
      buttonLabel: 'OK',
      navigateToOnClick: null,
      hasShown: false,
      showEveryTime: false,
      isModal: false,
    },
  },
  submissionDrawComplete: {
    route: '/mission',
    instruction: {
      title: 'Submitted',
      content: 'Your drawing has been submitted',
      buttonLabel: 'OK',
      navigateToOnClick: null,
      hasShown: false,
      showEveryTime: false,
      isModal: false,
    },
  },
  // All submission completed
  pendingSubmissionModeration: {
    route: '/mission',
    instruction: {
      title: 'All Submission Received',
      content:
        'Check back on Wednesday. If your submissions have been approved, you will be able to move onto the next phase - Meet your partner',
      buttonLabel: 'Back to Dashboard',
      navigateToOnClick: '/dashboard',
      hasShown: false,
      showEveryTime: false,
      isModal: true,
    },
  },
  submissionsCompleteApproved: {
    route: '/mission',
    instruction: {
      title: 'Your submissions have been approved',
      content: 'Its time to join your Squad!  Click the button to continue',
      buttonLabel: 'Squad Up',
      hasShown: false,
      navigateToOnClick: '/game/squad-up',
      showEveryTime: true,
      isModal: false,
    },
  },
  GAME_SQUAD_UP: {
    route: '/game/squad-up',
    instruction: {
      title: 'Meet your Squad Partner',
      content:
        'You have been partner up with xxx, Click "Share Points to move to next stage"',
      buttonLabel: 'Ok',
      hasShown: false,
      navigateToOnClick: null,
      showEveryTime: false,
      isModal: false,
    },
    gameControl: {
      nextButtonLabel: 'Share Points',
      previousButtonLabel: 'Back',
      navigateToOnNextButtonClick: '/game/share-points',
      navigateToOnPrevButtonClick: '/game/squad-up',
    },
  },
  GAME_SHARE_POINTS: {
    route: '/game/share-points',
    instruction: {
      title: 'Ready Squad!',
      content:
        "Read your partner's story, view their drawing and share some points.m" +
        'You have 00:00 until the match begins please assign points',
      buttonLabel: 'Ok',
      hasShown: false,
      navigateToOnClick: null,
      showEveryTime: false,
      isModal: false,
    },
    gameControl: {
      nextButtonLabel: 'Match Up!',
      previousButtonLabel: 'Back',
      navigateToOnNextButtonClick: '/game/match-up',
      navigateToOnPrevButtonClick: '/game/squad-up',
    },
  },

  GAME_MATCHUP: {
    route: '/game/match-up',
    instruction: {
      title: 'You are matched up',
      content:
        'Team Show Fries, you are matched up with Star Dog.  \n ' +
        'Click on each vote button to vote for your favorite story. You will need three votes to enter match',
      buttonLabel: 'Ok',
      hasShown: false,
      navigateToOnClick: null,
      showEveryTime: false,
      isModal: false,
    },
    gameControl: {
      nextButtonLabel: 'Vote!',
      previousButtonLabel: 'Back',
      navigateToOnNextButtonClick: '/game/vote',
      navigateToOnPrevButtonClick: '/game/squad-up',
    },
  },

  // gameVote: {
  INDEPENDENT_VOTING: {
    route: '/game/vote',
    instruction: {
      title: 'Vote for your favorite',
      content: 'Select your favorite story or drawing with emoji',
      buttonLabel: 'Ok',
      hasShown: false,
      navigateToOnClick: null,
      showEveryTime: false,
    },

    gameControl: {
      nextButtonLabel: 'Submit',
      previousButtonLabel: 'Back',
      navigateToOnNextButtonClick: '/game/match-up',
      navigateToOnPrevButtonClick: '/game/match-up',
    },
  },
  PENDING_RESULT: {
    route: '/game/match-up',
    instruction: {
      title: 'Vote for your favorite',
      content: 'Select your favorite story or drawing with emoji',
      buttonLabel: 'Ok',
      hasShown: false,
      navigateToOnClick: null,
      showEveryTime: false,
    },

    gameControl: {
      nextButtonLabel: 'Submit',
      previousButtonLabel: 'Back',
      navigateToOnNextButtonClick: '/game/match-up',
      navigateToOnPrevButtonClick: '/game/match-up',
    },
  },
};

const instructionsShown = [];

export function getScreenStateByGameState(gameState) {
  return screenData[gameState].route;
}
