{
 "id": "page-no-access",
 "name": "No access page",
 "purpose": "A 403 page that says who owns the page and lets the person ask for access with an optional note, without blaming them.",
 "use_when": [
  "when a signed-in person opens something they don't have permission to see",
  "the person is signed in and the item exists, but they lack permission",
  "a shared link points to a workspace they're not in"
 ],
 "avoid_when": [
  "the item doesn't exist: use page-not-found (also when revealing that it exists would leak information)",
  "the person is signed out: use session-expired or the sign-in page"
 ],
 "type": "states",
 "style": "quiet",
 "width": "wide",
 "tags": {
  "audience": "work",
  "industries": [
   "any"
  ],
  "keywords": [
   "403",
   "no access",
   "permission",
   "request access",
   "sharing"
  ]
 },
 "root": ".odl-page-no-access",
 "parts": [
  {
   "name": "title",
   "selector": ".odl-page-no-access [data-od-slot=\"title\"]",
   "what": "the heading: what happened, in plain words, as in “You don't have access to this page yet”",
   "slot": "text"
  },
  {
   "name": "message",
   "selector": ".odl-page-no-access [data-od-slot=\"message\"]",
   "what": "one or two sentences: what it means and what to do next, as in ““Q4 vendor budget” is shared with the Finance te”",
   "slot": "text"
  },
  {
   "name": "owner",
   "selector": ".odl-page-no-access [data-od-slot=\"owner\"]",
   "what": "who can give access, as in “Wilhelmina Okoye”",
   "slot": "text"
  },
  {
   "name": "request",
   "selector": ".odl-page-no-access [data-od-action=\"request\"]",
   "what": "the Request access action",
   "slot": "action"
  },
  {
   "name": "account",
   "selector": ".odl-page-no-access [data-od-slot=\"account\"]",
   "what": "the account the person is signed in with, as in “maya@larkspur.example”",
   "slot": "text"
  }
 ],
 "data": {
  "type": "object",
  "properties": {
   "title": {
    "type": "string",
    "maxLength": 56,
    "part": "title"
   },
   "message": {
    "type": "string",
    "maxLength": 112,
    "part": "message"
   },
   "owner": {
    "type": "string",
    "maxLength": 24,
    "part": "owner"
   },
   "account": {
    "type": "string",
    "maxLength": 32,
    "part": "account"
   }
  },
  "required": [
   "title",
   "message",
   "owner",
   "account"
  ]
 },
 "states": {
  "shown": [
   "no access",
   "request sent",
   "hover",
   "focus"
  ],
  "edge": {
   "empty": {
    "status": "not_built",
    "how": "Not applicable: this state screen shows no list of records."
   },
   "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": "shown",
    "how": "The part is itself an error or system state, written in plain words with a next step.",
    "evidence": "class=\"odl-lead\""
   },
   "disabled": {
    "status": "not_built",
    "how": "No control here is ever disabled; each one always does something."
   },
   "overflow": {
    "status": "handled",
    "how": "Actions stack full width under 30rem; the panel caps its width.",
    "evidence": "@container"
   },
   "long_text": {
    "status": "handled",
    "how": "Titles balance and body text wraps at word boundaries inside a capped measure.",
    "evidence": "text-wrap"
   },
   "missing_image": {
    "status": "none",
    "how": "the part has no photo"
   }
  }
 },
 "tokens": [
  "--ds-border-width-default",
  "--ds-color-bg-action-primary",
  "--ds-color-bg-action-primary-hover",
  "--ds-color-bg-action-primary-pressed",
  "--ds-color-bg-field",
  "--ds-color-bg-neutral-subtle",
  "--ds-color-border-default",
  "--ds-color-border-focus",
  "--ds-color-border-input",
  "--ds-color-border-subtle",
  "--ds-color-icon-default",
  "--ds-color-surface-base",
  "--ds-color-surface-raised",
  "--ds-color-surface-sunken",
  "--ds-color-text-link",
  "--ds-color-text-on-action",
  "--ds-color-text-primary",
  "--ds-color-text-secondary",
  "--ds-color-text-success",
  "--ds-color-text-tertiary",
  "--ds-focus-ring-offset",
  "--ds-focus-ring-width",
  "--ds-font-weight-heading",
  "--ds-font-weight-label",
  "--ds-icon-stroke-md",
  "--ds-icon-stroke-sm",
  "--ds-motion-duration-short",
  "--ds-motion-easing-standard",
  "--ds-opacity-disabled-container",
  "--ds-radius-container",
  "--ds-radius-control",
  "--ds-size-control-lg",
  "--ds-size-control-md",
  "--ds-size-icon-lg",
  "--ds-size-icon-sm",
  "--ds-size-target-min",
  "--ds-space-inline-sm",
  "--ds-space-inset-lg",
  "--ds-space-inset-md",
  "--ds-space-inset-sm",
  "--ds-space-inset-xl",
  "--ds-space-section-md",
  "--ds-space-section-sm",
  "--ds-space-stack-lg",
  "--ds-space-stack-md",
  "--ds-space-stack-sm",
  "--ds-space-stack-xl",
  "--ds-space-stack-xs",
  "--ds-text-body-md",
  "--ds-text-body-sm",
  "--ds-text-headline-sm",
  "--ds-text-label-lg",
  "--ds-text-label-md"
 ],
 "a11y": {
  "summary": "The note is a labelled text area; after the request is sent, the confirmation is a polite status that takes focus, so keyboard and screen-reader users hear it.",
  "roles": [
   "form",
   "region",
   "status"
  ],
  "keyboard": [
   "Tab reaches the note, Request access, then Switch account",
   "After the request is sent, focus moves to the confirmation"
  ],
  "controls": {
   "button": 1,
   "input": 0,
   "link": 1,
   "select": 0,
   "textarea": 1,
   "summary": 0
  },
  "focus_visible": true,
  "reduced_motion": true,
  "min_target": true
 },
 "files": {
  "html": "components/page-no-access/component.html",
  "bytes": 9045,
  "script": true
 },
 "source": null,
 "photos": 0,
 "urls": {
  "html": "https://opendesigner.dev/library/page-no-access.html",
  "json": "https://opendesigner.dev/library/page-no-access.json",
  "page": "https://opendesigner.dev/library/page-no-access/"
 },
 "get": {
  "curl": "curl -fsSLo page-no-access.html https://opendesigner.dev/library/page-no-access.html",
  "opendesigner": "python3 path/to/skills/opendesigner/scripts/library.py add page-no-access --from https://opendesigner.dev",
  "prompt": "Add the OpenDesigner component page-no-access to this project: https://opendesigner.dev/library/page-no-access.html. Keep its markup and states; map its --ds-* variables to my tokens."
 }
}
