Skip to content

Commit

Permalink
Updated empty state icon in archived versions page and source model f…
Browse files Browse the repository at this point in the history
…ormat fonts
  • Loading branch information
manaswinidas committed Oct 7, 2024
1 parent d2f0119 commit fb254fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,18 @@ const ModelVersionDetailsView: React.FC<ModelVersionDetailsViewProps> = ({
</DashboardDescriptionListGroup>
</>
)}
<Title style={{ marginTop: '1em' }} headingLevel={TextVariants.h3}>
Source model format
</Title>
<DashboardDescriptionListGroup
title="Source model format"
title="Name"
isEmpty={modelArtifact.size === 0 || !modelArtifact.items[0].modelFormatName}
contentWhenEmpty="No source model format"
>
{modelArtifact.items[0]?.modelFormatName}
</DashboardDescriptionListGroup>
<DashboardDescriptionListGroup
title="Source model format version"
title="Version"
isEmpty={modelArtifact.size === 0 || !modelArtifact.items[0].modelFormatVersion}
contentWhenEmpty="No source model format version"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ToolbarItem,
ToolbarToggleGroup,
} from '@patternfly/react-core';
import { FilterIcon } from '@patternfly/react-icons';
import { FilterIcon, SearchIcon } from '@patternfly/react-icons';
import { SearchType } from '~/concepts/dashboard/DashboardSearchField';
import { ModelVersion } from '~/concepts/modelRegistry/types';
import SimpleSelect from '~/components/SimpleSelect';
Expand Down Expand Up @@ -35,6 +35,7 @@ const ModelVersionsArchiveListView: React.FC<ModelVersionsArchiveListViewProps>
if (unfilteredmodelVersions.length === 0) {
return (
<EmptyModelRegistryState
headerIcon={SearchIcon}
testid="empty-archive-state"
title="No archived versions"
description="You can archive the active versions that you no longer use. You can restore an archived versions to make it active."
Expand Down

0 comments on commit fb254fa

Please sign in to comment.