Skip to content

Commit

Permalink
chore(ui): add SavedView object color and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-rasmussen committed Jan 23, 2025
1 parent cbedec1 commit 774fa05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const OBJECT_ICONS: Record<KnownBaseObjectClassType, IconName> = {
Scorer: 'type-number-alt',
ActionSpec: 'rocket-launch',
AnnotationSpec: 'forum-chat-bubble',
SavedView: 'view-glasses',
};
const ObjectIcon = ({baseObjectClass}: ObjectIconProps) => {
if (baseObjectClass in OBJECT_ICONS) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const colorMap: Record<KnownBaseObjectClassType, TagColorName> = {
Scorer: 'purple',
ActionSpec: 'sienna',
AnnotationSpec: 'magenta',
SavedView: 'magenta',
};

export const TypeVersionCategoryChip: React.FC<{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ export const KNOWN_BASE_OBJECT_CLASSES = [
'Scorer',
'ActionSpec',
'AnnotationSpec',
'SavedView',
] as const;

0 comments on commit 774fa05

Please sign in to comment.