Skip to content

Commit 5451e24

Browse files
fatmcgavclaude
andcommitted
fix(web): resolve build errors from missing navigationMenu and wrong import in generateMrSummary
Replace non-existent `NavigationMenu` imports on the three agents pages with `BackButton` (sub-pages) or no header component (list page), and correct the import of `getAISDKLanguageModelAndOptions` in `generateMrSummary.ts` from `utils.server` to `llm.server` where it actually lives. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1d292d4 commit 5451e24

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

packages/web/src/app/(app)/agents/configs/[agentId]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { authenticatedPage } from "@/middleware/authenticatedPage";
2-
import { NavigationMenu } from "@/app/(app)/components/navigationMenu";
2+
import { BackButton } from "@/app/(app)/components/backButton";
33
import { AgentConfigForm } from "../agentConfigForm";
44
import { notFound } from "next/navigation";
55
import { OrgRole } from "@sourcebot/db";
@@ -39,8 +39,8 @@ export default authenticatedPage(async ({ prisma, org }, { params }: Props) => {
3939

4040
return (
4141
<div className="flex flex-col items-center overflow-hidden min-h-screen">
42-
<NavigationMenu />
4342
<div className="w-full max-w-3xl px-4 mt-12 mb-24">
43+
<BackButton href="/agents" name="Agents" className="mb-6" />
4444
<h1 className="text-2xl font-semibold text-foreground mb-8">Edit agent config</h1>
4545
<AgentConfigForm
4646
initialValues={{

packages/web/src/app/(app)/agents/configs/new/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { authenticatedPage } from "@/middleware/authenticatedPage";
2-
import { NavigationMenu } from "@/app/(app)/components/navigationMenu";
2+
import { BackButton } from "@/app/(app)/components/backButton";
33
import { AgentConfigForm } from "../agentConfigForm";
44
import { OrgRole } from "@sourcebot/db";
55

@@ -19,8 +19,8 @@ export default authenticatedPage(async ({ prisma, org }) => {
1919

2020
return (
2121
<div className="flex flex-col items-center overflow-hidden min-h-screen">
22-
<NavigationMenu />
2322
<div className="w-full max-w-3xl px-4 mt-12 mb-24">
23+
<BackButton href="/agents" name="Agents" className="mb-6" />
2424
<h1 className="text-2xl font-semibold text-foreground mb-8">New agent config</h1>
2525
<AgentConfigForm connections={connections} repos={repos} />
2626
</div>

packages/web/src/app/(app)/agents/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Link from "next/link";
2-
import { NavigationMenu } from "../components/navigationMenu";
32
import { FaCogs } from "react-icons/fa";
43
import { env } from "@sourcebot/shared";
54
import { authenticatedPage } from "@/middleware/authenticatedPage";
@@ -54,7 +53,6 @@ export default authenticatedPage(async ({ prisma, org }) => {
5453

5554
return (
5655
<div className="flex flex-col items-center overflow-hidden min-h-screen">
57-
<NavigationMenu />
5856
<div className="w-full max-w-6xl px-4 mt-12 mb-24 space-y-12">
5957

6058
{/* Integration status cards */}

packages/web/src/features/agents/review-agent/nodes/generateMrSummary.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { sourcebot_context, sourcebot_pr_payload } from "@/features/agents/review-agent/types";
2-
import { getAISDKLanguageModelAndOptions, getConfiguredLanguageModels } from "@/features/chat/utils.server";
2+
import { getAISDKLanguageModelAndOptions } from "@/features/chat/llm.server";
3+
import { getConfiguredLanguageModels } from "@/features/chat/utils.server";
34
import { validateLogPath } from "@/features/agents/review-agent/nodes/invokeDiffReviewLlm";
45
import { env } from "@sourcebot/shared";
56
import { generateText } from "ai";

0 commit comments

Comments
 (0)