mirror of
https://github.com/langchain-ai/fullstack-chat-client.git
synced 2026-06-30 22:07:58 -04:00
disable graph selector dropdown UI, set with env by default
This commit is contained in:
@@ -14,7 +14,6 @@ import {
|
||||
} from "@/components/ui/navigation-menu";
|
||||
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
|
||||
import { UserInfoSignOut } from "@/features/user-auth-status";
|
||||
import { GraphDropdown } from "@/features/graph-dropdown";
|
||||
import { CreditBalance } from "@/components/credits/credit-balance";
|
||||
|
||||
export function Navbar() {
|
||||
@@ -53,7 +52,6 @@ export function Navbar() {
|
||||
<div className="hidden items-center space-x-3 md:flex">
|
||||
<CreditBalance />
|
||||
<UserInfoSignOut />
|
||||
<GraphDropdown />
|
||||
</div>
|
||||
<Sheet>
|
||||
<SheetTrigger asChild>
|
||||
|
||||
@@ -12,6 +12,14 @@ import { getDeployments } from "@/lib/environment/deployments";
|
||||
import { Deployment } from "@/app/types/deployment";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
|
||||
/**
|
||||
* GraphDropdown component - Currently not in use
|
||||
*
|
||||
* This component has been removed from the UI in favor of using
|
||||
* process.env.NEXT_PUBLIC_ASSISTANT_ID to set the graph behind the scenes.
|
||||
* The Stream and Thread providers automatically fall back to the environment
|
||||
* variable when no assistantId query state is present.
|
||||
*/
|
||||
export function GraphDropdown() {
|
||||
const { session } = useAuthContext();
|
||||
const jwt = session?.accessToken;
|
||||
|
||||
Reference in New Issue
Block a user