Skip to content

feat(admin): manage organization frameworks#2824

Merged
tofikwest merged 1 commit into
mainfrom
tofik/adding-new-framework-from-admin
May 12, 2026
Merged

feat(admin): manage organization frameworks#2824
tofikwest merged 1 commit into
mainfrom
tofik/adding-new-framework-from-admin

Conversation

@tofikwest
Copy link
Copy Markdown
Contributor

@tofikwest tofikwest commented May 12, 2026

Summary

  • Add platform-admin scoped endpoints for listing, adding, and removing frameworks on a specific organization.
  • Add an Admin Organizations Frameworks tab with adaptive mobile cards, desktop tables, and simple confirmation dialogs.
  • Cover the admin framework controller and UI flow with focused tests.

Test plan

  • bunx jest src/admin-organizations/admin-frameworks.controller.spec.ts src/admin-organizations/admin-security.spec.ts --passWithNoTests
  • bunx vitest run "src/app/(app)/[orgId]/admin/organizations/[adminOrgId]/components/FrameworksTab.test.tsx" "src/app/(app)/[orgId]/admin/organizations/[adminOrgId]/components/AdminOrgTabs.test.tsx"

Made with Cursor


Summary by cubic

Adds platform-admin tooling to manage an organization’s frameworks, including new API endpoints and a Frameworks tab with add/remove flows. Admins can list, add, and remove org frameworks without changing global definitions.

  • New Features
    • API (admin-scoped): list, add, and remove org frameworks at /v1/admin/organizations/:orgId/frameworks (GET/POST/DELETE), guarded by PlatformAdminGuard, audited via AdminAuditLogInterceptor, and throttled.
    • API response filters: returns active frameworks and only platform-visible, not-yet-added frameworks.
    • Admin UI: new “Frameworks” tab with mobile cards and desktop tables; confirmation dialog for add/remove; toast feedback.
    • Navigation: tabs made responsive with a dropdown on small screens; “Frameworks” tab added to AdminOrgTabs.
    • Tests: controller specs for admin endpoints; security baseline updated to include AdminFrameworksController; UI tests for Frameworks tab and tabs navigation.

Written for commit ae1b5fe. Summary will update on new commits.

Add platform-admin scoped framework management so admins can add or remove frameworks for a specific organization without touching global framework definitions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview, Comment May 12, 2026 2:22pm
comp-framework-editor Ready Ready Preview, Comment May 12, 2026 2:22pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
portal Skipped Skipped May 12, 2026 2:22pm

Request Review

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 10 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@tofikwest tofikwest merged commit 98bf1fa into main May 12, 2026
7 of 9 checks passed
@tofikwest tofikwest deleted the tofik/adding-new-framework-from-admin branch May 12, 2026 14:26
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.50.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants