diff --git a/frontend/src/App.css b/frontend/src/App.css index b60fb5acf..e38834d8c 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -360,4 +360,15 @@ height: calc(100vh - 58px); min-height: 200px; display: flex +} +.profile-container{ + display:flex; + gap:4px; + align-items:center; + border: 1px solid rgb(var(--theme-palette-neutral-border-strong)); + border-radius: 12px; +} +.websource-btn-container{ + display: flex; + gap: 10px; } \ No newline at end of file diff --git a/frontend/src/components/ChatBot/ChatInfoModal.tsx b/frontend/src/components/ChatBot/ChatInfoModal.tsx index a6e7f6590..859bcf9b7 100644 --- a/frontend/src/components/ChatBot/ChatInfoModal.tsx +++ b/frontend/src/components/ChatBot/ChatInfoModal.tsx @@ -315,13 +315,13 @@ const ChatInfoModal: React.FC = ({ ); return (
-
+
-
+
Retrieval information To generate this response, the process took {response_time} seconds, @@ -499,7 +499,7 @@ const ChatInfoModal: React.FC = ({ )} {activeTab == 4 && nodes?.length && relationships?.length && mode !== chatModeLables.graph ? ( -
+
= (props) => { }, []); return ( -
+
{isDeleteChatLoading && (
)}
-
+
{listMessages.map((chat, index) => { const messagechatModes = Object.keys(chat.modes); return (
= (props) => {
-
-
+
+ = ({ loading, chunks, mode }) => { return ( <> {loading ? ( -
+
) : chunks?.length > 0 ? ( @@ -46,7 +46,7 @@ const ChunkInfo: FC = ({ loading, chunks, mode }) => {
  • {chunk?.page_number ? ( <> -
    +
    <> = ({ loading, chunks, mode }) => { ) : chunk?.url && chunk?.start_time ? ( <> -
    +
    = ({ loading, chunks, mode }) => { ) : chunk?.url && new URL(chunk.url).host === 'wikipedia.org' ? ( <> -
    +
    {chunk?.fileName}
    @@ -135,7 +135,7 @@ const ChunkInfo: FC = ({ loading, chunks, mode }) => { ) : chunk?.url && new URL(chunk.url).host === 'storage.googleapis.com' ? ( <> -
    +
    {chunk?.fileName}
    @@ -159,7 +159,7 @@ const ChunkInfo: FC = ({ loading, chunks, mode }) => { ) : chunk?.url && chunk?.url.startsWith('s3://') ? ( <> -
    +
    {chunk?.fileName}
    @@ -185,7 +185,7 @@ const ChunkInfo: FC = ({ loading, chunks, mode }) => { !chunk?.url.startsWith('s3://') && !isAllowedHost(chunk?.url, ['storage.googleapis.com', 'wikipedia.org', 'youtube.com']) ? ( <> -
    +
    {chunk?.url} @@ -211,7 +211,7 @@ const ChunkInfo: FC = ({ loading, chunks, mode }) => { ) : ( <> -
    +
    {chunk.fileSource === 'local file' ? ( ) : ( diff --git a/frontend/src/components/ChatBot/ExpandedChatButtonContainer.tsx b/frontend/src/components/ChatBot/ExpandedChatButtonContainer.tsx index 136eeef15..f0371d1d5 100644 --- a/frontend/src/components/ChatBot/ExpandedChatButtonContainer.tsx +++ b/frontend/src/components/ChatBot/ExpandedChatButtonContainer.tsx @@ -22,7 +22,7 @@ const ExpandedChatButtonContainer: React.FC = ({ closeChatBot, delete menuAnchor={chatAnchor} isRoot={false} /> -
    +
    { diff --git a/frontend/src/components/ChatBot/SourcesInfo.tsx b/frontend/src/components/ChatBot/SourcesInfo.tsx index ace69a07f..5a1874c1c 100644 --- a/frontend/src/components/ChatBot/SourcesInfo.tsx +++ b/frontend/src/components/ChatBot/SourcesInfo.tsx @@ -37,8 +37,8 @@ const SourcesInfo: FC = ({ loading, mode, chunks, sources }) => { .map((c) => ({ fileName: c.fileName, fileSource: c.fileSource })) .map((s, index) => { return ( -
  • -
    +
  • +
    {s.fileSource === 'local file' ? ( ) : ( @@ -59,11 +59,11 @@ const SourcesInfo: FC = ({ loading, mode, chunks, sources }) => {
      {sources.map((link, index) => { return ( -
    • +
    • {link?.startsWith('http') || link?.startsWith('https') ? ( <> {isAllowedHost(link, ['wikipedia.org']) && ( -
      +
      Wikipedia Logo @@ -78,7 +78,7 @@ const SourcesInfo: FC = ({ loading, mode, chunks, sources }) => {
      )} {isAllowedHost(link, ['storage.googleapis.com']) && ( -
      +
      Google Cloud Storage Logo = ({ loading, mode, chunks, sources }) => { )} {youtubeLinkValidation(link) && ( <> -
      +
      @@ -107,7 +107,7 @@ const SourcesInfo: FC = ({ loading, mode, chunks, sources }) => { )} {!link?.startsWith('s3://') && !isAllowedHost(link, ['storage.googleapis.com', 'wikipedia.org', 'www.youtube.com']) && ( -
      +
      {link} @@ -116,7 +116,7 @@ const SourcesInfo: FC = ({ loading, mode, chunks, sources }) => { )} ) : link?.startsWith('s3://') ? ( -
      +
      S3 Logo = ({ loading, mode, chunks, sources }) => {
      ) : ( -
      +
      = ({ Neo4j connection {isReadOnlyUser ? '(Read only Mode)' : ''} -
      +
      {!hasSelections ? : }
      {hasSelections ? ( diff --git a/frontend/src/components/Dropdown.tsx b/frontend/src/components/Dropdown.tsx index a629f46cf..50c0de53b 100644 --- a/frontend/src/components/Dropdown.tsx +++ b/frontend/src/components/Dropdown.tsx @@ -32,7 +32,7 @@ const DropdownComponent: React.FC = ({ type='select' label='LLM Models' helpText={ -
      +
      diff --git a/frontend/src/components/FileTable.tsx b/frontend/src/components/FileTable.tsx index 3f733efce..f6ead8034 100644 --- a/frontend/src/components/FileTable.tsx +++ b/frontend/src/components/FileTable.tsx @@ -177,7 +177,7 @@ const FileTable: ForwardRefRenderFunction = (props, re if (info.getValue() != 'Processing') { return (
      @@ -203,7 +203,7 @@ const FileTable: ForwardRefRenderFunction = (props, re ); } else if (info.getValue() === 'Processing' && info.row.original.processingProgress === undefined) { return ( -
      +
      @@ -268,7 +268,7 @@ const FileTable: ForwardRefRenderFunction = (props, re ); } return ( -
      +
      @@ -341,7 +341,7 @@ const FileTable: ForwardRefRenderFunction = (props, re cell: (info: CellContext) => { if (parseInt(info.getValue()) === 100 || info.row.original?.status === 'New') { return ( -
      +
      @@ -352,7 +352,7 @@ const FileTable: ForwardRefRenderFunction = (props, re return ; } else if (info.row.original?.status === 'Failed') { return ( -
      +
      @@ -361,7 +361,7 @@ const FileTable: ForwardRefRenderFunction = (props, re ); } return ( -
      +
      diff --git a/frontend/src/components/Graph/GraphPropertiesPanel.tsx b/frontend/src/components/Graph/GraphPropertiesPanel.tsx index a11399971..ce0701d0f 100644 --- a/frontend/src/components/Graph/GraphPropertiesPanel.tsx +++ b/frontend/src/components/Graph/GraphPropertiesPanel.tsx @@ -69,7 +69,7 @@ const GraphPropertiesPanel = ({ inspectedItem, newScheme }: GraphPropertiesPanel
      {inspectedItemType === 'node' ? 'Node details' : 'Relationship details'}
      -
      +
      {isNode(inspectedItem) ? ( labelsSorted.map((label) => ( diff --git a/frontend/src/components/Graph/GraphPropertiesTable.tsx b/frontend/src/components/Graph/GraphPropertiesTable.tsx index 3d2bbd87f..d599dd4e7 100644 --- a/frontend/src/components/Graph/GraphPropertiesTable.tsx +++ b/frontend/src/components/Graph/GraphPropertiesTable.tsx @@ -5,7 +5,7 @@ const GraphPropertiesTable = ({ propertiesWithTypes }: GraphPropertiesTableProps console.log('proerties', propertiesWithTypes); return (
      -
      +
      Key @@ -15,7 +15,7 @@ const GraphPropertiesTable = ({ propertiesWithTypes }: GraphPropertiesTableProps .filter(({ value }) => value !== undefined && value !== null && value !== '' && !Array.isArray(value)) .map(({ key, value }, _) => { return ( -
      +
      = ({
      {loading ? ( -
      +
      ) : status !== 'unknown' ? ( -
      +
      ) : nodes.length === 0 && relationships.length === 0 && graphType.length !== 0 ? ( -
      +
      ) : graphType.length === 0 && checkBoxView ? ( -
      +
      ) : ( diff --git a/frontend/src/components/Graph/ResizePanel.tsx b/frontend/src/components/Graph/ResizePanel.tsx index a0eac1a7e..726ede1a3 100644 --- a/frontend/src/components/Graph/ResizePanel.tsx +++ b/frontend/src/components/Graph/ResizePanel.tsx @@ -41,7 +41,7 @@ export const ResizePanelDetails = ({ children, open, onResizeStop }: ResizePanel }; const Title = ({ children }: { children: React.ReactNode }) => { return ( -
      +
      {children}
      ); diff --git a/frontend/src/components/Layout/DrawerDropzone.tsx b/frontend/src/components/Layout/DrawerDropzone.tsx index c5d86a7fd..566a24af2 100644 --- a/frontend/src/components/Layout/DrawerDropzone.tsx +++ b/frontend/src/components/Layout/DrawerDropzone.tsx @@ -63,7 +63,7 @@ const DrawerDropzone: React.FC = ({
      {process.env.VITE_ENV !== 'PROD' && ( -
      +
      Backend connection status diff --git a/frontend/src/components/Layout/Header.tsx b/frontend/src/components/Layout/Header.tsx index 4278e2072..00abe00a9 100644 --- a/frontend/src/components/Layout/Header.tsx +++ b/frontend/src/components/Layout/Header.tsx @@ -83,7 +83,7 @@ const Header: React.FC = ({ chatOnly, deleteOnClick, setOpenConnecti Neo4j Logo diff --git a/frontend/src/components/Popups/ChunkPopUp/index.tsx b/frontend/src/components/Popups/ChunkPopUp/index.tsx index e2170fe9e..1db028508 100644 --- a/frontend/src/components/Popups/ChunkPopUp/index.tsx +++ b/frontend/src/components/Popups/ChunkPopUp/index.tsx @@ -33,7 +33,7 @@ const ChunkPopUp = ({ return ( -
      +
      {!chunksLoading && totalPageCount != null && totalPageCount > 0 && ( -
      +
      Total Pages: {totalPageCount}
      )} @@ -57,9 +57,9 @@ const ChunkPopUp = ({ {chunksLoading ? ( ) : ( -
        +
          {sortedChunksData.map((c) => ( -
        1. +
        2. Position : diff --git a/frontend/src/components/Popups/ExpirationModal/ExpiredFilesAlert.tsx b/frontend/src/components/Popups/ExpirationModal/ExpiredFilesAlert.tsx index 2207c866a..c1e1b98c3 100644 --- a/frontend/src/components/Popups/ExpirationModal/ExpiredFilesAlert.tsx +++ b/frontend/src/components/Popups/ExpirationModal/ExpiredFilesAlert.tsx @@ -12,7 +12,7 @@ import { IconWithToolTip } from '../../UI/IconButtonToolTip'; const ExpiredFilesAlert: FC = ({ Files, handleToggle, checked }) => { return (
          -
          +
          - + - - +
          -
          +
          = ({ Files, handleToggle, checked }) ); return (
          -
          +
          +
          <> -
          +