Skip to content

src/dazzle_ui/converters/experience_compiler.py

Generated: 2026-03-30T04:38:48.806666+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_ui

Purpose

Experience compiler — converts ExperienceSpec + state into template context.

Builds the ExperienceContext needed to render a single step of an experience flow, including the progress indicator, transition buttons, and the inner PageContext for the step's surface.

Key Exports

  • compile_experience_context

Dependencies

Imports

  • __future__.annotations
  • logging
  • typing.TYPE_CHECKING
  • dazzle.core.ir.experiences.StepKind
  • dazzle.core.ir.surfaces.SurfaceMode
  • dazzle.core.ir.surfaces.SurfaceSpec
  • dazzle_ui.converters.template_compiler.compile_surface_to_context
  • dazzle_ui.runtime.template_context.ExperienceContext
  • dazzle_ui.runtime.template_context.ExperienceStepContext
  • dazzle_ui.runtime.template_context.ExperienceTransitionContext
  • dazzle_ui.runtime.template_context.PageContext
  • dazzle_ui.utils.expression_eval.evaluate_simple_condition
  • dazzle_ui.utils.expression_eval.resolve_prefill_expression
  • dazzle.core.ir.AppSpec
  • dazzle.core.ir.EntitySpec
  • dazzle.core.ir.ExperienceSpec
  • dazzle_ui.runtime.experience_state.ExperienceState

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_experience_compiler.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.