Skip to content

Commit

Permalink
Merge pull request #511 from PrefectHQ/enhancement/artifact-icon-refresh
Browse files Browse the repository at this point in the history
Enhancement: Artifact Icon Refresh
  • Loading branch information
dylanbhughes authored May 28, 2024
2 parents 36fb5ca + 7ae36bd commit e6ef274
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/models/artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const artifactTypes = [
'markdown',
'table',
'progress',
'image',
'unknown',
] as const

Expand All @@ -27,6 +28,7 @@ export const artifactTypeIconMap = {
markdown: 'ArtifactMarkdown',
table: 'ArtifactTable',
result: 'ArtifactResult',
progress: 'Artifact',
image: 'ArtifactImage',
progress: 'ArtifactProgress',
unknown: 'Artifact',
} as const satisfies Record<ArtifactType, IconName>
12 changes: 12 additions & 0 deletions src/textures/icons/artifact-image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions src/textures/icons/artifact-markdown.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/textures/icons/artifact-progress.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions src/textures/icons/artifact-result.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 13 additions & 2 deletions src/textures/icons/artifact-table.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions src/textures/icons/artifact.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/textures/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ export { default as Artifact } from './artifact.svg?url'
export { default as ArtifactMarkdown } from './artifact-markdown.svg?url'
export { default as ArtifactResult } from './artifact-result.svg?url'
export { default as ArtifactTable } from './artifact-table.svg?url'
export { default as ArtifactImage } from './artifact-image.svg?url'
export { default as ArtifactProgress } from './artifact-progress.svg?url'

0 comments on commit e6ef274

Please sign in to comment.