ListTile Documentation
Overview
The ListTile component is a visualization tool used to display structured data in a list format. It is designed for high flexibility, supporting both static rows and field mappings connected to dynamic data sources. This allows users to view workflow-related data in an organized manner, facilitating quick understanding and decision-making.
Key features include:
- The ability to accept static data directly as an array of objects or to dynamically map fields from a data source.
- Support for AI-generated visuals that may enhance the representation of data through intelligent processing.
- Compatibility with large datasets while ensuring a user-friendly loading experience.
Purpose
The ListTile serves as a visual component intended to represent tabular data effectively through rows and columns. It is particularly useful in business scenarios where data presentation is key to insights (e.g., dashboards, analytics reports).
Settings
Height
- Input Type: Numeric
- Description: Specifies the height of the tile in relative units.
- Default Value: Not explicitly set, may fall back to UI default.
Width
- Input Type: Numeric
- Description: Specifies the width of the tile in relative units.
- Default Value: Not explicitly set, may fall back to UI default.
Rows
- Input Type: Array of Objects
- Description: An array of objects, where each object represents a row within the list. Each row should consist of a
cellsarray containing specific data points. If rows are provided, they take priority over field mappings. - Default Value: Empty array
[].
FieldMapping
- Input Type: Object
- Description: An object that maps fields to be displayed in the ListTile. It includes a
_seriesentry for defining data packets to be fetched dynamically.- Example:
fieldMapping._seriesshould contain an array of objects withlabelandvaluedata points that correspond to items within the data source.
- Example:
- Default Value: Empty object
{}.
WorkflowId
- Input Type: String
- Description: A reference ID pointing to the specific workflow context for pulling dynamic data. The component uses this ID to fetch related results and supports data resolution.
- Default Value: undefined.
Title
- Input Type: String
- Description: Text to be displayed as the title of the ListTile. It provides context for the data displayed.
- Default Value: 'List' if not specified.
Subtitle
- Input Type: String
- Description: Provides additional context under the title. A summary or current status could fit here.
- Default Value: undefined.
FooterText
- Input Type: String
- Description: Text displayed in the footer of the ListTile, usually providing information such as data last updated or additional notes about the data.
- Default Value: undefined.
FooterColor
- Input Type: String
- Description: A valid CSS color string. This determines the color of the footer text, allowing for customization to fit brand styles.
- Default Value: undefined.
How It Works
- Data Management: The component can pull data from static rows if provided. If not, it checks field mappings for a data reference ID to fetch the appropriate data dynamically.
- Dynamic Updates and AI Integration: The ListTile component supports AI data generation for populating the list using dynamic data sources or workflows, enhancing user output through intelligent suggestions and data formatting.
- Error Handling and Loading States: The component includes built-in UI states for loading and error scenarios, providing an engaging user experience while data is being processed or if an error occurs.
- Rendering: The ListTile renders rows dynamically based on the data processed. It outputs a structured table format, highlighting corresponding cells and displaying a message when there’s no data available.
Use Cases & Examples
Use Cases
- Automated Reporting Dashboard: Companies can use ListTile to display automated monthly performance metrics extracted from various workflows.
- Data Visualization for AI Proposals: Use ListTile to visualize proposals or hypotheses derived from predictive algorithms.
- Customer Relationship Management (CRM) Tool: Ideal for listing clients with their respective engagement metrics dynamically populated from a backend database.
Detailed Example Configuration
Business Case: An organization wants to create a dashboard component that displays lead conversion rates per marketing channel from their CRM data.
{
"config": {
"height": 3,
"width": 4,
"rows": [],
"fieldMapping": {
"_series": [
{
"label": {
"dataRefId": "marketingChannel"
},
"value": {
"dataRefId": "conversionRate"
}
}
]
},
"workflowId": "lead_conversion_workflow"
},
"title": "Lead Conversion Rates",
"subtitle": "Performance by Marketing Channel",
"footerText": "Data sourced from CRM",
"footerColor": "#4A90E2"
}Explanation:
- Rows: Not defined, focusing on dynamic mapping.
- FieldMapping: Specifies labels and values tied to the relevant data references.
- WorkflowId: Links to a data-unified context that pulls conversion data.
- The resulting ListTile will dynamically display the conversion rates across various marketing channels, offering real-time insight into performance metrics.
AI Integrations
The ListTile integrates with AI components using the useAIChartData hook—facilitating the generation and enhancement of data visualization through automated processing for rapid insights. This can be particularly beneficial when dealing with large datasets or complex data relationships, ensuring relevant visualizations resonate with user needs.
Billing Impacts
Using ListTile with dynamic integrations could have a variable impact on billing depending on the data rendering frequency and volume. The use of AI-driven features may accrue additional costs based on computational resource usage and data retrieval frequency, which should be monitored through the service's billing dashboard to ensure compliance with budget constraints.
In summary, the ListTile component provides an agile and user-friendly approach to presenting complex data while accommodating both static and dynamic data sources, with AI enhancements available for more interactive and intelligent insights.