Skip to content

Commit

Permalink
Merge pull request #78 from mindvalley/chore/update-ui
Browse files Browse the repository at this point in the history
Use bigger favicon, and update some texts
  • Loading branch information
onimsha authored Nov 25, 2024
2 parents ffd13f3 + 319b1fc commit df03a09
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 df03a09

Please sign in to comment.