Components · Display
EntityProfile
Entity summary card. Shows core attributes, custom attributes, related entities, and a recent activity timeline.
Key points
- Self-fetching — pass an entityId, the component handles the rest
- Three variants: full (default), compact, and avatar-only for inline use
- Recent activity pulls from the audit log when showRecentActivity is true
Import
import { EntityProfile } from '@flexischeduler/scheduling-components';Basic usage
<EntityProfile
entityId="ent_pt_9001"
showRecentActivity
onEdit={(entity) => navigate(`/entities/${entity.id}/edit`)}
/>Reference
Props
Name
Type
Description
entityIdrequired
stringEntity to render
variant"full" | "compact" | "avatar"default: "full"
Layout variant
showRelationshipsbooleandefault: true
Show related entities
showRecentActivitybooleandefault: false
Show recent audit log entries (last 5)
showCustomAttributesbooleandefault: true
Show customAttributes block
Events
Event
Payload
Fires when
onEdit(entity: Entity) => voidUser clicked the edit affordance
onRelationshipClick(relationship: Relationship) => voidUser clicked a related entity
Slots
Slot
Description
headerReplaces the default avatar + name header
actionsRenders alongside the edit button — use for custom actions
Variants
Use compact in dense layouts (sidebars, list rows) and avatar for inline references in prose:
<EntityProfile
entityId="ent_pt_9001"
variant="compact"
showRelationships={false}
/>Recent activity is opt-in for performance
Showing recent activity requires an audit log query, which adds a round trip. Leave it off unless your UI specifically benefits — most profile cards don’t need it.