{
 "id": "member-list",
 "name": "Member list",
 "purpose": "A workspace's members with their email, a role picker per person, last active time, a pending invite you can resend and the owner's locked role.",
 "use_when": [
  "in team or workspace settings, to manage people and roles",
  "a seat-limited plan where admins change roles and chase pending invites in one place"
 ],
 "avoid_when": [
  "sending new invites with emails and a role: use invite-members",
  "one person's public profile: use profile-card",
  "a history of role changes: use audit-log"
 ],
 "type": "data",
 "style": "quiet",
 "width": "medium",
 "tags": {
  "audience": "work",
  "industries": [
   "saas",
   "security",
   "any"
  ],
  "keywords": [
   "members",
   "team",
   "roles",
   "invite",
   "permissions"
  ]
 },
 "root": ".odl-member-list",
 "parts": [
  {
   "name": "title",
   "selector": "h3",
   "what": "the list's heading",
   "slot": "text"
  },
  {
   "name": "count",
   "selector": ".odl-head p",
   "what": "member count and free seats",
   "slot": "text"
  },
  {
   "name": "invite",
   "selector": ".odl-invite",
   "what": "the main action, to invite people",
   "slot": "action"
  },
  {
   "name": "columns",
   "selector": ".odl-cols",
   "what": "column labels, hidden in a narrow box",
   "slot": "none"
  },
  {
   "name": "members",
   "selector": "ul > li",
   "what": "one member or pending invite: who, role and last active",
   "slot": "list"
  },
  {
   "name": "avatar",
   "selector": ".odl-avatar",
   "what": "the person's photo, or a dashed mail icon for an invite",
   "slot": "media"
  },
  {
   "name": "name",
   "selector": ".odl-name strong",
   "what": "name, with a 'You' tag for the viewer; the email for an invite",
   "slot": "text"
  },
  {
   "name": "email",
   "selector": ".odl-name > span",
   "what": "email, or the invite's pending tag, sender and expiry",
   "slot": "text"
  },
  {
   "name": "role",
   "selector": ".odl-role select",
   "what": "a native role picker",
   "slot": "input"
  },
  {
   "name": "locked",
   "selector": ".odl-locked",
   "what": "the owner's role, with a lock instead of a picker",
   "slot": "text"
  },
  {
   "name": "when",
   "selector": ".odl-when",
   "what": "last active time, 'Active now', or the resend button",
   "slot": "text"
  },
  {
   "name": "resend",
   "selector": ".odl-quiet",
   "what": "resends a pending invite",
   "slot": "action"
  }
 ],
 "data": {
  "type": "object",
  "required": [
   "members",
   "roles"
  ],
  "properties": {
   "title": {
    "type": "string",
    "maxLength": 24,
    "part": "title"
   },
   "count": {
    "type": "string",
    "maxLength": 60,
    "part": "count"
   },
   "roles": {
    "type": "array",
    "minItems": 2,
    "maxItems": 6,
    "part": "role",
    "items": {
     "type": "string",
     "maxLength": 14
    }
   },
   "members": {
    "type": "array",
    "minItems": 1,
    "maxItems": 12,
    "part": "members",
    "items": {
     "type": "object",
     "required": [
      "email",
      "role",
      "status"
     ],
     "properties": {
      "name": {
       "type": "string",
       "maxLength": 32,
       "part": "name"
      },
      "email": {
       "type": "string",
       "maxLength": 60,
       "part": "email"
      },
      "avatar": {
       "type": "string",
       "maxLength": 300,
       "format": "uri",
       "part": "avatar"
      },
      "role": {
       "type": "string",
       "maxLength": 14,
       "part": "role"
      },
      "status": {
       "enum": [
        "active",
        "pending",
        "owner"
       ]
      },
      "is_you": {
       "type": "boolean",
       "part": "name"
      },
      "last_active": {
       "type": "string",
       "maxLength": 12,
       "part": "when"
      },
      "invite_note": {
       "type": "string",
       "maxLength": 50,
       "part": "email"
      }
     }
    }
   }
  }
 },
 "states": {
  "shown": [
   "hover",
   "focus",
   "owner locked",
   "pending invite",
   "online"
  ],
  "edge": {
   "empty": {
    "status": "handled",
    "evidence": "data-od-list",
    "how": "the Smart UI renderer puts one plain 'Nothing to show yet.' line in an empty list"
   },
   "loading": {
    "status": "handled",
    "evidence": "data-od-slot",
    "how": "the Smart UI renderer draws each marked slot as a quiet block of its size while the data arrives; the static file shows the filled part"
   },
   "error": {
    "status": "not_built",
    "how": "if a role change or resend fails, put the old role back and show the reason in toast-stack"
   },
   "disabled": {
    "status": "shown",
    "how": "the owner's role has no picker: a lock and the word Owner, with a tooltip saying why",
    "evidence": "The owner's role can be changed only by transferring ownership"
   },
   "overflow": {
    "status": "not_built",
    "how": "the list shows every row it is given; for a large team, cap it and add filter-bar search and pagination below"
   },
   "long_text": {
    "status": "handled",
    "how": "emails break anywhere to fit, names wrap with their tags, and in a narrow box each row restacks with the role and time under the name",
    "evidence": "overflow-wrap: anywhere"
   },
   "missing_image": {
    "status": "handled",
    "evidence": "data-od-media",
    "how": "the Smart UI renderer swaps a photo that fails to load for a block of the same size with its alt text"
   }
  }
 },
 "tokens": [
  "--ds-border-width-default",
  "--ds-color-bg-action-primary",
  "--ds-color-bg-action-primary-hover",
  "--ds-color-bg-field",
  "--ds-color-bg-neutral-subtle",
  "--ds-color-bg-neutral-subtle-hover",
  "--ds-color-bg-warning-subtle",
  "--ds-color-border-default",
  "--ds-color-border-focus",
  "--ds-color-border-input",
  "--ds-color-border-separator",
  "--ds-color-border-strong",
  "--ds-color-border-subtle",
  "--ds-color-icon-subtle",
  "--ds-color-surface-raised",
  "--ds-color-surface-sunken",
  "--ds-color-text-on-action",
  "--ds-color-text-primary",
  "--ds-color-text-secondary",
  "--ds-color-text-success",
  "--ds-color-text-tertiary",
  "--ds-color-text-warning",
  "--ds-elevation-raised",
  "--ds-focus-ring-offset",
  "--ds-focus-ring-width",
  "--ds-font-weight-label",
  "--ds-icon-stroke-md",
  "--ds-motion-duration-short",
  "--ds-motion-easing-standard",
  "--ds-radius-container",
  "--ds-radius-control",
  "--ds-radius-detail",
  "--ds-radius-person",
  "--ds-size-control-md",
  "--ds-size-control-sm",
  "--ds-size-icon-sm",
  "--ds-size-row-sm",
  "--ds-size-row-two-line",
  "--ds-size-target-min",
  "--ds-space-2",
  "--ds-space-32",
  "--ds-space-inline-md",
  "--ds-space-inline-xs",
  "--ds-space-inset-lg",
  "--ds-space-inset-md",
  "--ds-space-inset-sm",
  "--ds-space-inset-xl",
  "--ds-space-inset-xs",
  "--ds-space-stack-sm",
  "--ds-space-stack-xs",
  "--ds-text-body-md",
  "--ds-text-label-lg",
  "--ds-text-label-md",
  "--ds-text-label-sm",
  "--ds-text-title-md"
 ],
 "a11y": {
  "summary": "Each role is a native select labelled with the person's name; the resend button names the invitee; on narrow widths the rows restack without hiding anything.",
  "roles": [
   "list",
   "region"
  ],
  "keyboard": [
   "Tab reaches Invite, then each role picker, then the Resend button",
   "Arrow keys or Space open and change a role picker, as in any native select",
   "Enter or Space presses Invite or Resend"
  ],
  "controls": {
   "button": 3,
   "input": 0,
   "link": 0,
   "select": 5,
   "textarea": 0,
   "summary": 0
  },
  "focus_visible": true,
  "reduced_motion": true,
  "min_target": true
 },
 "files": {
  "html": "components/member-list/component.html",
  "bytes": 15030,
  "script": false
 },
 "source": "brand/showcase/product/06-ferrule-security",
 "photos": 4,
 "urls": {
  "html": "https://opendesigner.dev/library/member-list.html",
  "json": "https://opendesigner.dev/library/member-list.json",
  "page": "https://opendesigner.dev/library/member-list/"
 },
 "get": {
  "curl": "curl -fsSLo member-list.html https://opendesigner.dev/library/member-list.html",
  "opendesigner": "python3 path/to/skills/opendesigner/scripts/library.py add member-list --from https://opendesigner.dev",
  "prompt": "Add the OpenDesigner component member-list to this project: https://opendesigner.dev/library/member-list.html. Keep its markup and states; map its --ds-* variables to my tokens."
 }
}
