diff --git a/fission/src/Synthesis.tsx b/fission/src/Synthesis.tsx index eb3510c25..badb33a28 100644 --- a/fission/src/Synthesis.tsx +++ b/fission/src/Synthesis.tsx @@ -41,9 +41,9 @@ import DriverStationPanel from "@/panels/simulation/DriverStationPanel" import PokerPanel from "@/panels/PokerPanel.tsx" import World from "@/systems/World.ts" import ImportLocalMirabufModal from "@/modals/mirabuf/ImportLocalMirabufModal.tsx" -// import ImportMirabufPanel from "@/ui/panels/mirabuf/ImportMirabufPanel.tsx" +import ImportMirabufPanel from "@/ui/panels/mirabuf/ImportMirabufPanel.tsx" import Skybox from "./ui/components/Skybox.tsx" -// import ChooseInputSchemePanel from "./ui/panels/configuring/ChooseInputSchemePanel.tsx" +import ChooseInputSchemePanel from "./ui/panels/configuring/ChooseInputSchemePanel.tsx" import ProgressNotifications from "./ui/components/ProgressNotification.tsx" import SceneOverlay from "./ui/components/SceneOverlay.tsx" @@ -54,8 +54,8 @@ import Lazy from "./util/Lazy.ts" import RCConfigPWMGroupModal from "@/modals/configuring/rio-config/RCConfigPWMGroupModal.tsx" import RCConfigCANGroupModal from "@/modals/configuring/rio-config/RCConfigCANGroupModal.tsx" import DebugPanel from "./ui/panels/DebugPanel.tsx" -// import NewInputSchemeModal from "./ui/modals/configuring/theme-editor/NewInputSchemeModal.tsx" -// import AssignNewSchemeModal from "./ui/modals/configuring/theme-editor/AssignNewSchemeModal.tsx" +import NewInputSchemeModal from "./ui/modals/configuring/theme-editor/NewInputSchemeModal.tsx" +import AssignNewSchemeModal from "./ui/modals/configuring/theme-editor/AssignNewSchemeModal.tsx" import AnalyticsConsent from "./ui/components/AnalyticsConsent.tsx" import PreferencesSystem from "./systems/preferences/PreferencesSystem.ts" import APSManagementModal from "./ui/modals/APSManagementModal.tsx" @@ -203,8 +203,8 @@ const initialModals = [ , , , - // , - // , + , + , , , , @@ -222,9 +222,9 @@ const initialPanels: ReactElement[] = [ , , , - // , + , , - // , + , , , , diff --git a/fission/src/ui/modals/configuring/theme-editor/AssignNewSchemeModal.tsx b/fission/src/ui/modals/configuring/theme-editor/AssignNewSchemeModal.tsx index 1f5c98bd2..f22846dde 100644 --- a/fission/src/ui/modals/configuring/theme-editor/AssignNewSchemeModal.tsx +++ b/fission/src/ui/modals/configuring/theme-editor/AssignNewSchemeModal.tsx @@ -6,8 +6,8 @@ import InputSystem from "@/systems/input/InputSystem" import SynthesisBrain from "@/systems/simulation/synthesis_brain/SynthesisBrain" import { SynthesisIcons } from "@/ui/components/StyledComponents" import { usePanelControlContext } from "@/ui/PanelContext" -import { ConfigurationType, setSelectedConfigurationType } from "@/ui/panels/configuring/assembly-config/ConfigurePanel" import { setSelectedScheme } from "@/ui/panels/configuring/assembly-config/interfaces/inputs/ConfigureInputsInterface" +import { setSelectedConfigurationType, ConfigurationType } from "@/ui/panels/configuring/assembly-config/ConfigurationType" const AssignNewSchemeModal: React.FC = ({ modalId }) => { const { openPanel } = usePanelControlContext() diff --git a/fission/src/ui/modals/configuring/theme-editor/NewInputSchemeModal.tsx b/fission/src/ui/modals/configuring/theme-editor/NewInputSchemeModal.tsx index 06b95d7a1..0fc468130 100644 --- a/fission/src/ui/modals/configuring/theme-editor/NewInputSchemeModal.tsx +++ b/fission/src/ui/modals/configuring/theme-editor/NewInputSchemeModal.tsx @@ -5,8 +5,8 @@ import InputSchemeManager from "@/systems/input/InputSchemeManager" import DefaultInputs from "@/systems/input/DefaultInputs" import { SynthesisIcons } from "@/ui/components/StyledComponents" import { usePanelControlContext } from "@/ui/PanelContext" -import { ConfigurationType, setSelectedConfigurationType } from "@/ui/panels/configuring/assembly-config/ConfigurePanel" import { setSelectedScheme } from "@/ui/panels/configuring/assembly-config/interfaces/inputs/ConfigureInputsInterface" +import { ConfigurationType, setSelectedConfigurationType } from "@/ui/panels/configuring/assembly-config/ConfigurationType" const NewInputSchemeModal: React.FC = ({ modalId }) => { const { openPanel } = usePanelControlContext() diff --git a/fission/src/ui/panels/configuring/assembly-config/ConfigurePanel.tsx b/fission/src/ui/panels/configuring/assembly-config/ConfigurePanel.tsx index 8624e5cae..299916c51 100644 --- a/fission/src/ui/panels/configuring/assembly-config/ConfigurePanel.tsx +++ b/fission/src/ui/panels/configuring/assembly-config/ConfigurePanel.tsx @@ -190,8 +190,7 @@ const ConfigInterface: React.FC = ({ configMode, assembly, return } default: - return <> - // throw new Error(`Config mode ${configMode} has no associated interface`) + throw new Error(`Config mode ${configMode} has no associated interface`) } } @@ -242,7 +241,6 @@ const ConfigurePanel: React.FC = ({ panelId }) => { {configurationType == ConfigurationType.INPUTS ? ( - // <> ) : ( <> {/** Select menu to pick a robot or field */}