Files
classroomio/package.json
T
Adeyemi AdetunjiandRotimi Best bc9e3b41ae feat: move community supabase request to api layer (#612)
* feat: move community supabase request to api layer

* chore: pr review checkpoint

* chore: PR fixes

* feat: implement role-based authorization middleware and align the community features with the developer guide.

- Added role-based authorization middleware for organization and course membership checks, including `orgMemberMiddleware`, `orgTeamMemberMiddleware`, and `courseMemberMiddleware`.
- Introduced route-specific middleware for comment and question authorization, ensuring only authors or team members can modify content.
- Updated community routes to utilize the new middleware for enhanced security and access control.
- Refactored community services to streamline upvote functionality and improve error handling.
- Enhanced UI components for community interactions, including new comment and question pages, and improved state management for user actions.
- Updated documentation to reflect new middleware usage and best practices for authorization in the API layer.

* feat: enhance course and organization routes with middleware for improved access control

- Added `courseMemberMiddleware` to course download and clone routes to enforce membership checks.
- Updated lesson route to include `courseMemberMiddleware` for PDF downloads.
- Integrated `orgMemberMiddleware` into organization routes for team and audience access, ensuring only authorized members can retrieve data.
- Refactored lesson and organization routes for consistency and clarity in middleware usage.

* chore: streamline dashboard and API development scripts in package.json

- Consolidated dashboard and API development commands to include all relevant filters in a single line for improved clarity and ease of use.
- Removed redundant full command variants to simplify the script section.

---------

Co-authored-by: Rotimi Best <[email protected]>
2025-12-22 19:57:27 +01:00

48 lines
1.6 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 && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +",
"clean:pnpm": "pnpm clean && pnpm store prune",
"format": "prettier . --write",
"release": "standard-version",
"dashboard:dev": "pnpm dev --filter=@cio/dashboard --filter=@cio/ui --filter=@cio/db --filter=@cio/utils",
"dashboard:start": "pnpm start --filter @cio/dashboard",
"api:dev": "pnpm dev --filter=@cio/api --filter=@cio/email --filter=@cio/db --filter=@cio/utils",
"api:start": "pnpm start --filter @cio/api",
"supabase:push": "pnpx supabase link --project-ref $PROJECT_ID && pnpx supabase db push --include-all",
"storybook:dev": "pnpm dev --filter=@cio/storybook --filter=@cio/ui"
},
"license": "MIT",
"dependencies": {
"turbo": "^1.10.16"
},
"devDependencies": {
"concurrently": "^8.2.2",
"eslint": "^9.36.0",
"prettier": "^3.1.0",
"prettier-plugin-svelte": "^3.4.0",
"prettier-plugin-tailwindcss": "^0.5.7",
"standard-version": "^9.5.0",
"@cio/tsconfig": "workspace:*",
"typescript": "^5.1.6"
},
"engines": {
"node": "^20.19.3"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild",
"@tailwindcss/oxide"
],
"overrides": {
"zod": "^4.1.8"
}
},
"packageManager": "[email protected]+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8"
}