Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions apps/framework-editor/app/components/Providers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use client";

import { NuqsAdapter } from "nuqs/adapters/next/app";
import { Suspense } from "react";

export const Providers = ({ children }: { children: React.ReactNode }) => {
return (
<Suspense fallback={<div>Loading...</div>}>
<NuqsAdapter>
{children}
</NuqsAdapter>
</Suspense>
)
};
15 changes: 8 additions & 7 deletions apps/framework-editor/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { type ReactNode } from 'react'

import "@comp/ui/globals.css";
import '../styles/globals.css'
import { Providers } from './components/Providers';

export const metadata: Metadata = {
title: 'Comp AI - Framework Editor',
Expand All @@ -21,14 +22,14 @@ export default function RootLayout({
return (
<html lang="en" className="h-full">
<body>
<NuqsAdapter>
<div className="flex flex-col container gap-2 h-full">
<Toolbar/>
<MenuTabs />
{children}
<Toaster />
<Providers>
<div className="flex flex-col container gap-2 h-full">
<Toolbar/>
<MenuTabs />
{children}
<Toaster />
</div>
</NuqsAdapter>
</Providers>
</body>
</html>
)
Expand Down
1 change: 0 additions & 1 deletion packages/data/dist/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ type JSONContent = {
*/
interface TemplatePolicyMetadata {
id: string;
slug: string;
name: string;
description: string;
frequency: Frequency;
Expand Down
1 change: 0 additions & 1 deletion packages/data/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ type JSONContent = {
*/
interface TemplatePolicyMetadata {
id: string;
slug: string;
name: string;
description: string;
frequency: Frequency;
Expand Down
85 changes: 30 additions & 55 deletions packages/data/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ var accessControlPolicy = {
type: "doc",
metadata: {
id: "access_control",
slug: "access-control-policy",
name: "Access Control Policy",
description: "This policy defines the requirements for granting, monitoring, and revoking access to the organization's information systems and data based on the principle of least privilege.",
description: "This policy defines the requirements for controlling access to information systems and data based on the principle of least privilege.",
frequency: "yearly",
department: "it"
},
Expand Down Expand Up @@ -310,7 +309,6 @@ var applicationSecurityPolicy = {
type: "doc",
metadata: {
id: "application_security",
slug: "application-security-policy",
name: "Application Security Policy",
description: "This policy outlines the security framework and requirements for applications, notably web applications, within the organization's production environment.",
frequency: "yearly",
Expand Down Expand Up @@ -954,9 +952,8 @@ var availabilityPolicy = {
type: "doc",
metadata: {
id: "availability",
slug: "availability-policy",
name: "Availability Policy",
description: "This policy outlines the requirements for proper controls to protect the availability of the organization's information systems.",
description: "This policy defines the requirements for ensuring that information systems and data are available for use when needed.",
frequency: "yearly",
department: "it"
},
Expand Down Expand Up @@ -1656,11 +1653,10 @@ var businessContinuityPolicy = {
type: "doc",
metadata: {
id: "business_continuity",
slug: "business-continuity-dr-policy",
name: "Business Continuity & Disaster Recovery Policy",
description: "This policy outlines the strategies and procedures for ensuring the availability of critical systems and data during and after a disruptive event.",
name: "Business Continuity Policy",
description: "This policy outlines the procedures and strategies for ensuring that essential business functions can continue during and after a disruption.",
frequency: "yearly",
department: "it"
department: "gov"
},
content: [
{
Expand Down Expand Up @@ -1815,9 +1811,8 @@ var changeManagementPolicy = {
type: "doc",
metadata: {
id: "change_management",
slug: "change-management-policy",
name: "Change Management Policy",
description: "This policy defines the process for requesting, reviewing, approving, and documenting changes to the organization's information systems and infrastructure.",
description: "This policy establishes standardized procedures for managing changes to IT systems and infrastructure to minimize risk and disruption.",
frequency: "yearly",
department: "it"
},
Expand Down Expand Up @@ -1966,10 +1961,9 @@ var changeManagementPolicy = {
var classificationPolicy = {
type: "doc",
metadata: {
id: "data_classification",
slug: "data-classification-policy",
name: "Data Classification Policy",
description: "This policy outlines the requirements for data classification.",
id: "classification",
name: "General Classification Policy",
description: "This policy provides a general framework for classification of assets and information.",
frequency: "yearly",
department: "gov"
},
Expand Down Expand Up @@ -2507,9 +2501,8 @@ var codeOfConductPolicy = {
type: "doc",
metadata: {
id: "code_of_conduct",
slug: "code-of-conduct",
name: "Code of Conduct Policy",
description: "This policy outlines the expected behavior from employees towards their colleagues, supervisors, and the organization as a whole.",
description: "This policy outlines the expected standards of behavior and ethical conduct for all employees and representatives of the organization.",
frequency: "yearly",
department: "hr"
},
Expand Down Expand Up @@ -2867,9 +2860,8 @@ var confidentialityPolicy = {
type: "doc",
metadata: {
id: "confidentiality",
slug: "confidentiality",
name: "Confidentiality Policy",
description: "This policy outlines the requirements for maintaining the confidentiality of sensitive and proprietary information within the organization.",
description: "This policy defines the requirements for protecting confidential information from unauthorized access, use, or disclosure.",
frequency: "yearly",
department: "gov"
},
Expand Down Expand Up @@ -3214,11 +3206,10 @@ var corporateGovernancePolicy = {
type: "doc",
metadata: {
id: "corporate_governance",
slug: "corporate-governance-policy",
name: "Corporate Governance Policy",
description: "This policy defines the overall governance framework including board oversight, management responsibilities, and organizational structure to ensure effective oversight and accountability.",
description: "This policy outlines the structure, responsibilities, and processes that guide the organization's overall direction and management.",
frequency: "yearly",
department: "admin"
department: "gov"
},
content: [
{
Expand Down Expand Up @@ -3449,9 +3440,8 @@ var cyberRiskPolicy = {
type: "doc",
metadata: {
id: "cyber_risk",
slug: "cyber-risk",
name: "Cyber Risk Assessment Policy",
description: "This policy outlines the requirements for conducting cyber risk assessments to identify, evaluate, and mitigate cybersecurity threats to the organization.",
name: "Cyber Risk Policy",
description: "This policy outlines the strategies and procedures for identifying, assessing, and mitigating cyber risks to protect organizational assets and ensure operational resilience.",
frequency: "yearly",
department: "it"
},
Expand Down Expand Up @@ -3771,9 +3761,8 @@ var dataCenterPolicy = {
type: "doc",
metadata: {
id: "data_center",
slug: "data-center",
name: "Data Center Policy",
description: "This policy outlines the requirements for the organization's data center facilities to ensure protection, availability, and reliability of critical systems and data.",
description: "This policy outlines the security and operational requirements for data centers to protect physical infrastructure and ensure service availability.",
frequency: "yearly",
department: "it"
},
Expand Down Expand Up @@ -4134,9 +4123,8 @@ var dataClassificationPolicy = {
type: "doc",
metadata: {
id: "data_classification",
slug: "data-classification-policy",
name: "Data Classification Policy",
description: "This policy establishes a framework for classifying data based on sensitivity and defines handling requirements for each classification level.",
description: "This policy establishes guidelines for classifying data based on its sensitivity and defining handling requirements for each classification level.",
frequency: "yearly",
department: "gov"
},
Expand Down Expand Up @@ -4286,9 +4274,8 @@ var disasterRecoveryPolicy = {
type: "doc",
metadata: {
id: "disaster_recovery",
slug: "disaster-recovery-policy",
name: "Disaster Recovery Policy",
description: "This policy outlines the requirements for disaster recovery planning to ensure the organization can recover from disruptive events.",
description: "This policy outlines the procedures for recovering IT systems and data in the event of a disaster to ensure business continuity.",
frequency: "yearly",
department: "it"
},
Expand Down Expand Up @@ -4469,9 +4456,8 @@ var humanResourcesPolicy = {
type: "doc",
metadata: {
id: "human_resources",
slug: "human-resources-policy",
name: "Human Resources Policy",
description: "This policy outlines the principles and practices for recruitment, employee management, performance evaluations, and the enforcement of internal control responsibilities.",
description: "This policy defines guidelines for HR practices including employee conduct, data privacy, and security awareness.",
frequency: "yearly",
department: "hr"
},
Expand Down Expand Up @@ -4621,9 +4607,8 @@ var incidentResponsePolicy = {
type: "doc",
metadata: {
id: "incident_response",
slug: "incident-response-policy",
name: "Incident Response Policy",
description: "This policy establishes the framework and procedures for detecting, responding to, and recovering from security incidents.",
description: "This policy outlines the procedures for responding to and managing security incidents to minimize impact and restore normal operations quickly.",
frequency: "yearly",
department: "it"
},
Expand Down Expand Up @@ -4773,7 +4758,6 @@ var informationSecurityPolicy = {
type: "doc",
metadata: {
id: "information_security",
slug: "information-security-policy",
name: "Information Security Policy",
description: "This policy establishes the framework for protecting the organization's information assets by defining security objectives, roles, responsibilities, and controls.",
frequency: "yearly",
Expand Down Expand Up @@ -4940,9 +4924,8 @@ var passwordPolicy = {
type: "doc",
metadata: {
id: "password_policy",
slug: "password-policy",
name: "Password Policy",
description: "This policy outlines the requirements for passwords used by employees.",
description: "This policy defines the requirements for creating and managing strong passwords.",
frequency: "yearly",
department: "it"
},
Expand All @@ -4953,10 +4936,9 @@ var passwordPolicy = {
var privacyPolicy = {
type: "doc",
metadata: {
id: "privacy",
slug: "privacy-policy",
id: "privacy_policy",
name: "Privacy Policy",
description: "This policy describes how the organization collects, uses, discloses, and protects personal information in compliance with applicable privacy regulations.",
description: "This policy outlines the criteria and procedures for handling personal data and ensuring compliance with privacy regulations.",
frequency: "yearly",
department: "gov"
},
Expand Down Expand Up @@ -5106,9 +5088,8 @@ var riskAssessmentPolicy = {
type: "doc",
metadata: {
id: "risk_assessment",
slug: "risk-assessment",
name: "Risk Assessment Policy",
description: "This policy outlines the requirements for conducting risk assessments to identify, evaluate, and mitigate risks associated with the organization's information systems, operations, and assets.",
description: "This policy defines the process and responsibilities for conducting risk assessments to identify, analyze, and evaluate potential threats and vulnerabilities.",
frequency: "yearly",
department: "gov"
},
Expand Down Expand Up @@ -5361,9 +5342,8 @@ var riskManagementPolicy = {
type: "doc",
metadata: {
id: "risk_management",
slug: "risk-management-policy",
name: "Risk Management Policy",
description: "This policy defines the process for identifying, assessing, and mitigating risks to the organization's objectives and information assets.",
description: "This policy establishes the framework for identifying, assessing, treating, and monitoring risks across the organization to protect its assets and achieve its objectives.",
frequency: "yearly",
department: "gov"
},
Expand Down Expand Up @@ -5528,7 +5508,6 @@ var softwareDevelopmentPolicy = {
type: "doc",
metadata: {
id: "software_development",
slug: "software-development",
name: "Software Development Lifecycle Policy",
description: "This policy outlines the requirements for the software development lifecycle to ensure secure, reliable, and high-quality software development practices.",
frequency: "yearly",
Expand Down Expand Up @@ -5777,9 +5756,8 @@ var systemChangePolicy = {
type: "doc",
metadata: {
id: "system_change",
slug: "system-change-policy",
name: "System Change Policy",
description: "This policy outlines the requirements for system changes.",
description: "This policy outlines the requirements for system changes to ensure secure, reliable, and high-quality software development practices.",
frequency: "yearly",
department: "it"
},
Expand Down Expand Up @@ -5950,12 +5928,11 @@ var systemChangePolicy = {
var thirdPartyPolicy = {
type: "doc",
metadata: {
id: "thirdparty",
slug: "thirdparty",
name: "Third-Party Management Policy",
description: "This policy defines the rules for relationships with the organization's Information Technology (IT) third-parties and partners.",
id: "third_party",
name: "Third Party Policy",
description: "This policy outlines the requirements for third party integrations to ensure secure, reliable, and high-quality software development practices.",
frequency: "yearly",
department: "gov"
department: "it"
},
content: [
{
Expand Down Expand Up @@ -6198,7 +6175,6 @@ var vendorRiskManagementPolicy = {
type: "doc",
metadata: {
id: "vendor_risk_management",
slug: "vendor-risk-management-policy",
name: "Vendor Risk Management Policy",
description: "This policy outlines the criteria and procedures for evaluating, selecting, and monitoring third-party vendors to manage risks associated with external service providers.",
frequency: "yearly",
Expand Down Expand Up @@ -6350,7 +6326,6 @@ var workstationPolicy = {
type: "doc",
metadata: {
id: "workstation",
slug: "workstation",
name: "Workstation Policy",
description: "This policy outlines the requirements for workstations to ensure secure, reliable, and high-quality software development practices.",
frequency: "yearly",
Expand Down
Loading
Loading