Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
fix whitelabelling
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Co <alex.tuan@mindvalley.com>
  • Loading branch information
onimsha committed Aug 30, 2024
1 parent 1620862 commit 2978e9f
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 19 deletions.
19 changes: 9 additions & 10 deletions web/src/app/admin/connectors/[connector]/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export default function Sidebar() {
{enterpriseSettings && enterpriseSettings.application_name ? (
<HeaderTitle>{enterpriseSettings.application_name}</HeaderTitle>
) : (
<HeaderTitle>Danswer</HeaderTitle>
<h1 className="flex text-2xl text-strong font-bold my-auto">
Eve<sup className="ai-superscript">AI</sup>
</h1>
)}
</div>
</div>
Expand Down Expand Up @@ -77,9 +79,8 @@ export default function Sidebar() {
return (
<div
key={index}
className={`flex items-center mb-6 relative ${
!allowed ? "cursor-not-allowed" : "cursor-pointer"
}`}
className={`flex items-center mb-6 relative ${!allowed ? "cursor-not-allowed" : "cursor-pointer"
}`}
onClick={() => {
if (allowed) {
setFormStep(index - (noCredential ? 1 : 0));
Expand All @@ -88,19 +89,17 @@ export default function Sidebar() {
>
<div className="flex-shrink-0 mr-4 z-10">
<div
className={`rounded-full h-3.5 w-3.5 flex items-center justify-center ${
allowed ? "bg-blue-500" : "bg-gray-300"
}`}
className={`rounded-full h-3.5 w-3.5 flex items-center justify-center ${allowed ? "bg-blue-500" : "bg-gray-300"
}`}
>
{formStep === index && (
<div className="h-2 w-2 rounded-full bg-white"></div>
)}
</div>
</div>
<div
className={`${
index <= formStep ? "text-gray-800" : "text-gray-500"
}`}
className={`${index <= formStep ? "text-gray-800" : "text-gray-500"
}`}
>
{step}
</div>
Expand Down
4 changes: 3 additions & 1 deletion web/src/app/chat/shared_chat_search/FixedLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export default function FixedLogo() {
)}
</div>
) : (
<HeaderTitle>Danswer</HeaderTitle>
<h1 className="flex text-2xl text-strong font-bold my-auto">
Eve<sup className="ai-superscript">AI</sup>
</h1>
)}
</div>
</div>
Expand Down
12 changes: 7 additions & 5 deletions web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export async function generateMetadata(): Promise<Metadata> {
}

return {
title: enterpriseSettings?.application_name ?? "Danswer",
description: "Question answering for your documents",
title: enterpriseSettings?.application_name ?? "Eve AI",
description: "With Eve, you can quickly access the information you need to succeed in Mindvalley",
icons: {
icon: logoLocation,
},
Expand All @@ -62,19 +62,21 @@ export default async function RootLayout({
return (
<html lang="en" className={`${inter.variable} font-sans`}>
<Head>
<title>Settings Unavailable | Danswer</title>
<title>Settings Unavailable | Eve AI</title>
</Head>
<body className="bg-background text-default">
<div className="flex flex-col items-center justify-center min-h-screen">
<div className="mb-2 flex items-center max-w-[175px]">
<HeaderTitle>Danswer</HeaderTitle>
<h1 className="flex text-2xl text-strong font-bold my-auto">
Eve<sup className="ai-superscript">AI</sup>
</h1>
<Logo height={40} width={40} />
</div>

<Card className="p-8 max-w-md">
<h1 className="text-2xl font-bold mb-4 text-error">Error</h1>
<p className="text-text-500">
Your Danswer instance was not configured properly and your
Your instance was not configured properly and your
settings could not be loaded. Please contact your admin to fix
this error.
</p>
Expand Down
4 changes: 3 additions & 1 deletion web/src/components/admin/connectors/AdminSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export function AdminSidebar({ collections }: { collections: Collection[] }) {
)}
</div>
) : (
<HeaderTitle>Danswer</HeaderTitle>
<h1 className="flex text-2xl text-strong font-bold my-auto">
Eve<sup className="ai-superscript">AI</sup>
</h1>
)}
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion web/src/components/embedding/EmbeddingSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export default function EmbeddingSidebar() {
{enterpriseSettings && enterpriseSettings.application_name ? (
<HeaderTitle>{enterpriseSettings.application_name}</HeaderTitle>
) : (
<HeaderTitle>Danswer</HeaderTitle>
<h1 className="flex text-2xl text-strong font-bold my-auto">
Eve<sup className="ai-superscript">AI</sup>
</h1>
)}
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion web/src/components/header/LogoType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export default function LogoType({
)}
</div>
) : (
<HeaderTitle>Danswer</HeaderTitle>
<h1 className="flex text-2xl text-strong font-bold my-auto">
Eve<sup className="ai-superscript">AI</sup>
</h1>
)}
</div>
</div>
Expand Down

0 comments on commit 2978e9f

Please sign in to comment.