6 min readUpdated Mar 2, 2026

DataPreviewPanel Documentation

Overview

The DataPreviewPanel is a component designed for the Vantage analytics platform, providing a slide-up panel anchored at the bottom of the workflow editor. This panel allows users to view real-time data previews of the outputs generated by the workflow. Users can run previews while interacting with the workflow's canvas, NodeLibrary, and PropertiesPanel. This functionality is critical for verifying data transformations and ensuring the workflow operates as intended.

Settings

1. workflowId

2. leftOffset

3. rightOffset

4. isCompact

5. expanded

6. loading

7. previewData

8. error

9. panelHeight

10. resizing

11. activeTab

12. viewMode

13. selectedRowIdx

14. expandedCell

15. progress

How It Works

The DataPreviewPanel manages state, handles the fetching of preview data from the backend, and provides an interactive interface for users. Key functionalities include:

Data Expectations

The DataPreviewPanel expects data in a structured format, typically from the backend API. The expected data should include:

Use Cases & Examples

Use Case 1: Data Transformation Verification

When building a data pipeline that involves multiple transformations, a user can leverage the DataPreviewPanel to ensure that the transformations yield expected results at each node.

Use Case 2: Debugging Workflow Issues

In scenarios where a workflow is not outputting expected results, developers can utilize DataPreviewPanel to quickly iterate over each step in the workflow to identify where data may be incorrectly processed.

Use Case 3: Collaborative Data Analysis

In a team setting, multiple stakeholders can explore the complex data outputs generated by different nodes in real-time, leading to more efficient collaborative efforts in data analysis.

Detailed Example Configuration

For a scenario where a user is constructing a data pipeline to process customer data and requires validation of the results after each node:

javascript
<DataPreviewPanel
    workflowId="customerDataPipeline"
    leftOffset="1rem"
    rightOffset="1rem"
    isCompact={false}
/>

In this configuration: