Viewing Student Ratings
Students can rate your courses and leave comments. You can view all ratings and calculate average scores directly from your instructor dashboard.Accessing Course Ratings
From your instructor dashboard:- Find your course in the “Tus cursos” section
- Click the “Ver calificaciones” button with the message icon
- A modal displays all ratings and comments
~/workspace/source/src/views/Instructor/Instructor.jsx:299-312
Ratings Display
The ratings modal shows:- Average Rating: Calculated from all student ratings
- Total Comments: Count of how many students have rated
- Detailed Table: Individual ratings with comments
Ratings are displayed in a table format with three columns: number, rating (stars), and comment.
Ratings Calculation
The system calculates the average rating from all student submissions:~/workspace/source/src/views/Instructor/Instructor.jsx:208-263
Ratings Table Structure
Each rating entry includes:| # | Calificación | Comentario |
|---|---|---|
| 1 | 5 estrellas | Student comment text |
| 2 | 4 estrellas | Student comment text |
~/workspace/source/src/views/Instructor/Instructor.jsx:214-244
Managing Course Pricing
EducaStream allows you to create promotional discounts to attract more students. You can add, modify, or remove discounts directly from your dashboard.Adding a Discount
To add a promotional discount to a course:Click 'Agregar descuento'
On courses without an active discount, click the “Agregar descuento” button.
Enter Discount Percentage
A modal prompts you to enter a discount percentage:
- Min: 1%
- Max: 99%
- Type: Integer
~/workspace/source/src/views/Instructor/Instructor.jsx:169-205
~/workspace/source/src/views/Instructor/Instructor.jsx:186-194
Modifying an Existing Discount
For courses with active discounts:Click 'Modificar descuento'
Courses on sale show a “Modificar descuento” button instead of “Agregar descuento”.
Enter New Percentage
The modal allows you to enter a new discount percentage (0-99):
- 0%: Removes the course from sales (
onSale: false) - 1-99%: Updates the discount percentage
~/workspace/source/src/views/Instructor/Instructor.jsx:104-167
Discount Logic
The discount system works as follows:~/workspace/source/src/views/Instructor/Instructor.jsx:125-139
Discount Confirmation Messages
Discount Added
Discount Added
Title: “Tu curso ahora esta en oferta!”Icon: Success ✓Trigger: When a discount ≥ 1% is added to a courseReference:
~/workspace/source/src/views/Instructor/Instructor.jsx:196-202Discount Modified
Discount Modified
Title: “Se modifico el descuento de tu curso con exito!”Icon: Success ✓Trigger: When an existing discount is updated to a value ≥ 1%Reference:
~/workspace/source/src/views/Instructor/Instructor.jsx:146-152Discount Removed
Discount Removed
Title: “Se retiro tu curso de la lista de ofertas!”Icon: Success ✓Trigger: When discount is set to 0%Reference:
~/workspace/source/src/views/Instructor/Instructor.jsx:159-165Discount Input Validation
When entering discounts, the input field enforces:~/workspace/source/src/views/Instructor/Instructor.jsx:114-118 and ~/workspace/source/src/views/Instructor/Instructor.jsx:177-180
For new discounts, the minimum is 1%. For modifying existing discounts, you can enter 0% to remove the sale.
Course Visibility and Status
Active Courses
Active courses appear in the “Tus cursos” section and are visible to students. These courses haveenabled: true.
From your dashboard, you can:
- Create lectures: Add new video content
- Edit course: Modify course details and lectures
- Add/modify discount: Manage pricing promotions
- Deactivate course: Temporarily remove from catalog
- View ratings: See student feedback
~/workspace/source/src/views/Instructor/Instructor.jsx:315-344
Deactivated Courses
Deactivated courses appear in “Tus cursos desactivados” and are not visible to students. These courses haveenabled: false.
Available actions:
- Edit course: Modify course details
- Restore course: Reactivate the course (unless banned)
~/workspace/source/src/views/Instructor/Instructor.jsx:370-382
Course Filtering Logic
The instructor dashboard filters courses based on your instructor ID and enabled status:~/workspace/source/src/views/Instructor/Instructor.jsx:26-36
Courses are loaded from
localStorage.getItem("coursesData") which is updated whenever course data changes.Banned Courses
Courses that violate platform policies may be banned by administrators. Banned courses:- Have
banned: trueandenabled: false - Cannot be restored by instructors
- Are shown in the deactivated courses section without a restore button
~/workspace/source/src/views/Instructor/Instructor.jsx:373-379
Instructor Dashboard Overview
Your instructor dashboard (/instructor/{your-id}) provides a centralized hub for managing all your courses.
Dashboard Sections
- Welcome Header: Personalized greeting with your first name
- Create Course Button: Quick access to course creation form
- Active Courses: List of all your published courses with management options
- Deactivated Courses: List of temporarily disabled courses
~/workspace/source/src/views/Instructor/Instructor.jsx:264-388
Empty States
No Active Courses
No Active Courses
Message: “No tienes cursos creados”Action: Click “Crea tu curso” to create your first courseReference:
~/workspace/source/src/views/Instructor/Instructor.jsx:282-285No Deactivated Courses
No Deactivated Courses
Message: “No hay cursos desactivados”Meaning: All your courses are currently activeReference:
~/workspace/source/src/views/Instructor/Instructor.jsx:355-358Best Practices for Student Engagement
Pricing Strategy Tips
When to Offer Discounts
- Course launches: Attract initial students with introductory pricing
- Holidays and special events: Take advantage of increased shopping activity
- Low enrollment periods: Boost interest during slower seasons
- Course updates: Reward existing students and attract new ones when adding significant content
Optimal Discount Ranges
- 10-20%: Small discount for minor promotions
- 30-50%: Moderate discount for standard sales
- 60-80%: Deep discount for major promotional events
- 90%+: Rarely recommended; may devalue course perception
Update Course Workflow
The update course function is used for multiple operations:~/workspace/source/src/utils/updateCourse.js:3-23
All update operations:
- Send a PUT request to
/courses/edit - Refresh course data via
getAllCourses() - Update local storage cache
- Trigger UI updates
Related Documentation
Creating Courses
Learn how to create your first course
Managing Content
Add and organize lectures in your courses
Troubleshooting
Ratings not appearing
Ratings not appearing
Cause: No students have rated your course yet, or ratings haven’t loaded.Solution: Ensure students have completed your course. Ratings typically appear after students finish watching lectures.
Discount not applying
Discount not applying
Cause: Cache not updated or form validation error.Solution: Refresh the page and verify the discount percentage is between allowed values (1-99 for add, 0-99 for modify).
Can't restore banned course
Can't restore banned course
Cause: Course has
banned: true status.Solution: Contact EducaStream support to resolve the ban. Instructors cannot self-restore banned content.