From 7ad2d7084cd589017e252db72bcf69e88cb815dd Mon Sep 17 00:00:00 2001 From: olli <80164276+ollibowers@users.noreply.github.com> Date: Mon, 8 Jan 2024 10:38:43 +1100 Subject: [PATCH] fix: commented out ctf code (#1096) --- backend/server/server.py | 5 +++-- .../src/pages/TermPlanner/OptionsHeader/OptionsHeader.tsx | 6 ------ .../TermPlanner/ValidateCtfButton/ValidateCtfButton.tsx | 1 + 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/backend/server/server.py b/backend/server/server.py index 626688053..183a1c982 100644 --- a/backend/server/server.py +++ b/backend/server/server.py @@ -6,7 +6,7 @@ from fastapi.middleware.cors import CORSMiddleware from data.config import LIVE_YEAR -from server.routers import courses, planner, programs, specialisations, followups, ctf +from server.routers import courses, planner, programs, specialisations, followups app = FastAPI() @@ -45,7 +45,8 @@ app.include_router(programs.router) app.include_router(specialisations.router) app.include_router(followups.router) -app.include_router(ctf.router) +# TODO: hide this behind a feature flag? +# app.include_router(ctf.router) @app.get("/") diff --git a/frontend/src/pages/TermPlanner/OptionsHeader/OptionsHeader.tsx b/frontend/src/pages/TermPlanner/OptionsHeader/OptionsHeader.tsx index 5365a2589..a2b682227 100644 --- a/frontend/src/pages/TermPlanner/OptionsHeader/OptionsHeader.tsx +++ b/frontend/src/pages/TermPlanner/OptionsHeader/OptionsHeader.tsx @@ -20,7 +20,6 @@ import HelpMenu from '../HelpMenu/HelpMenu'; import ImportPlannerMenu from '../ImportPlannerMenu'; import SettingsMenu from '../SettingsMenu'; import { isPlannerEmpty } from '../utils'; -import ValidateCtfButton from '../ValidateCtfButton/ValidateCtfButton'; import S from './styles'; // Used for tippy stylings import 'tippy.js/dist/tippy.css'; @@ -95,11 +94,6 @@ const OptionsHeader = ({ plannerRef }: Props) => { - -
- -
-
{!isPlannerEmpty(years) && ( diff --git a/frontend/src/pages/TermPlanner/ValidateCtfButton/ValidateCtfButton.tsx b/frontend/src/pages/TermPlanner/ValidateCtfButton/ValidateCtfButton.tsx index 9acb9cdfb..c7799ae2a 100644 --- a/frontend/src/pages/TermPlanner/ValidateCtfButton/ValidateCtfButton.tsx +++ b/frontend/src/pages/TermPlanner/ValidateCtfButton/ValidateCtfButton.tsx @@ -37,6 +37,7 @@ const ModalTitle = styled(Title)` color: ${({ theme }) => theme.text} !important; `; +// TODO: hide this behind a feature flag? const ValidateCtfButton = () => { const planner = useSelector((state: RootState) => state.planner); const degree = useSelector((state: RootState) => state.degree);