Skip to content

Commit 795a984

Browse files
committed
feat(prs): add timeline and ledger history for v0.5.0
1 parent eda4484 commit 795a984

22 files changed

Lines changed: 811 additions & 24 deletions

‎CHANGELOG.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ All notable changes are documented here. The format follows
66

77
## [Unreleased]
88

9+
## [0.5.0] - 2026-10-08
10+
11+
### Added
12+
13+
- Pull request History with Timeline and Ledger views, shared search/repository/event filters,
14+
local calendar-day groups, collapsible daily totals, direct GitHub links and lifecycle details.
15+
- Remembered History view preference. Open remains the default PR inbox.
16+
- Cached 30-day history of authored PRs opened or merged, including older PRs merged recently.
17+
Sync errors retain the last good data, and capped search results are explicitly marked partial.
18+
- Synthetic history fixtures and screenshots of both views in light, dark and phone layouts.
19+
920
## [0.4.1] - 2026-10-08
1021

1122
### Added
@@ -106,7 +117,8 @@ First public release.
106117
- Single zero-dependency Go binary (around 20 MB RAM); Homebrew cask, release archives for macOS and
107118
Linux, and `scripts/install.sh`.
108119

109-
[Unreleased]: https://github.com/MilosMosovsky/agentyard/compare/v0.4.1...HEAD
120+
[Unreleased]: https://github.com/MilosMosovsky/agentyard/compare/v0.5.0...HEAD
121+
[0.5.0]: https://github.com/MilosMosovsky/agentyard/releases/tag/v0.5.0
110122
[0.4.1]: https://github.com/MilosMosovsky/agentyard/releases/tag/v0.4.1
111123
[0.4.0]: https://github.com/MilosMosovsky/agentyard/releases/tag/v0.4.0
112124
[0.3.0]: https://github.com/MilosMosovsky/agentyard/releases/tag/v0.3.0

‎README.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,27 @@ becomes repository cards with labeled counts. The reader's arrows and **← /
131131
the filtered results in list order, reveal the selected PR, and show your position. Arrow shortcuts
132132
leave typing and open dialogs alone and respect the Keyboard shortcuts setting.
133133

134+
**History** shows PRs you authored that were opened or merged in the last 30 days, including PRs
135+
opened earlier and merged recently. Switch between **Timeline** and **Ledger**; your view preference
136+
is remembered. Both share search, repository and event filters. Days follow your browser's timezone,
137+
with opened/merged counts retained when collapsed. Select an event for lifecycle timestamps, actors,
138+
and change size, or use its GitHub link. The Open inbox remains the default.
139+
140+
History syncs in the background and survives restarts. Failed syncs retain the last good snapshot
141+
with a notice. Each opened/merged search is limited to 1,000 PRs; a notice appears if results are partial.
142+
143+
<details>
144+
<summary>PR history: timeline and ledger</summary>
145+
<picture>
146+
<source media="(prefers-color-scheme: dark)" srcset="docs/screenshots/prs-history-timeline-dark.jpg">
147+
<img alt="PR history grouped by day, with opened and merged events, repository context and line counts." src="docs/screenshots/prs-history-timeline-light.jpg" width="100%">
148+
</picture>
149+
<picture>
150+
<source media="(prefers-color-scheme: dark)" srcset="docs/screenshots/prs-history-ledger-dark.jpg">
151+
<img alt="The same PR history in a compact daily ledger with time, event, pull request and changes columns." src="docs/screenshots/prs-history-ledger-light.jpg" width="100%">
152+
</picture>
153+
</details>
154+
134155
<details>
135156
<summary>Repository overview</summary>
136157
<picture>
@@ -418,6 +439,7 @@ manager.
418439
#### JSON
419440

420441
The page's data is also served as JSON: `/api.json` (worktrees), `/api/prs.json` (pull requests),
442+
`/api/pr-history.json` (cached 30-day opened/merged PR history),
421443
`/api/pr-detail?repo=OWNER/REPO&number=123` (description and changed files for a tracked PR), and
422444
`/api/status` (version, last scan times, whether a sync is running). PR details include up to the first
423445
100 changed files and the total changed-file count.

