Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
871efad
feat/added feature for email and password validaion
moueedAli Sep 3, 2025
1619055
fix/removed_email_and_password
moueedAli Sep 3, 2025
d45d345
feat/added new feature to perform checks against DB for existing email
moueedAli Sep 3, 2025
676d083
updated step one and two
lindadqd Sep 3, 2025
6687919
Added password feature and fixed prettier
Sep 3, 2025
4bc89b8
Fixed mobile number input
lindadqd Sep 3, 2025
fb52174
updated placeholder in mobile number
lindadqd Sep 3, 2025
4746a82
Merge pull request #6 from boolean-uk/2-client--validate-inputs-creat…
magnusgit1 Sep 3, 2025
6859c6a
updated bio-stepFour
lindadqd Sep 3, 2025
da9c05d
feat/added step three in create profile
mariehhansen Sep 4, 2025
3f6fe18
Updated next buttons - user has to fill in correct input
lindadqd Sep 4, 2025
f08502b
feat/added feature for email and password check against database for …
moueedAli Sep 4, 2025
6793813
Merge branch 'main' into passwordfeature
magnusgit1 Sep 5, 2025
223bc30
Merge pull request #8 from lindadqd/passwordfeature
magnusgit1 Sep 5, 2025
4981692
Merge pull request #11 from boolean-uk/7-client-validate-inputs-creat…
magnusgit1 Sep 5, 2025
3a310a0
Fixed createProfile to match ticket
lindadqd Sep 5, 2025
5185703
Fixed autofill email and password
lindadqd Sep 9, 2025
5b9bdcc
Merge remote-tracking branch 'origin/1-client---profile-creation' int…
lindadqd Sep 9, 2025
2a8d2c7
fixed missing steps from merge
lindadqd Sep 9, 2025
98b4a9f
Upload profile picture ok
lindadqd Sep 10, 2025
17837c5
missing form context
lindadqd Sep 10, 2025
0ddf2e0
refactor
lindadqd Sep 10, 2025
5d1c57d
Merge branch 'main' into 21-client-profile-creation-add-picture
magnusgit1 Sep 10, 2025
1c8613b
add file structure and route for Student View Cohort page
mariehhansen Sep 10, 2025
d2126ed
Merge branch 'main' into profile-creation-linda
magnusgit1 Sep 11, 2025
e2061d6
Merge pull request #10 from boolean-uk/profile-creation-linda
magnusgit1 Sep 11, 2025
6d29f5f
Merge pull request #23 from boolean-uk/15-client---cohorts-page---stu…
magnusgit1 Sep 11, 2025
3d9ccfe
Merge branch 'main' into 21-client-profile-creation-add-picture
magnusgit1 Sep 11, 2025
3d3a0dd
Merge pull request #22 from boolean-uk/21-client-profile-creation-add…
magnusgit1 Sep 11, 2025
9bebb8a
fixed issues from merge
lindadqd Sep 11, 2025
c665e94
Merge pull request #28 from boolean-uk/fix/fix-issues-with-previous-m…
magnusgit1 Sep 11, 2025
390e24a
fixed log in issue
lindadqd Sep 11, 2025
e355c64
Merge pull request #29 from boolean-uk/fix/fix-issues-with-previous-m…
magnusgit1 Sep 11, 2025
ecbed05
feat/added feature for my exercises part in Cohorts page - Student view
moueedAli Sep 11, 2025
ee6799a
Added component for view all teachers
Sep 11, 2025
afbbbaa
fix/fixed issue from Daves last comment
moueedAli Sep 11, 2025
e63eba5
Merge pull request #30 from boolean-uk/feat/add-box-for-my-exercises
magnusgit1 Sep 11, 2025
3e710c1
Added function to three dots
Sep 11, 2025
61fa1de
fixed issues with submit profile
lindadqd Sep 12, 2025
3e51528
Merge pull request #47 from boolean-uk/fix/fix-renaming-issues-to-mat…
magnusgit1 Sep 12, 2025
73daa4b
Merge branch 'main' into 18-client---cohorts-page---student-view---te…
Isabelltran Sep 12, 2025
b84e7d8
feat/student page cohort view
mariehhansen Sep 12, 2025
63f48bf
Merge pull request #43 from boolean-uk/18-client---cohorts-page---stu…
magnusgit1 Sep 12, 2025
95546fd
change app title and minor fix in students.css
mariehhansen Sep 12, 2025
58b6553
Merge branch 'main' into 15-client---cohorts-page---student-view---my…
mariehhansen Sep 12, 2025
a298ae2
add cohort manager favicon
mariehhansen Sep 12, 2025
f0ec240
Merge branch '15-client---cohorts-page---student-view---my-cohort---v…
mariehhansen Sep 12, 2025
09511d2
fixed so that we see posts
Sep 12, 2025
4f64b83
Merge pull request #52 from boolean-uk/postsindexfix
emazau Sep 15, 2025
cd7a15b
Merge pull request #51 from boolean-uk/15-client---cohorts-page---stu…
emazau Sep 15, 2025
a25a2d0
added-azure-logo-removed-the-rest
lindadqd Sep 15, 2025
4223283
Merge pull request #53 from boolean-uk/edit-social-buttons-on-login-page
emazau Sep 16, 2025
eb4b3aa
minor change in welcome/index.js to send correct data to DB
moueedAli Sep 16, 2025
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

