Skip to content

Commit 521ac4a

Browse files
authored
Merge pull request #64 from CS3219-AY2425S1/ben/n1-communication
feat: Communication Nice To Have
2 parents 0d2a3bc + f0f13ec commit 521ac4a

File tree

10 files changed

+546
-100
lines changed

10 files changed

+546
-100
lines changed

apps/frontend/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"antd": "^5.20.6",
2323
"codemirror": "^6.0.1",
2424
"next": "14.2.13",
25+
"peerjs": "^1.5.4",
2526
"react": "^18.2.0",
2627
"react-dom": "^18.2.0",
2728
"react-timer-hook": "^3.0.7",
@@ -38,6 +39,7 @@
3839
"@testing-library/react": "^16.0.1",
3940
"@types/jest": "^29.5.14",
4041
"@types/node": "^20",
42+
"@types/peerjs": "^1.1.0",
4143
"@types/react": "^18.3.8",
4244
"@types/react-dom": "^18.3.0",
4345
"eslint": "^8",

apps/frontend/pnpm-lock.yaml

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/frontend/src/app/collaboration/[id]/page.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
MessageOutlined,
2828
PlayCircleOutlined,
2929
SendOutlined,
30+
VideoCameraOutlined,
3031
} from "@ant-design/icons";
3132
import { ProgrammingLanguageOptions } from "@/utils/SelectOptions";
3233
import CollaborativeEditor, {
@@ -35,6 +36,7 @@ import CollaborativeEditor, {
3536
import { CreateOrUpdateHistory } from "@/app/services/history";
3637
import { Language } from "@codemirror/language";
3738
import { WebrtcProvider } from "y-webrtc";
39+
import VideoPanel from "@/components/VideoPanel/VideoPanel";
3840

3941
interface CollaborationProps {}
4042

@@ -456,15 +458,14 @@ export default function CollaborationPage(props: CollaborationProps) {
456458
<Row className="chat-row">
457459
<div className="chat-container">
458460
<div className="chat-title">
459-
<MessageOutlined className="title-icons" />
460-
Chat
461+
<VideoCameraOutlined className="title-icons" />
462+
Video
461463
</div>
462-
463-
<div className="chat-message-box">
464+
<VideoPanel />
465+
{/* <div className="chat-message-box">
464466
<div className="chat-header-message">
465467
Matched with {matchedUser}
466468
</div>
467-
{/* TODO: Map and input the history of messages sent here */}
468469
<div></div>
469470
</div>
470471
<div className="chat-typing-box">
@@ -473,7 +474,7 @@ export default function CollaborationPage(props: CollaborationProps) {
473474
placeholder="Send Message Here"
474475
rows={4}
475476
/>
476-
</div>
477+
</div> */}
477478
</div>
478479
</Row>
479480
</Col>

apps/frontend/src/app/collaboration/[id]/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
}
3838

3939
.session-row {
40-
height: 20%;
40+
height: 18%;
4141
padding: 1rem 0.25rem 0.25rem;
4242
}
4343

4444
.chat-row {
45-
height: 80%;
45+
height: 82%;
4646
padding: 0.25rem;
4747
}
4848

0 commit comments

Comments
 (0)