diff --git a/backend/danswer/connectors/discourse/connector.py b/backend/danswer/connectors/discourse/connector.py index f21bcc198..d74aad0f2 100644 --- a/backend/danswer/connectors/discourse/connector.py +++ b/backend/danswer/connectors/discourse/connector.py @@ -64,7 +64,7 @@ class DiscourseConnector(PollConnector): self.permissions: DiscoursePerms | None = None self.active_categories: set | None = None - @rate_limit_builder(max_calls=100, period=60) + @rate_limit_builder(max_calls=50, period=60) def _make_request(self, endpoint: str, params: dict | None = None) -> Response: if not self.permissions: raise ConnectorMissingCredentialError("Discourse") diff --git a/web/src/app/chat/ChatBanner.tsx b/web/src/app/chat/ChatBanner.tsx index 39df94e99..de3e199f4 100644 --- a/web/src/app/chat/ChatBanner.tsx +++ b/web/src/app/chat/ChatBanner.tsx @@ -14,15 +14,18 @@ export function ChatBanner() { return (
diff --git a/web/src/app/chat/ChatPage.tsx b/web/src/app/chat/ChatPage.tsx index 56eca8032..440a2a6ba 100644 --- a/web/src/app/chat/ChatPage.tsx +++ b/web/src/app/chat/ChatPage.tsx @@ -1203,6 +1203,23 @@ export function ChatPage({ currentChatSession={selectedChatSession} /> )} +
+
+ +
{documentSidebarInitialWidth !== undefined ? ( {({ getRootProps }) => ( @@ -1231,8 +1248,7 @@ export function ChatPage({ ref={scrollableDivRef} > {/* ChatBanner is a custom banner that displays a admin-specified message at - the top of the chat page. Only used in the EE version of the app. */} - + the top of the chat page. Oly used in the EE version of the app. */} {messageHistory.length === 0 && !isFetchingChatMessages && diff --git a/web/src/app/chat/sessionSidebar/HistorySidebar.tsx b/web/src/app/chat/sessionSidebar/HistorySidebar.tsx index e29e18d51..7b142cfc9 100644 --- a/web/src/app/chat/sessionSidebar/HistorySidebar.tsx +++ b/web/src/app/chat/sessionSidebar/HistorySidebar.tsx @@ -99,22 +99,28 @@ export const HistorySidebar = forwardRef( h-screen transition-transform`} > -
-
+
+
{enterpriseSettings && enterpriseSettings.application_name ? ( - {enterpriseSettings.application_name} +
+ + {enterpriseSettings.application_name} + + {!NEXT_PUBLIC_DO_NOT_USE_TOGGLE_OFF_DANSWER_POWERED && ( +

Powered by Danswer

+ )} +
) : ( Danswer )}
- {toggleSidebar && ( - diff --git a/web/src/app/chat/shared_chat_search/FixedLogo.tsx b/web/src/app/chat/shared_chat_search/FixedLogo.tsx index 713b285bf..2316d6521 100644 --- a/web/src/app/chat/shared_chat_search/FixedLogo.tsx +++ b/web/src/app/chat/shared_chat_search/FixedLogo.tsx @@ -3,6 +3,7 @@ import { HeaderTitle } from "@/components/header/Header"; import { Logo } from "@/components/Logo"; import { SettingsContext } from "@/components/settings/SettingsProvider"; +import { NEXT_PUBLIC_DO_NOT_USE_TOGGLE_OFF_DANSWER_POWERED } from "@/lib/constants"; import { useContext } from "react"; export default function FixedLogo() { @@ -11,17 +12,24 @@ export default function FixedLogo() { const enterpriseSettings = combinedSettings?.enterpriseSettings; return ( -
- {" "} - -
+ ); } diff --git a/web/src/app/chat/shared_chat_search/FunctionalWrapper.tsx b/web/src/app/chat/shared_chat_search/FunctionalWrapper.tsx index e3ffa1c40..8195bfb98 100644 --- a/web/src/app/chat/shared_chat_search/FunctionalWrapper.tsx +++ b/web/src/app/chat/shared_chat_search/FunctionalWrapper.tsx @@ -10,12 +10,11 @@ const ToggleSwitch = () => { const commandSymbol = KeyboardSymbol(); const pathname = usePathname(); const router = useRouter(); + const [activeTab, setActiveTab] = useState(() => { - if (typeof window !== "undefined") { - return localStorage.getItem("activeTab") || "chat"; - } - return "chat"; + return pathname == "/search" ? "search" : "chat"; }); + const [isInitialLoad, setIsInitialLoad] = useState(true); useEffect(() => { diff --git a/web/src/app/search/page.tsx b/web/src/app/search/page.tsx index dfc9dd38c..93e6ad4f1 100644 --- a/web/src/app/search/page.tsx +++ b/web/src/app/search/page.tsx @@ -178,7 +178,7 @@ export default async function Home() { : false; const agenticSearchEnabled = agenticSearchToggle - ? agenticSearchToggle.value.toLocaleLowerCase() == "true" || true + ? agenticSearchToggle.value.toLocaleLowerCase() == "true" || false : false; return ( diff --git a/web/src/components/Logo.tsx b/web/src/components/Logo.tsx index 6946bfa4b..e45e3b493 100644 --- a/web/src/components/Logo.tsx +++ b/web/src/components/Logo.tsx @@ -31,7 +31,10 @@ export function Logo({ } return ( -
+
{/* TODO: figure out how to use Next Image here */}
-
+
-