docs: add English Communication (Sem 1) documentation and quiz#173
Open
Kartikeyji17 wants to merge 1 commit into
Open
docs: add English Communication (Sem 1) documentation and quiz#173Kartikeyji17 wants to merge 1 commit into
Kartikeyji17 wants to merge 1 commit into
Conversation
Contributor
|
@Kartikeyji17 is attempting to deploy a commit to the PushkarScripts Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds Semester 1 “English Communication” subject pages and quiz content, integrating it into the existing subject/quiz navigation.
Changes:
- Added a new quiz dataset entry for “English Communication” (slug
ec). - Introduced a new
/app/sem1/ecsection with layout, sidebar navigation, and chapter content pages. - Registered
ecin the subject list so it appears as an available subject.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/quizData.ts | Adds the “English Communication” quiz questions and metadata (slug ec). |
| app/sem1/ec/page.tsx | Adds a landing page for the English Communication section. |
| app/sem1/ec/layout.tsx | Introduces a dedicated layout with Navbar + Sidebar for /sem1/ec. |
| app/sem1/ec/[chapter]/page.tsx | Implements dynamic chapter rendering with prev/next navigation. |
| app/sem1/ec/components/sidebar.tsx | Adds chapter list + “Take the Quiz” link in a responsive sidebar. |
| app/sem1/ec/content/chapter0.tsx | Adds course outline content. |
| app/sem1/ec/content/chapter1.tsx | Adds “Basics of Communication” content. |
| app/sem1/ec/content/chapter2.tsx | Adds “Written Communication” content. |
| app/sem1/ec/content/chapter3.tsx | Adds “Verbal & Non-Verbal Communication” content. |
| app/sem1/ec/content/chapter4.tsx | Adds “Reading Comprehension” content. |
| app/sem1/ec/content/chapter5.tsx | Adds “Grammar Essentials” content. |
| app/sem1/ec/content/chapter6.tsx | Adds “Presentation & Interview Skills” content. |
| app/components/subjects.tsx | Adds ec to the available subject codes list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+3
to
+9
| import Navbar from "../../components/navbar"; | ||
| import Sidebar from "./components/sidebar"; | ||
| export const metadata = { | ||
| title: "English Communication | openCSE", | ||
| description: "English Communication documentation for Semester 1 CSE students.", | ||
| }; | ||
| export default function Sem1EcLayout({ children }: { children: React.ReactNode }) { |
Comment on lines
+28
to
+33
| type ChapterProps = { | ||
| params: Promise<{ chapter: string }>; | ||
| }; | ||
|
|
||
| export default async function ChapterPage({ params }: ChapterProps) { | ||
| const { chapter: chapterId } = await params; |
Comment on lines
+118
to
+125
| <button | ||
| onClick={() => setOpen(!open)} | ||
| className="toggle-sidebar shrink-0 pointer-events-auto bg-[#ffdda7] h-full w-[50px] text-[#1B0D00] text-center font-semibold text-2xl border-l-4 rounded-r-2xl border-[#1B0D00] flex items-center justify-center transition-all duration-300 md:shadow-none" | ||
| style={{ | ||
| fontFamily: "Rockwell, Serif, serif", | ||
| boxShadow: open ? "4px 0 15px rgba(0,0,0,0.1)" : "none", | ||
| }} | ||
| > |
Comment on lines
+25
to
+33
| const chapters = [ | ||
| { id: "ch0", title: "Course Outline" }, | ||
| { id: "ch1", title: "Basics of Communication" }, | ||
| { id: "ch2", title: "Written Communication" }, | ||
| { id: "ch3", title: "Verbal & Non-Verbal Communication" }, | ||
| { id: "ch4", title: "Reading Comprehension" }, | ||
| { id: "ch5", title: "Grammar Essentials" }, | ||
| { id: "ch6", title: "Presentation & Interview Skills" }, | ||
| ]; |
|
|
||
| // Available subjects | ||
| const available = ["ep", "c", "em1", "em2", "oops", "dsc", "coa", "os", "ml", "dops", "cd", "cle"]; | ||
| const available = ["ep", "c", "em1", "em2", "oops", "dsc", "coa", "os", "ml", "dops", "cd", "cle","ec"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Fixes #122
Description
Describe the changes made in this PR.
Added complete beginner-friendly documentation for English Communication (Sem 1) which was previously marked as "Coming Soon" on the platform.
Type of Change
Screenshots / Demo
How Has This Been Tested?
Describe how you tested your changes locally.
Tested locally using npm run dev. All 7 chapters load correctly, sidebar navigation works, and the quiz functions with 22 questions and instant feedback.
Checklist
AI Usage
I have not used AI tools for this contribution
I have used AI tools (ChatGPT, Copilot, Claude, etc.) and I have reviewed, verified, and understood all generated code/content before submitting this PR
If AI tools were used, briefly explain how:
Used AI for documentation drafting, content structuring, and code scaffolding. All content was reviewed, verified for accuracy, and tested locally before submission.
Additional Notes