Conversation
* feat(framework-editor): add control, policy, and requirement templates with CRUD operations - Implemented ControlTemplate, PolicyTemplate, and Requirement modules, controllers, and services. - Added DTOs for creating and updating control and policy templates. - Integrated permission checks for all CRUD operations using @RequirePermission decorator. - Enhanced the framework editor with new endpoints for managing templates and requirements. * fix(control): drop documentTypes column from FrameworkEditorControlTemplate table - Added migration to remove the documentTypes column, which will result in data loss. - Updated Control model to include controlDocumentTypes relation. * feat(framework-editor): add documentTypes field to FrameworkEditorControlTemplate model - Introduced documentTypes field to the FrameworkEditorControlTemplate model to support evidence form types. - This addition enhances the framework editor's capability to manage document types associated with control templates. * feat(framework-editor): add Prisma schema and initial migration for Framework Editor - Introduced a new Prisma schema for the Framework Editor, defining models such as User, Attachment, and Session. - Added a migration to create the necessary database structure for the new schema. - This setup enhances the framework editor's capabilities for managing user sessions and attachments. * feat(framework-editor): enhance services with conflict handling and new validation - Added ConflictException handling in delete methods for ControlTemplateService, FrameworkEditorFrameworkService, and PolicyTemplateService to prevent deletion of referenced templates. - Updated data update logic in FrameworkEditorFrameworkService and PolicyTemplateService to conditionally include fields. - Introduced MaxJsonSize validator for policy content to enforce size limits on JSON input. - Enhanced UpdateTaskTemplateDto to include automationStatus field with validation. - Removed deprecated NuqsWrapper component and cleaned up unused search query parameters in DataTable component. * refactor(framework-editor): update controllers to use PlatformAdminGuard and remove RequirePermission decorators - Replaced HybridAuthGuard and PermissionGuard with PlatformAdminGuard in ControlTemplate, Framework, PolicyTemplate, Requirement, and TaskTemplate controllers. - Removed @RequirePermission decorators from various endpoints to streamline permission handling. - Updated session validation logic in layout and auth pages to check for admin role. - Adjusted authorization utility to enforce admin role requirement alongside internal user check. * feat(framework-editor): enhance templates with frameworkId support in CRUD operations - Updated ControlTemplate, PolicyTemplate, and TaskTemplate controllers and services to accept frameworkId as a query parameter for create and findAll methods. - Modified service logic to conditionally include requirements and control templates based on the provided frameworkId. - Enhanced CreateTaskTemplateDto to allow optional fields for better flexibility. - Updated API documentation to reflect the new frameworkId parameter in relevant endpoints. * feat(framework-editor): add linking functionality for controls, tasks, and policies - Implemented new endpoints in FrameworkEditorFrameworkController to link controls, tasks, and policies to frameworks. - Added corresponding service methods in FrameworkEditorFrameworkService for linking operations. - Introduced a new AddExistingItemDialog component for selecting and linking existing items in the UI. - Updated ControlTemplate, TaskTemplate, and PolicyTemplate services to include linked items in their data fetching logic. - Enhanced API documentation to reflect the new linking endpoints and their parameters. --------- Co-authored-by: Lewis Carhart <lewis@trycomp.ai>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
PR SummaryMedium Risk Overview Expands auth configuration by adding additional trusted origins (including Adds a new Written by Cursor Bugbot for commit eac8a20. This will update automatically on new commits. Configure here. |
…ditorPolicyTemplate type (#2357) - Replaced instances of PolicyTemplateItem and PolicyTemplate with FrameworkEditorPolicyTemplate in the policies page and related components. - Updated type definitions in PoliciesClientPage and PolicyDetailsClientPage to ensure consistency across the framework editor. - Enhanced type safety for policy handling in the framework editor. Co-authored-by: Lewis Carhart <lewis@trycomp.ai>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.