feat(admin): render BackgroundMdEditor on project page
Phase 8c Task 6. Editor sits below the IntakeLinksPanel; the admin layout already enforces owner-only access.
This commit is contained in:
parent
8551a6f893
commit
2432fff0aa
1 changed files with 6 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import { TopBar } from "@/components/shell/top-bar";
|
|||
import { IngestPanel } from "@/components/admin/ingest-panel";
|
||||
import { SummaryPanel } from "@/components/admin/summary-panel";
|
||||
import { IntakeLinksPanel } from "@/components/admin/intake-links-panel";
|
||||
import { BackgroundMdEditor } from "@/components/admin/background-md-editor";
|
||||
import { getAdminPb } from "@/lib/pb/admin";
|
||||
import { summaryStatus } from "@/lib/ai/summarise";
|
||||
import type { IntakeLinkRecord, ProjectRecord } from "@/lib/pb/types";
|
||||
|
|
@ -64,6 +65,11 @@ export default async function ProjectAdminPage({
|
|||
/>
|
||||
<SummaryPanel projectId={project.id} status={summary} />
|
||||
<IntakeLinksPanel projectId={project.id} links={links} />
|
||||
<BackgroundMdEditor
|
||||
projectId={project.id}
|
||||
initial={project.background_md}
|
||||
repoUrl={project.repo_url}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</AppShell>
|
||||
|
|
|
|||
Loading…
Reference in a new issue