Skip to content

Commit

Permalink
fix: update t0 label const name to disambiguate from high value
Browse files Browse the repository at this point in the history
  • Loading branch information
urangel committed Mar 5, 2025
1 parent 90c7c50 commit 0de3e09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cmd/ui/src/views/GroupManagement/GroupManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
};
});
Expand All @@ -84,7 +84,7 @@ const GroupManagement = () => {
<GroupManagementContent
globalDomain={globalDomain}
showExplorePageLink={!!openNode}
tierZeroLabel={TIER_ZERO_LABEL}
tierZeroLabel={HIGH_VALUE_LABEL}
tierZeroTag={TIER_ZERO_TAG}
// Both these components should eventually be moved into the shared UI library
entityPanelComponent={<EntityInfoPanel selectedNode={openNode} />}
Expand Down
8 changes: 6 additions & 2 deletions packages/javascript/bh-shared-ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 0de3e09

Please sign in to comment.