Repository navigation
feat(github-projects): render Roadmap project views as a timeline - #17795
Conversation
- Renders roadmap-layout project views as a scrollable timeline with date/iteration-based placement, zoom levels, and grouped lanes, instead of surfacing them as unsupported - Derives placement fields from view config or row-carried field values since GitHub's API never exposes a roadmap's date source directly - Falls back to the existing table list when no field can place items
Greptile SummaryAdds GitHub Projects roadmap support with inferred date or iteration placement, grouped timeline lanes, zoom controls, and a table fallback when no placement source is available.
Confidence Score: 4/5The PR appears safe to merge, with a non-blocking scalability concern for large, wide roadmap views. The new roadmap behavior is functionally bounded and degrades to the existing list when placement cannot be inferred, but it eagerly lays out all accepted rows and up to 480 timeline columns, which may make supported worst-case projects sluggish. Files Needing Attention: src/renderer/src/components/github-project/ProjectRoadmap.tsx
|
| Filename | Overview |
|---|---|
| src/shared/github/project-roadmap-timeline.ts | Introduces heuristic source resolution and bounded timeline geometry; invalid or unavailable sources degrade without crashing. |
| src/renderer/src/components/github-project/ProjectRoadmap.tsx | Implements the roadmap surface and interactions, but eagerly renders the full supported dataset and timeline width. |
| src/renderer/src/components/github-project/ProjectRoadmapBar.tsx | Renders accessible date bars and safely disables interactions for draft and restricted rows. |
| src/main/github/project-view/project-view-table.ts | Allows roadmap views through the existing item-fetch pipeline while retaining unsupported-layout handling for other layouts. |
| src/main/github/project-view/project-view-field-normalization.ts | Adds optional field names to date and iteration values for hidden-field placement inference. |
| src/renderer/src/components/github-project/ProjectViewWrapper.tsx | Routes roadmap layouts to the new timeline while reusing the existing list as a fallback. |
| src/shared/github/project-types.ts | Adds backward-compatible optional field-name metadata to shared date and iteration values. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[GitHub Project view and items] --> B[Normalize fields and values]
B --> C{Resolve placement source}
C -->|Date range or point| D[Build row spans]
C -->|Iteration| D
C -->|No source| E[Render existing table list]
D --> F[Build zoom-specific ticks]
F --> G[Group and sort rows]
G --> H[Render scrollable roadmap lanes]
Reviews (1): Last reviewed commit: "Add roadmap timeline view for GitHub Pro..." | Re-trigger Greptile
| {groups.map((group) => { | ||
| const expanded = !collapsed.has(group.key) | ||
| return ( | ||
| <div key={group.key}> | ||
| {view.groupByFields[0] ? ( | ||
| <ProjectGroupHeader | ||
| group={group} | ||
| expanded={expanded} | ||
| bandWidth={bandWidth} | ||
| onToggle={() => | ||
| setCollapsed((previous) => { | ||
| const next = new Set(previous) | ||
| if (!next.delete(group.key)) { | ||
| next.add(group.key) | ||
| } | ||
| return next | ||
| }) | ||
| } | ||
| /> | ||
| ) : null} | ||
| {expanded | ||
| ? group.rows.map((row) => ( |
There was a problem hiding this comment.
The roadmap synchronously mounts every expanded row and every generated tick. At the supported limits, this lays out up to 500 lanes and 480 tick elements on a roughly 77,000-pixel-wide surface, increasing the interaction cost of initial rendering, zoom changes, group expansion, and background refreshes; windowing the off-screen rows and ticks would keep this work bounded.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Thanks — agreed the surface is large at the caps, but keeping this unvirtualized is deliberate for now: it matches the existing table view (ProjectViewList renders all rows without windowing too), and both axes are already bounded — items cap at 500 (MAX_ITEMS) and the tick grid caps at 480 columns (MAX_TICKS), so the worst case can't grow past that. Lanes are simple two-cell flex rows (one absolutely-positioned bar each), and the column rules/today line are single background-image/overlay elements rather than per-cell nodes, so the DOM cost is far below lanes×ticks. If profiling on real projects shows interaction cost at the cap, I'd rather introduce windowing for the roadmap and the table together in a follow-up than fork their rendering strategies here.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the full 16-file diff end to end: the new shared timeline geometry module and its tests, the renderer components, the main-process view-selection change, field-value normalization, and the i18n wiring.
- Shared timeline geometry —
resolveRoadmapDateSource,getRoadmapSpan,buildRoadmapTicks, androadmapOffsetPxare pure and well-specified: inclusive-end date math, a 480-tick cap that always keeps today on-grid, and in-tick interpolation for column alignment. The 303-line test suite asserts exact values and would fail on regressions. - Main-process selection —
getProjectViewTablenow allowsROADMAP_LAYOUTthrough the item stream and falls back to the first roadmap view when no selector was passed and no table view matched. The allowlist (rather than!== 'BOARD_LAYOUT') correctly rejects unknown future layouts, and mobile is unaffected because it always passes an explicitviewId. - Renderer —
ProjectRoadmap/ProjectRoadmapBarimplement zoom, grouped lanes, sticky labels, undated-item surfacing, redacted rows, and an empty-filter state, with the existing table list as fallback. - Wire compatibility —
fieldNameis added only as an optional field on date/iteration values, and the GraphQL query already fetchesfield { ...FieldConfig }, so the row-carried placement fallback works and older hosts degrade cleanly.
ℹ️ Nitpicks
todayMsis frozen for the component's lifetime (documented), so the "Today" marker drifts by a day if the roadmap stays mounted across midnight — fine for a transient view, worth knowing for long-lived sessions.roadmap-tick-format(Intl label/span formatting) androadmap-zoom-preference(localStorage persistence) have no direct unit tests; the shared geometry is covered thoroughly but these two renderer-only modules are not.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
📝 WalkthroughWalkthroughAdds GitHub project roadmap support across data retrieval, shared timeline logic, and React rendering. Roadmap views now fetch items, resolve date or iteration fields, calculate timeline spans and ticks, and render grouped interactive bars. The UI adds zoom controls, local zoom persistence, today navigation, undated-item handling, restricted-item states, and localized labels. Project view selection and unsupported-layout messages now recognize roadmap views. Tests cover timeline geometry and roadmap rendering behavior. Merge Risk: 🔵 Low · up to Roadmap rendering is implemented, but the picker and fallback text can still tell users that Roadmap is unsupported. Correct the runtime translations to avoid misleading users. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 12.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 40 functions across 15 files. (1 skipped: 1 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: 2bb3310a-0472-4d37-81d9-292922c2a4e1
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (15)
src/main/github/project-view/project-view-field-normalization.tssrc/main/github/project-view/project-view-table.tssrc/renderer/src/components/github-project/ProjectGroupHeader.tsxsrc/renderer/src/components/github-project/ProjectPickerPanels.tsxsrc/renderer/src/components/github-project/ProjectRoadmap.test.tsxsrc/renderer/src/components/github-project/ProjectRoadmap.tsxsrc/renderer/src/components/github-project/ProjectRoadmapBar.tsxsrc/renderer/src/components/github-project/ProjectViewStates.tsxsrc/renderer/src/components/github-project/ProjectViewWrapper.tsxsrc/renderer/src/components/github-project/roadmap-tick-format.tssrc/renderer/src/components/github-project/roadmap-zoom-preference.tssrc/renderer/src/i18n/locales/en.jsonsrc/shared/github/project-roadmap-timeline.test.tssrc/shared/github/project-roadmap-timeline.tssrc/shared/github/project-types.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
- parseRoadmapDate previously let Date.UTC silently normalize overflowing dates (e.g. 2026-02-30 → Mar 2); now round-trips components to reject them - ProjectRoadmap's "today" marker was frozen at mount, so panes left open across midnight showed the wrong day; now re-derives and re-arms a timer
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the delta since the prior review (de47cfd → a2b2184), which addresses both items noted last pass.
- Midnight rollover for the "today" marker —
todayMsnow re-arms asetTimeoutkeyed on[todayMs]that fires ~1s after local midnight, so a pane left open across midnight updates its marker instead of freezing. The +1s pad absorbs timer drift, and cleanup clears the pending timer. - Calendar-date validation —
parseRoadmapDateround-trips the parsed UTC components and rejects datesDate.UTCwould otherwise normalize (e.g.2026-02-30), with exact-value tests covering overflow month/day and the leap-year happy path (2024-02-29).
The effect is correctly re-armed on each fire, handles DST via local-date construction, and doesn't yank scroll (the auto-scroll effect stays keyed on [zoom]).
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
This looks very nice. Will bring it up w/ the team tomorrow |
|
@nwparker |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the delta since the prior review (a2b2184 → defdf66): two focused fixes plus new coverage.
- Center on late-arriving rows — the auto-scroll effect is now keyed on a new
hasTimelinesignal in addition tozoom, so a roadmap that mounts empty (or with no resolvable date source) and later gains dated rows centers on "today" instead of parking at the padded left edge; refetches still preserve user scroll viatodayPxRef. - Reduced-motion scroll — the "Today" button now scrolls with
instantbehavior underprefers-reduced-motion(via the existingusePrefersReducedMotionhook) instead of alwayssmooth. - Opaque pinned header — the sticky "Item" label column switched from translucent
bg-background/95to opaquebg-background, so horizontal scrolling no longer bleeds bars through the header. - Test coverage — new
project-view-table.test.tsexercises the main-process layout selection (roadmap fallback, table-over-roadmap preference, missing explicit selection, unsupported-layout rejection), andProjectRoadmap.test.tsxadds the midnight-rollover (without scroll reset) and late-arriving-rows centering cases.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: 9ee27bd3-dd77-4da3-8771-8bdae24bd787
📒 Files selected for processing (1)
src/renderer/src/i18n/en-runtime-required.json
Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review.
| }, | ||
| "ProjectPicker": { | ||
| "43a88ae574": "BOARD_LAYOUT", | ||
| "ab1a2c357d": "Roadmap (unsupported)", |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Update the runtime translations for supported roadmap views.
ROADMAP_LAYOUT is now supported, but this picker entry still displays Roadmap (unsupported). Change it to Roadmap, or the picker will continue to advertise the new feature as unavailable.
The wrapper entry is also stale. The component fallback now says Switch to a Table or Roadmap view..., but this runtime translation overrides that copy with a table-only message. Include Roadmap in this translation.
Suggested update
- "ab1a2c357d": "Roadmap (unsupported)",
+ "ab1a2c357d": "Roadmap",
...
- "1bf8c01c8b": "Switch to a Table view to work with this project in Orca."
+ "1bf8c01c8b": "Switch to a Table or Roadmap view to work with this project in Orca."Also applies to: 588-588
|
Thanks for the quick review and merge! 🎉 |
…ablyai#17795) * Add roadmap timeline view for GitHub Projects - Renders roadmap-layout project views as a scrollable timeline with date/iteration-based placement, zoom levels, and grouped lanes, instead of surfacing them as unsupported - Derives placement fields from view config or row-carried field values since GitHub's API never exposes a roadmap's date source directly - Falls back to the existing table list when no field can place items * Fix roadmap timeline edge cases: reject invalid calendar dates and refre - parseRoadmapDate previously let Date.UTC silently normalize overflowing dates (e.g. 2026-02-30 → Mar 2); now round-trips components to reject them - ProjectRoadmap's "today" marker was frozen at mount, so panes left open across midnight showed the wrong day; now re-derives and re-arms a timer * fix(github-projects): center roadmaps when dated rows arrive * fix(github-projects): keep pinned roadmap header opaque * fix: remove stale pnpm executable lockfile entries * fix(i18n): retain replaced project labels in runtime catalog --------- Co-authored-by: Neil <[email protected]>

ELI5
GitHub Projects has three view types: Table, Board, and Roadmap. Orca could only show Table views — clicking a Roadmap tab just said "unsupported". Now Roadmap views draw a real timeline: each issue/PR becomes a horizontal bar placed on a month/quarter/year grid by its start and target dates, with a "today" line, just like on github.com.
What Changed
groupRows/sortRows), and clicking a bar opens the existing item dialog.src/shared/github/project-roadmap-timeline.ts, pure + unit-tested): GitHub's GraphQL API never exposes which fields a roadmap places items on, so Orca resolves them in order — name-matched Start/Target date fields → the view's first two date fields → iteration field → a single date field (rendered as a point marker). Falls back to sort/group fields, and finally to the date values rows actually carry, since roadmaps often hide their date fields from the visible column list.project-view-table.ts): roadmap layouts now fetch the same item stream as tables. The gate stays an allowlist (table + roadmap), so unknown future GitHub layouts still reject cleanly asunsupported_layoutinstead of masquerading as tables. View picker and tab strip updated to match.fieldNameon date/iteration field values so the row-value fallback can label the "Placed by" toolbar (wire-safe additive change).Board views remain unsupported (#9943 tracks that separately).
Why
Roadmap is one of the three first-class GitHub Projects layouts, and projects that plan on a schedule often only have roadmap views — those projects were previously unusable in Orca (every view disabled in the picker). Deriving placement from view config with a row-value fallback is the only approach available: the ProjectV2 GraphQL API exposes the layout enum but not the roadmap's date-field configuration, and this heuristic chain matches what the data actually contains rather than guessing a single convention.
Linked Issue
Fixes #14988
Visual Proof
Same project (12 items) before and after, so the shots can be tab-switched.
Before — Roadmap tab disabled, table only:
After — Roadmap renders as a timeline (Month and Quarter zoom):
Testing
Unit: 26 tests on the shared timeline module — placement resolution (name matching, inverted-pair guard, sort-field and row-value fallbacks), span math (inclusive ends, single-date points, inverted ranges), tick-grid geometry (boundary snapping, minimum width, cap behavior in both past and future directions).
Component: 7 tests on
ProjectRoadmap— dated/undated rows, hidden-field fallback, dialog open on bar click, restricted-item labeling, empty states.Gates:
pnpm tc, changed-file code-quality gate, and all three localization gates pass locally.Manually verified on macOS against a real GitHub roadmap view (month/quarter/year zoom, today marker, group collapse, dialog open).
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Implemented with Claude Code (Fable 5); design decisions, review, and manual verification by the author.
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
unsupported_layoutfor roadmaps as before — the client error copy no longer names a layout so it stays truthful across versions. New host × old client renders roadmap rows as a table (degrades, doesn't break). The only wire change is an additive optional field.mobile/filters onTABLE_LAYOUT); a roadmap needs its own mobile UI.Intl.DateTimeFormatinstances are cached per locale; grid capped at 480 columns; items capped at the existing 500-row fetch limit.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Maintainer validation (2026-09-05)
Merged current main into the branch and reviewed placement inference, date geometry, host routing, mixed-version fallback, unsupported layouts, grouping, and item activation.
Additional fixes:
@pnpm/exelockfile entries introduced by the PR; they caused CI setup to fail its clean-lockfile check before any tests ran. The lockfile now matches main.Validation:
Scope of visual evidence: synthetic project data rendered by the real Roadmap component inside the Electron app. Live GitHub fetching, actual item-dialog integration, SSH transport, and native Windows/Linux rendering were not re-exercised in this pass; host routing and selection were covered by unit tests.
Year zoom, light theme:
500-row/480-column stress case after returning to Today, with the pinned header corrected: