From 16e023a8cec13908fd530a96cbf3ca463e8e05a8 Mon Sep 17 00:00:00 2001 From: hagen-danswer <hagen@danswer.ai> Date: Fri, 7 Jun 2024 11:20:58 -0700 Subject: [PATCH] Revert "ran prettier" This reverts commit 750c1df0bbdddeedfb036f085ead7a4a850b6ef1. --- web/src/app/admin/connectors/teams/page.tsx | 14 +++++++------- web/src/app/chat/ChatPage.tsx | 8 ++++---- web/src/app/chat/message/custom-code-styles.css | 4 +++- web/src/app/chat/useDocumentSelection.ts | 2 +- web/src/components/Bubble.tsx | 4 ++-- .../admin/connectors/table/ConnectorsTable.tsx | 4 ++-- .../connectors/table/SingleUseConnectorsTable.tsx | 2 +- web/src/lib/assistants/fetchPersonaEditorInfoSS.ts | 4 ++-- 8 files changed, 22 insertions(+), 20 deletions(-) diff --git a/web/src/app/admin/connectors/teams/page.tsx b/web/src/app/admin/connectors/teams/page.tsx index 30ea4d3bc..4ec0c9837 100644 --- a/web/src/app/admin/connectors/teams/page.tsx +++ b/web/src/app/admin/connectors/teams/page.tsx @@ -73,9 +73,9 @@ const MainSection = () => { return ( <> <Text> - The Teams connector allows you to index and search through your Teams - channels. Once setup, all messages from the channels contained in the - specified teams will be queryable within Danswer. + The Teams connector allows you to index and search through your + Teams channels. Once setup, all messages from the channels contained + in the specified teams will be queryable within Danswer. </Text> <Title className="mb-2 mt-6 ml-auto mr-auto"> @@ -165,8 +165,8 @@ const MainSection = () => { {teamsConnectorIndexingStatuses.length > 0 && ( <> <Text className="mb-2"> - The latest messages from the specified teams are fetched every 10 - minutes. + The latest messages from the specified teams are + fetched every 10 minutes. </Text> <div className="mb-2"> <ConnectorsTable<TeamsConfig, TeamsCredentialJson> @@ -241,8 +241,8 @@ const MainSection = () => { ) : ( <Text> Please provide all Azure info in Step 1 first! Once you're done - with that, you can then specify which teams you want to make - searchable. + with that, you can then specify which teams you want to + make searchable. </Text> )} </> diff --git a/web/src/app/chat/ChatPage.tsx b/web/src/app/chat/ChatPage.tsx index 1fec3bb27..3a385c1af 100644 --- a/web/src/app/chat/ChatPage.tsx +++ b/web/src/app/chat/ChatPage.tsx @@ -332,10 +332,10 @@ export function ChatPage({ (persona) => persona.id === existingChatSessionPersonaId ) : defaultSelectedPersonaId !== undefined - ? filteredAssistants.find( - (persona) => persona.id === defaultSelectedPersonaId - ) - : undefined + ? filteredAssistants.find( + (persona) => persona.id === defaultSelectedPersonaId + ) + : undefined ); const livePersona = selectedPersona || filteredAssistants[0] || availablePersonas[0]; diff --git a/web/src/app/chat/message/custom-code-styles.css b/web/src/app/chat/message/custom-code-styles.css index 30dee5540..b7d419beb 100644 --- a/web/src/app/chat/message/custom-code-styles.css +++ b/web/src/app/chat/message/custom-code-styles.css @@ -21,7 +21,9 @@ pre[class*="language-"] { ::-webkit-scrollbar-thumb { background: #4b5563; /* Dark handle color */ border-radius: 10px; - transition: background 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effect */ + transition: + background 0.3s ease, + box-shadow 0.3s ease; /* Smooth transition for hover effect */ } ::-webkit-scrollbar-thumb:hover { diff --git a/web/src/app/chat/useDocumentSelection.ts b/web/src/app/chat/useDocumentSelection.ts index 9e5fa3d2c..df33f13c3 100644 --- a/web/src/app/chat/useDocumentSelection.ts +++ b/web/src/app/chat/useDocumentSelection.ts @@ -21,7 +21,7 @@ export function useDocumentSelection(): [ DanswerDocument[], (document: DanswerDocument) => void, () => void, - number + number, ] { const [selectedDocuments, setSelectedDocuments] = useState<DanswerDocument[]>( [] diff --git a/web/src/components/Bubble.tsx b/web/src/components/Bubble.tsx index 8bf6f1977..1b559ec24 100644 --- a/web/src/components/Bubble.tsx +++ b/web/src/components/Bubble.tsx @@ -27,8 +27,8 @@ export function Bubble({ (notSelectable ? " bg-background cursor-default" : isSelected - ? " bg-hover cursor-pointer" - : " bg-background hover:bg-hover-light cursor-pointer") + ? " bg-hover cursor-pointer" + : " bg-background hover:bg-hover-light cursor-pointer") } onClick={onClick} > diff --git a/web/src/components/admin/connectors/table/ConnectorsTable.tsx b/web/src/components/admin/connectors/table/ConnectorsTable.tsx index 1a84fdcd7..be9448bac 100644 --- a/web/src/components/admin/connectors/table/ConnectorsTable.tsx +++ b/web/src/components/admin/connectors/table/ConnectorsTable.tsx @@ -87,7 +87,7 @@ export function StatusRow<ConnectorConfigType, ConnectorCredentialType>({ export interface ColumnSpecification< ConnectorConfigType, - ConnectorCredentialType + ConnectorCredentialType, > { header: string; key: string; @@ -101,7 +101,7 @@ export interface ColumnSpecification< export interface ConnectorsTableProps< ConnectorConfigType, - ConnectorCredentialType + ConnectorCredentialType, > { connectorIndexingStatuses: ConnectorIndexingStatus< ConnectorConfigType, diff --git a/web/src/components/admin/connectors/table/SingleUseConnectorsTable.tsx b/web/src/components/admin/connectors/table/SingleUseConnectorsTable.tsx index 47d848357..f1308a995 100644 --- a/web/src/components/admin/connectors/table/SingleUseConnectorsTable.tsx +++ b/web/src/components/admin/connectors/table/SingleUseConnectorsTable.tsx @@ -46,7 +46,7 @@ const SingleUseConnectorStatus = ({ export function SingleUseConnectorsTable< ConnectorConfigType, - ConnectorCredentialType + ConnectorCredentialType, >({ connectorIndexingStatuses, liveCredential, diff --git a/web/src/lib/assistants/fetchPersonaEditorInfoSS.ts b/web/src/lib/assistants/fetchPersonaEditorInfoSS.ts index 17484cd1b..b98564bee 100644 --- a/web/src/lib/assistants/fetchPersonaEditorInfoSS.ts +++ b/web/src/lib/assistants/fetchPersonaEditorInfoSS.ts @@ -18,7 +18,7 @@ export async function fetchAssistantEditorInfoSS( existingPersona: Persona | null; tools: ToolSnapshot[]; }, - null + null, ] | [null, string] > { @@ -50,7 +50,7 @@ export async function fetchAssistantEditorInfoSS( Response, User | null, ToolSnapshot[] | null, - Response | null + Response | null, ]; if (!ccPairsInfoResponse.ok) {