fabro/apps/fabro-web/app/lib
Bryan Helmkamp d09e6cde33
feat(pr): support GitHub pull request associations (#270)
## Summary

Adds event-sourced pull request association management for runs while
preserving Fabro-created PR creation. A run can now store a current
GitHub PR association, replace it by linking another GitHub PR URL, and
remove it through an unlink event.

## What Changed

- Added `pull_request.linked` and `pull_request.unlinked` events,
projection replay support, and optional PR metadata fields in shared
pull request records.
- Added API, server, and client support for `PUT
/runs/{id}/pull_request` and `DELETE /runs/{id}/pull_request`; linking
accepts GitHub PR URLs, infers owner/repo/number, and captures live
GitHub title and branch metadata when available.
- Added `fabro pr link` and `fabro pr unlink`, updated `fabro pr view`,
and kept create/merge/close behavior guarded to GitHub PRs with usable
coordinates.
- Updated web UI rendering and internal event docs so stored PR links
display cleanly when live GitHub details are unavailable.

## Testing

- `cargo +nightly-2026-04-14 fmt --check --all`
- `git diff --check`
- `cargo build -p fabro-api`
- `cargo nextest run -p fabro-types -p fabro-store -p fabro-server -p
fabro-cli`
- `bun run typecheck` in `lib/packages/fabro-api-client`
- `bun run typecheck` in `apps/fabro-web`
- `bun test` in `apps/fabro-web`

Refs https://github.com/fabro-sh/fabro/issues/235

---

[![Compound
Engineering](https://img.shields.io/badge/Compound_Engineering-6366f1)](https://github.com/EveryInc/compound-engineering-plugin)
🤖 Generated with GPT-5 via [Codex](https://openai.com/codex)

---------

Co-authored-by: Haroldo Olivieri <6575718+haroldolivieri@users.noreply.github.com>
2026-05-16 12:47:27 -04:00
..
api-client.test.ts fix(api): type interview answer submissions 2026-05-08 09:18:35 -07:00
api-client.ts fix(api): type interview answer submissions 2026-05-08 09:18:35 -07:00
board-events.test.tsx feat(runs): support explicit run titles 2026-05-09 11:18:12 -04:00
board-events.ts feat(pr): support GitHub pull request associations (#270) 2026-05-16 12:47:27 -04:00
cross-tab-sse.test.ts fix(web): recover cross-tab SSE coordination after fallback 2026-05-04 15:52:18 -04:00
cross-tab-sse.ts refactor(core): simplify reviewed run cleanup 2026-05-10 22:53:20 -04:00
demo-mode.test.tsx feat: wire web UI to real server with demo mode toggle 2026-04-08 04:46:08 -04:00
demo-mode.tsx feat: wire web UI to real server with demo mode toggle 2026-04-08 04:46:08 -04:00
format.ts refactor(llm): simplify catalog cleanup paths (#261) 2026-05-14 09:35:42 -04:00
graph-theme.ts refactor(web): drop light mode, go dark-only 2026-04-20 09:27:08 -04:00
live-events.test.tsx feat(web): build live events page in settings 2026-05-10 14:05:10 -04:00
live-events.ts feat(web): build live events page in settings 2026-05-10 14:05:10 -04:00
mutations.ts feat(api): unify public run shape 2026-05-10 20:48:55 -04:00
pierre-diffs-worker.ts fix(web): virtualize run file diffs consistently 2026-05-05 16:41:39 -04:00
queries.ts feat(api): unify public run shape 2026-05-10 20:48:55 -04:00
query-keys.test.ts feat(web): add Sandbox tab and route to run detail 2026-05-09 21:48:31 -04:00
query-keys.ts feat(web): build unified auth sessions page 2026-05-10 14:30:00 -04:00
run-actions.test.ts feat(api): unify public run shape 2026-05-10 20:48:55 -04:00
run-actions.ts feat(api): unify public run shape 2026-05-10 20:48:55 -04:00
run-events.test.tsx Add run commit diff picker 2026-05-09 14:49:15 -04:00
run-events.ts feat(pr): support GitHub pull request associations (#270) 2026-05-16 12:47:27 -04:00
run-settings-snapshot.ts refactor(web): narrow event property reads via shared helpers 2026-04-30 22:45:38 -04:00
sse.ts feat(web): migrate to generated API client 2026-05-08 07:44:33 -07:00
stage-sidebar.test.ts feat(api): expose stage handlers on run stages 2026-05-08 13:36:02 -07:00
stage-sidebar.ts feat(web): add specialized stage renderers for non-agent handlers 2026-05-09 18:35:19 -04:00
time.ts Read billing and stages from RunProjection with live runtimes (#213) 2026-05-05 09:32:33 -04:00
unknown.ts refactor(web): narrow event property reads via shared helpers 2026-04-30 22:45:38 -04:00