Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat [properties-fe] - add data type icons to property labels in panel (#497)

Daniel Kweon78da2242b6f3
diff --git a/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx b/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx
index 10b893d9f0..7a8ca632c6 100644
--- a/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx
+++ b/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx
@@ -8,6 +8,7 @@ import { type Component, createMemo, createSignal, Show } from 'solid-js';
import { deleteEntityProperty } from '../../api';
import { usePropertiesContext } from '../../context/PropertiesContext';
import type { Property } from '../../types';
+import { PropertyDataTypeIcon } from '../../utils';
type PropertyLabelProps = {
property: Property;
@@ -61,11 +62,18 @@ export const PropertyLabel: Component<PropertyLabelProps> = (props) => {
return (
<>
<div
- class="flex items-center min-w-0"
+ class="flex items-center gap-1.5 min-w-0"
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
- <span class="text-sm pr-2 text-ink-muted truncate flex-shrink min-w-0">
+ <PropertyDataTypeIcon
+ property={{
+ data_type: props.property.valueType,
+ specific_entity_type: props.property.specificEntityType,
+ }}
+ class="size-4 text-ink-muted shrink-0"
+ />
+ <span class="text-sm text-ink-muted truncate flex-shrink min-w-0">
{props.property.displayName}
</span>
{/* Always reserve space for delete button to prevent layout shift */}