Skip to content

Try 05.02.01 - #218

Open
Poojithvsc wants to merge 10 commits into
ai-hero-dev:mainfrom
Poojithvsc:try-05.02.01
Open

Try 05.02.01#218
Poojithvsc wants to merge 10 commits into
ai-hero-dev:mainfrom
Poojithvsc:try-05.02.01

Conversation

@Poojithvsc

Copy link
Copy Markdown

No description provided.

Poojithvsc and others added 10 commits April 2, 2026 22:21
Adds a course_ratings table, rating service, and star rating widget so enrolled students can rate courses. Average ratings are displayed on both the course detail page and the course catalog.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Lesson comments: enrolled students can post comments on lessons,
  instructors/admins can moderate (delete) any comment
- Lesson bookmarks: enrolled students can bookmark lessons with toggle
  on lesson page, indicators shown in curriculum sidebar and course detail
- Fix DevUI user switcher dropdown not closing after selection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PRD- and plan-driven analytics feature: revenue/student/purchase KPIs
with previous-period comparison, a revenue-over-time line chart, and a
sortable per-course breakdown. Range options are 1w / 1m / 6m / all,
where 'all' starts at the earliest purchase. Scopes for instructors,
admins (platform-wide or per-instructor), and per-course drilldown.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
When a student enrolls in a course, the course's instructor receives an
in-app notification, surfaced via a bell icon + dropdown in the sidebar.
The schema is generic (type / title / message / linkUrl) so future event
types can reuse it without migrations.

- New notifications table + NotificationType enum (migration 0006).
- notificationService with create/get/getById/unreadCount/markAsRead/
  markAllAsRead, plus tests covering ordering, pagination, user-scoping.
- enrollUser side-effect creates an "enrollment" notification for the
  course's instructor; covered by an integration test.
- Two API routes (mark-read, mark-all-read) with session auth and
  ownership checks.
- layout.app.tsx loader hydrates unread count + 5 most recent
  notifications for instructor users.
- NotificationBell component (bell, badge, dropdown, mark-all-read,
  empty state) wired into the sidebar header for instructors only.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Wires up husky + lint-staged so every commit auto-formats staged files
with Prettier, then runs typecheck and the test suite. Failing checks
block the commit, giving AI agents a deterministic feedback loop.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Project-local skill that installs and configures husky + lint-staged +
prettier pre-commit hook (lint-staged → typecheck → test), adapting to
existing project state.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants