Views Timeline
// Timeline

Timeline

A swimlane timeline where a bar's fill says who started a run, a mark at its end says how it ended, and curves connect one run to the next.

.talos-timeline draws runs of work on a shared time axis: one chamfered lane per group, bars whose fill pattern says what started them, a mark at the end of each bar for its result, curved edges between runs, and a side drawer for one item’s detail. No hue carries a category; only the status marks use the status tokens. Lives in talos-timeline.css (in all.css); it needs talos.css for the chamfer engine and talos-layout.css for the pulse of the live mark.

Default — lanes, bars, marks, events

PREVIEW
Amsterdam
operator3 runs
fleet4 runs
events4
09:0010:0011:0012:0013:0014:0015:00
<div
  class="talos-timeline"
  style="--talos-timeline-width:760px;--talos-timeline-hour:120px;--talos-timeline-hour0:20px"
>
  <div class="talos-timeline__heads">
    <div class="talos-timeline__axis-head">Amsterdam</div>
    <div class="talos-timeline__head" style="height:54px">
      <span class="talos-timeline__title">
        operator</span><span class="talos-timeline__meta">3 runs
      </span>
    </div>
  </div>
  <div class="talos-timeline__viewport">
    <div class="talos-timeline__tracks">
      <div class="talos-timeline__axis">
        <span class="talos-timeline__tick" style="--x:20px"><span>09:00</span></span>
      </div>
      <div class="talos-timeline__lane" style="height:54px">
        <span
          class="talos-timeline__bar talos-timeline__bar--solid"
          style="--x:30px;--w:90px;--y:12px"
        >
          <i class="talos-timeline__mark talos-timeline__mark--merged"></i>
        </span>
      </div>
      <svg class="talos-timeline__edges"><path d="M120,52 C130,52 130,112 140,112" /></svg>
    </div>
  </div>
</div>

The caller computes every position in px and passes it as a custom property: --x, --w, --y on bars and events, --x on ticks, and --talos-timeline-width, --talos-timeline-hour (px per hour) and --talos-timeline-hour0 (x of the first hour rule) on the root. The same numbers place the SVG edge paths, which live in the tracks’ px space (axis and lane gaps included). A head and its lane share a height and read as one chamfered panel: the head carries the bottom-left cut, the lane the top-right cut. The label column scrolls with nothing; the tracks scroll horizontally inside __viewport.

Who started it — the fill

PREVIEW
<button class="talos-flag" aria-pressed="true">
  <span class="talos-timeline__swatch talos-timeline__bar--hatched"></span>delegated
</button>

The bar variants set paint only, never position, so the same class dresses a legend swatch. Put the swatches in toggle flags (<button class="talos-flag" aria-pressed>) and the legend doubles as the filter: a pressed flag shows its runs, an unpressed one is struck through.

ClassEncodes
.talos-timeline__bar--solidstarted by a person
.talos-timeline__bar--outlinestarted by a supervisor or scheduler (outline, half-tone fill)
.talos-timeline__bar--hatcheddelegated work (diagonal hatch)
.talos-timeline__bar--dottedbackground or other work (dotted outline)
.talos-timeline__bar--muteda run that changed nothing (25% opacity, dashed)

How it ended — the mark

PREVIEW
mergedopeneddecisionfailedpostedlive
ClassEncodes
.talos-timeline__mark--merged / --openedsuccess-token filled / hollow square
.talos-timeline__mark--decision / --failedwarning-token chevron / danger-token x
.talos-timeline__mark--posted / --livehollow dot / the accent pulse (still running)
.talos-timeline__event (--solid, --faint)a point in time: hollow, solid or faint diamond

A mark inside a bar sits just past its end. A mark placed as an event (.talos-timeline__event.talos-timeline__mark--posted) keeps its own shape instead of the diamond.

Tracing one chain

PREVIEW
Trace
operator
fleet
09:0010:0011:0012:0013:00
<div class="talos-timeline is-tracing">
  …
  <span class="talos-timeline__bar talos-timeline__bar--hatched is-lit" …></span>
  <svg class="talos-timeline__edges"><path class="is-lit" d="…" /></svg>
</div>

Add .is-tracing to the root and .is-lit to the bars, events and edge paths of one chain: everything else drops to --talos-timeline-dim (0.14) and the lit edges brighten.

Drawer

PREVIEW
<aside class="talos-drawer is-open">
  <div class="talos-drawer__head">
    …<button class="talos-button talos-button--xs">Close</button>
  </div>
  <div class="talos-drawer__body">
    <h2 class="talos-drawer__title">Bump talos-ui to 0.12.1</h2>
  </div>
</aside>

.talos-drawer is a chamfered side panel fixed to the right edge for the detail of one selected item. It is closed by default; .is-open (or [data-open]) slides it in. The demo above overrides position so it renders in place.

Classes

ClassRole
.talos-timelineroot; --talos-timeline-label, -width, -hour, -hour0
.talos-timeline__headsfixed label column
.talos-timeline__axis-head / __headaxis label cell / one head per lane
.talos-timeline__head--events / __lane--eventsthe darker event row
.talos-timeline__title / __metahead title / count line
.talos-timeline__viewport / __trackshorizontal scroller / px-wide track column
.talos-timeline__axis / __ticktime axis / tick at --x
.talos-timeline__laneone lane, hour rules drawn in its background
.talos-timeline__bara run at --x, --w, --y
.talos-timeline__eventa point in time at --x, --y
.talos-timeline__edgesSVG edge layer over the tracks
.talos-timeline__tipmulti-line hover tip on .talos-tooltip chrome
.talos-timeline__swatchlegend swatch, dressed by a bar variant
.talos-drawer (__head, __body, __title)detail side panel; .is-open / [data-open]