Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Christoph #47

Open
wants to merge 123 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
3b4208e
update
Nov 4, 2023
ae2737b
added longin info
Nov 6, 2023
204d682
update
Nov 6, 2023
b4d8970
update
Nov 7, 2023
5db14ad
update
Nov 7, 2023
c5e07a0
update
Nov 7, 2023
be607c5
update
Nov 7, 2023
8f3b46c
update
Nov 7, 2023
eda3d33
update
Nov 7, 2023
43033cc
update
Nov 7, 2023
6cb0aa6
updated
Nov 7, 2023
b30f40a
Merge branch 'develop' into Brian
BrianBFarias Nov 7, 2023
e7c50dc
update
Nov 7, 2023
b4d239e
Added a column in student roster for "Move".
cbakshi314 Nov 7, 2023
ba7dcd9
Merge pull request #19 from Team-10g/Brian
BrianBFarias Nov 7, 2023
95ed0ee
Merge pull request #20 from Team-10g/Christoph
BrianBFarias Nov 7, 2023
856b7dd
update
Nov 8, 2023
844bdad
update
Nov 8, 2023
f15fea0
update
Nov 8, 2023
c125ce4
Merge pull request #22 from Team-10g/Brian
BrianBFarias Nov 8, 2023
6b2719d
update
Nov 8, 2023
84f6e46
Merge pull request #23 from Team-10g:Brian
BrianBFarias Nov 8, 2023
7bfc407
update
Nov 9, 2023
2515dab
update
Nov 9, 2023
e7ee824
Merge pull request #24 from Team-10g/Brian
BrianBFarias Nov 10, 2023
dd79693
updated
Nov 10, 2023
8677b43
update
Nov 10, 2023
22407f6
update
Nov 11, 2023
5cc97d2
update
Nov 11, 2023
aef7aae
update
Nov 11, 2023
e76002c
Merge pull request #30 from Team-10g:Brian
BrianBFarias Nov 11, 2023
7ebed34
update
Nov 11, 2023
d014e37
Merge pull request #31 from Team-10g/Brian
BrianBFarias Nov 11, 2023
6fed7b4
update
Nov 11, 2023
3b53f9c
update
Nov 11, 2023
ed8937d
update
Nov 11, 2023
b833dab
error control
Nov 11, 2023
9261b02
Merge pull request #32 from Team-10g:Brian
BrianBFarias Nov 11, 2023
ba4cf8e
remove app creation review
Nov 11, 2023
fa2fa45
app creation removal
Nov 11, 2023
06633cd
update
Nov 11, 2023
b296cfa
Merge pull request #33 from Team-10g:Brian
BrianBFarias Nov 11, 2023
ec1c7b1
updated
Nov 15, 2023
03e37f6
update
Nov 15, 2023
64da6dc
create lesson setup
Nov 15, 2023
1ed22d3
Merge pull request #34 from Team-10g/Brian
BrianBFarias Nov 15, 2023
8c0d90c
update
Nov 15, 2023
e65cc72
update
Nov 15, 2023
6a44a8b
update
Nov 15, 2023
d14fad2
Merge pull request #36 from Team-10g/Brian
BrianBFarias Nov 15, 2023
84f39f2
updated mentor inbox
Nov 16, 2023
70cd075
update shared lessons
Nov 16, 2023
340affa
banner for share lesson button
Nov 16, 2023
9d9a1a5
update
Nov 16, 2023
3230bd4
update
Nov 16, 2023
b10d30c
quick fix before
Nov 16, 2023
99f3519
update
Nov 16, 2023
d229bc1
updated sharing button
Nov 16, 2023
59de2a4
Merge pull request #38 from Team-10g/Brian
BrianBFarias Nov 16, 2023
6b52031
updated url
Nov 16, 2023
61db38f
figuring out share
Nov 17, 2023
46946f6
can now share lessons
Nov 17, 2023
880bb29
update
Nov 17, 2023
7a9cf41
Merge pull request #39 from Team-10g/Brian
BrianBFarias Nov 17, 2023
7cba5c5
update unit/lesson submit animations
Nov 17, 2023
97b6fba
can view inbox
Nov 17, 2023
cde8476
expansion setup
Nov 17, 2023
993e089
now can get activities
Nov 17, 2023
0157743
basic animations
Nov 17, 2023
25791e8
Merge pull request #40 from Team-10g/Brian
BrianBFarias Nov 17, 2023
3302f9c
updated view control
Nov 17, 2023
4cd21c4
Merge pull request #41 from Team-10g/Brian
BrianBFarias Nov 17, 2023
2bed076
updated animations
Nov 18, 2023
0d87282
prettier animations
Nov 18, 2023
ff66727
updated save components
Nov 18, 2023
6a81b51
update
Nov 18, 2023
af4cb57
Merge pull request #42 from Team-10g/Brian
BrianBFarias Nov 18, 2023
880c754
updated info
Nov 18, 2023
0b6655e
update
Nov 18, 2023
eff286b
working classroom select
Nov 18, 2023
e700a85
updated inbox now viewable
Nov 19, 2023
a8ba397
update
Nov 19, 2023
1fbd7bc
Delete .github/workflows directory
BrianBFarias Nov 19, 2023
52f10d7
Merge pull request #43 from Team-10g/Brian
BrianBFarias Nov 19, 2023
65813b3
update
Nov 19, 2023
f162dc7
update
Nov 20, 2023
a4a9686
Merge pull request #44 from Team-10g/Brian
BrianBFarias Nov 20, 2023
db21e19
updated
BrianBFarias Nov 25, 2023
6e1501d
semi set up remove from inbox
BrianBFarias Nov 26, 2023
8b39116
Working on moving students
cbakshi314 Nov 26, 2023
40ad13a
discarding fixing
BrianBFarias Nov 27, 2023
2544067
Working on moving students
cbakshi314 Nov 27, 2023
1d47a2b
Working on dropdown
cbakshi314 Nov 27, 2023
111f56e
lesson sharing complete
BrianBFarias Nov 27, 2023
7ae0043
Merge pull request #45 from Team-10g/Brian
BrianBFarias Nov 27, 2023
ad91b8a
Dropdown and adding student both work.
cbakshi314 Nov 27, 2023
85dca6d
create activity
jaydenm1751 Nov 27, 2023
4a3b0fb
Merge pull request #46 from Team-10g/Jayden
BrianBFarias Nov 28, 2023
f22ef87
Completed moving students from one class to another.
cbakshi314 Nov 28, 2023
5bd8c0a
Testing
cbakshi314 Nov 28, 2023
af1d6ab
lesson viewer created, still has a few bugs
leunoia Nov 28, 2023
ad1fec6
Merge pull request #47 from Team-10g/Christoph
BrianBFarias Nov 28, 2023
f77c404
Revert "Christoph"
BrianBFarias Nov 28, 2023
786f650
Merge pull request #49 from Team-10g/revert-47-Christoph
BrianBFarias Nov 28, 2023
1948f9b
Merge pull request #48 from Team-10g/Preston
BrianBFarias Nov 28, 2023
b0a7a2b
update
BrianBFarias Nov 28, 2023
daa441f
Deletion functionality in LessonModuleModal.jsx
msashank910 Nov 28, 2023
697c532
Merge branch 'develop' into Sashank
BrianBFarias Nov 28, 2023
838c1c6
Merge pull request #50 from Team-10g/Sashank
BrianBFarias Nov 28, 2023
68478e3
Revert "Deletion functionality in LessonModuleModal.jsx"
BrianBFarias Nov 28, 2023
a4a21fc
Merge pull request #51 from Team-10g/revert-50-Sashank
BrianBFarias Nov 28, 2023
9b53090
updated remove button
BrianBFarias Nov 28, 2023
1d463e8
No longer calls backend continuously.
cbakshi314 Dec 1, 2023
f352f68
finished Unit Deletion
jaydenm1751 Dec 2, 2023
197ec4c
updated save to save avticities
BrianBFarias Dec 4, 2023
6bdab20
Merge pull request #53 from Team-10g/Brian
BrianBFarias Dec 4, 2023
0ac5b06
Merge pull request #52 from Team-10g/Jayden
BrianBFarias Dec 4, 2023
aa6519c
updated
BrianBFarias Dec 4, 2023
ad19d9d
Merge pull request #54 from Team-10g/Brian
BrianBFarias Dec 4, 2023
c619d56
unit css styling changes
BrianBFarias Dec 4, 2023
6a4918a
Merge pull request #55 from Team-10g/Brian
BrianBFarias Dec 4, 2023
cfc04a3
functioning removal of activities
BrianBFarias Dec 5, 2023
3c01852
Merge branch 'develop' into Christoph
BrianBFarias Dec 5, 2023
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
30 changes: 0 additions & 30 deletions .github/workflows/deploy-production.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/deploy-staging.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/end-review.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/start-review.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/tag-master.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/update-review.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ yarn-error.log*
node_modules/
build/
server/public/client/*
!server/public/client/.gitkeep
!server/public/client/.gitkeep

client/package-lock.json
1 change: 0 additions & 1 deletion client/.gitignore

This file was deleted.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "client",
"version": "0.1.0",
"private": true,
"start": "WATCHPACK_POLLING=true vite",
"dependencies": {
"@loadable/component": "^5.15.2",
"antd": "^4.24.8",
Expand Down
9 changes: 9 additions & 0 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import BugReport from './views/BugReport/BugReport';
import ContentCreator from './views/ContentCreator/ContentCreator';
import Home from './views/Home/Home';
import Classroom from './views/Mentor/Classroom/Classroom';
import Inbox from './views/Mentor/Inbox/inbox';
import Dashboard from './views/Mentor/Dashboard/Dashboard';
import NotFound from './views/NotFound';
import Replay from './views/Replay/Replay';
Expand Down Expand Up @@ -87,6 +88,14 @@ const App = () => {
<Classroom />
</PrivateRoute>
}
/>
<Route
path='/inbox'
element={
<PrivateRoute>
<Inbox />
</PrivateRoute>
}
/>
<Route
path='/workspace'
Expand Down
22 changes: 22 additions & 0 deletions client/src/Utils/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,3 +672,25 @@ export const getClassroomWorkspace = async (id) =>
auth: true,
error: 'Unable to retrive classroom workspaces',
});

export const shareLesson = async (id, add) =>
makeRequest({
method: PUT,
path: `${server}/mentors/${id}`,
auth: true,
data: {
add
},
error: 'Unable to send lesson',
});

export const removeLesson = async (id, itemToRemove) =>
makeRequest({
method: PUT,
path: `${server}/mentors/remove/${id}`,
auth: true,
data: {
itemToRemove
},
error: 'Unable to remove lesson',
});
1 change: 1 addition & 0 deletions client/src/components/MentorSubHeader/MentorSubHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function MentorSubHeader(props) {
<button id='link'>
<i className='fa fa-plus-square' />
</button>

) : null}
{addUserActive ? (
<AddStudentsModal
Expand Down
102 changes: 102 additions & 0 deletions client/src/views/ContentCreator/LessonViewer/LessonViewer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
import { Button, Form, Input, message, Modal } from "antd";
import React, { useEffect, useState } from "react";
import { useSearchParams } from "react-router-dom";
import {
getLessonModule,
updateLessonModule,
} from "../../../Utils/requests";
import ActivityEditor from "../ActivityEditor/ActivityEditor";

export default function LessonEditor({
learningStandard,
viewing,
setViewing,
tab,
page,
}) {
const [visible, setVisible] = useState(false);
const [name, setName] = useState(learningStandard.name);
const [description, setDescription] = useState("");
const [standards, setStandards] = useState("");
const [link, setLink] = useState("");
const [linkError, setLinkError] = useState(false);
const [displayName, setDisplayName] = useState(learningStandard.name);
// eslint-disable-next-line
const [_, setSearchParams] = useSearchParams();
const [newLesson, setNewLesson] = useState({
title: "",
content: "",
objectives: "",
});

const showModal = async () => {
setVisible(true);
const res = await getLessonModule(learningStandard.id);
setName(res.data.name);
setDescription(res.data.expectations);
setStandards(res.data.standards);
setLink(res.data.link);
setLinkError(false);
};

useEffect(() => {
setDisplayName(learningStandard.name);
}, [learningStandard.name]);


const addNewLesson = async () => {
console.log("Adding new lesson:", newLesson);
setNewLesson({ title: "", content: "", objectives: "" });
message.success("New lesson added successfully");
};

return (
<div>
<Button id="link-btn" onClick={showModal}>
{displayName}
</Button>
<Modal
title="Add New Lesson"
visible={visible}
onOk={addNewLesson}
onCancel={() => setVisible(false)}
>
<Form layout="vertical">
<Form.Item label="Lesson Title">
<Input
value={newLesson.title}
onChange={(e) =>
setNewLesson({ ...newLesson, title: e.target.value })
}
/>
</Form.Item>
<Form.Item label="Content">
<Input.TextArea
value={newLesson.content}
onChange={(e) =>
setNewLesson({ ...newLesson, content: e.target.value })
}
/>
</Form.Item>
<Form.Item label="Objectives">
<Input
value={newLesson.objectives}
onChange={(e) =>
setNewLesson({ ...newLesson, objectives: e.target.value })
}
/>
</Form.Item>
</Form>
</Modal>
{!visible && (
<ActivityEditor
learningStandard={learningStandard}
viewing={viewing}
setViewing={setViewing}
page={page}
tab={tab}
/>
)}
</div>
);
}
5 changes: 3 additions & 2 deletions client/src/views/Dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export default function Dashboard() {
return (
<div className='container nav-padding'>
<NavBar isMentor={true} />
<div id='main-header'>Welcome {user.username}</div>
<div id='main-header'>Welcome {user.username} hello</div>
<h1>hello</h1>
<MentorSubHeader title={'Your Classrooms'}></MentorSubHeader>
<div id='classrooms-container'>
<div id='dashboard-card-container'>
Expand Down Expand Up @@ -64,4 +65,4 @@ export default function Dashboard() {
</div>
</div>
);
}
}
2 changes: 2 additions & 0 deletions client/src/views/Home/HomeJoin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ export default function HomeJoin(props) {
if (e.key === 'Enter') handleLogin();
}}
>

<input
type='text'
value={joinCode}
placeholder='Join Code'
onChange={(e) => setJoinCode(e.target.value)}
/>

<input
type='button'
value={loading ? 'Loading...' : 'Join'}
Expand Down
8 changes: 8 additions & 0 deletions client/src/views/Mentor/Classroom/Classroom.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import './Classroom.less';
import NavBar from '../../../components/NavBar/NavBar';
import Roster from './Roster/Roster';
import Home from './Home/Home';
import Lesson from './lesson/lesson';
import Unit from './Unit/unitCreation';
import SavedWorkSpaceTab from '../../../components/Tabs/SavedWorkspaceTab';
import { useSearchParams, useParams } from 'react-router-dom';

Expand Down Expand Up @@ -51,6 +53,12 @@ export default function Classroom({
classroomId={id}
/>
</TabPane>
<TabPane tab='Create lesson' key='lesson'>
<Lesson classroomId={id}/>
</TabPane>
<TabPane tab='Unit Handling' key='unit'>
<Unit classroomId={id}/>
</TabPane>
</Tabs>
</div>
);
Expand Down
Loading