diff --git a/cmd/ui/src/views/GroupManagement/GroupManagement.tsx b/cmd/ui/src/views/GroupManagement/GroupManagement.tsx index 24db5dd87..ec7bd0f35 100644 --- a/cmd/ui/src/views/GroupManagement/GroupManagement.tsx +++ b/cmd/ui/src/views/GroupManagement/GroupManagement.tsx @@ -19,10 +19,10 @@ import { DropdownOption, EntityKinds, GroupManagementContent, + HIGH_VALUE_LABEL, Permission, - searchbarActions, - TIER_ZERO_LABEL, TIER_ZERO_TAG, + searchbarActions, usePermissions, } from 'bh-shared-ui'; import { AssetGroup, AssetGroupMember } from 'js-client-library'; @@ -74,7 +74,7 @@ const GroupManagement = () => { const isTierZero = assetGroup.tag === TIER_ZERO_TAG; return { key: assetGroup.id, - value: isTierZero ? TIER_ZERO_LABEL : assetGroup.name, + value: isTierZero ? HIGH_VALUE_LABEL : assetGroup.name, icon: isTierZero ? faGem : undefined, }; }); @@ -84,7 +84,7 @@ const GroupManagement = () => { } diff --git a/packages/javascript/bh-shared-ui/src/constants.ts b/packages/javascript/bh-shared-ui/src/constants.ts index 405d47f90..f39c33684 100644 --- a/packages/javascript/bh-shared-ui/src/constants.ts +++ b/packages/javascript/bh-shared-ui/src/constants.ts @@ -21,9 +21,13 @@ export const NODE_GRAPH_RENDER_LIMIT = 1000; export const ZERO_VALUE_API_DATE = '0001-01-01T00:00:00Z'; -export const TIER_ZERO_TAG = 'admin_tier_0'; -export const TIER_ZERO_LABEL = 'High Value'; +// These tags are values associated with the `system_tags` property of a node export const OWNED_OBJECT_TAG = 'owned'; +export const TIER_ZERO_TAG = 'admin_tier_0'; + +// These labels are used as display values +export const TIER_ZERO_LABEL = 'Admin Tier Zero'; +export const HIGH_VALUE_LABEL = 'High Value'; export const lightPalette = { primary: {