Skip to content
Merged
Changes from all commits
Commits
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
22 changes: 11 additions & 11 deletions GUI/src/pages/ApiRegistryPage/ApiRegistryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const ApiRegistryTable: React.FC<ApiRegistryTableProps> = ({
<tr>
<th
onClick={() => handleSort('name')}
style={{ cursor: 'pointer', userSelect: 'none', whiteSpace: 'nowrap', width: '30%' }}
style={{ cursor: 'pointer', userSelect: 'none', whiteSpace: 'nowrap', width: '20%' }}
>
<SortIcon colId="name" currentSortId={currentSortId} currentDesc={currentDesc} />{' '}
{String(t('apiRegistry.columns.name'))}
Expand All @@ -230,7 +230,7 @@ const ApiRegistryTable: React.FC<ApiRegistryTableProps> = ({
userSelect: 'none',
whiteSpace: 'nowrap',
textAlign: 'center',
width: '160px',
width: '200px',
}}
>
<SortIcon colId="lastTest" currentSortId={currentSortId} currentDesc={currentDesc} />{' '}
Expand Down Expand Up @@ -259,7 +259,7 @@ const ApiRegistryTable: React.FC<ApiRegistryTableProps> = ({
<th style={{ width: '120px', whiteSpace: 'nowrap', textAlign: 'center' }}>
{t('apiRegistry.columns.llmIndexStatus') ?? 'LLM Index Status'}
</th>
<th style={{ width: '320px' }}></th>
<th></th>
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -355,6 +355,14 @@ const ApiRegistryTable: React.FC<ApiRegistryTableProps> = ({
{isTesting ? t('global.loading') : t('apiRegistry.actions.test')}
</Track>
</Button>
<Button appearance="text" size="s" onClick={() => onReIndex?.(endpoint)}>
<Track gap={4} align="center">
<span style={{ color: '#000' }}>
<MdRefresh />
</span>
{t('apiRegistry.actions.reIndex') ?? 'Re-Index'}
</Track>
</Button>
<Button appearance="text" size="s" onClick={() => onEdit(endpoint)}>
<Track gap={4} align="center">
<span style={{ color: '#000' }}>
Expand All @@ -371,14 +379,6 @@ const ApiRegistryTable: React.FC<ApiRegistryTableProps> = ({
{t('apiRegistry.actions.delete')}
</Track>
</Button>
<Button appearance="text" size="s" onClick={() => onReIndex?.(endpoint)}>
<Track gap={4} align="center">
<span style={{ color: '#000' }}>
<MdRefresh />
</span>
{t('apiRegistry.actions.reIndex') ?? 'Re-Index'}
</Track>
</Button>
</Track>
</td>
</tr>
Expand Down
Loading