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

Commit

Permalink
Use bigger favicon, and update some texts
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 Nov 25, 2024
1 parent ffd13f3 commit 319b1fc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
17 changes: 8 additions & 9 deletions backend/danswer/prompts/prompt_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@

import redis
from danswer.chat.models import LlmDoc
from danswer.configs.app_configs import (
AIRTABLE_API_TOKEN,
AIRTABLE_EMPLOYEE_BASE_ID,
AIRTABLE_EMPLOYEE_TABLE_NAME_OR_ID,
REDIS_DB_NUMBER,
REDIS_HOST,
REDIS_PORT,
)
from danswer.configs.app_configs import AIRTABLE_API_TOKEN
from danswer.configs.app_configs import AIRTABLE_EMPLOYEE_BASE_ID
from danswer.configs.app_configs import AIRTABLE_EMPLOYEE_TABLE_NAME_OR_ID
from danswer.configs.app_configs import REDIS_DB_NUMBER
from danswer.configs.app_configs import REDIS_HOST
from danswer.configs.app_configs import REDIS_PORT
from danswer.configs.chat_configs import LANGUAGE_HINT
from danswer.configs.constants import DocumentSource
from danswer.db.models import Prompt
from danswer.llm.answering.models import PromptConfig
from danswer.prompts.chat_prompts import ADDITIONAL_INFO, CITATION_REMINDER
from danswer.prompts.chat_prompts import ADDITIONAL_INFO
from danswer.prompts.chat_prompts import CITATION_REMINDER
from danswer.prompts.constants import CODE_BLOCK_PAT
from danswer.search.models import InferenceChunk
from danswer.utils.logger import setup_logger
Expand Down
Binary file removed web/public/danswer.ico
Binary file not shown.
Binary file added web/public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function BackToDanswerButton() {
<div className="absolute bottom-0 bg-background w-full flex border-t border-border py-4">
<div className="mx-auto">
<Button onClick={() => router.push("/chat")}>
Back to {enterpriseSettings?.application_name || "Danswer Chat"}
Back to {enterpriseSettings?.application_name || "Eve AI"}
</Button>
</div>
pr
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ const inter = Inter({
});

export async function generateMetadata(): Promise<Metadata> {
let logoLocation = buildClientUrl("/eve-favicon.svg");
let logoLocation = buildClientUrl("/favicon.ico");
let enterpriseSettings: EnterpriseSettings | null = null;
if (SERVER_SIDE_ONLY__PAID_ENTERPRISE_FEATURES_ENABLED) {
enterpriseSettings = await (await fetchEnterpriseSettingsSS()).json();
logoLocation =
enterpriseSettings && enterpriseSettings.use_custom_logo
? "/api/enterprise-settings/logo"
: buildClientUrl("/eve-favicon.svg");
: buildClientUrl("/favicon.ico");
}

return {
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/admin/connectors/AdminSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function AdminSidebar({ collections }: { collections: Collection[] }) {
<p className="ml-1 break-words line-clamp-2 ellipsis leading-none">
Back to{" "}
{combinedSettings.enterpriseSettings?.application_name ||
"Danswer"}
"Eve AI"}
</p>
</button>
</Link>
Expand Down Expand Up @@ -126,7 +126,7 @@ export function AdminSidebar({ collections }: { collections: Collection[] }) {
key={"danswerVersion"}
>
<h2 className="text-xs text-text w-52 font-medium pb-2">
Danswer version: {combinedSettings.webVersion}
Eve AI version: {combinedSettings.webVersion}
</h2>
</div>
)}
Expand Down

0 comments on commit 319b1fc

Please sign in to comment.