Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Ucbepic Docetl TutorialsDialog

From Leeroopedia
Revision as of 17:02, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Ucbepic_Docetl_TutorialsDialog.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Knowledge Sources
Domains Frontend, React_UI
Last Updated 2026-02-08 00:00 GMT

Overview

Concrete tool for the tutorials dialog that provides pre-built pipeline templates for learning DocETL.

Description

The TutorialsDialog presents a selection of tutorial pipelines (e.g., Supreme Court transcript analysis) with descriptions, dataset URLs, and complete YAML pipeline templates. When a user selects a tutorial, it downloads the dataset using useDatasetUpload, restores the pipeline configuration using useRestorePipeline, and sets up the complete working environment. Each tutorial includes a description of the operations involved (map, reduce, etc.) and the expected dataset format.

Usage

Opened from the playground toolbar to help new users get started with pre-configured example pipelines and datasets.

Code Reference

Source Location

Signature

interface Tutorial {
  id: string;
  title: string;
  description: string;
  datasetUrl: string;
  datasetDescription: string;
  operations: string[];
  pipelineTemplate: string;
}

// Main component (default export)
export default function TutorialsDialog(props: {
  open: boolean;
  onOpenChange: (open: boolean) => void;
}): JSX.Element

Import

import TutorialsDialog from "@/components/TutorialsDialog";

I/O Contract

Inputs (Props)

Name Type Required Description
open boolean Yes Whether the dialog is visible
onOpenChange (open: boolean) => void Yes Toggle dialog visibility

Outputs

Name Type Description
rendered JSX.Element Tutorial selection dialog with pipeline templates

Usage Examples

<TutorialsDialog
  open={showTutorials}
  onOpenChange={setShowTutorials}
/>

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment