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

Commit df03a09

Browse files
authored
Merge pull request #78 from mindvalley/chore/update-ui
Use bigger favicon, and update some texts
2 parents ffd13f3 + 319b1fc commit df03a09

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

backend/danswer/prompts/prompt_utils.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@
44

55
import redis
66
from danswer.chat.models import LlmDoc
7-
from danswer.configs.app_configs import (
8-
AIRTABLE_API_TOKEN,
9-
AIRTABLE_EMPLOYEE_BASE_ID,
10-
AIRTABLE_EMPLOYEE_TABLE_NAME_OR_ID,
11-
REDIS_DB_NUMBER,
12-
REDIS_HOST,
13-
REDIS_PORT,
14-
)
7+
from danswer.configs.app_configs import AIRTABLE_API_TOKEN
8+
from danswer.configs.app_configs import AIRTABLE_EMPLOYEE_BASE_ID
9+
from danswer.configs.app_configs import AIRTABLE_EMPLOYEE_TABLE_NAME_OR_ID
10+
from danswer.configs.app_configs import REDIS_DB_NUMBER
11+
from danswer.configs.app_configs import REDIS_HOST
12+
from danswer.configs.app_configs import REDIS_PORT
1513
from danswer.configs.chat_configs import LANGUAGE_HINT
1614
from danswer.configs.constants import DocumentSource
1715
from danswer.db.models import Prompt
1816
from danswer.llm.answering.models import PromptConfig
19-
from danswer.prompts.chat_prompts import ADDITIONAL_INFO, CITATION_REMINDER
17+
from danswer.prompts.chat_prompts import ADDITIONAL_INFO
18+
from danswer.prompts.chat_prompts import CITATION_REMINDER
2019
from danswer.prompts.constants import CODE_BLOCK_PAT
2120
from danswer.search.models import InferenceChunk
2221
from danswer.utils.logger import setup_logger

web/public/danswer.ico

-9.62 KB
Binary file not shown.

web/public/favicon.ico

449 KB
Binary file not shown.

web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function BackToDanswerButton() {
2424
<div className="absolute bottom-0 bg-background w-full flex border-t border-border py-4">
2525
<div className="mx-auto">
2626
<Button onClick={() => router.push("/chat")}>
27-
Back to {enterpriseSettings?.application_name || "Danswer Chat"}
27+
Back to {enterpriseSettings?.application_name || "Eve AI"}
2828
</Button>
2929
</div>
3030
pr

web/src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ const inter = Inter({
2525
});
2626

2727
export async function generateMetadata(): Promise<Metadata> {
28-
let logoLocation = buildClientUrl("/eve-favicon.svg");
28+
let logoLocation = buildClientUrl("/favicon.ico");
2929
let enterpriseSettings: EnterpriseSettings | null = null;
3030
if (SERVER_SIDE_ONLY__PAID_ENTERPRISE_FEATURES_ENABLED) {
3131
enterpriseSettings = await (await fetchEnterpriseSettingsSS()).json();
3232
logoLocation =
3333
enterpriseSettings && enterpriseSettings.use_custom_logo
3434
? "/api/enterprise-settings/logo"
35-
: buildClientUrl("/eve-favicon.svg");
35+
: buildClientUrl("/favicon.ico");
3636
}
3737

3838
return {

web/src/components/admin/connectors/AdminSidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function AdminSidebar({ collections }: { collections: Collection[] }) {
8181
<p className="ml-1 break-words line-clamp-2 ellipsis leading-none">
8282
Back to{" "}
8383
{combinedSettings.enterpriseSettings?.application_name ||
84-
"Danswer"}
84+
"Eve AI"}
8585
</p>
8686
</button>
8787
</Link>
@@ -126,7 +126,7 @@ export function AdminSidebar({ collections }: { collections: Collection[] }) {
126126
key={"danswerVersion"}
127127
>
128128
<h2 className="text-xs text-text w-52 font-medium pb-2">
129-
Danswer version: {combinedSettings.webVersion}
129+
Eve AI version: {combinedSettings.webVersion}
130130
</h2>
131131
</div>
132132
)}

0 commit comments

Comments
 (0)