‎demo.go‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func newDemo(now time.Time) (*scanner, *prTracker, *sessionIndex, *demoWorld) {
7676
settle(prs)
7777
t.snap.Store(&PRSnapshot{At: now.Add(-3 * time.Minute), Took: 4 * time.Second, Query: flagPRQuery, PRs: prs,
7878
Cost: 1, RateRemaining: 4986, RateReset: now.Add(41 * time.Minute)})
79+
t.history.Store(demoPRHistory(now, prs))
7980

8081
sessions, messages := demoSessions(now)
8182
x.show(sessions)
@@ -249,6 +250,32 @@ func demoPRs(now time.Time) []*TrackedPR {
249250
return prs
250251
}
251252

253+
func demoPRHistory(now time.Time, open []*TrackedPR) *PRHistorySnapshot {
254+
snap := &PRHistorySnapshot{At: now.Add(-3 * time.Minute), Since: historySince(now)}
255+
for _, pr := range open {
256+
snap.PRs = append(snap.PRs, &PRHistoryItem{ID: pr.ID, Repo: pr.Repo, Number: pr.Number,
257+
Title: pr.Title, URL: pr.URL, CreatedAt: pr.CreatedAt, Author: "ada",
258+
Additions: pr.Additions, Deletions: pr.Deletions, ChangedFiles: 3})
259+
}
260+
merged := []struct {
261+
repo, title, who string
262+
number, add, del int
263+
opened, merged time.Duration
264+
}{
265+
{"acme/api", "Return field-level errors from account validation", "priya-r", 475, 63, 18, 28 * time.Hour, 20 * time.Minute},
266+
{"acme/web", "Keep checkout form values after a payment retry", "sam", 1280, 156, 42, 52 * time.Hour, 25 * time.Hour},
267+
{"acme-labs/tinyhttp", "Normalize repeated response headers", "sam", 85, 64, 21, 40 * 24 * time.Hour, 49 * time.Hour},
268+
}
269+
for _, item := range merged {
270+
at := now.Add(-item.merged)
271+
snap.PRs = append(snap.PRs, &PRHistoryItem{ID: "PR_" + demoHash(item.repo + fmt.Sprint(item.number))[:16],
272+
Repo: item.repo, Number: item.number, Title: item.title, URL: fmt.Sprintf("https://github.com/%s/pull/%d", item.repo, item.number),
273+
CreatedAt: now.Add(-item.opened), MergedAt: &at, Author: "ada", MergedBy: item.who,
274+
Additions: item.add, Deletions: item.del, ChangedFiles: 4})
275+
}
276+
return snap
277+
}
278+
252279
// Descriptions and file paths are synthetic, just like the rest of the demo.
253280
func demoPRDetail(pr *TrackedPR) PRDetail {
254281
bodies := map[int]string{

‎docs/design/brief.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ The overview follows normal document scrolling. A separate sticky reader shows t
3434

3535
Selected, hovered, and keyboard-focused rows have quiet rounded surfaces. A single boundary renderer suppresses separators on both sides of those surfaces, using the actually visible rows so filtering and previews do not leave orphan dividers. Long titles wrap; metadata stays aligned. Descriptions render a small Markdown subset as text and safe elements, never raw HTML.
3636

37+
## PR History
38+
39+
PR History is a secondary view within Pull requests, so the Open inbox stays the default. Timeline
40+
and Ledger consume one event list derived from canonical cached PR lifecycle records. They share
41+
search, repository and opened/merged filters and remember the layout preference. Days use local
42+
calendar dates; collapsed groups keep their counts. Timeline markers have equal padding inside
43+
32px circles and a centered neutral connector. Each event offers lifecycle details and a GitHub
44+
action. History follows normal page scrolling and reflows on phones; no nested scroll region.
45+
3746
## Sessions
3847

3948
The collection opens directly onto the session list. Claude uses its sunburst mark in terracotta; Codex uses the OpenAI mark in mint. One `tool-icon` template supplies filters, rows, and drawer metadata. Agent cells use the icon with an accessible name and hover title. Session source and linked PR remain visible alongside the title and prompt preview.
30.9 KB
Loading
31.6 KB
Loading

‎docs/screenshots/phone-prs.jpg‎

-1.05 KB
Loading
-2.36 KB
Loading
-3.62 KB
Loading

‎docs/screenshots/prs-dark.jpg‎

118 Bytes
Loading

0 commit comments

Comments
 (0)