);
},
- [idToChain],
+ [idToChain, props.disableChainId],
);
return (
@@ -79,6 +89,7 @@ export function MultiNetworkSelector(props: {
disabled={allChains.length === 0}
overrideSearchFn={searchFn}
renderOption={renderOption}
+ className={props.className}
/>
);
}
@@ -143,7 +154,7 @@ export function SingleNetworkSelector(props: {
ipfsSrc={chain.icon?.url}
loading="lazy"
/>
- {chain.name}
+ {cleanChainName(chain.name)}
{!props.disableChainId && (
diff --git a/apps/dashboard/src/app/nebula-app/(app)/chat/history/ChatHistoryPage.tsx b/apps/dashboard/src/app/nebula-app/(app)/chat/history/ChatHistoryPage.tsx
index 029064f757e..2de74b13abd 100644
--- a/apps/dashboard/src/app/nebula-app/(app)/chat/history/ChatHistoryPage.tsx
+++ b/apps/dashboard/src/app/nebula-app/(app)/chat/history/ChatHistoryPage.tsx
@@ -181,6 +181,7 @@ function SessionCard(props: {
{props.session.title || "Untitled"}
diff --git a/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx b/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx
index 6639ec5b876..04ebb5570aa 100644
--- a/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx
+++ b/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx
@@ -20,7 +20,7 @@ import type { ExecuteConfig, SessionInfo } from "../api/types";
import { newChatPageUrlStore, newSessionsStore } from "../stores";
import { ChatBar } from "./ChatBar";
import { type ChatMessage, Chats } from "./Chats";
-import ContextFiltersButton from "./ContextFilters";
+import ContextFiltersButton, { ContextFiltersForm } from "./ContextFilters";
import { EmptyStateChatPageContent } from "./EmptyStateChatPageContent";
export function ChatPageContent(props: {
@@ -362,69 +362,92 @@ export function ChatPageContent(props: {
const showEmptyState = !userHasSubmittedMessage && messages.length === 0;
+ const handleUpdateContextFilters = async (
+ values: ContextFilters | undefined,
+ ) => {
+ // if session is not yet created, don't need to update sessions - starting a chat will create a session with the context filters
+ if (sessionId) {
+ await updateSession({
+ authToken: props.authToken,
+ config,
+ sessionId,
+ contextFilters: values,
+ });
+ }
+ };
+
return (
-
+ {
- // if session is not yet created, don't need to update sessions - starting a chat will create a session with the context filters
- if (sessionId) {
- await updateSession({
- authToken: props.authToken,
- config,
- sessionId,
- contextFilters: values,
- });
- }
- }}
+ updateContextFilters={handleUpdateContextFilters}
/>
-