.vscode
.vscode
.idea

3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

src/*
src/
32 changes: 28 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-modal": "^3.16.1",
"react-password-checklist": "^1.8.1",
"react-router-dom": "^6.8.0",
"react-scripts": "5.0.1",
"reactjs-popup": "^2.0.6",
"web-vitals": "^3.1.1"
},
"scripts": {
Expand Down Expand Up @@ -43,7 +45,7 @@
},
"devDependencies": {
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-prettier": "^9.1.2",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-n": "^16.6.2",
Expand Down
4 changes: 4 additions & 0 deletions public/faviconsvg.svg
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 public/favicontransparent.ico
Binary file not shown.
Binary file added public/faviconwhite.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/favicontransparent.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
Expand All @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Cohort Manager</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
15 changes: 15 additions & 0 deletions public/microsoft-azure-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
.ReactModal__Html--open {
overflow: hidden;
}

.border-line {
border-bottom: 1px solid var(--color-blue5);
padding: 20px 10px;
}
14 changes: 13 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ import Verification from './pages/verification';
import { AuthProvider, ProtectedRoute } from './context/auth';
import { ModalProvider } from './context/modal';
import Welcome from './pages/welcome';
import { FormProvider } from './context/form';
import Cohort from './pages/cohort';


const App = () => {
return (
<>
<AuthProvider>
<FormProvider>
<ModalProvider>
<Routes>
<Route path="login" element={<Login />} />
<Route path="register" element={<Register />} />
<Route path="loading" element={<Loading />} />
<Route path="verification" element={<Verification />} />

<Route
index
element={
Expand All @@ -36,8 +39,17 @@ const App = () => {
</ProtectedRoute>
}
/>
<Route
path="cohorts"
element={
<ProtectedRoute>
<Cohort />
</ProtectedRoute>
}
/>
</Routes>
</ModalProvider>
</FormProvider>
</AuthProvider>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/card/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
background: white;
padding: 24px;
border-radius: 8px;
width: 100%;
width: 100% !important;
margin-bottom: 25px;
border: 1px #e6ebf5 solid;
}
Expand Down
75 changes: 75 additions & 0 deletions src/components/dropdown/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import React, { useState, useRef, useEffect } from "react";

function DropdownMenu({
label,
options = [],
value,
onChange,
placeholder = "Select an option",
}) {
const [isOpen, setIsOpen] = useState(false);
const dropdownRef = useRef(null);

const toggleDropdown = () => setIsOpen((prev) => !prev);

const handleOptionClick = (optionValue) => {
onChange(optionValue);
setIsOpen(false);
};

const handleClickOutside = (event) => {
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
setIsOpen(false);
}
};

useEffect(() => {
document.addEventListener("mousedown", handleClickOutside);
return () => document.removeEventListener("mousedown", handleClickOutside);
}, []);

const normalizedOptions = Array.isArray(options)
? options.map((opt) =>
typeof opt === "object"
? { label: opt.label, value: opt.value }
: { label: opt, value: opt }
)
: [];

const selectedOption = normalizedOptions.find((opt) => opt.value === value);

return (
<div className="inputwrapper" ref={dropdownRef} style={{ position: "relative" }}>
{label && <label>{label}</label>}
<button
type="button"
onClick={toggleDropdown}
className="dropbtn"
>
{selectedOption?.label || placeholder}
</button>

{isOpen && (
<ul
className="dropdown-menu"
>
{normalizedOptions.map((option) => (
<li
key={option.value}
onClick={() => handleOptionClick(option.value)}
style={{
padding: "0.5rem 1rem",
cursor: "pointer",
backgroundColor: value === option.value ? "#f0f0f0" : "#fff",
}}
>
{option.label}
</li>
))}
</ul>
)}
</div>
);
}

export default DropdownMenu;
Loading