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: 7 additions & 7 deletions apps/app/src/components/organization-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,13 @@ export function OrganizationSwitcher({
{t("common.table.no_results")}
</CommandEmpty>
<CommandGroup className="max-h-[300px] overflow-y-auto">
{organizations.map((org) => (
<CommandItem
key={org.id}
value={org.id}
onSelect={() => {
if (
org.id !==
{organizations.map((org) => (
<CommandItem
key={org.id}
value={getDisplayName(org) || org.id}
onSelect={() => {
if (
org.id !==
currentOrganization?.id
) {
handleOrgChange(org);
Expand Down
28 changes: 14 additions & 14 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
}
},
"dependencies": {
"@prisma/client": "6.6.0",
"prisma": "^6.6.0",
"@prisma/client": "6.9.0",
"prisma": "^6.9.0",
"ts-node": "^10.9.2"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "FrameworkEditorFramework" ALTER COLUMN "visible" SET DEFAULT false;
2 changes: 1 addition & 1 deletion packages/db/prisma/schema/framework-editor.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ model FrameworkEditorFramework {
name String // e.g., "soc2", "iso27001"
version String
description String
visible Boolean @default(true)
visible Boolean @default(false)

requirements FrameworkEditorRequirement[]
frameworkInstances FrameworkInstance[]
Expand Down
1 change: 1 addition & 0 deletions packages/db/prisma/seed/frameworkEditorSchemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports.FrameworkEditorFrameworkSchema = zod_1.z.object({
name: zod_1.z.string(),
version: zod_1.z.string(),
description: zod_1.z.string(),
visible: zod_1.z.boolean().optional(), // @default(true)
// requirements: FrameworkEditorRequirement[] - relational, omitted
// frameworkInstances: FrameworkInstance[] - relational, omitted
createdAt: zod_1.z.preprocess(datePreprocess, zod_1.z.string().datetime({ message: "Invalid datetime string for createdAt. Expected ISO 8601 format." })).optional(), // @default(now())
Expand Down
1 change: 1 addition & 0 deletions packages/db/prisma/seed/frameworkEditorSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const FrameworkEditorFrameworkSchema = z.object({
name: z.string(),
version: z.string(),
description: z.string(),
visible: z.boolean().optional(), // @default(true)
// requirements: FrameworkEditorRequirement[] - relational, omitted
// frameworkInstances: FrameworkInstance[] - relational, omitted
createdAt: z.preprocess(datePreprocess, z.string().datetime({ message: "Invalid datetime string for createdAt. Expected ISO 8601 format." })).optional(), // @default(now())
Expand Down
Loading
Loading