<?xml version="1.0" encoding="utf-8"?>
<!--
  SMART KPI Scorecards — Tableau Viz Extension manifest (2024.2+).

  HOW TO USE
  1. Deploy the built /dist folder to Cloudflare Pages.
  2. Replace "your-extension.pages.dev" below with your real Pages domain.
  3. In Tableau: Marks card ▸ drop-down ▸ "Add Extension" ▸ "Access Local
     Extensions" ▸ pick this .trex file.

  NOTES
  - <source-location> MUST be HTTPS for Tableau Desktop/Server/Cloud.
    (http://localhost is only allowed while developing.)
  - "full data" permission lets the extension read the underlying summary
    data of the worksheet it is placed on. Users see a one-time prompt.
  - Replace the <icon> payload with your own base64-encoded 70x70 PNG.
-->
<manifest manifest-version="0.1" xmlns="http://www.tableau.com/xml/extension_manifest">
  <worksheet-extension id="com.smartkpi" extension-version="1.0.0">
    <default-locale>en_US</default-locale>
    <name resource-id="name"/>
    <description>Smart KPI — dense, modular KPI scorecards with 20 selectable card structures, per-card formatting and custom tooltips.</description>
    <author
      name="Mahesh Poliparthi"
      email="mahesh.poliparthi@spectramedix.com"
      organization="SpectraMedix"
      website="https://smart-kpi.pages.dev"/>
    <min-api-version>1.12</min-api-version>
    <source-location>
      <url>https://smart-kpi.pages.dev/index.html</url>
    </source-location>
    <icon>iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==</icon>
    <permissions>
      <permission>full data</permission>
    </permissions>
    <!-- Adds a native "Configure…" entry to the extension's context menu in
         Tableau Desktop and in web-edit on Tableau Server / Tableau Cloud.
         It triggers the `configure` callback registered in initializeAsync,
         which opens the same settings drawer as the in-viz gear button. -->
    <context-menu>
      <configure-context-menu-item/>
    </context-menu>
  </worksheet-extension>
  <resources>
    <resource id="name">
      <text locale="en_US">Smart KPI</text>
    </resource>
  </resources>
</manifest>
