feat: Milestones (Forgejo cards) + Events feed (#1, #2) #13

Merged
Grok merged 1 commit from feat/milestones-events into main 2026-09-26 11:51:01 +02:00
Contributor

Closes #1, closes #2. Refs #6.

Milestones (#1)

  • server/milestones.ts + server/routes/milestones.ts: Forgejo adapter for allowlisted repos (config.json → forgejo { url, token, repos, botLogins }; token write-only, never returned).
  • Cards with needs-me / mine / bot-filed / all filters; needs-me = assigned to token user or needs-me|needs-approval|needs-decision label without a decision.
  • Approve/deny posts ✅ Approved by <profile name> (@login) via OpenMausBot (+ note) and swaps approved/denied labels (creates them, drops needs-*). Label step is best-effort; the comment is the record.
  • <!-- omb-thread: bot/thread --> or omb://thread/bot/thread in the issue body → "Open bot thread".
  • UI: Tools → Milestones (+ avatar-density icon), inline Forgejo setup form.

Events (#2)

  • GET /api/activity-feed (/api/events is SSE): routine runs, delegation receipts (new listDelegationReceipts()), milestones updated in the last 7 days; newest first, max 150. Milestones cached 60 s for the feed.
  • Tap → bot thread, or Milestones with the card highlighted.

Docs

docs/milestones.md, docs/shipping-name.md (#6 decision record: blocked on owner/legal + rename change set), FORK / absorb plan / verification index links.

Verification

  • New tests: server/routes/milestones.test.ts (fake Forgejo on loopback), server/events-feed.test.ts, src/components/MilestonesPage.test.ts → 16 pass.
  • Related suites (config, delegations, request-auth, store, sidebar, locales, routes): 609/609 pass. pnpm typecheck, pnpm lint, pnpm i18n:check clean.
  • Isolated fixture against real git.bitp.cz (read-only): 4 cards load, token absent from API responses; headless UI: Tools → Milestones / Events render, tapping a milestone event opens Milestones with the card focused; unconfigured → setup form.
  • Full suite: exceeds 40 min in this container; failures seen in server/index.test.ts (Local VM, Chief operator timeouts) and server/box-create-idempotency.test.ts reproduce on main unchanged.
  • Approve/deny was not exercised against real repos (fake Forgejo only).

🤖 Generated with Claude Code

Closes #1, closes #2. Refs #6. ## Milestones (#1) - `server/milestones.ts` + `server/routes/milestones.ts`: Forgejo adapter for allowlisted repos (`config.json → forgejo { url, token, repos, botLogins }`; token write-only, never returned). - Cards with **needs-me / mine / bot-filed / all** filters; needs-me = assigned to token user or `needs-me|needs-approval|needs-decision` label without a decision. - **Approve/deny** posts `✅ Approved by <profile name> (@login) via OpenMausBot` (+ note) and swaps `approved`/`denied` labels (creates them, drops `needs-*`). Label step is best-effort; the comment is the record. - `<!-- omb-thread: bot/thread -->` or `omb://thread/bot/thread` in the issue body → "Open bot thread". - UI: Tools → Milestones (+ avatar-density icon), inline Forgejo setup form. ## Events (#2) - `GET /api/activity-feed` (`/api/events` is SSE): routine runs, delegation receipts (new `listDelegationReceipts()`), milestones updated in the last 7 days; newest first, max 150. Milestones cached 60 s for the feed. - Tap → bot thread, or Milestones with the card highlighted. ## Docs `docs/milestones.md`, `docs/shipping-name.md` (#6 decision record: blocked on owner/legal + rename change set), FORK / absorb plan / verification index links. ## Verification - New tests: `server/routes/milestones.test.ts` (fake Forgejo on loopback), `server/events-feed.test.ts`, `src/components/MilestonesPage.test.ts` → 16 pass. - Related suites (config, delegations, request-auth, store, sidebar, locales, routes): 609/609 pass. `pnpm typecheck`, `pnpm lint`, `pnpm i18n:check` clean. - Isolated fixture against real git.bitp.cz (read-only): 4 cards load, token absent from API responses; headless UI: Tools → Milestones / Events render, tapping a milestone event opens Milestones with the card focused; unconfigured → setup form. - Full suite: exceeds 40 min in this container; failures seen in `server/index.test.ts` (Local VM, Chief operator timeouts) and `server/box-create-idempotency.test.ts` reproduce on `main` unchanged. - Approve/deny was **not** exercised against real repos (fake Forgejo only). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat: Milestones (Forgejo issue cards) and Events feed (#1, #2)
Some checks failed
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled
CI / typecheck + lint (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 1/4) (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 2/4) (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 3/4) (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 4/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 1/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 2/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 3/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 4/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 1/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 2/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 3/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 4/4) (pull_request) Has been cancelled
CI / packaged server smoke (macos-latest) (pull_request) Has been cancelled
CI / packaged server smoke (ubuntu-latest) (pull_request) Has been cancelled
CI / packaged server smoke (windows-latest) (pull_request) Has been cancelled
CI / Windows CUA host smoke (pull_request) Has been cancelled
CI / Electron smokes (macOS) (pull_request) Has been cancelled
CI / typecheck + test (macos-latest) (pull_request) Has been cancelled
CI / typecheck + test (ubuntu-latest) (pull_request) Has been cancelled
CI / typecheck + test (windows-latest) (pull_request) Has been cancelled
CI / cloudflared installer (Linux ARM64) (pull_request) Has been cancelled
CI / open-source edition builds without enterprise/ (pull_request) Has been cancelled
CI / control-plane check + workerd tests + dry run (pull_request) Has been cancelled
CI / renderer smoke (control-omb ui, Ubuntu 24.04) (pull_request) Has been cancelled
CI / package + smoke (Ubuntu 24.04 x64) (pull_request) Has been cancelled
CI / Swift tests + iOS build + thread UI (pull_request) Has been cancelled
CI / Kotlin tests + Android build (pull_request) Has been cancelled
a3e5a61487
Milestones: allowlisted Forgejo repos become compact cards with
needs-me / mine / bot-filed filters, links into the owning bot thread
(omb-thread marker), and approve/deny that posts an attributed comment
and swaps approved/denied labels. Token is write-only (config.json →
forgejo), admin-only routes under /api/milestones.

Events: GET /api/activity-feed merges routine runs, delegation receipts
and recent milestone activity newest-first; tapping opens the bot thread
or the highlighted milestone card.

Also records the shipping-name decision as blocked on owner/legal with
the rename change set (docs/shipping-name.md, #6).

Closes #1
Closes #2

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok merged commit 9a4db1669f into main 2026-09-26 11:51:01 +02:00
Grok deleted branch feat/milestones-events 2026-09-26 11:51:01 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
donach/openmausbot!13
No description provided.