* fix(db): preserve not-found error and dedupe member lookup in upsert (#763) Re-throw Organization member not found so the service layer can return 404. Fetch existing notification prefs by resolved member id instead of calling getOrganizationMemberEmailNotifications, which repeated the lookup. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix(course): single source of truth for exercise completion; let teachers complete courses Exercise completion was computed four different ways (course progress, enrolled courses, content items, progression locks), and two of them counted any submission as complete, ignoring the exercise's 'passed' completion policy and pass threshold. My Learning and certificate eligibility could therefore report 100% while the course itself showed an unpassed exercise. - Add isExerciseCompletedSql, a policy-aware SQL predicate in the db query layer, and route every completion computation through it (getCourseProgress, getEnrolledCourses, getCourseContentItems, getCompletedExerciseIdsForMember, isExerciseCompletedForMember). - Remove the per-exercise N+1 pass checks in progression and the duplicated policy interpretation in the submission service. - Fix infinite "Checking eligibility" modal on the certificates page: open the completion modal in its final state instead of 'checking' with no follow-up. - Align teacher experience with students: certificate eligibility no longer requires the student role, completion modal triggers for any enrolled member, teachers can view/download their earned certificate, and video-watch progress tracks in the student experience regardless of org role. * chore: run api:dev without prebuild; keep full build as api:dev:full * fix(dashboard): gate video watch tracking on learner view * feat: pr reviews --------- Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com>
68 lines
2.8 KiB
JSON
68 lines
2.8 KiB
JSON
{
|
|
"name": "classroomio",
|
|
"version": "0.1.13",
|
|
"scripts": {
|
|
"build": "turbo run build",
|
|
"start": "turbo run start",
|
|
"dev": "turbo prepare --concurrency 13 && turbo run dev",
|
|
"lint": "turbo run lint",
|
|
"clean": "turbo clean && rimraf --glob \"**/node_modules\"",
|
|
"clean:pnpm": "pnpm clean && pnpm store prune",
|
|
"format": "turbo run format",
|
|
"format:changed": "node scripts/format-changed.mjs --write",
|
|
"format:check": "node scripts/format-changed.mjs --staged --check",
|
|
"postinstall": "node scripts/postinstall.mjs",
|
|
"release": "standard-version",
|
|
"db:reset": "pnpm --filter @cio/db db:reset",
|
|
"db:studio": "pnpm --filter @cio/db db:studio",
|
|
"db:backfill-profile-email-verification": "pnpm --filter @cio/db db:backfill-profile-email-verification",
|
|
"dashboard:dev": "pnpm concurrently -n dashboard,ui -c blue,yellow \"pnpm --filter=@cio/dashboard run dev\" \"pnpm --filter=@cio/ui run dev\"",
|
|
"api:dev:full": "pnpm turbo run build --filter=@cio/api^... --filter=@cio/jobs-worker^... && pnpm concurrently -n api,jobs -c blue,yellow \"pnpm --filter=@cio/api run dev\" \"pnpm --filter=@cio/jobs-worker run dev\"",
|
|
"api:dev": "pnpm concurrently -n api,jobs -c blue,yellow \"pnpm --filter=@cio/api run dev\" \"pnpm --filter=@cio/jobs-worker run dev\"",
|
|
"jobs:dev": "pnpm --filter=@cio/jobs-worker run dev",
|
|
"docs:dev": "pnpm --filter @cio/docs dev",
|
|
"docs:build": "pnpm --filter @cio/docs build",
|
|
"docs:types:check": "pnpm --filter @cio/docs types:check",
|
|
"website:dev": "pnpm --filter=@cio/website run dev",
|
|
"embeds:dev": "pnpm --filter=@cio/embeds --filter=@cio/ui run dev",
|
|
"storybook:dev": "pnpm --filter=@cio/storybook --filter=@cio/ui --filter=@cio/question-types run dev",
|
|
"mcp:build": "pnpm --filter=@classroomio/mcp run build",
|
|
"db:push": "pnpm --filter @cio/db db push"
|
|
},
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"turbo": "^1.10.16"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-syntax-jsx": "^7.28.6",
|
|
"@babel/preset-typescript": "^7.28.5",
|
|
"@cio/tsconfig": "workspace:*",
|
|
"@evilmartians/lefthook": "^1.13.6",
|
|
"concurrently": "^8.2.2",
|
|
"eslint": "^9.36.0",
|
|
"prettier": "^3.6.2",
|
|
"prettier-plugin-svelte": "^3.4.1",
|
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
"rimraf": "^6.0.1",
|
|
"standard-version": "^9.5.0",
|
|
"typescript": "^5.1.6"
|
|
},
|
|
"engines": {
|
|
"node": "^20.19.3"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"esbuild",
|
|
"@tailwindcss/oxide"
|
|
],
|
|
"patchedDependencies": {
|
|
"layerchart@2.0.0-next.27": "patches/layerchart@2.0.0-next.27.patch"
|
|
},
|
|
"overrides": {
|
|
"zod": "4.2.1",
|
|
"miniflare>zod": "3.22.3"
|
|
}
|
|
},
|
|
"packageManager": "pnpm@10.19.0+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8"
|
|
}
|