From 0bbb180d26468b91fffcbb62f10373d775ae0cb2 Mon Sep 17 00:00:00 2001 From: shreyash0502 Date: Thu, 4 Jul 2024 17:57:00 +0530 Subject: [PATCH 1/3] Replaced Danswer to Darwin in frontend --- web/src/app/admin/add-connector/page.tsx | 4 +- .../app/admin/assistants/AssistantEditor.tsx | 2 +- .../admin/bot/SlackBotConfigCreationForm.tsx | 44 +++++++++---------- web/src/app/admin/bot/[id]/page.tsx | 2 +- web/src/app/admin/bot/new/page.tsx | 2 +- web/src/app/admin/bot/page.tsx | 18 ++++---- .../app/admin/connectors/discourse/page.tsx | 2 +- web/src/app/admin/connectors/dropbox/page.tsx | 2 +- web/src/app/admin/connectors/file/page.tsx | 4 +- web/src/app/admin/connectors/github/page.tsx | 4 +- web/src/app/admin/connectors/gitlab/page.tsx | 4 +- .../app/admin/connectors/gmail/Credential.tsx | 4 +- web/src/app/admin/connectors/gmail/page.tsx | 2 +- web/src/app/admin/connectors/gong/page.tsx | 2 +- .../connectors/google-drive/Credential.tsx | 4 +- .../admin/connectors/google-drive/page.tsx | 2 +- web/src/app/admin/connectors/guru/page.tsx | 2 +- web/src/app/admin/connectors/hubspot/page.tsx | 2 +- web/src/app/admin/connectors/loopio/page.tsx | 2 +- web/src/app/admin/connectors/notion/page.tsx | 6 +-- .../admin/connectors/productboard/page.tsx | 2 +- .../app/admin/connectors/salesforce/page.tsx | 6 +-- .../app/admin/connectors/sharepoint/page.tsx | 2 +- web/src/app/admin/connectors/slab/page.tsx | 4 +- web/src/app/admin/connectors/slack/page.tsx | 2 +- web/src/app/admin/connectors/teams/page.tsx | 4 +- web/src/app/admin/connectors/zulip/page.tsx | 2 +- .../embedding/ModelSelectionConfirmation.tsx | 4 +- .../admin/models/embedding/embeddingModels.ts | 2 +- web/src/app/admin/models/embedding/page.tsx | 10 ++--- .../app/admin/models/llm/LLMConfiguration.tsx | 2 +- web/src/app/admin/settings/SettingsForm.tsx | 2 +- web/src/app/admin/settings/page.tsx | 2 +- .../assistants/gallery/AssistantsGallery.tsx | 2 +- web/src/app/auth/login/LoginText.tsx | 2 +- web/src/app/auth/signup/page.tsx | 2 +- web/src/app/chat/ChatPopup.tsx | 2 +- web/src/app/chat/message/Messages.tsx | 2 +- .../app/chat/sessionSidebar/ChatSidebar.tsx | 4 +- .../shared/[chatId]/SharedChatDisplay.tsx | 2 +- web/src/app/ee/admin/api-key/page.tsx | 2 +- .../CustomAnalyticsUpdateForm.tsx | 2 +- .../performance/custom-analytics/page.tsx | 4 +- .../admin/whitelabeling/WhitelabelingForm.tsx | 8 ++-- web/src/app/layout.tsx | 2 +- .../components/DanswerInitializingLoader.tsx | 2 +- web/src/components/SwitchModelModal.tsx | 2 +- web/src/components/UserDropdown.tsx | 4 +- web/src/components/header/Header.tsx | 4 +- web/src/components/health/healthcheck.tsx | 2 +- .../search/NoCompleteSourceModal.tsx | 2 +- .../initialSetup/search/NoSourcesModal.tsx | 2 +- .../initialSetup/welcome/WelcomeModal.tsx | 8 ++-- web/src/components/llm/ApiKeyModal.tsx | 4 +- web/src/lib/userSS.ts | 2 +- 55 files changed, 112 insertions(+), 112 deletions(-) diff --git a/web/src/app/admin/add-connector/page.tsx b/web/src/app/admin/add-connector/page.tsx index d6ad8324ef3..1636679be3e 100644 --- a/web/src/app/admin/add-connector/page.tsx +++ b/web/src/app/admin/add-connector/page.tsx @@ -49,8 +49,8 @@ export default function Page() { /> - Connect Danswer to your organization's knowledge sources. - We'll automatically sync your data into Danswer, so you can find + Connect Darwin to your organization's knowledge sources. + We'll automatically sync your data into Darwin, so you can find exactly what you're looking for in one place. diff --git a/web/src/app/admin/assistants/AssistantEditor.tsx b/web/src/app/admin/assistants/AssistantEditor.tsx index ca3ab62c275..e7adb7b4102 100644 --- a/web/src/app/admin/assistants/AssistantEditor.tsx +++ b/web/src/app/admin/assistants/AssistantEditor.tsx @@ -540,7 +540,7 @@ export function AssistantEditor({ <> If this functionality would be useful, reach out to the administrators of - Danswer for assistance. + Darwin for assistance. )} diff --git a/web/src/app/admin/bot/SlackBotConfigCreationForm.tsx b/web/src/app/admin/bot/SlackBotConfigCreationForm.tsx index 8be9ef6adf0..0070b39bb53 100644 --- a/web/src/app/admin/bot/SlackBotConfigCreationForm.tsx +++ b/web/src/app/admin/bot/SlackBotConfigCreationForm.tsx @@ -155,8 +155,8 @@ export const SlackBotCreationForm = ({ const errorMsg = responseJson.detail || responseJson.message; setPopup({ message: isUpdate - ? `Error updating DanswerBot config - ${errorMsg}` - : `Error creating DanswerBot config - ${errorMsg}`, + ? `Error updating DarwinBot config - ${errorMsg}` + : `Error creating DarwinBot config - ${errorMsg}`, type: "error", }); } @@ -175,10 +175,10 @@ export const SlackBotCreationForm = ({
The names of the Slack channels you want this configuration to apply to. For example, - '#ask-danswer'. + '#ask-darwin'.

- NOTE: you still need to add DanswerBot to the + NOTE: you still need to add DarwinBot to the channel(s) in Slack itself. Setting this config will not auto-add the bot to the channel.
@@ -190,15 +190,15 @@ export const SlackBotCreationForm = ({ label="Response Format" subtext={ <> - If set to Citations, DanswerBot will respond with a direct + If set to Citations, DarwinBot will respond with a direct answer with inline citations. It will also provide links to these cited documents below the answer. When in doubt, choose this option.

- If set to Quotes, DanswerBot will respond with a direct + If set to Quotes, DarwinBot will respond with a direct answer as well as with quotes pulled from the context - documents to support that answer. DanswerBot will also + documents to support that answer. DarwinBot will also give a list of relevant documents. Choose this option if you want a very detailed response AND/OR a list of relevant documents would be useful just in case the LLM @@ -213,7 +213,7 @@ export const SlackBotCreationForm = ({ - When should DanswerBot respond? + When should DarwinBot respond? @@ -252,8 +252,8 @@ export const SlackBotCreationForm = ({ {values.still_need_help_enabled && ( @@ -268,8 +268,8 @@ export const SlackBotCreationForm = ({ button. For example, 'mark@acme.com'.
Or provide a user group by either the name or the - handle. For example, 'Danswer Team' or - 'danswer-team'. + handle. For example, 'Darwin Team' or + 'darwin-team'.

If no emails are provided, we will not tag anyone and @@ -287,7 +287,7 @@ export const SlackBotCreationForm = ({ Use either a Persona or Document Sets to control how - DanswerBot answers. + DarwinBot answers.
    @@ -297,7 +297,7 @@ export const SlackBotCreationForm = ({
  • You should use Document Sets if you just want to control - which documents DanswerBot uses as references. + which documents DarwinBot uses as references.
@@ -325,8 +325,8 @@ export const SlackBotCreationForm = ({
- The document sets that DanswerBot should search - through. If left blank, DanswerBot will search + The document sets that DarwinBot should search + through. If left blank, DarwinBot will search through all documents.
diff --git a/web/src/app/admin/bot/[id]/page.tsx b/web/src/app/admin/bot/[id]/page.tsx index 2cc5eaea18e..060ac5d79c1 100644 --- a/web/src/app/admin/bot/[id]/page.tsx +++ b/web/src/app/admin/bot/[id]/page.tsx @@ -73,7 +73,7 @@ async function Page({ params }: { params: { id: string } }) { Edit the existing configuration below! This config will determine how - DanswerBot behaves in the specified channels. + DarwinBot behaves in the specified channels. Define a new configuration below! This config will determine how - DanswerBot behaves in the specified channels. + DarwinBot behaves in the specified channels. diff --git a/web/src/app/admin/bot/page.tsx b/web/src/app/admin/bot/page.tsx index bdf081be67d..7477bd0b082 100644 --- a/web/src/app/admin/bot/page.tsx +++ b/web/src/app/admin/bot/page.tsx @@ -196,22 +196,22 @@ const Main = () => { {popup} - Setup a Slack bot that connects to Danswer. Once setup, you will be able - to ask questions to Danswer directly from Slack. Additionally, you can: + Setup a Slack bot that connects to Darwin. Once setup, you will be able + to ask questions to Darwin directly from Slack. Additionally, you can:
  • - Setup DanswerBot to automatically answer questions in certain + Setup DarwinBot to automatically answer questions in certain channels.
  • - Choose which document sets DanswerBot should answer from, depending + Choose which document sets DarwinBot should answer from, depending on the channel the question is being asked.
  • - Directly message DanswerBot to search just as you would in the web + Directly message DarwinBot to search just as you would in the web UI.
@@ -226,7 +226,7 @@ const Main = () => { > guide{" "} - found in the Danswer documentation to get started! + found in the Darwin documentation to get started!
Step 1: Configure Slack Tokens @@ -267,10 +267,10 @@ const Main = () => { )} {slackBotTokens && ( <> - Step 2: Setup DanswerBot + Step 2: Setup DarwinBot - Configure Danswer to automatically answer questions in Slack - channels. By default, Danswer only responds in channels where a + Configure Darwin to automatically answer questions in Slack + channels. By default, Darwin only responds in channels where a configuration is setup unless it is explicitly tagged. diff --git a/web/src/app/admin/connectors/discourse/page.tsx b/web/src/app/admin/connectors/discourse/page.tsx index 9ba840d3d92..3de1e53a9bb 100644 --- a/web/src/app/admin/connectors/discourse/page.tsx +++ b/web/src/app/admin/connectors/discourse/page.tsx @@ -88,7 +88,7 @@ const Main = () => { {popup} This connector allows you to sync all your Discourse Topics into - Danswer. More details on how to setup the Discourse connector can be + Darwin. More details on how to setup the Discourse connector can be found in{" "} { > setup guide {" "} - on the Danswer docs to obtain a Dropbox token. + on the Darwin docs to obtain a Dropbox token. diff --git a/web/src/app/admin/connectors/file/page.tsx b/web/src/app/admin/connectors/file/page.tsx index b2857f66c61..e46b75ccf2b 100644 --- a/web/src/app/admin/connectors/file/page.tsx +++ b/web/src/app/admin/connectors/file/page.tsx @@ -60,7 +60,7 @@ const Main = () => { {filesAreUploading && } Specify files below, click the Upload button, and the contents of - these files will be searchable via Danswer! Currently supported file + these files will be searchable via Darwin! Currently supported file types include .txt, .pdf, .docx, .pptx,{" "} .xlsx, .csv, .md, .mdx, .conf,{" "} .log, .json, .tsv, .xml, .yml,{" "} @@ -76,7 +76,7 @@ const Main = () => {
{" "} where {""} is the link to the file. This will enable - Danswer to link users to the original document when they click on the + Darwin to link users to the original document when they click on the search result. More details on this can be found in the{" "} { } validationSchema={Yup.object().shape({ repo_owner: Yup.string().required( - "Please enter the owner of the repository to index e.g. danswer-ai" + "Please enter the owner of the repository to index e.g. darwin-ai" ), repo_name: Yup.string().required( - "Please enter the name of the repository to index e.g. danswer " + "Please enter the name of the repository to index e.g. darwin " ), include_prs: Yup.boolean().required(), include_issues: Yup.boolean().required(), diff --git a/web/src/app/admin/connectors/gitlab/page.tsx b/web/src/app/admin/connectors/gitlab/page.tsx index 595cd575f76..74034f7f3cd 100644 --- a/web/src/app/admin/connectors/gitlab/page.tsx +++ b/web/src/app/admin/connectors/gitlab/page.tsx @@ -218,10 +218,10 @@ const Main = () => { } validationSchema={Yup.object().shape({ project_owner: Yup.string().required( - "Please enter the owner of the project to index e.g. danswer-ai" + "Please enter the owner of the project to index e.g. darwin-ai" ), project_name: Yup.string().required( - "Please enter the name of the project to index e.g. danswer " + "Please enter the name of the project to index e.g. darwin " ), include_mrs: Yup.boolean().required(), include_issues: Yup.boolean().required(), diff --git a/web/src/app/admin/connectors/gmail/Credential.tsx b/web/src/app/admin/connectors/gmail/Credential.tsx index 68f5bba2d20..8fc32dfc7cf 100644 --- a/web/src/app/admin/connectors/gmail/Credential.tsx +++ b/web/src/app/admin/connectors/gmail/Credential.tsx @@ -316,7 +316,7 @@ export const GmailOAuthSection = ({ return (

- When using a Gmail Service Account, you can either have Danswer act as + When using a Gmail Service Account, you can either have Darwin act as the service account itself OR you can specify an account for the service account to impersonate.
@@ -371,7 +371,7 @@ export const GmailOAuthSection = ({

))} diff --git a/web/src/app/auth/login/LoginText.tsx b/web/src/app/auth/login/LoginText.tsx index b465ad33530..52a241bad94 100644 --- a/web/src/app/auth/login/LoginText.tsx +++ b/web/src/app/auth/login/LoginText.tsx @@ -12,6 +12,6 @@ export const LoginText = () => { } return ( - <>Log In to {settings?.enterpriseSettings?.application_name || "Danswer"} + <>Log In to {settings?.enterpriseSettings?.application_name || "Darwin"} ); }; diff --git a/web/src/app/auth/signup/page.tsx b/web/src/app/auth/signup/page.tsx index 9a2631c4350..6a3c15abc48 100644 --- a/web/src/app/auth/signup/page.tsx +++ b/web/src/app/auth/signup/page.tsx @@ -56,7 +56,7 @@ const Page = async () => {
- Sign Up for Danswer + Sign Up for Darwin
{alternativeAssistant ? alternativeAssistant.name - : personaName || "Danswer"} + : personaName || "Darwin"}
{query === undefined && diff --git a/web/src/app/chat/sessionSidebar/ChatSidebar.tsx b/web/src/app/chat/sessionSidebar/ChatSidebar.tsx index 9b0d94020f0..e9207488e06 100644 --- a/web/src/app/chat/sessionSidebar/ChatSidebar.tsx +++ b/web/src/app/chat/sessionSidebar/ChatSidebar.tsx @@ -89,12 +89,12 @@ export const ChatSidebar = ({ {!NEXT_PUBLIC_DO_NOT_USE_TOGGLE_OFF_DANSWER_POWERED && (

- Powered by Danswer + Powered by Darwin

)} ) : ( - Danswer + Darwin )} diff --git a/web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx b/web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx index c476d6d6200..59ac527b574 100644 --- a/web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx +++ b/web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx @@ -19,7 +19,7 @@ function BackToDanswerButton() {
diff --git a/web/src/app/ee/admin/api-key/page.tsx b/web/src/app/ee/admin/api-key/page.tsx index 50eb9824711..7ee45b9eace 100644 --- a/web/src/app/ee/admin/api-key/page.tsx +++ b/web/src/app/ee/admin/api-key/page.tsx @@ -28,7 +28,7 @@ import { deleteApiKey, regenerateApiKey } from "./lib"; import { DanswerApiKeyForm } from "./DanswerApiKeyForm"; const API_KEY_TEXT = ` -API Keys allow you to access Danswer APIs programmatically. Click the button below to generate a new API Key. +API Keys allow you to access Darwin APIs programmatically. Click the button below to generate a new API Key. `; function NewApiKeyModal({ diff --git a/web/src/app/ee/admin/performance/custom-analytics/CustomAnalyticsUpdateForm.tsx b/web/src/app/ee/admin/performance/custom-analytics/CustomAnalyticsUpdateForm.tsx index c542a69eba1..d2b1a585cd0 100644 --- a/web/src/app/ee/admin/performance/custom-analytics/CustomAnalyticsUpdateForm.tsx +++ b/web/src/app/ee/admin/performance/custom-analytics/CustomAnalyticsUpdateForm.tsx @@ -89,7 +89,7 @@ export function CustomAnalyticsUpdateForm() { For security reasons, you must provide a secret key to update this script. This should be the value of the{" "} CUSTOM_ANALYTICS_SECRET_KEY environment variable set when - initially setting up Danswer. + initially setting up Darwin. To set up custom analytics scripts, please work with the team who - setup Danswer in your organization to set the{" "} + setup Darwin in your organization to set the{" "} CUSTOM_ANALYTICS_SECRET_KEY environment variable. @@ -22,7 +22,7 @@ function Main() { return (
- This allows you to bring your own analytics tool to Danswer! Copy the + This allows you to bring your own analytics tool to Darwin! Copy the Web snippet from your analytics provider into the box below, and we'll start sending usage events. diff --git a/web/src/app/ee/admin/whitelabeling/WhitelabelingForm.tsx b/web/src/app/ee/admin/whitelabeling/WhitelabelingForm.tsx index 6b4b7147d15..9638810b5b0 100644 --- a/web/src/app/ee/admin/whitelabeling/WhitelabelingForm.tsx +++ b/web/src/app/ee/admin/whitelabeling/WhitelabelingForm.tsx @@ -94,8 +94,8 @@ export function WhitelabelingForm() { @@ -135,7 +135,7 @@ export function WhitelabelingForm() {
) : ( - Specify your own logo to replace the standard Danswer logo. + Specify your own logo to replace the standard Darwin logo. )} @@ -164,7 +164,7 @@ export function WhitelabelingForm() { name="custom_popup_header" subtext={`The title for the popup that will be displayed for each user on their initial visit to the application. If left blank AND Custom Popup Content is specified, will use "Welcome to ${ - values.application_name || "Danswer" + values.application_name || "Darwin" }!".`} placeholder="Initial Popup Header" disabled={isSubmitting} diff --git a/web/src/app/layout.tsx b/web/src/app/layout.tsx index a0c95151e0c..d30100076a6 100644 --- a/web/src/app/layout.tsx +++ b/web/src/app/layout.tsx @@ -21,7 +21,7 @@ export async function generateMetadata(): Promise { : buildClientUrl("/danswer.ico"); return { - title: dynamicSettings.enterpriseSettings?.application_name ?? "Danswer", + title: dynamicSettings.enterpriseSettings?.application_name ?? "Darwin", description: "Question answering for your documents", icons: { icon: logoLocation, diff --git a/web/src/components/DanswerInitializingLoader.tsx b/web/src/components/DanswerInitializingLoader.tsx index a910113a34c..6bc55b8a5ae 100644 --- a/web/src/components/DanswerInitializingLoader.tsx +++ b/web/src/components/DanswerInitializingLoader.tsx @@ -11,7 +11,7 @@ export function DanswerInitializingLoader() { Initializing{" "} - {settings?.enterpriseSettings?.application_name ?? "Danswer"} + {settings?.enterpriseSettings?.application_name ?? "Darwin"} ); diff --git a/web/src/components/SwitchModelModal.tsx b/web/src/components/SwitchModelModal.tsx index d3174275d6f..1ec5d82e2c2 100644 --- a/web/src/components/SwitchModelModal.tsx +++ b/web/src/components/SwitchModelModal.tsx @@ -24,7 +24,7 @@ export function SwitchModelModal({
Please click the button below to choose a new model. Don't worry, the re-indexing necessary for the switch will happen in the background - - your use of Danswer will not be interrupted. + - your use of Darwin will not be interrupted.
diff --git a/web/src/components/UserDropdown.tsx b/web/src/components/UserDropdown.tsx index cabd08f8540..5ddbd9101ea 100644 --- a/web/src/components/UserDropdown.tsx +++ b/web/src/components/UserDropdown.tsx @@ -87,7 +87,7 @@ export function UserDropdown({ className="flex py-3 px-4 rounded cursor-pointer hover:bg-hover-light" > - Danswer Search + Darwin Search )} {settings.chat_page_enabled && ( @@ -97,7 +97,7 @@ export function UserDropdown({ className="flex py-3 px-4 rounded cursor-pointer hover:bg-hover-light" > - Danswer Chat + Darwin Chat {!NEXT_PUBLIC_DO_NOT_USE_TOGGLE_OFF_DANSWER_POWERED && (

- Powered by Danswer + Powered by Darwin

)}
) : ( - Danswer + Darwin )} diff --git a/web/src/components/health/healthcheck.tsx b/web/src/components/health/healthcheck.tsx index b8134d98964..ba454f882b5 100644 --- a/web/src/components/health/healthcheck.tsx +++ b/web/src/components/health/healthcheck.tsx @@ -40,7 +40,7 @@ export const HealthCheckBanner = () => {

The backend is currently unavailable.

- If this is your initial setup or you just updated your Danswer + If this is your initial setup or you just updated your Darwin deployment, this is likely because the backend is still starting up. Give it a minute or two, and then refresh the page. If that does not work, make sure the backend is setup and/or contact an administrator. diff --git a/web/src/components/initialSetup/search/NoCompleteSourceModal.tsx b/web/src/components/initialSetup/search/NoCompleteSourceModal.tsx index 42aba7ab189..31825dea39c 100644 --- a/web/src/components/initialSetup/search/NoCompleteSourceModal.tsx +++ b/web/src/components/initialSetup/search/NoCompleteSourceModal.tsx @@ -42,7 +42,7 @@ export function NoCompleteSourcesModal({

You've connected some sources, but none of them have finished syncing. Depending on the size of the knowledge base(s) you've - connected to Danswer, it can take anywhere between 30 seconds to a + connected to Darwin, it can take anywhere between 30 seconds to a few days for the initial sync to complete. So far we've synced{" "} {totalDocs} documents.
diff --git a/web/src/components/initialSetup/search/NoSourcesModal.tsx b/web/src/components/initialSetup/search/NoSourcesModal.tsx index f220e274924..7fc62087f1c 100644 --- a/web/src/components/initialSetup/search/NoSourcesModal.tsx +++ b/web/src/components/initialSetup/search/NoSourcesModal.tsx @@ -40,7 +40,7 @@ export function NoSourcesModal() { Or, if you're looking for a pure ChatGPT-like experience without any organization specific knowledge, then you can head - over to the Chat page and start chatting with Danswer right away! + over to the Chat page and start chatting with Darwin right away!