Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: Run Checks

on:
push:
branches: ["main"]
# branches: ["main"]
branches: ["dev"]

pull_request:
branches: ["main"]
# branches: ["main"]
branches: ["dev"]

jobs:
run-checks:
Expand All @@ -22,7 +25,8 @@ jobs:
- name: Install dependencies
run:
npm exec --workspaces -- npx rimraf node_modules && npx rimraf
node_modules && yarn install --frozen-lockfile
node_modules && yarn install
# node_modules && yarn install --frozen-lockfile

- name: Build React project
run: cd client && yarn run build
Expand Down
5 changes: 3 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"preview": "vite preview"
},
"dependencies": {
"@chakra-ui/icons": "^2.0.0",
"@chakra-ui/react": "^2.8.2",
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
Expand All @@ -32,8 +33,8 @@
"react-icons": "^5.3.0",
"react-qr-code": "^2.0.15",
"react-router-dom": "^6.26.1",
"zod": "^3.23.8",
"recharts": "^2.7.2"
"recharts": "^2.7.2",
"zod": "^3.23.8"
},
"devDependencies": {
"@eslint/js": "^9.8.0",
Expand Down
38 changes: 38 additions & 0 deletions client/public/card_images/ballet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions client/public/card_images/classical.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions client/public/card_images/pop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions client/public/card_images/pop2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added client/public/student.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/teacher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import ClassDashboard, {
OverallClassDashboard,
} from "./components/dashboard/classDashboard/ClassDashboard";
import ClassInfoDashboard from "./components/dashboard/classInfoDashboard/ClassInfoDashboard";
import EventInfoDashboard from "./components/dashboard/eventInfoDashboard/EventInfoDashboard";
import { Dashboard, DashboardHome } from "./components/dashboard/Dashboard";
import EventInfoDashboard from "./components/dashboard/eventInfoDashboard/EventInfoDashboard";
import SettingsDashboard from "./components/dashboard/settingsDashboard/SettingsDashboard";
import { StudentDashboard } from "./components/dashboard/studentDashboard/StudentDashboard";
import { StudentInfoDashboard } from "./components/dashboard/studentInfoDashboard/StudentInfoDashboard";
Expand All @@ -26,22 +26,22 @@ import { TeacherInfoDashboard } from "./components/dashboard/teacherInfoDashboar
import { Discovery } from "./components/discovery/Discovery";
import { CreateEvent } from "./components/forms/createEvent";
import { Login } from "./components/login/Login";
import { Landing } from "./components/signup/Landing";
import { L } from "./components/logout/Logout";
import { Playground } from "./components/playground/Playground";
import { Profile } from "./components/profile/Profile";
import { Settings } from "./components/profile/Settings";
import { ProtectedRoute } from "./components/ProtectedRoute";
import { Resources } from "./components/resources/Resources";
import { Reviews } from "./components/reviews/Reviews";
import { Landing } from "./components/signup/Landing";
import { Signup } from "./components/signup/Signup";
import Request from "./components/teacher-signup/requests/Request";
import { TeacherSignup } from "./components/teacher-signup/TeacherSignup";
import { AuthProvider } from "./contexts/AuthContext";
import { BackendProvider } from "./contexts/BackendContext";
import { RoleProvider } from "./contexts/RoleContext";
import { ForgotPasswordConfirmation } from "./utils/auth/ForgotPasswordConfirmation"
import { ForgotPassword } from "./utils/auth/ForgotPassword";
import { ForgotPasswordConfirmation } from "./utils/auth/ForgotPasswordConfirmation";

const App = () => {
return (
Expand Down
3 changes: 2 additions & 1 deletion client/src/components/CatchAll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export const CatchAll = () => {
const navigate = useNavigate();

useEffect(() => {
navigate("/dashboard");
// navigate("/dashboard");
navigate("/profile");
}, [navigate]);

return <p>Route not found... redirecting...</p>;
Expand Down
3 changes: 2 additions & 1 deletion client/src/components/ProtectedRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export const ProtectedRoute = ({
return currentUser && isValidRole ? (
element
) : currentUser ? (
<Navigate to={"/dashboard"} />
// <Navigate to={"/dashboard"} />
<Navigate to={"/profile"} />
) : (
<Navigate to={"/"} />
);
Expand Down
Loading