# Interactive General Physics Platform (PHY 101, GSPH101)

> An interactive learning platform for GSPH101 General Physics at Yanbu Industrial College: guided lessons, interactive simulations, instant marking, concept-level progress tracking and an instructor dashboard.

A course, not an assignment tracker. A student opens a chapter and walks a nine-step lesson journey: meet the idea, use it with their own hands, then show what they have learned. The instructor sees who has started, which questions the class gets wrong, and which concepts need re-teaching.

This deployment is a public demo with fictional data. The full application sits behind sign-in; the demo accounts below open it with one click from https://phy101.ertiqaa.online/signin.

## Pages

- [About the platform](https://phy101.ertiqaa.online/about): the full public overview, readable without signing in. The interface defaults to Arabic; the language switch in the header changes it to English.
- [Sign in](https://phy101.ertiqaa.online/signin): one-click demo sign-in buttons.

## What it is

A web application for GSPH101 General Physics in the Department of General Studies at Yanbu Industrial College. It covers Chapters 1–4 of Giancoli, Physics: Principles with Applications: measurement, kinematics in one dimension, kinematics in two dimensions and vectors, and Newton’s laws.

It tracks understanding at the level of concepts, not just completion, and is deliberate about the difference: watching a video is engagement, never evidence.

## By the numbers

- 4 textbook chapters
- 16 lessons
- 18 tracked physics concepts
- 9 interactive simulations
- 21 original diagrams
- 23 instantly marked practice questions

## A nine-step lesson journey

The assigned work sits near the end, not at the front: by the time anything has to be submitted, the material has already been seen, manipulated and drilled.

1. **Overview**: The lesson’s objectives and key concepts, with the student’s live state on each.
2. **Watch**: A video explainer with chapter markers, a transcript and a saved resume position.
3. **Learn**: The lesson text, with real, selectable equations that a screen reader can read.
4. **Visualize**: Every interactive simulation in the chapter, in one place.
5. **Worked example**: Solutions revealed one step at a time, so they are worked rather than read.
6. **Practice**: Questions marked immediately, with the concept re-taught on a wrong answer.
7. **Class work**: The textbook problems assigned for class, cited by number and page; the student attaches a photo of their paper working for the instructor.
8. **Homework**: The textbook problems assigned for home, with a photo of the working attached the same way.
9. **Checkpoint**: A short end-of-chapter understanding check.

## The wrong answer is the moment to teach

A wrong answer gets feedback that names the kind of mistake (a sign slip, a metric prefix slip, hours confused with seconds, a missing factor of one half) without revealing the expected value. Then the platform offers three routes back to the concept: watch the explanation, see it visually, or reopen the lesson.

## Concept-level learning state

Each student has one state per concept, derived by the database with a rule a teacher can read in one sitting and explain to a student:

- **Not started**: Nothing recorded.
- **Learning**: Has met the material but not attempted the practice.
- **Practicing**: Has attempted the practice and it has not settled.
- **Needs review**: Wrong on two or more questions, or wrong on one question with three or more attempts.
- **Understood**: Got the practice right and met the material.

Watching a video can never on its own produce “understood”. That state always requires a correct answer.

## Instructor dashboard

A separate area, guarded on the server: a student session never renders it.

- **Overview**: What needs action now, class indicators, and students needing attention by an explainable rule, not a black-box risk score.
- **Concept health**: Separates “has not done the work” from “did the work and is struggling”: one student needs chasing, the other needs teaching.
- **Problem Bank**: Turns the assigned textbook problems into auto-marked questions by setting each answer key.
- **Questions & analytics**: Per-question performance, the most common wrong answers, and charts of difficulty and completion.
- **Teach a lesson**: Present the official lecture slides in class, then notify students the lesson has been explained.
- **Explanations & videos**: The instructor writes their own explanations or attaches their own videos, shown inside the lesson.
- **Students & roster**: A full record for each student; add students and issue their sign-in details.
- **View as student**: The exact student interface, with marking, while writing nothing to student data.

## Academic integrity

The platform ships no answer for any textbook problem and infers nothing about them. The 24 assigned problems are imported by number and page only, and student work on them routes to the instructor for review.

A problem only starts marking itself when the instructor sets its answer type and key in the Problem Bank. That rule is enforced by a database constraint, not by convention.

## Security and privacy

- Row-level security is enabled and forced on every table, so a student can only ever see their own data.
- The application connects to the database as a least-privilege role that cannot bypass those policies.
- Answer keys are encrypted at rest and can only be read one at a time.
- Passwords are stored as scrypt hashes, and uploaded photos have their location data stripped.
- No third-party tracking or analytics scripts, and academic data is never stored in a shared cache.

## Two languages, kept apart on purpose

The interface runs in Arabic or English, with a right-to-left layout that mirrors rather than breaks, while the lecture material stays in English as the course requires. Nothing is machine-translated at runtime; every Arabic string was written by a person.

## Try the demo

This is a demo copy with fictional data: one instructor and 12 students with realistic attempt histories. Sign in with one click from the sign-in page, or with an email and password:

- `instructor@demo.yic`: Instructor: the full dashboard with 12 students’ work
- `mohammed.ahmed@demo.yic`: Student who completed the course with high first-attempt success
- `saleh.alghamdi@demo.yic`: Struggling student: partial progress, repeated attempts
- `ibrahim.alamri@demo.yic`: Student who has not started yet

Password for every account: `physics`

Every name and record in this copy is fictional and belongs to no real student.

## Technology

- Next.js 15 (App Router)
- TypeScript
- Tailwind CSS 4
- PostgreSQL with row-level security
- KaTeX for equations
- Vitest test suite

## بالعربية

**منصة الفيزياء العامة التفاعلية** (GSPH101 · كلية ينبع الصناعية)

مقرر كامل وليس مجرد متتبّع للواجبات. يدخل الطالب الفصل ويمشي في رحلة درس من تسع خطوات: يفهم الفكرة، ثم يجرّبها بيده، ثم يثبت ما تعلّمه. وأستاذ المقرر يرى من بدأ، وأي الأسئلة يخطئ فيها الطلاب، وأي المفاهيم تحتاج إلى إعادة شرح.

منصة ويب لمقرر الفيزياء العامة GSPH101 في قسم الدراسات العامة بكلية ينبع الصناعية، تغطي الفصول من 1 إلى 4 من كتاب Giancoli: القياس، والحركة في بُعد واحد، والحركة في بُعدين والمتجهات، وقوانين نيوتن.

تتابع المنصة الفهم على مستوى المفهوم لا على مستوى الإنجاز فقط، وتفرّق بين الأمرين عن قصد: مشاهدة فيديو تُحسب تفاعلاً، ولا تُحسب أبداً دليلاً على الفهم.

هذه نسخة عرض تجريبية ببيانات وهمية: أستاذ مقرر و12 طالباً بسجلات محاولات حقيقية الشكل. ادخل من صفحة تسجيل الدخول بنقرة واحدة على أي حساب، أو بالبريد وكلمة المرور: كلمة المرور لكل الحسابات: `physics`. كل الأسماء والبيانات في هذه النسخة وهمية، ولا علاقة لها بأي طالب حقيقي.
