{
  "name": "drawer-slack",
  "kind": "block",
  "primary": "drawer-ui",
  "page": "/apps/saas/app/integrations/integrations.contents.html",
  "slots": [],
  "nested": [],
  "attrs": {
    "side": "right",
    "size": "md"
  },
  "html": "<drawer-ui id=\"drawer-slack\" side=\"right\" size=\"md\">\n  <header>\n    <span slot=\"icon\">\n      <avatar-ui icon=\"slack-logo\"></avatar-ui>\n    </span>\n    <span slot=\"heading\">\n      <text-ui strong>Slack</text-ui>\n      <badge-ui text=\"Connected\" variant=\"success\"></badge-ui>\n    </span>\n    <span slot=\"action\">\n      <!--<button-ui text=\"Configure\" onclick=\"document.getElementById('drawer-slack').open = true\"></button-ui>-->\n    </span>\n  </header>\n  <section>\n    <text-ui color=\"subtle\" size=\"sm\">Posts to #product-updates · connected by Alex Chen</text-ui>\n  </section>\n  <section>\n    <col-ui gap=\"4\">\n      <grid-ui columns=\"1 2@sm\" gap=\"3\">\n        <card-ui\n          ><section><stat-ui label=\"Messages sent\" value=\"1,284\" change=\"+12 today\" trend=\"up\"></stat-ui></section\n        ></card-ui>\n        <card-ui\n          ><section><stat-ui label=\"Last event\" value=\"4m ago\" change=\"deploy.succeeded\"></stat-ui></section\n        ></card-ui>\n      </grid-ui>\n      <divider-ui></divider-ui>\n      <field-ui label=\"Workspace\">\n        <input-ui value=\"acme-corp.slack.com\" readonly></input-ui>\n      </field-ui>\n      <field-ui label=\"Default channel\" hint=\"Events without a routing rule go here.\">\n        <select-ui value=\"product-updates\">\n          <option value=\"general\">#general (842 members)</option>\n          <option value=\"product-updates\">#product-updates (128 members)</option>\n          <option value=\"alerts\">#alerts (34 members)</option>\n          <option value=\"dev\">#dev (56 members)</option>\n          <option value=\"deploys\">#deploys (12 members)</option>\n          <option value=\"releases\">#releases (89 members)</option>\n        </select-ui>\n      </field-ui>\n      <divider-ui></divider-ui>\n      <col-ui gap=\"3\">\n        <text-ui strong>Post to Slack when…</text-ui>\n        <field-ui label=\"Someone mentions @Acme\" inline>\n          <switch-ui checked></switch-ui>\n        </field-ui>\n        <field-ui label=\"A deployment succeeds\" inline>\n          <switch-ui checked></switch-ui>\n        </field-ui>\n        <field-ui label=\"A deployment fails\" inline>\n          <switch-ui checked></switch-ui>\n        </field-ui>\n        <field-ui label=\"An alert fires\" inline>\n          <switch-ui></switch-ui>\n        </field-ui>\n        <field-ui label=\"A new member joins the workspace\" inline>\n          <switch-ui checked></switch-ui>\n        </field-ui>\n        <field-ui label=\"API usage crosses a threshold\" inline>\n          <switch-ui></switch-ui>\n        </field-ui>\n      </col-ui>\n      <divider-ui></divider-ui>\n      <field-ui label=\"Bot display name\">\n        <input-ui value=\"Acme Bot\"></input-ui>\n      </field-ui>\n      <field-ui label=\"Bot user ID\">\n        <input-ui value=\"U06F2G4QR8T\" readonly></input-ui>\n      </field-ui>\n    </col-ui>\n  </section>\n  <footer slot=\"footer\">\n    <grid-ui>\n      <button-ui text=\"Send test post\" icon=\"paper-plane-tilt\" variant=\"ghost\"></button-ui>\n      <button-ui text=\"Disconnect\" icon=\"plug\" color=\"danger\" onclick=\"this.closest('drawer-ui').open = false\"></button-ui>\n      <button-ui text=\"Save changes\" variant=\"primary\" onclick=\"this.closest('drawer-ui').open = false\"></button-ui>\n    </grid-ui>\n  </footer>\n</drawer-ui>",
  "source": "apps/saas/app/integrations/integrations.contents.html",
  "metadata": {
    "domain": "settings",
    "description": "Slack integration setup drawer — connect workspace with channel selection.",
    "keywords": [
      "drawer",
      "slack",
      "integration",
      "connect",
      "channel",
      "notifications",
      "setup"
    ]
  },
  "captured_at": "2026-06-07T19:28:13.657Z",
  "template": [
    {
      "id": "avatar",
      "component": "Avatar",
      "icon": "slack-logo"
    },
    {
      "id": "text",
      "component": "Text",
      "variant": "body",
      "slot": "icon",
      "children": [
        "avatar"
      ]
    },
    {
      "id": "text-3",
      "component": "Text",
      "strong": true,
      "textContent": "Slack"
    },
    {
      "id": "badge",
      "component": "Badge",
      "text": "Connected",
      "variant": "success"
    },
    {
      "id": "text-2",
      "component": "Text",
      "variant": "body",
      "slot": "heading",
      "children": [
        "text-3",
        "badge"
      ]
    },
    {
      "id": "text-4",
      "component": "Text",
      "variant": "body",
      "slot": "action"
    },
    {
      "id": "header",
      "component": "Header",
      "children": [
        "text",
        "text-2",
        "text-4"
      ]
    },
    {
      "id": "text-5",
      "component": "Text",
      "color": "subtle",
      "size": "sm",
      "textContent": "Posts to #product-updates · connected by Alex Chen"
    },
    {
      "id": "section",
      "component": "Section",
      "children": [
        "text-5"
      ]
    },
    {
      "id": "stat",
      "component": "Stat",
      "change": "+12 today",
      "label": "Messages sent",
      "trend": "up",
      "value": "1,284"
    },
    {
      "id": "section-3",
      "component": "Section",
      "children": [
        "column-2"
      ]
    },
    {
      "id": "column-2",
      "component": "Column",
      "children": [
        "stat"
      ]
    },
    {
      "id": "card",
      "component": "Card",
      "children": [
        "section-3"
      ]
    },
    {
      "id": "stat-2",
      "component": "Stat",
      "change": "deploy.succeeded",
      "label": "Last event",
      "value": "4m ago"
    },
    {
      "id": "section-4",
      "component": "Section",
      "children": [
        "column-3"
      ]
    },
    {
      "id": "column-3",
      "component": "Column",
      "children": [
        "stat-2"
      ]
    },
    {
      "id": "card-2",
      "component": "Card",
      "children": [
        "section-4"
      ]
    },
    {
      "id": "grid",
      "component": "Grid",
      "columns": "1 2@sm",
      "gap": "3",
      "children": [
        "card",
        "card-2"
      ]
    },
    {
      "id": "divider",
      "component": "Divider"
    },
    {
      "id": "input",
      "component": "Input",
      "readonly": true,
      "value": "acme-corp.slack.com"
    },
    {
      "id": "field",
      "component": "Field",
      "label": "Workspace",
      "children": [
        "input"
      ]
    },
    {
      "id": "choice-picker",
      "component": "ChoicePicker",
      "value": "product-updates",
      "options": [
        {
          "value": "general",
          "label": "#general (842 members)"
        },
        {
          "value": "product-updates",
          "label": "#product-updates (128 members)"
        },
        {
          "value": "alerts",
          "label": "#alerts (34 members)"
        },
        {
          "value": "dev",
          "label": "#dev (56 members)"
        },
        {
          "value": "deploys",
          "label": "#deploys (12 members)"
        },
        {
          "value": "releases",
          "label": "#releases (89 members)"
        }
      ]
    },
    {
      "id": "field-2",
      "component": "Field",
      "hint": "Events without a routing rule go here.",
      "label": "Default channel",
      "children": [
        "choice-picker"
      ]
    },
    {
      "id": "divider-2",
      "component": "Divider"
    },
    {
      "id": "text-6",
      "component": "Text",
      "strong": true,
      "textContent": "Post to Slack when…"
    },
    {
      "id": "toggle",
      "component": "Toggle",
      "checked": true
    },
    {
      "id": "field-3",
      "component": "Field",
      "inline": true,
      "label": "Someone mentions @Acme",
      "children": [
        "toggle"
      ]
    },
    {
      "id": "toggle-2",
      "component": "Toggle",
      "checked": true
    },
    {
      "id": "field-4",
      "component": "Field",
      "inline": true,
      "label": "A deployment succeeds",
      "children": [
        "toggle-2"
      ]
    },
    {
      "id": "toggle-3",
      "component": "Toggle",
      "checked": true
    },
    {
      "id": "field-5",
      "component": "Field",
      "inline": true,
      "label": "A deployment fails",
      "children": [
        "toggle-3"
      ]
    },
    {
      "id": "toggle-4",
      "component": "Toggle"
    },
    {
      "id": "field-6",
      "component": "Field",
      "inline": true,
      "label": "An alert fires",
      "children": [
        "toggle-4"
      ]
    },
    {
      "id": "toggle-5",
      "component": "Toggle",
      "checked": true
    },
    {
      "id": "field-7",
      "component": "Field",
      "inline": true,
      "label": "A new member joins the workspace",
      "children": [
        "toggle-5"
      ]
    },
    {
      "id": "toggle-6",
      "component": "Toggle"
    },
    {
      "id": "field-8",
      "component": "Field",
      "inline": true,
      "label": "API usage crosses a threshold",
      "children": [
        "toggle-6"
      ]
    },
    {
      "id": "column-4",
      "component": "Column",
      "gap": "3",
      "children": [
        "text-6",
        "field-3",
        "field-4",
        "field-5",
        "field-6",
        "field-7",
        "field-8"
      ]
    },
    {
      "id": "divider-3",
      "component": "Divider"
    },
    {
      "id": "input-2",
      "component": "Input",
      "value": "Acme Bot"
    },
    {
      "id": "field-9",
      "component": "Field",
      "label": "Bot display name",
      "children": [
        "input-2"
      ]
    },
    {
      "id": "input-3",
      "component": "Input",
      "readonly": true,
      "value": "U06F2G4QR8T"
    },
    {
      "id": "field-10",
      "component": "Field",
      "label": "Bot user ID",
      "children": [
        "input-3"
      ]
    },
    {
      "id": "column",
      "component": "Column",
      "gap": "4",
      "children": [
        "grid",
        "divider",
        "field",
        "field-2",
        "divider-2",
        "column-4",
        "divider-3",
        "field-9",
        "field-10"
      ]
    },
    {
      "id": "section-2",
      "component": "Section",
      "children": [
        "column"
      ]
    },
    {
      "id": "button",
      "component": "Button",
      "icon": "paper-plane-tilt",
      "text": "Send test post",
      "variant": "ghost"
    },
    {
      "id": "button-2",
      "component": "Button",
      "color": "danger",
      "icon": "plug",
      "text": "Disconnect"
    },
    {
      "id": "button-3",
      "component": "Button",
      "text": "Save changes",
      "variant": "primary"
    },
    {
      "id": "grid-2",
      "component": "Grid",
      "children": [
        "button",
        "button-2",
        "button-3"
      ]
    },
    {
      "id": "footer",
      "component": "Footer",
      "slot": "footer",
      "children": [
        "grid-2"
      ]
    },
    {
      "id": "root",
      "component": "Drawer",
      "side": "right",
      "size": "md",
      "children": [
        "header",
        "section",
        "section-2",
        "footer"
      ]
    }
  ]
}
