Back to the library

Alert triage — escalate on silence

Variant: Escalate

An escalation policy, drawn: the page is one highlighted object that travels down the rota, and under each responder a rail drains their ack window at one linear rate — a timeout is a clock, and any easing on it would claim the window was shorter at one end. The header says Paging primary until the first window runs out, because nothing has escalated yet. When a rail runs out the page moves on, 240ms of ease-in-out because it is already on screen going from A to B, and the row it leaves is not cleared: the spent rail greys, the name dims, and “No answer” stays legible, because who was asked and did not respond is the first thing the person who finally picks it up needs. The third responder acks twelve points into their window and the rail stops dead where it was — a frozen clock is the receipt that nobody else is about to be woken — while the highlight cools from rust to oat, since an owned alert is still open. Reach for it on paging policies, approval chains and any hand-off that happens because of a timeout rather than a decision.

statusalertprogresslistloop

The source

A complete HTML document. Paste it into an empty .html file and it plays — no stylesheet, script, font, or image to fetch.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Triage — escalate on silence</title>
    <style>
      :root {
        /* Neutrals — fixed, never remixed. */
        --ivory: #faf9f5;
        --paper: #ffffff;
        --oat: #e3dacc;
        --slate: #141413;

        /* Knobs — the remix API. A knob exists iff declared here and used below. */
        --hue: 38.8;
        --lift: 0;
        --chroma: 1;
        --round: 1;
        --speed: 1;

        /* Accents — derived from the knobs with the family's offsets baked in,
           so one hue roll moves them together. Defaults reproduce the original hex. */
        --clay: oklch(calc(0.6724 + var(--lift)) calc(0.1308 * var(--chroma)) var(--hue));
        --clay-d: oklch(calc(0.5797 + var(--lift)) calc(0.127 * var(--chroma)) var(--hue));
        --olive: oklch(
          calc(0.6118 + var(--lift)) calc(0.0713 * var(--chroma)) calc(var(--hue) + 88.3)
        );
        --rust: oklch(
          calc(0.5408 + var(--lift)) calc(0.1357 * var(--chroma)) calc(var(--hue) - 10.3)
        );

        /* Clock — 8s, so 1% is 80ms. Each responder gets an equal 28% window
           (2.24s standing in for five minutes); the third acks 12% in. */
        --cycle: 8s;
        --t: calc(var(--cycle) / var(--speed));

        --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
        --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

        --_row: 42px;
        --_muted: color-mix(in srgb, var(--slate) 54%, transparent);
        --_track: color-mix(in srgb, var(--oat) 60%, var(--paper));
        --_spent: color-mix(in srgb, var(--slate) 22%, var(--paper));
        --_rust-tint: color-mix(in srgb, var(--rust) 10%, var(--paper));
        --_own-tint: color-mix(in srgb, var(--oat) 45%, var(--paper));
      }

      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      body {
        min-height: 100vh;
        display: grid;
        place-items: center;
        background: var(--ivory);
        font-family:
          system-ui,
          -apple-system,
          'Segoe UI',
          Roboto,
          sans-serif;
        color: var(--slate);
      }

      .card {
        width: min(320px, 88vw);
        background: var(--paper);
        border: 1px solid var(--oat);
        border-radius: calc(14px * var(--round));
        overflow: hidden;
      }

      .head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        font-size: 11.5px;
        border-bottom: 1px solid var(--oat);
      }

      .head b {
        font-weight: 600;
        font-size: 12.5px;
      }

      .stack {
        display: grid;
        justify-items: end;
      }

      .stack > * {
        grid-area: 1 / 1;
        white-space: nowrap;
      }

      .list {
        position: relative;
        padding: 6px 0;
      }

      /* The page itself, drawn as one object. It travels from row to row
         instead of each row lighting separately, so the eye follows the
         responsibility moving down the rota rather than reading three
         unrelated highlights. Travel is ease-in-out: it is already on screen
         and going from A to B. */
      .hl {
        position: absolute;
        top: 6px;
        left: 6px;
        right: 6px;
        height: var(--_row);
        border-radius: calc(9px * var(--round));
        background: var(--_rust-tint);
        opacity: 0;
        animation: hl var(--t) infinite;
      }

      @keyframes hl {
        0%,
        5% {
          opacity: 0;
          transform: translateY(0) scale(0.98);
          background: var(--_rust-tint);
          animation-timing-function: var(--ease-out);
        }
        7%,
        34% {
          opacity: 1;
          transform: translateY(0) scale(1);
          animation-timing-function: var(--ease-in-out);
        }
        37%,
        65% {
          opacity: 1;
          transform: translateY(var(--_row)) scale(1);
          animation-timing-function: var(--ease-in-out);
        }
        68%,
        79.5% {
          opacity: 1;
          transform: translateY(calc(var(--_row) * 2)) scale(1);
          background: var(--_rust-tint);
          animation-timing-function: ease;
        }
        81.5%,
        93% {
          opacity: 1;
          transform: translateY(calc(var(--_row) * 2)) scale(1);
          background: var(--_own-tint);
          animation-timing-function: ease;
        }
        96% {
          opacity: 0;
          transform: translateY(calc(var(--_row) * 2)) scale(1);
          background: var(--_own-tint);
        }
        97%,
        100% {
          opacity: 0;
          transform: translateY(0) scale(0.98);
          background: var(--_rust-tint);
        }
      }

      .row {
        position: relative;
        display: grid;
        grid-template-columns: 24px 1fr auto;
        align-items: center;
        gap: 10px;
        height: var(--_row);
        padding: 0 14px;
      }

      .av {
        display: grid;
        place-items: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--oat);
        font-size: 11px;
        font-weight: 600;
      }

      .who {
        display: grid;
        gap: 1px;
        font-size: 12.5px;
        font-weight: 600;
      }

      .who small {
        font-size: 11px;
        font-weight: 400;
        color: var(--_muted);
      }

      .st {
        font-size: 11.5px;
        font-weight: 600;
      }

      .idle,
      .none {
        color: var(--_muted);
        font-weight: 400;
      }

      .page {
        color: var(--rust);
      }

      .ack {
        color: var(--rust);
        padding: 4px 8px;
        border-radius: 999px;
        box-shadow: inset 0 0 0 1px var(--rust);
      }

      /* The ack timeout, drawn. It drains at one linear rate because the
         timeout is a clock, not a gesture — any easing would claim the
         responder's window was shorter at one end than the other. */
      .rail {
        position: absolute;
        left: 48px;
        right: 14px;
        bottom: 3px;
        height: 2px;
        border-radius: 999px;
        background: var(--_track);
        overflow: hidden;
      }

      .fill {
        display: block;
        height: 100%;
        background: var(--rust);
        transform-origin: left;
        transform: scaleX(0);
        animation-duration: var(--t);
        animation-iteration-count: infinite;
        animation-timing-function: linear;
      }

      .r1 .fill {
        animation-name: fill-1;
      }
      .r2 .fill {
        animation-name: fill-2;
      }
      .r3 .fill {
        animation-name: fill-3;
      }

      /* A window that ran out stays drawn, greyed. The rota's history — who
         was asked and did not answer — is the context the person who finally
         picks it up needs first. */
      @keyframes fill-1 {
        0%,
        6% {
          transform: scaleX(0);
          background: var(--rust);
          opacity: 1;
        }
        34% {
          transform: scaleX(1);
          background: var(--rust);
          animation-timing-function: ease;
        }
        36%,
        93% {
          transform: scaleX(1);
          background: var(--_spent);
          opacity: 1;
          animation-timing-function: ease;
        }
        96% {
          transform: scaleX(1);
          background: var(--_spent);
          opacity: 0;
        }
        97%,
        99.9% {
          transform: scaleX(0);
          opacity: 0;
        }
        100% {
          transform: scaleX(0);
          opacity: 1;
        }
      }

      @keyframes fill-2 {
        0%,
        37% {
          transform: scaleX(0);
          background: var(--rust);
          opacity: 1;
        }
        65% {
          transform: scaleX(1);
          background: var(--rust);
          animation-timing-function: ease;
        }
        67%,
        93% {
          transform: scaleX(1);
          background: var(--_spent);
          opacity: 1;
          animation-timing-function: ease;
        }
        96% {
          transform: scaleX(1);
          background: var(--_spent);
          opacity: 0;
        }
        97%,
        99.9% {
          transform: scaleX(0);
          opacity: 0;
        }
        100% {
          transform: scaleX(0);
          opacity: 1;
        }
      }

      /* Acked 12 points into a 28-point window: the rail stops dead where it
         was. A frozen clock is the receipt — nobody else is about to be
         woken. */
      @keyframes fill-3 {
        0%,
        68% {
          transform: scaleX(0);
          opacity: 1;
        }
        80%,
        93% {
          transform: scaleX(0.4286);
          opacity: 1;
          animation-timing-function: ease;
        }
        96% {
          transform: scaleX(0.4286);
          opacity: 0;
        }
        97%,
        99.9% {
          transform: scaleX(0);
          opacity: 0;
        }
        100% {
          transform: scaleX(0);
          opacity: 1;
        }
      }

      .st > *,
      .nm,
      .hs > * {
        animation-duration: var(--t);
        animation-iteration-count: infinite;
        animation-timing-function: ease;
      }

      .r1 .idle {
        animation-name: r1-idle;
      }
      .r1 .page {
        opacity: 0;
        animation-name: r1-page;
      }
      .r1 .none {
        opacity: 0;
        animation-name: r1-none;
      }
      .r1 .nm {
        animation-name: r1-who;
      }
      .r2 .idle {
        animation-name: r2-idle;
      }
      .r2 .page {
        opacity: 0;
        animation-name: r2-page;
      }
      .r2 .none {
        opacity: 0;
        animation-name: r2-none;
      }
      .r2 .nm {
        animation-name: r2-who;
      }
      .r3 .idle {
        animation-name: r3-idle;
      }
      .r3 .page {
        opacity: 0;
        animation-name: r3-page;
      }
      .r3 .ack {
        opacity: 0;
        animation-name: r3-ack;
      }

      @keyframes r1-idle {
        0%,
        5% {
          opacity: 1;
        }
        5.5%,
        95% {
          opacity: 0;
        }
        96.5%,
        100% {
          opacity: 1;
        }
      }
      @keyframes r1-page {
        0%,
        5.5% {
          opacity: 0;
        }
        6.5%,
        34% {
          opacity: 1;
        }
        34.5%,
        100% {
          opacity: 0;
        }
      }
      @keyframes r1-none {
        0%,
        34.5% {
          opacity: 0;
        }
        35.5%,
        93% {
          opacity: 1;
        }
        95%,
        100% {
          opacity: 0;
        }
      }
      @keyframes r1-who {
        0%,
        34% {
          opacity: 1;
        }
        36%,
        93% {
          opacity: 0.5;
        }
        96.5%,
        100% {
          opacity: 1;
        }
      }
      @keyframes r2-idle {
        0%,
        34.5% {
          opacity: 1;
        }
        35%,
        95% {
          opacity: 0;
        }
        96.5%,
        100% {
          opacity: 1;
        }
      }
      @keyframes r2-page {
        0%,
        35% {
          opacity: 0;
        }
        36%,
        65% {
          opacity: 1;
        }
        65.5%,
        100% {
          opacity: 0;
        }
      }
      @keyframes r2-none {
        0%,
        65.5% {
          opacity: 0;
        }
        66.5%,
        93% {
          opacity: 1;
        }
        95%,
        100% {
          opacity: 0;
        }
      }
      @keyframes r2-who {
        0%,
        65% {
          opacity: 1;
        }
        67%,
        93% {
          opacity: 0.5;
        }
        96.5%,
        100% {
          opacity: 1;
        }
      }
      @keyframes r3-idle {
        0%,
        65.5% {
          opacity: 1;
        }
        66%,
        95% {
          opacity: 0;
        }
        96.5%,
        100% {
          opacity: 1;
        }
      }
      @keyframes r3-page {
        0%,
        66% {
          opacity: 0;
        }
        67%,
        80% {
          opacity: 1;
        }
        80.5%,
        100% {
          opacity: 0;
        }
      }
      @keyframes r3-ack {
        0%,
        80.5% {
          opacity: 0;
        }
        81.5%,
        93% {
          opacity: 1;
        }
        95%,
        100% {
          opacity: 0;
        }
      }

      .hs {
        font-size: 11.5px;
      }

      .h-quiet {
        color: var(--_muted);
        animation-name: h-quiet;
      }
      .h-pg {
        color: var(--rust);
        font-weight: 600;
        opacity: 0;
        animation-name: h-pg;
      }
      .h-esc {
        color: var(--rust);
        font-weight: 600;
        opacity: 0;
        animation-name: h-esc;
      }
      .h-own {
        color: var(--_muted);
        opacity: 0;
        animation-name: h-own;
      }

      @keyframes h-quiet {
        0%,
        5% {
          opacity: 1;
        }
        5.5%,
        95% {
          opacity: 0;
        }
        96.5%,
        100% {
          opacity: 1;
        }
      }
      @keyframes h-pg {
        0%,
        5.5% {
          opacity: 0;
        }
        6.5%,
        34% {
          opacity: 1;
        }
        34.5%,
        100% {
          opacity: 0;
        }
      }
      @keyframes h-esc {
        0%,
        34.5% {
          opacity: 0;
        }
        35.5%,
        80% {
          opacity: 1;
        }
        80.5%,
        100% {
          opacity: 0;
        }
      }
      @keyframes h-own {
        0%,
        80.5% {
          opacity: 0;
        }
        81.5%,
        93% {
          opacity: 1;
        }
        95%,
        100% {
          opacity: 0;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        /* The page stops travelling: it fades out of one row and into the
           next on the same frames, so the hand-off still reads, and every
           clock stretches by the same 1.5 so rails and statuses agree. */
        .hl {
          animation-name: hl-calm;
        }

        @keyframes hl-calm {
          0%,
          5% {
            opacity: 0;
            transform: translateY(0);
            background: var(--_rust-tint);
          }
          7%,
          34% {
            opacity: 1;
            transform: translateY(0);
          }
          35.5% {
            opacity: 0;
            transform: translateY(0);
          }
          35.6% {
            opacity: 0;
            transform: translateY(var(--_row));
          }
          37%,
          65% {
            opacity: 1;
            transform: translateY(var(--_row));
          }
          66.5% {
            opacity: 0;
            transform: translateY(var(--_row));
          }
          66.6% {
            opacity: 0;
            transform: translateY(calc(var(--_row) * 2));
          }
          68%,
          79.5% {
            opacity: 1;
            transform: translateY(calc(var(--_row) * 2));
            background: var(--_rust-tint);
          }
          81.5%,
          93% {
            opacity: 1;
            transform: translateY(calc(var(--_row) * 2));
            background: var(--_own-tint);
          }
          96% {
            opacity: 0;
            transform: translateY(calc(var(--_row) * 2));
            background: var(--_own-tint);
          }
          97%,
          100% {
            opacity: 0;
            transform: translateY(0);
            background: var(--_rust-tint);
          }
        }

        .hl,
        .fill,
        .st > *,
        .nm,
        .hs > * {
          animation-duration: calc(var(--t) * 1.5);
        }
      }
    </style>
  </head>
  <body>
    <div
      class="card"
      role="img"
      aria-label="An unacknowledged alert pages Ana; her five-minute rail drains and runs out, so the page moves down to Ravi, whose rail also runs out; it moves to Sam, who acknowledges partway through, and his rail stops where it was"
    >
      <div class="head">
        <b>Checkout latency</b>
        <span class="hs stack">
          <span class="h-quiet">Quiet</span>
          <span class="h-pg">Paging primary</span>
          <span class="h-esc">No answer · escalating</span>
          <span class="h-own">Owned by Sam</span>
        </span>
      </div>
      <div class="list">
        <span class="hl"></span>
        <div class="row r1">
          <span class="av">A</span>
          <span class="who"><span class="nm">Ana</span><small>Primary</small></span>
          <span class="st stack">
            <span class="idle">5 min</span>
            <span class="page">Paging</span>
            <span class="none">No answer</span>
          </span>
          <span class="rail"><span class="fill"></span></span>
        </div>
        <div class="row r2">
          <span class="av">R</span>
          <span class="who"><span class="nm">Ravi</span><small>Secondary</small></span>
          <span class="st stack">
            <span class="idle">5 min</span>
            <span class="page">Paging</span>
            <span class="none">No answer</span>
          </span>
          <span class="rail"><span class="fill"></span></span>
        </div>
        <div class="row r3">
          <span class="av">S</span>
          <span class="who"><span class="nm">Sam</span><small>Team lead</small></span>
          <span class="st stack">
            <span class="idle">Last</span>
            <span class="page">Paging</span>
            <span class="ack">Acked</span>
          </span>
          <span class="rail"><span class="fill"></span></span>
        </div>
      </div>
    </div>
  </body>
</html>

The variant family

Same idea, one axis moved. Compare them side by side before you commit.