Skip to content

Commit

Permalink
Merge branch 'ci/sentry' of github.com:NIAEFEUP/tts-revamp-fe into ci…
Browse files Browse the repository at this point in the history
…/sentry
  • Loading branch information
thePeras committed Nov 2, 2024
2 parents 019a7a8 + 90bb518 commit 999b48a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ VITE_APP_SEMESTER=
VITE_APP_SITE_TITLE=
VITE_APP_BACKEND_URL=

VITE_APP_SENTRY_DSN=https://[email protected]/4507775325437952
VITE_APP_SENTRY_TRACING=0

# To upload source maps to Sentry (Optional)
SENTRY_AUTH_TOKEN=
APP_SENTRY_AUTH_TOKEN=
12 changes: 6 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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://[email protected]/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
Expand All @@ -71,7 +71,7 @@ const App = () => {
<Layout location={page.location} title={page.location} liquid={page.liquid}>
<div>
<page.element />
<Toaster/>
<Toaster />
</div>
</Layout>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const ClassSelector = ({ course }: Props) => {

if (option.length === 0) {
setSelectedClassId(null);
setDisplay(null);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/styles/schedule.css
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,15 @@
}

.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 {
@apply z-20 border-2 opacity-75 border-amber-500 ring-amber-500 hover:z-30 hover:opacity-100 hover:ring-1;
}

.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 {
Expand Down

0 comments on commit 999b48a

Please sign in to comment.