# Week-based Gantt example The [contract](contract.md) captures the active List/Gantt workflow in stok's `web/static/timeline-views.js` at `f589919`. The calendar implementation is dormant and is not a default in this pattern. The [source audit](../web-visual-baseline/stock-review-2026-10-03.md) distinguishes adopted decisions from outstanding implementation gaps. ## Shared geometry Load canonical `view.css` first. This four-week example demonstrates geometry only; the server or application computes week columns, bar positions, dates and status from the same records as the list. Production ranges may contain more weeks and scroll horizontally. ```css .gantt { max-height: 68vh; overflow: auto; border: 1px solid var(--border); border-radius: 4px; } .gantt-row { display: grid; grid-template-columns: 260px minmax(224px, 1fr); min-width: 484px; border-bottom: 1px solid var(--border-lite); } .gantt-header { position: sticky; top: 0; z-index: 3; background: var(--surface-2); } .gantt-name { position: sticky; left: 0; z-index: 2; padding: 6px 9px; background: var(--surface); border-right: 1px solid var(--border); } .gantt-weeks { display: grid; grid-template-columns: repeat(4, minmax(56px, 1fr)); } .gantt-track { position: relative; min-height: 34px; } .gantt-bar { position: absolute; top: 2px; bottom: 2px; border: 1px solid var(--border); border-radius: 4px; background: var(--accent-bg); color: var(--ink); white-space: nowrap; cursor: pointer; } .gantt-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .gantt-fact { position: absolute; top: -1px; bottom: -1px; width: 3px; background: currentColor; } ``` ```html
2026 · W40–43