Skip to content

Commit 16369be

Browse files
authored
Merge pull request #791 from trycompai/main
[comp] Production Deploy
2 parents b2052ba + 5fbea15 commit 16369be

18 files changed

+1406
-4483
lines changed

apps/app/src/components/organization-switcher.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,13 @@ export function OrganizationSwitcher({
252252
{t("common.table.no_results")}
253253
</CommandEmpty>
254254
<CommandGroup className="max-h-[300px] overflow-y-auto">
255-
{organizations.map((org) => (
256-
<CommandItem
257-
key={org.id}
258-
value={org.id}
259-
onSelect={() => {
260-
if (
261-
org.id !==
255+
{organizations.map((org) => (
256+
<CommandItem
257+
key={org.id}
258+
value={getDisplayName(org) || org.id}
259+
onSelect={() => {
260+
if (
261+
org.id !==
262262
currentOrganization?.id
263263
) {
264264
handleOrgChange(org);

bun.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/db/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
}
2929
},
3030
"dependencies": {
31-
"@prisma/client": "6.6.0",
32-
"prisma": "^6.6.0",
31+
"@prisma/client": "6.9.0",
32+
"prisma": "^6.9.0",
3333
"ts-node": "^10.9.2"
3434
},
3535
"devDependencies": {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE "FrameworkEditorFramework" ALTER COLUMN "visible" SET DEFAULT false;

packages/db/prisma/schema/framework-editor.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ model FrameworkEditorFramework {
1616
name String // e.g., "soc2", "iso27001"
1717
version String
1818
description String
19-
visible Boolean @default(true)
19+
visible Boolean @default(false)
2020
2121
requirements FrameworkEditorRequirement[]
2222
frameworkInstances FrameworkInstance[]

packages/db/prisma/seed/frameworkEditorSchemas.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ exports.FrameworkEditorFrameworkSchema = zod_1.z.object({
2525
name: zod_1.z.string(),
2626
version: zod_1.z.string(),
2727
description: zod_1.z.string(),
28+
visible: zod_1.z.boolean().optional(), // @default(true)
2829
// requirements: FrameworkEditorRequirement[] - relational, omitted
2930
// frameworkInstances: FrameworkInstance[] - relational, omitted
3031
createdAt: zod_1.z.preprocess(datePreprocess, zod_1.z.string().datetime({ message: "Invalid datetime string for createdAt. Expected ISO 8601 format." })).optional(), // @default(now())

packages/db/prisma/seed/frameworkEditorSchemas.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const FrameworkEditorFrameworkSchema = z.object({
2626
name: z.string(),
2727
version: z.string(),
2828
description: z.string(),
29+
visible: z.boolean().optional(), // @default(true)
2930
// requirements: FrameworkEditorRequirement[] - relational, omitted
3031
// frameworkInstances: FrameworkInstance[] - relational, omitted
3132
createdAt: z.preprocess(datePreprocess, z.string().datetime({ message: "Invalid datetime string for createdAt. Expected ISO 8601 format." })).optional(), // @default(now())

0 commit comments

Comments
 (0)