# =demo-tiles: widget gallery, KPI TILES on the cards pane (canned data, no setup).
# The tiles show with Settings, Labs, Rich widgets on; with it off the same
# rows render as the cards grid. Demo runs a local script (Tier 3 sample).
schema_version: 1
runtime: bridge
id: demo-tiles
chip: demo-tiles
title: "Demo · Tiles"
icon: gauge
description: "Sample KPI tiles with a change, trend and meter, canned data, zero setup."
placeholder_examples: ["Enter to load the demo tiles"]
emits: Generic
bridge:
  command:
    macos: "python3 {{scripts_dir}}/bolt-demo.py tiles"
    linux: "python3 {{scripts_dir}}/bolt-demo.py tiles"
    windows: "python {{scripts_dir}}/bolt-demo.py tiles"
  parse: json
  timeout_seconds: 5
presentation:
  widget: list
  title_field: title
  subtitle_field: subtitle
  right_widget:
    kind: cards
    mode: list_data
    bind:
      layout: tiles
      title: "{{row.label}}"
      value: "{{row.value}}"
      unit: "{{row.unit}}"
      delta: "{{row.delta}}"
      delta_label: "{{row.since}}"
      max: "{{row.max}}"
      trend: "{{row.trend}}"
actions:
  - { id: copy, kind: composer, target: row, label: Copy, insert: "{{title}}" }
