---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# A roadmap, dated projects on a timeline by team

The list's timeline option

The `timeline` option of `docs/screen-list.md`, for records with a start and an end date that a team plans by (projects, phases, releases): not in place of the list, a page of its own beside it (`src/screens/roadmap.tsx`, its route `/roadmap`, the same frame). It draws ListPage `arrangement="plain"`; the chooser (`agent/layout-chooser.md`) names the others, the same slots. By hand: copy the file below whole, then add the two lines of the `app` block to `App.tsx` (its import beside the screens', its route after the last) and the `frame` block's row to the frame's `NAVIGATION` (`docs/screen-frame.md`), before Settings. `node goop/agent/start.mjs list:timeline` does all three.

## `timeline`: projects as dated bars, grouped by team

The page's heading over the theme's `Gantt` at the panel's full width (`docs/data-parts.md`): a `GanttToolbar` holding the zoom (a `SegmentedControl`: weeks, months, quarters) and the Today button, the `GanttScale`, one `GanttGroup` a team (its count of projects; a press on its header folds it), a `GanttRow` a project with its lead under its name, and its `GanttBar` from its start to its due day with its `progress`, its `health` and its lead's avatar; a `GanttLegend` names the hues. The today line is drawn on the real day: the sample's days are counted from today (`dayOf`), so the roadmap always has work behind and ahead of it. A press on a bar (or Enter on it) opens the project in a RecordPeek beside the timeline, kept in the URL (`?peek=<id>`; your router: `useRecordPeek({ adapter })`); a second press closes it, ↑ ↓ step through the projects. The arrow keys move from bar to bar (`Gantt`'s own keys). The timeline scrolls sideways inside its own frame on a phone; light, dark, phone and desktop are the parts' own: add no class for them. A vertical history of one record's events by day is `Timeline`, not this.

