Events Search Component
Changed on:
3 June 2024
Overview
The Events Search is a plugin component for events:
- filtering,
- displaying,
- exporting.
The component fetches events using the REST Event API based on the selected search criteria.
Plugin Name | OMS |
---|
Admin components for managing a Fluent Commerce account.
v1.0.0
OMS UI. Does not require to download.
Alias
fc.events.search
Detailed technical description
Structure
The Events Search consists of the following sections:
Events Search Form
The Search Form contains:
- Filter input fields;
- SEARCH button;
- EXPORT button;
- CLEAR FILTERS button (hidden when no filters are applied).
Events Search Results
The list of events matching the filters criteria selected is presented in a table view.
Event Details Drawer
The drawer displays a detailed information about a specific event selected from the list of Events Search Results.
Capabilities
Search events
The Events Search Form enables a user to search for events based on the following filters:
- With a free text input:
- Root entity id;
- Root entity ref;
- Entity id;
- Entity ref;
- Event name.
- With a dropdown input supporting multi-select:
- Root entity type and Entity type: ,
`ORDER`
,`FULFILMENT_CHOICE`
,`FULFILMENT`
,`ARTICLE`
,`CONSIGNMENT`
,`LOCATION`
,`WAVE`
,`FULFILMENT_OPTIONS`
,`FULFILMENT_PLAN`
,`PRODUCT_CATALOGUE`
,`CATEGORY`
,`PRODUCT`
,`INVENTORY_CATALOGUE`
,`INVENTORY_POSITION`
,`INVENTORY_QUANTITY`
,`VIRTUAL_CATALOGUE`
,`VIRTUAL_POSITION`
,`CONTROL_GROUP`
,`RETURN_ORDER`
,`RETURN_FULFILMENT`
,`BILLING_ACCOUNT`
,`CREDIT_MEMO`
,`BATCH`
;`WORKFLOW`
- Event type: ,
`ORCHESTRATION`
,`ORCHESTRATION_AUDIT`
,`GENERAL`
,`API`
,`INTEGRATION`
;`SECURITY`
- Event status: ,
`PENDING`
,`COMPLETE`
,`FAILED`
;`NO_MATCH`
- Retailer: the list of Retailer Refs;
- Category: ,
`BATCH`
,`snapshot`
,`ruleSet`
,`rule`
,`action`
,`exception`
,`error`
.`ORDER WORKFLOW`
- Root entity type and Entity type:
- Date/time from and to with an input that is powered with the Date Range Field Component.
Pre-filtering
The Events Search Form is enabled to take inputs from the URL parameters in accordance with the following mapping:
Filter | URL parameter | Input format |
Root entity type |
| string[] |
Entity type |
| string[] |
Event type |
| string[] |
Root entity id |
| string |
Entity id |
| string |
Event name |
| string |
Root entity ref |
| string |
Entity ref |
| string |
Event status |
| string[] |
Retailer |
| string[] |
Category |
| string[] |
Date/time from and to |
| Date | null Note: date converted to UTC Example: |
| Date | null Note: date converted to UTC Example: |
Display search results
The Events Search Results are powered with the List Component.
The component displays information in the following columns by default:
- Date
Displayed in the format that is based on the user's browser language.
For more details, check thetemplate described in the Template Strings section of the UX Configuration Common Concepts article.`dateFormatByLocale`
- Event
Event ID and Event Name values are displayed as a link opening the Event Details Drawer. - Status
- Category
- Entity type
- Entity id
- Entity ref
- Retailer
Export events
Events export capability allows customers and partners to share event logs with support:
- A JSON file containing an array of the events' bodies is generated on EXPORT button click.
- The EXPORT button is disabled when the Events Search Results are empty.
Properties
Name | Type | Required | Default | Description |
width |
| ❌ |
| Define the width of this component on a 12-column grid. The named widths (for readability) or numbers could be used. On mobile devices, all widths will be changed automatically to 12 for the best responsive experience. The default is "full", which will take up the entire width of the containing component. |
list | - | ❌ | - |
|
Configuration example
1{
2 "component": "fc.events.search",
3 "props": {
4 "width": "full",
5 "list": {
6 "responsiveness": "card",
7 "rowsPerPageOptions": [10, 25, 50, 100],
8 "actions": true,
9 "action": {},
10 "noRecordKey": "i18n:fc.events.searchEvents.noEventsFound",
11 "attributes": [
12 {
13 "label": "i18n:fc.events.searchEvents.label.date",
14 "template": "{{dateFormatByLocale node.generatedOn}}, {{dateFormat node.generatedOn 'HH:mm:ss.SSS'}}"
15 },
16 {
17 "label": "i18n:fc.events.searchEvents.label.event",
18 "type": "component",
19 "options": {
20 "component": "fc.drawer.button",
21 "props": {
22 "label": "{{node.id}} {{firstDefinedValue node.name node.source}}",
23 "color": "primary",
24 "title": "i18n:fc.event.detail.eventDetails",
25 "descendants": [
26 {
27 "component": "fc.event.detail",
28 "dataSource": "node"
29 }
30 ]
31 }
32 }
33 },
34 {
35 "label": "i18n:fc.events.searchEvents.label.status",
36 "template": "{{node.eventStatus}}"
37 },
38 {
39 "label": "i18n:fc.events.searchEvents.label.category",
40 "template": "{{node.category}}"
41 },
42 {
43 "label": "i18n:fc.events.searchEvents.label.entityType",
44 "template": "{{node.context.entityType}}"
45 },
46 {
47 "label": "i18n:fc.events.searchEvents.label.entityIdRef",
48 "template": "{{node.context.entityRef}}"
49 },
50 {
51 "label": "i18n:fc.events.searchEvents.label.retailer",
52 "template": "{{node.retailer}}"
53 }
54 ]
55 }
56 }
57}
Language: json
Version History
v24.6.3
- Additional filters added to the Search Form;
- Dropdown inputs extended for the Search Form filters;
- Dropdown with multi-select enabled for the Search Form filters;
- Date Range input updated;
- Events Search Results default columns configuration updated;
- List Component supporting custom columns configuration used.