{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Phụ huynh và đội SSA phối hợp — thiết kế đề xuất",
    "locale": "vi",
    "output": "docs/ssa-miniapp/archify/modules.html",
    "quality_profile": "showcase"
  },
  "lanes": [
    {
      "id": "main",
      "label": "Phụ huynh"
    },
    {
      "id": "exception",
      "label": "Điểm kiểm soát / ngoại lệ",
      "variant": "exception"
    }
  ],
  "mainPath": [
    "n0",
    "n1",
    "n2",
    "n3",
    "n4",
    "n5"
  ],
  "nodes": [
    {
      "id": "n0",
      "lane": "main",
      "col": 0,
      "type": "security",
      "label": "Liên kết tài khoản",
      "sublabel": "SSA xác minh quan hệ"
    },
    {
      "id": "n1",
      "lane": "main",
      "col": 1,
      "type": "frontend",
      "label": "Chọn con",
      "sublabel": "Link còn hiệu lực"
    },
    {
      "id": "n2",
      "lane": "main",
      "col": 2,
      "type": "frontend",
      "label": "Trang chủ",
      "sublabel": "Lịch / gói / điểm danh"
    },
    {
      "id": "n3",
      "lane": "main",
      "col": 3,
      "type": "frontend",
      "label": "Kết quả",
      "sublabel": "Phiếu đã duyệt / PDF"
    },
    {
      "id": "n4",
      "lane": "main",
      "col": 4,
      "type": "frontend",
      "label": "Tin và khảo sát",
      "sublabel": "Inbox / ZBS / đúng người"
    },
    {
      "id": "n5",
      "lane": "main",
      "col": 5,
      "type": "frontend",
      "label": "Cửa hàng và đơn",
      "sublabel": "Checkout / trạng thái tiền"
    },
    {
      "id": "exception",
      "lane": "exception",
      "col": 1,
      "type": "security",
      "label": "Web Admin SSA",
      "sublabel": "Catalog / tiền / đối soát"
    }
  ],
  "edges": [
    {
      "id": "e0",
      "from": "n0",
      "to": "n1",
      "variant": "emphasis"
    },
    {
      "id": "e1",
      "from": "n1",
      "to": "n2",
      "variant": "emphasis"
    },
    {
      "id": "e2",
      "from": "n2",
      "to": "n3",
      "variant": "emphasis"
    },
    {
      "id": "e3",
      "from": "n3",
      "to": "n4",
      "variant": "emphasis"
    },
    {
      "id": "e4",
      "from": "n4",
      "to": "n5",
      "variant": "emphasis"
    },
    {
      "id": "branch",
      "from": "n1",
      "to": "exception",
      "label": "Hỗ trợ và quản lý",
      "variant": "security",
      "role": "branch"
    }
  ],
  "cards": [
    {
      "dot": "amber",
      "title": "Hai UI, trách nhiệm khác nhau",
      "items": [
        "Bốn tab Mini App; khảo sát từ home/tin. Đây là phạm vi, không phải thứ tự bắt buộc dùng app.",
        "Admin còn có import, quyền, Coach, chăm sóc. Sale xử lý đơn; tài chính kiểm tiền và đối soát, người lập khác người duyệt."
      ]
    },
    {
      "dot": "slate",
      "title": "Cơ sở thiết kế",
      "items": [
        "FEATURES.md §§2–7, bản làm việc 12/11/2026. Mini App mới có mock; Admin và tích hợp thật chưa triển khai."
      ]
    }
  ]
}
