Skip to content

Commit a7f6b0c

Browse files
authored
Merge pull request #545 from trycompai/claudio/comp-fix-nuqs
[dev] [claudfuen] claudio/comp-fix-nuqs
2 parents 26bd46f + 8d5991a commit a7f6b0c

6 files changed

Lines changed: 82 additions & 119 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"use client";
2+
3+
import { NuqsAdapter } from "nuqs/adapters/next/app";
4+
import { Suspense } from "react";
5+
6+
export const Providers = ({ children }: { children: React.ReactNode }) => {
7+
return (
8+
<Suspense fallback={<div>Loading...</div>}>
9+
<NuqsAdapter>
10+
{children}
11+
</NuqsAdapter>
12+
</Suspense>
13+
)
14+
};

apps/framework-editor/app/layout.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { type ReactNode } from 'react'
77

88
import "@comp/ui/globals.css";
99
import '../styles/globals.css'
10+
import { Providers } from './components/Providers';
1011

1112
export const metadata: Metadata = {
1213
title: 'Comp AI - Framework Editor',
@@ -21,14 +22,14 @@ export default function RootLayout({
2122
return (
2223
<html lang="en" className="h-full">
2324
<body>
24-
<NuqsAdapter>
25-
<div className="flex flex-col container gap-2 h-full">
26-
<Toolbar/>
27-
<MenuTabs />
28-
{children}
29-
<Toaster />
25+
<Providers>
26+
<div className="flex flex-col container gap-2 h-full">
27+
<Toolbar/>
28+
<MenuTabs />
29+
{children}
30+
<Toaster />
3031
</div>
31-
</NuqsAdapter>
32+
</Providers>
3233
</body>
3334
</html>
3435
)

packages/data/dist/index.d.mts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ type JSONContent = {
9595
*/
9696
interface TemplatePolicyMetadata {
9797
id: string;
98-
slug: string;
9998
name: string;
10099
description: string;
101100
frequency: Frequency;

packages/data/dist/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ type JSONContent = {
9595
*/
9696
interface TemplatePolicyMetadata {
9797
id: string;
98-
slug: string;
9998
name: string;
10099
description: string;
101100
frequency: Frequency;

packages/data/dist/index.js

Lines changed: 30 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,8 @@ var accessControlPolicy = {
158158
type: "doc",
159159
metadata: {
160160
id: "access_control",
161-
slug: "access-control-policy",
162161
name: "Access Control Policy",
163-
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.",
162+
description: "This policy defines the requirements for controlling access to information systems and data based on the principle of least privilege.",
164163
frequency: "yearly",
165164
department: "it"
166165
},
@@ -310,7 +309,6 @@ var applicationSecurityPolicy = {
310309
type: "doc",
311310
metadata: {
312311
id: "application_security",
313-
slug: "application-security-policy",
314312
name: "Application Security Policy",
315313
description: "This policy outlines the security framework and requirements for applications, notably web applications, within the organization's production environment.",
316314
frequency: "yearly",
@@ -954,9 +952,8 @@ var availabilityPolicy = {
954952
type: "doc",
955953
metadata: {
956954
id: "availability",
957-
slug: "availability-policy",
958955
name: "Availability Policy",
959-
description: "This policy outlines the requirements for proper controls to protect the availability of the organization's information systems.",
956+
description: "This policy defines the requirements for ensuring that information systems and data are available for use when needed.",
960957
frequency: "yearly",
961958
department: "it"
962959
},
@@ -1656,11 +1653,10 @@ var businessContinuityPolicy = {
16561653
type: "doc",
16571654
metadata: {
16581655
id: "business_continuity",
1659-
slug: "business-continuity-dr-policy",
1660-
name: "Business Continuity & Disaster Recovery Policy",
1661-
description: "This policy outlines the strategies and procedures for ensuring the availability of critical systems and data during and after a disruptive event.",
1656+
name: "Business Continuity Policy",
1657+
description: "This policy outlines the procedures and strategies for ensuring that essential business functions can continue during and after a disruption.",
16621658
frequency: "yearly",
1663-
department: "it"
1659+
department: "gov"
16641660
},
16651661
content: [
16661662
{
@@ -1815,9 +1811,8 @@ var changeManagementPolicy = {
18151811
type: "doc",
18161812
metadata: {
18171813
id: "change_management",
1818-
slug: "change-management-policy",
18191814
name: "Change Management Policy",
1820-
description: "This policy defines the process for requesting, reviewing, approving, and documenting changes to the organization's information systems and infrastructure.",
1815+
description: "This policy establishes standardized procedures for managing changes to IT systems and infrastructure to minimize risk and disruption.",
18211816
frequency: "yearly",
18221817
department: "it"
18231818
},
@@ -1966,10 +1961,9 @@ var changeManagementPolicy = {
19661961
var classificationPolicy = {
19671962
type: "doc",
19681963
metadata: {
1969-
id: "data_classification",
1970-
slug: "data-classification-policy",
1971-
name: "Data Classification Policy",
1972-
description: "This policy outlines the requirements for data classification.",
1964+
id: "classification",
1965+
name: "General Classification Policy",
1966+
description: "This policy provides a general framework for classification of assets and information.",
19731967
frequency: "yearly",
19741968
department: "gov"
19751969
},
@@ -2507,9 +2501,8 @@ var codeOfConductPolicy = {
25072501
type: "doc",
25082502
metadata: {
25092503
id: "code_of_conduct",
2510-
slug: "code-of-conduct",
25112504
name: "Code of Conduct Policy",
2512-
description: "This policy outlines the expected behavior from employees towards their colleagues, supervisors, and the organization as a whole.",
2505+
description: "This policy outlines the expected standards of behavior and ethical conduct for all employees and representatives of the organization.",
25132506
frequency: "yearly",
25142507
department: "hr"
25152508
},
@@ -2867,9 +2860,8 @@ var confidentialityPolicy = {
28672860
type: "doc",
28682861
metadata: {
28692862
id: "confidentiality",
2870-
slug: "confidentiality",
28712863
name: "Confidentiality Policy",
2872-
description: "This policy outlines the requirements for maintaining the confidentiality of sensitive and proprietary information within the organization.",
2864+
description: "This policy defines the requirements for protecting confidential information from unauthorized access, use, or disclosure.",
28732865
frequency: "yearly",
28742866
department: "gov"
28752867
},
@@ -3214,11 +3206,10 @@ var corporateGovernancePolicy = {
32143206
type: "doc",
32153207
metadata: {
32163208
id: "corporate_governance",
3217-
slug: "corporate-governance-policy",
32183209
name: "Corporate Governance Policy",
3219-
description: "This policy defines the overall governance framework including board oversight, management responsibilities, and organizational structure to ensure effective oversight and accountability.",
3210+
description: "This policy outlines the structure, responsibilities, and processes that guide the organization's overall direction and management.",
32203211
frequency: "yearly",
3221-
department: "admin"
3212+
department: "gov"
32223213
},
32233214
content: [
32243215
{
@@ -3449,9 +3440,8 @@ var cyberRiskPolicy = {
34493440
type: "doc",
34503441
metadata: {
34513442
id: "cyber_risk",
3452-
slug: "cyber-risk",
3453-
name: "Cyber Risk Assessment Policy",
3454-
description: "This policy outlines the requirements for conducting cyber risk assessments to identify, evaluate, and mitigate cybersecurity threats to the organization.",
3443+
name: "Cyber Risk Policy",
3444+
description: "This policy outlines the strategies and procedures for identifying, assessing, and mitigating cyber risks to protect organizational assets and ensure operational resilience.",
34553445
frequency: "yearly",
34563446
department: "it"
34573447
},
@@ -3771,9 +3761,8 @@ var dataCenterPolicy = {
37713761
type: "doc",
37723762
metadata: {
37733763
id: "data_center",
3774-
slug: "data-center",
37753764
name: "Data Center Policy",
3776-
description: "This policy outlines the requirements for the organization's data center facilities to ensure protection, availability, and reliability of critical systems and data.",
3765+
description: "This policy outlines the security and operational requirements for data centers to protect physical infrastructure and ensure service availability.",
37773766
frequency: "yearly",
37783767
department: "it"
37793768
},
@@ -4134,9 +4123,8 @@ var dataClassificationPolicy = {
41344123
type: "doc",
41354124
metadata: {
41364125
id: "data_classification",
4137-
slug: "data-classification-policy",
41384126
name: "Data Classification Policy",
4139-
description: "This policy establishes a framework for classifying data based on sensitivity and defines handling requirements for each classification level.",
4127+
description: "This policy establishes guidelines for classifying data based on its sensitivity and defining handling requirements for each classification level.",
41404128
frequency: "yearly",
41414129
department: "gov"
41424130
},
@@ -4286,9 +4274,8 @@ var disasterRecoveryPolicy = {
42864274
type: "doc",
42874275
metadata: {
42884276
id: "disaster_recovery",
4289-
slug: "disaster-recovery-policy",
42904277
name: "Disaster Recovery Policy",
4291-
description: "This policy outlines the requirements for disaster recovery planning to ensure the organization can recover from disruptive events.",
4278+
description: "This policy outlines the procedures for recovering IT systems and data in the event of a disaster to ensure business continuity.",
42924279
frequency: "yearly",
42934280
department: "it"
42944281
},
@@ -4469,9 +4456,8 @@ var humanResourcesPolicy = {
44694456
type: "doc",
44704457
metadata: {
44714458
id: "human_resources",
4472-
slug: "human-resources-policy",
44734459
name: "Human Resources Policy",
4474-
description: "This policy outlines the principles and practices for recruitment, employee management, performance evaluations, and the enforcement of internal control responsibilities.",
4460+
description: "This policy defines guidelines for HR practices including employee conduct, data privacy, and security awareness.",
44754461
frequency: "yearly",
44764462
department: "hr"
44774463
},
@@ -4621,9 +4607,8 @@ var incidentResponsePolicy = {
46214607
type: "doc",
46224608
metadata: {
46234609
id: "incident_response",
4624-
slug: "incident-response-policy",
46254610
name: "Incident Response Policy",
4626-
description: "This policy establishes the framework and procedures for detecting, responding to, and recovering from security incidents.",
4611+
description: "This policy outlines the procedures for responding to and managing security incidents to minimize impact and restore normal operations quickly.",
46274612
frequency: "yearly",
46284613
department: "it"
46294614
},
@@ -4773,7 +4758,6 @@ var informationSecurityPolicy = {
47734758
type: "doc",
47744759
metadata: {
47754760
id: "information_security",
4776-
slug: "information-security-policy",
47774761
name: "Information Security Policy",
47784762
description: "This policy establishes the framework for protecting the organization's information assets by defining security objectives, roles, responsibilities, and controls.",
47794763
frequency: "yearly",
@@ -4940,9 +4924,8 @@ var passwordPolicy = {
49404924
type: "doc",
49414925
metadata: {
49424926
id: "password_policy",
4943-
slug: "password-policy",
49444927
name: "Password Policy",
4945-
description: "This policy outlines the requirements for passwords used by employees.",
4928+
description: "This policy defines the requirements for creating and managing strong passwords.",
49464929
frequency: "yearly",
49474930
department: "it"
49484931
},
@@ -4953,10 +4936,9 @@ var passwordPolicy = {
49534936
var privacyPolicy = {
49544937
type: "doc",
49554938
metadata: {
4956-
id: "privacy",
4957-
slug: "privacy-policy",
4939+
id: "privacy_policy",
49584940
name: "Privacy Policy",
4959-
description: "This policy describes how the organization collects, uses, discloses, and protects personal information in compliance with applicable privacy regulations.",
4941+
description: "This policy outlines the criteria and procedures for handling personal data and ensuring compliance with privacy regulations.",
49604942
frequency: "yearly",
49614943
department: "gov"
49624944
},
@@ -5106,9 +5088,8 @@ var riskAssessmentPolicy = {
51065088
type: "doc",
51075089
metadata: {
51085090
id: "risk_assessment",
5109-
slug: "risk-assessment",
51105091
name: "Risk Assessment Policy",
5111-
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.",
5092+
description: "This policy defines the process and responsibilities for conducting risk assessments to identify, analyze, and evaluate potential threats and vulnerabilities.",
51125093
frequency: "yearly",
51135094
department: "gov"
51145095
},
@@ -5361,9 +5342,8 @@ var riskManagementPolicy = {
53615342
type: "doc",
53625343
metadata: {
53635344
id: "risk_management",
5364-
slug: "risk-management-policy",
53655345
name: "Risk Management Policy",
5366-
description: "This policy defines the process for identifying, assessing, and mitigating risks to the organization's objectives and information assets.",
5346+
description: "This policy establishes the framework for identifying, assessing, treating, and monitoring risks across the organization to protect its assets and achieve its objectives.",
53675347
frequency: "yearly",
53685348
department: "gov"
53695349
},
@@ -5528,7 +5508,6 @@ var softwareDevelopmentPolicy = {
55285508
type: "doc",
55295509
metadata: {
55305510
id: "software_development",
5531-
slug: "software-development",
55325511
name: "Software Development Lifecycle Policy",
55335512
description: "This policy outlines the requirements for the software development lifecycle to ensure secure, reliable, and high-quality software development practices.",
55345513
frequency: "yearly",
@@ -5777,9 +5756,8 @@ var systemChangePolicy = {
57775756
type: "doc",
57785757
metadata: {
57795758
id: "system_change",
5780-
slug: "system-change-policy",
57815759
name: "System Change Policy",
5782-
description: "This policy outlines the requirements for system changes.",
5760+
description: "This policy outlines the requirements for system changes to ensure secure, reliable, and high-quality software development practices.",
57835761
frequency: "yearly",
57845762
department: "it"
57855763
},
@@ -5950,12 +5928,11 @@ var systemChangePolicy = {
59505928
var thirdPartyPolicy = {
59515929
type: "doc",
59525930
metadata: {
5953-
id: "thirdparty",
5954-
slug: "thirdparty",
5955-
name: "Third-Party Management Policy",
5956-
description: "This policy defines the rules for relationships with the organization's Information Technology (IT) third-parties and partners.",
5931+
id: "third_party",
5932+
name: "Third Party Policy",
5933+
description: "This policy outlines the requirements for third party integrations to ensure secure, reliable, and high-quality software development practices.",
59575934
frequency: "yearly",
5958-
department: "gov"
5935+
department: "it"
59595936
},
59605937
content: [
59615938
{
@@ -6198,7 +6175,6 @@ var vendorRiskManagementPolicy = {
61986175
type: "doc",
61996176
metadata: {
62006177
id: "vendor_risk_management",
6201-
slug: "vendor-risk-management-policy",
62026178
name: "Vendor Risk Management Policy",
62036179
description: "This policy outlines the criteria and procedures for evaluating, selecting, and monitoring third-party vendors to manage risks associated with external service providers.",
62046180
frequency: "yearly",
@@ -6350,7 +6326,6 @@ var workstationPolicy = {
63506326
type: "doc",
63516327
metadata: {
63526328
id: "workstation",
6353-
slug: "workstation",
63546329
name: "Workstation Policy",
63556330
description: "This policy outlines the requirements for workstations to ensure secure, reliable, and high-quality software development practices.",
63566331
frequency: "yearly",

0 commit comments

Comments
 (0)