Skip to content

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

entityId

required

string

Entity to render

variant
"full" | "compact" | "avatar"

default: "full"

Layout variant

showRelationships
boolean

default: true

Show related entities

showRecentActivity
boolean

default: false

Show recent audit log entries (last 5)

showCustomAttributes
boolean

default: true

Show customAttributes block

Events

Event

Payload

Fires when

onEdit(entity: Entity) => void

User clicked the edit affordance

onRelationshipClick(relationship: Relationship) => void

User clicked a related entity

Slots

Slot

Description

header

Replaces the default avatar + name header

actions

Renders 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.