-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mr): routes etc and empty state for registered deployments
Signed-off-by: gitdallas <[email protected]>
- Loading branch information
Showing
4 changed files
with
54 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...pages/modelRegistry/screens/ModelVersionDetails/ModelVersionRegisteredDeploymentsView.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as React from 'react'; | ||
import { ModelVersion } from '~/concepts/modelRegistry/types'; | ||
import useModelArtifactsByVersionId from '~/concepts/modelRegistry/apiHooks/useModelArtifactsByVersionId'; | ||
import EmptyModelRegistryState from '../EmptyModelRegistryState'; | ||
|
||
type ModelVersionRegisteredDeploymentsViewProps = { | ||
modelVersion: ModelVersion; | ||
}; | ||
|
||
const ModelVersionRegisteredDeploymentsView: React.FC<ModelVersionRegisteredDeploymentsViewProps> = ({ modelVersion: mv }) => { | ||
const [modelArtifact] = useModelArtifactsByVersionId(mv.id); | ||
console.log(modelArtifact); | ||
return ( | ||
<EmptyModelRegistryState | ||
title="No registered deployments" | ||
description={`You can deploy this version using Actions dropdown in the header`} | ||
/> | ||
); | ||
}; | ||
export default ModelVersionRegisteredDeploymentsView; |