```tsx timeline // src/screens/roadmap.tsx: the roadmap, each project a dated bar on its team's rows import { useState } from 'react'; import { Gantt, GanttBar, GanttGroup, GanttLegend, GanttRow, GanttScale, GanttToolbar, } from '@/components/goop/patterns/gantt'; import { ListPage } from '@/components/goop/patterns/list-page'; import { RecordPeekBody, RecordPeekHeader, RecordPeekPanel, useRecordPeek, } from '@/components/goop/patterns/record-peek'; import { MetaFacts, MetaFactsItem, MetaFactsLabel, MetaFactsValue } from '@/components/ui/goop/meta-facts'; import { PageHeader, PageHeaderTitle } from '@/components/ui/goop/page-header'; import { Prose } from '@/components/ui/goop/prose'; import { SegmentedControl, SegmentedControlItem } from '@/components/ui/goop/segmented-control'; import { ScreenFrame, ScreenTopBar } from './frame';

// ---- the sample data: swap it for yours const LOCALE = 'en-GB'; type Health = 'on-track' | 'at-risk' | 'off-track'; const HEALTH_WORDS: Record<Health, string> = { 'on-track': 'On track', 'at-risk': 'At risk', 'off-track': 'Off track' }; type Kind = 'feature' | 'study' | 'fix'; const KIND_HUES = { feature: 'blue', study: 'green', fix: 'yellow' } as const; const KIND_WORDS = { blue: 'Feature', green: 'Study', yellow: 'Fix' }; interface Project { id: string; name: string; team: string; lead: string; kind: Kind; /** Its first and its due day, counted from today (both days included). */ start: number; end: number; /** How much of it is done, 0 to 100. */ progress: number; health: Health; } const TEAMS = ['Research', 'Platform']; const PROJECTS: Project[] = [ { id: 'transcript-search', name: 'Transcript search', team: 'Research', lead: 'Teodora Valk', kind: 'feature', start: -40, end: 25, progress: 60, health: 'on-track', }, { id: 'study-templates', name: 'Study templates', team: 'Research', lead: 'Dagny Holm', kind: 'study', start: -12, end: 48, progress: 25, health: 'at-risk', }, { id: 'consent-forms', name: 'Consent forms', team: 'Research', lead: 'Ngozi Ilori', kind: 'study', start: 20, end: 70, progress: 0, health: 'on-track', }, { id: 'tablet-sync', name: 'Tablet sync', team: 'Platform', lead: 'Bilal Rashed', kind: 'fix', start: -50, end: 6, progress: 80, health: 'off-track', }, { id: 'data-retention', name: 'Data retention settings', team: 'Platform', lead: 'Cormac Foley', kind: 'feature', start: 9, end: 62, progress: 10, health: 'on-track', }, ];

// ---- the roadmap const TODAY = new Date(); /** A day counted from today, as the gantt reads one. */ const dayOf = (offset: number) => new Date(TODAY.getFullYear(), TODAY.getMonth(), TODAY.getDate() + offset); const dayWords = (offset: number) => new Intl.DateTimeFormat(LOCALE, { day: 'numeric', month: 'short' }).format(dayOf(offset)); type Zoom = 'week' | 'month' | 'quarter';

export default function RoadmapScreen() { const [zoom, setZoom] = useState<Zoom>('month'); const peek = useRecordPeek(); // previous and next step through the projects team by team, as the timeline shows them const records = TEAMS.flatMap((team) => PROJECTS.filter((one) => one.team === team).map((one) => one.id)); const open = PROJECTS.find((one) => one.id === peek.id); return ( <ScreenFrame current="/roadmap"> <ListPage arrangement="plain" header={<ScreenTopBar title="Roadmap" />} heading={ <PageHeader> <PageHeaderTitle asChild> <h1>Roadmap</h1> </PageHeaderTitle> </PageHeader> } collection={ <Gantt aria-label="Projects by team" zoom={zoom} from={dayOf(-60)} to={dayOf(90)} locale={LOCALE} todayLabel="Today" > <GanttToolbar> <SegmentedControl aria-label="Zoom" fit value={zoom} onValueChange={(next) => setZoom(next as Zoom)}> <SegmentedControlItem value="week">Weeks</SegmentedControlItem> <SegmentedControlItem value="month">Months</SegmentedControlItem> <SegmentedControlItem value="quarter">Quarters</SegmentedControlItem> </SegmentedControl> </GanttToolbar> <GanttScale /> {TEAMS.map((team) => { const theirs = PROJECTS.filter((one) => one.team === team); return ( <GanttGroup key={team} label={team} count={theirs.length}> {theirs.map((one) => ( <GanttRow key={one.id} label={one.name} description={one.lead}> <GanttBar from={dayOf(one.start)} to={dayOf(one.end)} label={one.name} hue={KIND_HUES[one.kind]} health={one.health} progress={one.progress} lead={{ name: one.lead }} onClick={() => (one.id === peek.id ? peek.close() : peek.open(one.id))} /> </GanttRow> ))} </GanttGroup> ); })} <GanttLegend labels={KIND_WORDS} /> </Gantt> } peek={{ open: open !== undefined, onOpenChange: (next) => { if (!next) peek.close(); }, records, value: peek.id, onValueChange: peek.step, storageKey: 'roadmap:peek', }} record={ <RecordPeekPanel> <RecordPeekHeader title={open?.name ?? ''} /> <RecordPeekBody> {open ? ( <> <MetaFacts aria-label="Project details"> <MetaFactsItem> <MetaFactsLabel>Team</MetaFactsLabel> <MetaFactsValue>{open.team}</MetaFactsValue> </MetaFactsItem> <MetaFactsItem> <MetaFactsLabel>Lead</MetaFactsLabel> <MetaFactsValue>{open.lead}</MetaFactsValue> </MetaFactsItem> <MetaFactsItem> <MetaFactsLabel>Dates</MetaFactsLabel> <MetaFactsValue>{`${dayWords(open.start)} to ${dayWords(open.end)}`}</MetaFactsValue> </MetaFactsItem> <MetaFactsItem> <MetaFactsLabel>Health</MetaFactsLabel> <MetaFactsValue>{HEALTH_WORDS[open.health]}</MetaFactsValue> </MetaFactsItem> </MetaFacts> <Prose>{`${open.progress}% done. ${open.lead} leads it for the ${open.team} team.`}</Prose> </> ) : null} </RecordPeekBody> </RecordPeekPanel> } /> </ScreenFrame> ); }

```

```tsx app
import RoadmapScreen from './screens/roadmap';
if (page === 'roadmap') return <RoadmapScreen />;
```

```tsx frame { words: 'Roadmap', path: '/roadmap', icon: 'calendar-due' },

```

```
