Skip to content
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
31ecd59
updated based on feature flag
mdshamoon Apr 7, 2026
a6f2b0b
fixed test
mdshamoon Apr 8, 2026
40ea75d
fixed test
mdshamoon Apr 8, 2026
2fee22d
fixed test
mdshamoon Apr 8, 2026
a203bde
Merge branch 'master' into issue/4948
mdshamoon Apr 8, 2026
6fbcfb7
added assistants
mdshamoon Apr 8, 2026
0f90527
Merge remote-tracking branch 'origin/issue/4948' into issue/4948
mdshamoon Apr 8, 2026
07efd4e
added better tests
mdshamoon Apr 8, 2026
401f549
fix: assistant list UX improvements
mdshamoon Apr 8, 2026
0fe7e62
added better tests
mdshamoon Apr 8, 2026
21a082d
added better tests
mdshamoon Apr 8, 2026
133966f
Merge remote-tracking branch 'origin/issue/4948' into issue/4963
mdshamoon Apr 8, 2026
99eb43f
Merge branch 'master' into issue/4963
mdshamoon Apr 8, 2026
e2bb6f4
fixe dtrst
mdshamoon Apr 9, 2026
bbca7c0
Merge remote-tracking branch 'origin/issue/4963' into issue/4963
mdshamoon Apr 9, 2026
15f6984
ficed filer
mdshamoon Apr 9, 2026
1bbb122
Merge branch 'master' into issue/4963
mdshamoon Apr 9, 2026
b1a692b
feat: split AssistantOptions into KnowledgeBaseOptions for new assist…
mdshamoon Apr 10, 2026
3e32740
fix: add missing i18n strings for KnowledgeBaseOptions
mdshamoon Apr 10, 2026
2911005
Merge remote-tracking branch 'origin/master' into issue/4963
mdshamoon Apr 10, 2026
46ca002
fix: restore AssistantOptions to legacy design for old assistant UI
mdshamoon Apr 10, 2026
baa096d
added fixes in Knowledge base
mdshamoon Apr 10, 2026
c461526
merged to master
mdshamoon Apr 10, 2026
f32dd06
Merge branch 'master' into issue/4963
priyanshu6238 Apr 10, 2026
b19216d
fix test cases
mdshamoon Apr 13, 2026
2050034
Merge remote-tracking branch 'origin/issue/4963' into issue/4963
mdshamoon Apr 13, 2026
0800067
added test for knwoledge base
mdshamoon Apr 13, 2026
3f09c73
Merge branch 'master' into issue/4963
priyanshu6238 Apr 13, 2026
4c2ba8f
fix: test case
priyanshu6238 Apr 13, 2026
d624aa0
fix: test case
priyanshu6238 Apr 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/containers/Assistants/AssistantDetail/ConfigEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export const ConfigEditor = ({
data-testid="saveVersionButton"
onClick={formik.submitForm}
loading={savingChanges || creating}
disabled={newVersionInProgress || savingChanges || creating}
disabled={newVersionInProgress || savingChanges || creating || !hasUnsavedChanges}
>
{t('Save')}
</Button>
Expand Down Expand Up @@ -374,11 +374,6 @@ export const ConfigEditor = ({
<Field key={field.name} {...field} />
</div>
))}
{!createMode && (
<span className={styles.NoEvals} data-testid="noEvalsLink">
{t('No evals run. Start New Eval >')}
</span>
)}
</div>
</form>

Expand Down
16 changes: 16 additions & 0 deletions src/containers/Assistants/AssistantList/AssistantList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,27 @@
color: #1f2937;
}

.DisplayIdRow {
display: flex;
align-items: center;
gap: 2px;
}

.DisplayId {
font-size: 0.75rem;
color: #6b7280;
}

.CopyButton {
padding: 2px !important;
color: #6b7280;

svg {
width: 12px;
height: 12px;
}
}

.VersionBadge {
color: #374151;
}
Expand Down
27 changes: 24 additions & 3 deletions src/containers/Assistants/AssistantList/AssistantList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ import { useMutation } from '@apollo/client';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';

import { IconButton, Tooltip } from '@mui/material';

import EditIcon from 'assets/images/icons/Edit.svg?react';
import CopyIcon from 'assets/images/icons/Settings/Copy.svg?react';

import { copyToClipboard } from 'common/utils';

import { FILTER_ASSISTANTS, GET_ASSISTANTS_COUNT } from 'graphql/queries/Assistant';
import { CLONE_ASSISTANT, DELETE_ASSISTANT } from 'graphql/mutations/Assistant';
import { List } from 'containers/List/List';
Expand All @@ -22,7 +26,22 @@ dayjs.extend(relativeTime);
const getAssistantName = (name: string, assistantDisplayId: string) => (
<div className={styles.NameCell}>
<span className={styles.Name}>{name}</span>
<span className={styles.DisplayId}>{assistantDisplayId}</span>
<span className={styles.DisplayIdRow}>
<Tooltip title="Copy assistant ID" placement="top">
<IconButton
size="small"
className={styles.CopyButton}
onClick={(e) => {
e.stopPropagation();
copyToClipboard(assistantDisplayId);
}}
data-testid="copyAssistantId"
>
<CopyIcon />
</IconButton>
</Tooltip>
<span className={styles.DisplayId}>{assistantDisplayId}</span>
</span>
</div>
);

Expand Down Expand Up @@ -104,7 +123,7 @@ export const AssistantList = () => {
const columnNames = [
{ name: 'name', label: t('Assistant Name') },
{ label: t('Live Version') },
{ label: t('Last Updated') },
{ name: 'updated_at', label: t('Last Updated'), sort: true, order: 'desc' },
{ label: t('Actions') },
];

Expand Down Expand Up @@ -140,14 +159,16 @@ export const AssistantList = () => {
dialogMessage={t("You won't be able to use this assistant.")}
{...queries}
{...columnAttributes}
searchParameter={['name']}
searchParameter={['name', 'assistantId']}
additionalAction={additionalAction}
button={{
show: true,
label: t('Create New Assistant'),
action: () => navigate('/assistants/add'),
}}
editSupport={false}
deleteModifier={{ variables: (id: string) => ({ deleteAssistantId: id }) }}
sortConfig={{ sortBy: 'updated_at', sortOrder: 'desc' }}
/>

{cloneDialogOpen && selectedAssistant && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ export const AssistantOptions = ({
<div className={styles.VectorContent}>
<DatabaseIcon />
<div>
<p>{formikValues.knowledgeBaseName}</p>
<span>{vectorStoreId}</span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Assistants/Assistants.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ test('it renders the list properly and switches between items', async () => {
expect(screen.getByText('Loading...')).toBeInTheDocument();

await waitFor(() => {
expect(screen.getByText('VectorStore-77ae3597')).toBeInTheDocument();
expect(screen.getByText('vs_abc123')).toBeInTheDocument();
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/mocks/Assistants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ export const updateAssistantErrorMock = {
export const filterAssistantsMock = {
request: {
query: FILTER_ASSISTANTS,
variables: { filter: {}, opts: { limit: 50, offset: 0, order: 'ASC', orderWith: 'name' } },
variables: { filter: {}, opts: { limit: 50, offset: 0, order: 'DESC', orderWith: 'updated_at' } },
},
result: {
data: {
Expand Down
Loading