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

Broaden Global State and be able to Import JSON Tutorial into Global State #67

Open
henrievjen opened this issue Feb 24, 2021 · 0 comments

Comments

@henrievjen
Copy link
Contributor

henrievjen commented Feb 24, 2021

Use this schema as reference for the global state of the app and

to figure out the structure of a tutorial JSON file

type AppState {
initialContent:
tutorialState: {
selectedTutorial: String!
currentStep: Number!
currentOutput: Output!
}
editorState: {
editor: {
selectedTutorial: String!
selectedStep: Number!
isSaved: Boolean!
}
# Editable tutorial data structure
tutorialInstance: Tutorial!
}
}

type Tutorial {
name: String!
description: String!
instructions: [Instruction]
}

type Instruction {
title: String!
hint: String!
output: Output!
content: [InstructionContent]!
solution: String!
}

type Output {
status: String!
terminalMsg: String?
droneState: DroneState!
}

type InstructionContent {
type: String!
value: String!
}

type DroneState {
pitch: Number
yaw: Number
roll: Number
armed: Boolean
velocity: Number
direction: String
altitude: Number
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant