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

Update structure.json #45

Merged
merged 2 commits into from
Feb 8, 2025
Merged
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
2 changes: 1 addition & 1 deletion scoutingapp/src/components/inputs/IncrementNumberInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function IncrementNumberInput(props: ComponentSetup) {
>
-
</button>
<div className={`flex w-1/3 h-full text-2xl float-left items-center ${color == "red" ? "bg-red-400" : color == "yellow" ? "bg-amber-300" : color == "blue" ? "bg-blue-500" : color == "green" ? "bg-green-400" : "bg-white"}`}>
<div className={`flex w-1/3 h-full text-2xl float-left items-center ${color == "red" ? "bg-red-400" : color == "yellow" ? "bg-amber-300" : color == "blue" ? "bg-blue-500" : color == "green" ? "bg-green-400" : color == "purple" ? "bg-purple-400" : color == "orange" ? "bg-orange-400" : "bg-white"}`}>
<p className={"text-center w-full"}>{counter}</p>
</div>
<button
Expand Down
69 changes: 59 additions & 10 deletions scoutingapp/src/config/structure.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,28 +74,73 @@
},
{
"type": "IncrementNumberInput",
"text": "Auto Speaker Cycles",
"text": "Auto Coral L1 Cycles",
"placeholder": [
"0"
],
"id": "AutoSpeaker"
"options": [
"red"
],
"id": "AutoCoralL1"
},
{
"type": "IncrementNumberInput",
"text": "Auto Amp Cycles",
"text": "Auto Coral L2 Cycles",
"placeholder": [
"0"
],
"id": "AutoAmp"
"options": [
"orange"
],
"id": "AutoCoralL2"
},
{
"type": "GenericToggle",
"text": "Did they intake from the centerline during auto?",
"id": "AutoCenterline"
"type": "IncrementNumberInput",
"text": "Auto Coral L3 Cycles",
"placeholder": [
"0"
],
"options": [
"yellow"
],
"id": "AutoCoralL3"
},
{
"type": "IncrementNumberInput",
"text": "Auto Coral L4 Cycles",
"placeholder": [
"0"
],
"options": [
"green"
],
"id": "AutoCoralL4"
},
{
"type": "IncrementNumberInput",
"text": "Auto Barge Cycles",
"placeholder": [
"0"
],
"options": [
"blue"
],
"id": "AutoBarge"
},
{
"type": "IncrementNumberInput",
"text": "Auto Processor Cycles",
"placeholder": [
"0"
],
"options": [
"purple"
],
"id": "AutoProcessor"
},
{
"type": "GenericToggle",
"text": "Did they leave the starting zone (white line)?",
"text": "Did they leave the starting zone (black line)?",
"id": "AutoLeave"
},
{
Expand Down Expand Up @@ -274,8 +319,12 @@
"Alliance",
"DriverStation",
"TeamNumber",
"AutoSpeaker",
"AutoAmp",
"AutoCoralL1",
"AutoCoralL2",
"AutoCoralL3",
"AutoCoralL4",
"AutoBarge",
"AutoProcessor",
"AutoCenterline",
"AutoLeave",
"AutoNotes",
Expand Down
Loading