Skip to content

feat: Connect certificate service to progress tracking system (#761)#881

Open
Benedict315 wants to merge 3 commits into
rinafcode:mainfrom
Benedict315:main
Open

feat: Connect certificate service to progress tracking system (#761)#881
Benedict315 wants to merge 3 commits into
rinafcode:mainfrom
Benedict315:main

Conversation

@Benedict315

Copy link
Copy Markdown
Contributor
  • Add CourseProgressSchema for tracking individual course completion
  • Create certificate-service.ts with validateCourseCompletion function
  • Add /api/certificates/generate endpoint with 403 for incomplete courses
  • Add comprehensive tests for certificate validation
  • Add database migration for user_progress table
  • Update API types to export CourseProgress

Certificate generation now validates progress >= 100% before issuing, preventing certificates for incomplete courses.

Description

Brief description of changes

Related Issue

Closes #

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist

…ode#761)

- Add CourseProgressSchema for tracking individual course completion
- Create certificate-service.ts with validateCourseCompletion function
- Add /api/certificates/generate endpoint with 403 for incomplete courses
- Add comprehensive tests for certificate validation
- Add database migration for user_progress table
- Update API types to export CourseProgress

Certificate generation now validates progress >= 100% before issuing,
preventing certificates for incomplete courses.
@drips-wave

drips-wave Bot commented Jul 1, 2026

Copy link
Copy Markdown

@Benedict315 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

…rror

- Update CourseProgressSchema to use .optional() instead of .nullable()
- This changes the type from string | null to string | undefined
- Fixes CI type-check error on line 53 of certificate-service.ts
@RUKAYAT-CODER

RUKAYAT-CODER commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Great job so far

There’s just one blocker — workflow failing. Could you take a look and resolve it?

Happy to review again once that’s done.

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.

[Enhancement] Certificate service has a hardcoded completion check — real progress tracking not connected

3 participants