nowline v1
// Fixture for item-title wrapping (lolay/nowline#59). A title that is too
// wide for its bar on one line but fits on at most two whitespace-wrapped
// lines stays INSIDE the bar instead of spilling to the right. The old
// spill pushed the next chained item down a whole row.
//
// What to look for when rendering this:
// - Platform lane: "Technology Selection" (2w at scale:2w, a 148px bar)
// wraps to "Technology" / "Selection" inside its bar. The bar grows
// 16px to hold the second title line plus the meta line, and "API"
// stays on the same row instead of dropping to a fresh one.
// - Every other title in the issue's roadmap already fits on one line
// (short title, or a bar of 3w or more), so it renders as before.
// - Link icon lane: "Auth token refactor" wraps too, and its caption
// starts past the 14px link-icon tile (24px inset, not 12px), so the
// title never sits under the tile.
// - Dot clearance lane: the first title line also stops short of the
// status dot (and any footnote digits or `before:` glyph) in the bar's
// upper-right. "Authentication refactor" in a 2w bar with a link icon
// would put "Authentication" (about 106px) in a 103px first-line
// budget, running under the dot, so it spills to the right instead.
// This is the regression case for that overlap.
//
// A wrapped item WITHOUT a meta line (the 2-line, no-growth case: line 2
// lands at baseline 36, so the bar stays 56px) cannot be written in the
// DSL. Every item needs a `duration:` or `size:`, and either one is
// rendered as the meta line, so every bar wide enough to wrap carries
// meta. That case is pinned by the layout unit tests instead.
//
// Titles that cannot wrap into two lines still spill to the right; see
// text-spills-right.nowline and item-bumps-up.nowline (single words).
roadmap text-wraps-inside-bars "Generative AI" start:2026-04-06 scale:2w calendar:business
swimlane platform "Platform"
item "Technology Selection" duration:2w status:done
item api "API" duration:3w status:done
item "Agent Instructions" duration:3w status:in-progress
item api-integration "Agent Integration" duration:4w status:planned
item "Agent MCP" duration:2w status:planned
item platform-e2e-test "E2E Test" duration:2w status:planned
swimlane web "Web"
item "Web Prototype" duration:4w status:done
item "Web SDK" duration:2w status:planned after:api
item "Web Integration" duration:4w status:planned
item web-e2e-test "E2E Test" duration:2w status:planned after:api-integration
swimlane mobile "Mobile"
parallel
group ios "iOS"
item "iOS Prototype" duration:4w status:done
item "iOS SDK" duration:2w status:planned after:api
item "iOS Integration" duration:4w status:planned
item ios-e2e-test "E2E Test" duration:2w status:planned after:api-integration
group android "Android"
item "Android Prototype" duration:4w status:done
item "Android SDK" duration:2w status:planned after:api
item "Android Integration" duration:4w status:planned
item android-e2e-test "E2E Test" duration:2w status:planned after:api-integration
swimlane link-icon "Link icon"
item auth-token-refactor "Auth token refactor" duration:2w status:in-progress link:https://github.com/lolay/nowline/issues/59
item "Rollout" duration:3w status:planned
swimlane dot-clearance "Dot clearance"
item auth-refactor "Authentication refactor" duration:2w status:in-progress link:https://github.com/lolay/nowline/issues/59
milestone ai-release "AI Release" after:[platform-e2e-test, web-e2e-test, ios-e2e-test, android-e2e-test]
nowline v1
// Fixture for equal bar heights per row (specs/rendering.md § Item Bars,
// "Row bar heights"). Bars that sit side by side share one height: a
// shorter bar grows downward to the tallest bar on its row.
//
// What to look for when rendering this:
// - A: "Billing" (one line, caption spilled right) is as tall as the
// wrapped "Capture Flywheel TBD 1, TBD 2" beside it, 72 px.
// - B: the same, with the wrapped bar inside a group: Billing lines up
// with the group's first bar, top and bottom.
// - C: "Technology Selection" sits level with the iOS "SDK" bar, not with
// the iOS header, and is taller than it, so the iOS row grows to 72 px
// and the Android track moves down 16 px. The Android bars, a separate
// stacked row, stay 56 px.
roadmap row-equal-heights "Row equal heights" start:2026-04-06 scale:2w calendar:business
swimlane same-track "A: same track"
item "Capture Flywheel TBD 1, TBD 2" duration:3w status:in-progress
item "Billing" duration:1w status:planned
swimlane after-tall-group "B: short item after group"
group onboarding "Onboarding"
item "Capture Flywheel TBD 1, TBD 2" duration:3w status:in-progress
item "Billing" duration:1w status:planned
swimlane tall-after-parallel "C: tall item after parallel"
parallel
group ios "iOS"
item "SDK" duration:2w status:done
item "Shell" duration:2w status:planned
group android "Android"
item "SDK" duration:2w status:done
item "Shell" duration:2w status:planned
item "Technology Selection" duration:2w status:planned
nowline v1
// Fixture exercising the tri-state lane utilization underline (m13).
// Each lane has `capacity:` declared so the underline paints; the
// segments along the band's bottom edge map to the lane's per-timestep
// load against capacity:
//
// green — load < `utilization-warn-at` (default 80%)
// yellow — load in `[warn-at, over-at)` (default warn 80%, over 100%)
// red — load >= `utilization-over-at` (default 100%)
//
// Items use `duration:` literals (not `size:`) so each bar — and
// therefore each underline segment — is the full lane width and the
// color band is easy to read at a glance. For a small real-world story
// (on-call support as a capacity sink) see examples/capacity.nowline.
// See specs/rendering.md § Lane utilization underline for the full model.
roadmap r "Lane utilization states" start:2026-01-05 length:8w
// Lane 1 — healthy. Single item at 2/5 = 40% load. Green for the
// whole span (the underline reads as one continuous green rectangle).
swimlane healthy "Healthy (40%)" capacity:5
item a "Build" duration:6w capacity:2
// Lane 2 — warn. Single item at 4/5 = 80% load lands exactly on the
// `warn-at` threshold. One yellow rectangle.
swimlane stressed "At warn threshold (80%)" capacity:5
item b "Build" duration:6w capacity:4
// Lane 3 — over. Two parallel items push load to 6/5 = 120%, painting
// red for the whole span.
swimlane overloaded "Over capacity (120%)" capacity:5
parallel
item c1 "Stream A" duration:6w capacity:4
item c2 "Stream B" duration:6w capacity:2
// Lane 4 — segment coalescing demo. The underline transitions across
// time as load changes:
// warmup alone : 1/5 = 20% → green
// parallel block: 5/5 = 100% → red
// cooldown alone: 1/5 = 20% → green
swimlane mixed "Coalesced segments (green-red-green)" capacity:5
item warmup "Warm" duration:1w capacity:1
parallel
item p1 "Burst A" duration:4w capacity:3
item p2 "Burst B" duration:4w capacity:2
item cooldown "Cool" duration:1w capacity:1
// Lane 5 — custom thresholds. Tighter warn band (50%) and slack on
// over (120%). Same 4-capacity item now reads yellow (80%) without
// tipping red until load passes 120%.
swimlane custom "Custom thresholds (warn:50% over:120%)" capacity:5 utilization-warn-at:50% utilization-over-at:120%
item d "Build" duration:6w capacity:4
// Lane 6 — full opt-out. Lane has capacity but no underline paints.
// Useful when the lane's capacity is a budget signal but the author
// doesn't want the per-timestep visual.
swimlane silent "Opt-out (warn:none over:none)" capacity:5 utilization-warn-at:none utilization-over-at:none
item e "Build" duration:6w capacity:8
nowline v1
// Fixture for `before:` misses. An item paints a red tail over its own
// late part, never left of the item and behind its caption. A group,
// parallel or swimlane paints the same red behind its children, from the
// cap (or its start, if later) to its end: a body, or a lane's full
// height. A child turns red only through its own `before:`.
//
// See specs/rendering.md "Before Constraints".
roadmap r "Before overruns" start:2026-01-05 length:12w
anchor freeze date:2026-02-02
// An item that starts past its cap: the tail covers the item only.
swimlane items "Items"
item design "Design" duration:3w
item build "Build" duration:2w before:freeze
item polish "Polish with a long title" duration:5w before:freeze
// A group and a parallel that overrun; only Build and Docs carry their own
// before:. The parallel starts past the cap, so its whole body is red.
swimlane containers "Group and parallel"
group api "API work" before:freeze
item a "Spec" duration:2w
item b "Build" duration:3w before:freeze
item c "Harden" duration:1w
parallel p "Docs and SDK" before:freeze
item d "Docs" duration:1w before:freeze
item e "SDK" duration:2w
// An inline date on a group draws its glyph and the overrun.
swimlane dated "Inline date"
group g "Rollout" before:2026-01-26
item r1 "Region 1" duration:2w
item r2 "Region 2" duration:2w
// A lane overrun stacked on a capacity overrun: the tint runs the lane's
// full height and the utilization underline stays on top.
swimlane docs "Docs" capacity:2 before:freeze
item w "Write docs" duration:3w
parallel
item rv "Review" duration:2w before:freeze
item tr "Translate" duration:2w capacity:2
item pub "Publish" duration:1w
nowline v1
// Stress fixture for breaks (specs/break.md §6, §7). Stresses: everything an
// item with breaks has to share a row with, on a business calendar drawn with
// `non-working:show`, so every stretch paints across shaded weekend bands.
//
// The pause on "Inside" is 10d, a whole number of weeks, so the Design wave
// closes on a Friday and the Build wave starts on the weekend after it, which
// engine A draws at the previous wave's end and engine C dates on the Monday.
//
// What to look for when rendering this:
// - Many stretches: "Many stretches" is six hatched stretches (background
// work) with five dotted gaps, boundary marks only across stretches.
// - Slivers: "Sliver" starts and ends with a stretch under 3 px wide, still
// drawn, never dropped, and the caption spills clear of both.
// - The three caption placements: "Inside" (title wrapped inside the first
// stretch, label chips under it), "Gap" (spilled into the first pause)
// and "Last" (the pause is too short, so it spills right of the last
// stretch and pushes the next item to the next row).
// - Capacity: the "Staffed" lane's underline reads zero load over the
// pause of "Staffed item", which holds capacity:1 beside a steady item.
// - Styled, linked, footnoted: one item with breaks carries a style, a
// link icon and a footnote; the icon and footnote sit in the first
// stretch, later stretches are bare.
// - Arrows: "Feeder" -> "Broken" lands on Broken's first stretch and
// "Broken" -> "Consumer" leaves its last, a vertical leg may cross a gap.
// - Group and parallel: items with breaks inside a group and inside a
// parallel track, the container brackets spanning the last stretch.
// - `before:`: "Late" has a red overflow tail on its LAST stretch only; the
// cap falls inside an earlier pause.
config
style loud "Loud"
bg: red
fg: navy
text: white
border: dashed
default roadmap non-working:show
roadmap break-stress "Break stress" start:2026-01-05 scale:1w calendar:business
label urgent "Urgent"
label review "Needs review"
anchor cap "Cap" date:2026-02-02
wave design "Design"
wave build "Build"
swimlane many "Many stretches"
item many-stretches "Many stretches" duration:12w
break after:2d duration:3d
break after:2d duration:3d
break after:2d duration:3d
break after:2d duration:3d
break after:2d duration:3d
swimlane slivers "Slivers"
item sliver "Sliver" duration:2w wave:design
break after:0.2d duration:1w
break before:0.2d duration:1w
swimlane captions "Caption placements"
item inside "Inside: a title that wraps within its first stretch" duration:8w wave:design labels:[urgent, review]
break after:5w duration:10d
item gap "Gap" duration:6w wave:build status:in-progress
break after:1w duration:3w
item last "Last" duration:3w wave:build
break after:1w duration:1d
item after-last "After last" duration:2w wave:build
swimlane staffed "Staffed" capacity:2
parallel
item staffed-item "Staffed item" duration:4w capacity:1 wave:design
break after:1w duration:2w
item steady "Steady" duration:4w capacity:1 wave:design
swimlane styled "Styled, linked, footnoted"
item decorated "Decorated item" duration:6w style:loud link:https://example.com/plan wave:design
break after:3w duration:2w
swimlane feed "Arrows in"
item feeder "Feeder" duration:2w wave:design
swimlane flow "Arrows through"
item broken "Broken" duration:5w after:feeder wave:design
break after:2d duration:2w
swimlane sink "Arrows out"
item consumer "Consumer" duration:2w after:broken wave:build
swimlane containers "Group and parallel"
group handoff "Handoff"
item in-group "In a group" duration:4w wave:design
break after:1w duration:1w
item next-in-group "Next" duration:1w wave:design
parallel tracks "Tracks"
item in-track "In a track" duration:4w wave:build
break after:1w duration:1w
item other-track "Other track" duration:5w wave:build
swimlane capped "Overflow"
item late "Late" duration:5w before:cap wave:design
break after:1w duration:2w
footnote fn "Pauses are working weeks" on:decorated