Skip to content

feat(wasteland): add Claims page with listClaims procedure and ClaimsClient#3150

Merged
kilo-code-bot[bot] merged 2 commits intoconvoy/wasteland-claims-page/93e6710c/headfrom
convoy/wasteland-claims-page/93e6710c/gt/toast/45aa895c
May 9, 2026
Merged

feat(wasteland): add Claims page with listClaims procedure and ClaimsClient#3150
kilo-code-bot[bot] merged 2 commits intoconvoy/wasteland-claims-page/93e6710c/headfrom
convoy/wasteland-claims-page/93e6710c/gt/toast/45aa895c

Conversation

@jrf0110
Copy link
Copy Markdown
Contributor

@jrf0110 jrf0110 commented May 9, 2026

Summary

  • Add listClaims tRPC procedure that filters browseWantedBoard results to claimed items, supports optional rigHandle server-side filter, and enriches each claim with pending PR information from DoltHub open pulls (kind: claim/done/unclaim)
  • Replace the 5-line ClaimsClient stub with a full claims overview page including: page header with count badge and refresh, filter bar (search, rig handle dropdown, pending PR toggle, sort cycling), stats strip (total/pending PR/stale claims), claims table with status dots, item ID, title, priority/type chips, claimed-by links, time-ago labels, pending PR badges, and kebab menus, plus empty state with CTA, loading skeleton, and error state with retry
  • Extract shared STATUS_COLORS, STATUS_DOT, PRIORITY_COLORS, TYPE_COLORS constants to apps/web/src/lib/wasteland/status-colors.ts
  • Update frontend type declarations (router.d.ts) with listClaims procedure output types
  • Add PendingPrOutput and ClaimRowOutput Zod schemas to backend schemas

Verification

  • pnpm --filter web typecheck passes
  • pnpm --filter web lint passes
  • pnpm --filter cloudflare-wasteland typecheck passes
  • pnpm --filter cloudflare-wasteland lint passes
  • pnpm format applied

Visual Changes

N/A — new page, no before/after

Reviewer Notes

  • The listClaims procedure calls browseWantedBoard internally then filters, which means two loadContext calls (one in browse, one for PR enrichment). This is acceptable for now — the credential is cached in the DO.
  • PR kind determination uses parseCommitSubject on the PR title. If the title doesn't match the wl commit subject pattern, it defaults to "claim" which is the most common case.
  • Force unclaim in the kebab menu currently shows a toast placeholder — the actual mutation will be added in the follow-up bead (84c6229b).

…Client UI

Add listClaims tRPC procedure that filters browseWantedBoard to claimed
items, optionally by rigHandle, and enriches each with pending PR info
from DoltHub open pulls. Build full ClaimsClient with filter bar, stats
strip, claims table, empty/error/loading states, and drawer integration.
Extract shared STATUS_COLORS/PRIORITY_COLORS/TYPE_COLORS to status-colors.ts.
Comment thread apps/web/src/app/(app)/wasteland/[wastelandId]/claims/ClaimsClient.tsx Outdated
Comment thread services/wasteland/src/trpc/router.ts Outdated
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented May 9, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

All 3 issues flagged in the previous review have been resolved in the follow-up commit:

  • ✅ Toast leak on unmount — cleanup now dismisses any already-shown toast
  • claimed_by null → /rigs/null — Link is now conditionally rendered, with an "unclaimed" fallback span
  • ✅ Empty string in claimedItemIds.filter(Boolean) added to exclude empty fallbacks
Files Reviewed (5 files)
  • apps/web/src/app/(app)/wasteland/[wastelandId]/claims/ClaimsClient.tsx
  • apps/web/src/lib/wasteland/status-colors.ts
  • apps/web/src/lib/wasteland/types/router.d.ts
  • services/wasteland/src/trpc/router.ts
  • services/wasteland/src/trpc/schemas.ts

Fix these issues in Kilo Cloud


Reviewed by claude-sonnet-4.6 · 228,410 tokens

- Dismiss toast on unmount in useSlowOperationToast cleanup
- Guard claimed_by Link against null (render plain span instead)
- Filter empty strings from claimedItemIds set
@kilo-code-bot kilo-code-bot Bot merged commit 8dacb0f into convoy/wasteland-claims-page/93e6710c/head May 9, 2026
2 checks passed
@kilo-code-bot kilo-code-bot Bot deleted the convoy/wasteland-claims-page/93e6710c/gt/toast/45aa895c branch May 9, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant