{
 "id": "page-maintenance",
 "name": "Maintenance page",
 "purpose": "A planned-downtime page that says what is paused, that nothing is lost, and when it will be back, in the person's time zone.",
 "use_when": [
  "during planned maintenance, when part or all of the product is paused",
  "planned work pauses the product or one area of it",
  "a deploy needs the app read-only for a known time"
 ],
 "avoid_when": [
  "an unplanned outage with no known end: use page-error with a status link",
  "only a small feature is paused: use a warning banner (page-banners)"
 ],
 "type": "states",
 "style": "quiet",
 "width": "wide",
 "tags": {
  "audience": "work",
  "industries": [
   "any"
  ],
  "keywords": [
   "maintenance",
   "downtime",
   "status",
   "scheduled",
   "back soon"
  ]
 },
 "root": ".odl-page-maintenance",
 "parts": [
  {
   "name": "title",
   "selector": ".odl-page-maintenance [data-od-slot=\"title\"]",
   "what": "the heading: what happened, in plain words, as in “Invoices are paused for an upgrade”",
   "slot": "text"
  },
  {
   "name": "message",
   "selector": ".odl-page-maintenance [data-od-slot=\"message\"]",
   "what": "one or two sentences: what it means and what to do next, as in “We're upgrading the payments database. Everythin”",
   "slot": "text"
  },
  {
   "name": "until",
   "selector": ".odl-page-maintenance [data-od-slot=\"until\"]",
   "what": "when it will be back, as a time element, as in “3:00 PM UTC”",
   "slot": "text"
  },
  {
   "name": "detail",
   "selector": ".odl-page-maintenance [data-od-slot=\"detail\"]",
   "what": "a short line of detail under the title, as in “Saturday, Nov 14 · about 40 minutes from now”",
   "slot": "text"
  },
  {
   "name": "status",
   "selector": ".odl-page-maintenance [data-od-action=\"status\"]",
   "what": "the See live status action",
   "slot": "action"
  },
  {
   "name": "notify",
   "selector": ".odl-page-maintenance [data-od-action=\"notify\"]",
   "what": "the Email me when it's back action",
   "slot": "action"
  }
 ],
 "data": {
  "type": "object",
  "properties": {
   "title": {
    "type": "string",
    "maxLength": 48,
    "part": "title"
   },
   "message": {
    "type": "string",
    "maxLength": 176,
    "part": "message"
   },
   "until": {
    "type": "string",
    "maxLength": 24,
    "part": "until"
   },
   "detail": {
    "type": "string",
    "maxLength": 64,
    "part": "detail"
   }
  },
  "required": [
   "title",
   "message",
   "until",
   "detail"
  ]
 },
 "states": {
  "shown": [
   "in maintenance",
   "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-neutral-subtle",
  "--ds-color-border-default",
  "--ds-color-border-focus",
  "--ds-color-border-subtle",
  "--ds-color-icon-accent",
  "--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-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-md",
  "--ds-size-icon-sm",
  "--ds-size-target-min",
  "--ds-space-inline-md",
  "--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",
  "--ds-text-title-sm"
 ],
 "a11y": {
  "summary": "The return time is a time element with a machine-readable datetime; the status link and email option are real links and buttons.",
  "roles": [
   "region"
  ],
  "keyboard": [
   "Tab moves through the links and buttons in reading order",
   "Enter follows a link; Enter or Space presses a button"
  ],
  "controls": {
   "button": 1,
   "input": 0,
   "link": 1,
   "select": 0,
   "textarea": 0,
   "summary": 0
  },
  "focus_visible": true,
  "reduced_motion": true,
  "min_target": true
 },
 "files": {
  "html": "components/page-maintenance/component.html",
  "bytes": 7927,
  "script": false
 },
 "source": null,
 "photos": 0,
 "urls": {
  "html": "https://opendesigner.dev/library/page-maintenance.html",
  "json": "https://opendesigner.dev/library/page-maintenance.json",
  "page": "https://opendesigner.dev/library/page-maintenance/"
 },
 "get": {
  "curl": "curl -fsSLo page-maintenance.html https://opendesigner.dev/library/page-maintenance.html",
  "opendesigner": "python3 path/to/skills/opendesigner/scripts/library.py add page-maintenance --from https://opendesigner.dev",
  "prompt": "Add the OpenDesigner component page-maintenance to this project: https://opendesigner.dev/library/page-maintenance.html. Keep its markup and states; map its --ds-* variables to my tokens."
 }
}
