From d9a4c3fcfa60459b80dafda6ebddda189163efe3 Mon Sep 17 00:00:00 2001 From: Vitor Pires Date: Tue, 15 Oct 2024 18:47:37 +0100 Subject: [PATCH 1/3] fix: class conflict between T and two TPs --- src/styles/schedule.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/styles/schedule.css b/src/styles/schedule.css index 254660af..317d0c12 100644 --- a/src/styles/schedule.css +++ b/src/styles/schedule.css @@ -158,7 +158,7 @@ } .schedule-class-conflict { - @apply z-20 border-2 opacity-75 border-red-600 ring-rose-700 hover:z-30 hover:opacity-100 hover:ring-1; + @apply z-30 border-2 opacity-75 border-red-600 ring-rose-700 hover:z-30 hover:opacity-100 hover:ring-1; } .schedule-class-conflict-warn { @@ -166,7 +166,7 @@ } .schedule-class-conflict-info { - @apply z-20 border-2 border-red-600 opacity-75 ring-red-500 hover:z-30 hover:opacity-100; + @apply z-30 border-2 border-red-600 opacity-75 ring-red-500 hover:z-30 hover:opacity-100; } .schedule-class-conflict-warn-info { From e4eb8bc16efddb37323f3ec310bca15dd7bbf36a Mon Sep 17 00:00:00 2001 From: Vitor Pires Date: Tue, 15 Oct 2024 19:58:28 +0100 Subject: [PATCH 2/3] fix: lock option --- .../planner/sidebar/CoursesController/ClassSelector.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/planner/sidebar/CoursesController/ClassSelector.tsx b/src/components/planner/sidebar/CoursesController/ClassSelector.tsx index a43c9114..8c0b7b96 100644 --- a/src/components/planner/sidebar/CoursesController/ClassSelector.tsx +++ b/src/components/planner/sidebar/CoursesController/ClassSelector.tsx @@ -30,6 +30,7 @@ const ClassSelector = ({ course }: Props) => { if (option.length === 0) { setSelectedClassId(null); + setDisplay(null); return; } From 39115abe0d5a4a844ed0ad3de2050824e54d842f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Palma?= Date: Thu, 17 Oct 2024 19:18:09 +0100 Subject: [PATCH 3/3] chore: sentry tracing report disabled by default in dev mode --- .env.example | 5 ++++- src/App.tsx | 12 ++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.env.example b/.env.example index 02cde089..a2a581ef 100644 --- a/.env.example +++ b/.env.example @@ -7,5 +7,8 @@ VITE_APP_SEMESTER= VITE_APP_SITE_TITLE= VITE_APP_BACKEND_URL= +VITE_APP_SENTRY_DSN=https://01f0882e6aa029a125426e4ad32e6c18@o553498.ingest.us.sentry.io/4507775325437952 +VITE_APP_SENTRY_TRACING=0 + # To upload source maps to Sentry (Optional) -SENTRY_AUTH_TOKEN= +APP_SENTRY_AUTH_TOKEN= diff --git a/src/App.tsx b/src/App.tsx index 8c511a0b..afd77e2b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -36,17 +36,17 @@ const App = () => { // Enable Error Tracking, Performance Monitoring and Session Replay Sentry.init({ environment: Number(import.meta.env.VITE_APP_PROD) ? "production" : "development", - dsn: "https://01f0882e6aa029a125426e4ad32e6c18@o553498.ingest.us.sentry.io/4507775325437952", + dsn: import.meta.env.VITE_APP_SENTRY_DSN, integrations: [ - Sentry.browserTracingIntegration(), - Sentry.replayIntegration(), - Sentry.reactRouterV6BrowserTracingIntegration({ + import.meta.env.VITE_APP_SENTRY_TRACING ? Sentry.browserTracingIntegration() : null, + import.meta.env.VITE_APP_SENTRY_TRACING ? Sentry.replayIntegration() : null, + import.meta.env.VITE_APP_SENTRY_TRACING ? Sentry.reactRouterV6BrowserTracingIntegration({ useEffect: React.useEffect, useLocation, useNavigationType, createRoutesFromChildren, matchRoutes, - }), + }) : null, ], // Performance monitoring @@ -71,7 +71,7 @@ const App = () => {
- +
}