Object Dataset Viewer #

Introduction #

The Object Dataset Viewer is a flexible component for displaying file-based content stored in object datasets. Depending on the dataset type, it renders content inline (images, HTML, JSON) or surfaces a paginated file list (GENERAL type) with date-range filtering and per-file download. It automatically selects the latest available version and supports both daily and monthly calendar navigation through historical entries.

Features #

  • Renders multiple dataset types: IMAGE, HTML, JSON, and GENERAL
  • Inline preview using an auto-resizing iframe (HTML/JSON) or an image element (IMAGE)
  • Calendar picker with daily or monthly mode, highlighting dates that contain data
  • Version dropdown to switch between timestamps when several entries exist for the selected date
  • File dropdown when a dataset entry contains multiple files
  • Download button for the currently selected file
  • GENERAL mode: paginated, sortable table of files with a date-range filter and optional delete action
  • Optional file preselection via initialFileKey
  • Configurable height and row count
  • Automatic fallback to the most recent available entry on load

Use Cases #

  • Displaying AI model outputs such as reports, charts, or annotated images
  • Browsing generated documents or analysis artifacts over time
  • Comparing results across different model runs or versions
  • Embedding HTML or JSON previews directly in dashboards
  • Managing a historical archive of dataset files with download and cleanup

Example #

Object Dataset Viewer