docs/docs/reference/admin-ui-api/custom-history-entry-components/history-entry-component.mdx
This interface should be implemented by components intended to display a history entry in the Order or Customer history timeline. If the component needs access to the Order or Customer object itself, you should implement OrderHistoryEntryComponent or CustomerHistoryEntryComponent respectively.
interface HistoryEntryComponent {
entry: TimelineHistoryEntry;
getDisplayType: (entry: TimelineHistoryEntry) => TimelineDisplayType;
isFeatured: (entry: TimelineHistoryEntry) => boolean;
getName?: (entry: TimelineHistoryEntry) => string | undefined;
getIconShape?: (entry: TimelineHistoryEntry) => string | string[] | undefined;
}
<MemberInfo kind="property" type={TimelineHistoryEntry} />
The HistoryEntry data.
<MemberInfo kind="property" type={(entry: TimelineHistoryEntry) => TimelineDisplayType} />
Defines whether this entry is highlighted with a "success", "error" etc. color.
<MemberInfo kind="property" type={(entry: TimelineHistoryEntry) => boolean} />
Featured entries are always expanded. Non-featured entries start of collapsed and can be clicked to expand.
<MemberInfo kind="property" type={(entry: TimelineHistoryEntry) => string | undefined} />
Returns the name of the person who did this action. For example, it could be the Customer's name or "Administrator".
<MemberInfo kind="property" type={(entry: TimelineHistoryEntry) => string | string[] | undefined} />
Optional Clarity icon shape to display with the entry. Examples: 'note', ['success-standard', 'is-solid']