Add account hierarchy framework with migrations, RLS policies, and UI components

This commit is contained in:
T. Zehetbauer
2026-03-31 22:18:04 +02:00
parent 7e7da0b465
commit 59546ad6d2
262 changed files with 11671 additions and 3927 deletions

View File

@@ -1,11 +1,10 @@
import Link from 'next/link';
import { createModuleBuilderApi } from '@kit/module-builder/api';
import { getSupabaseServerClient } from '@kit/supabase/server-client';
import { createModuleBuilderApi } from '@kit/module-builder/api';
import { CmsPageShell } from '~/components/cms-page-shell';
import { AccountNotFound } from '~/components/account-not-found';
import { CmsPageShell } from '~/components/cms-page-shell';
import { ModuleToggles } from './_components/module-toggles';
@@ -61,17 +60,15 @@ export default async function ModulesPage({ params }: ModulesPageProps) {
<Link
key={module.id as string}
href={`/home/${account}/modules/${module.id as string}`}
className="block rounded-lg border p-4 hover:bg-accent/50 transition-colors"
className="hover:bg-accent/50 block rounded-lg border p-4 transition-colors"
>
<h3 className="font-semibold">
{String(module.display_name)}
</h3>
<h3 className="font-semibold">{String(module.display_name)}</h3>
{module.description ? (
<p className="text-sm text-muted-foreground mt-1">
<p className="text-muted-foreground mt-1 text-sm">
{String(module.description)}
</p>
) : null}
<div className="mt-2 text-xs text-muted-foreground">
<div className="text-muted-foreground mt-2 text-xs">
Status: {String(module.status)}
</div>
</Link>