Skip to content

feat(admin): add bot requests dashboard#888

Merged
RSO merged 5 commits intomainfrom
unmarred-mandible
Mar 9, 2026
Merged

feat(admin): add bot requests dashboard#888
RSO merged 5 commits intomainfrom
unmarred-mandible

Conversation

@RSO
Copy link
Contributor

@RSO RSO commented Mar 6, 2026

Summary

  • Add a new /admin/bot-requests dashboard that charts weekly active users, first-time users, and daily request volume from bot_requests.
  • Add a paginated request table with drill-down detail pages so admins can inspect message content, ownership, status, and recorded step metadata.
  • Back the dashboard with a dedicated admin tRPC router and wire the new entry into the admin sidebar.

Verification

  • pnpm typecheck (passes; the workspace prints a Node engine warning because it expects Node ^22 and this environment uses Node v24.10.0)

Visual Changes

CleanShot 2026-03-06 at 14 15 05@2x

Reviewer Notes

  • Each dashboard section uses its own tRPC query so the charts and request log can load independently without blocking the rest of the page.
  • The analytics queries read directly from bot_requests and join kilocode_users / organizations for display labels in the table and drill-down view.

RSO added 2 commits March 6, 2026 14:07
Give admins visibility into bot request adoption and usage with parallel tRPC-powered charts, a paginated request log, and per-request drilldowns.
Make the bot requests dashboard easier to compare channel adoption by stacking daily request volume per platform. Rename the sidebar entry to Kilo Bot to better match the product surface.
@RSO RSO requested a review from a team March 6, 2026 13:16
@RSO RSO enabled auto-merge March 6, 2026 13:16
@kilo-code-bot
Copy link
Contributor

kilo-code-bot bot commented Mar 6, 2026

Code Review Summary

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 0

Fix these issues in Kilo Cloud

Issue Details (click to expand)

WARNING

File Line Issue
src/app/admin/bot-requests/[id]/page.tsx 53 Steps table overflows on narrow screens
src/app/admin/bot-requests/page.tsx 430 Pagination buttons are missing accessible names
Other Observations (not in diff)

N/A

Files Reviewed (7 files)
  • src/app/admin/bot-requests/BotRequestStatusBadge.tsx - 0 issues
  • src/app/admin/bot-requests/[id]/page.tsx - 1 issue
  • src/app/admin/bot-requests/hooks.ts - 0 issues
  • src/app/admin/bot-requests/page.tsx - 1 issue
  • src/app/admin/components/AppSidebar.tsx - 0 issues
  • src/routers/admin-bot-requests-router.ts - 0 issues
  • src/routers/admin-router.ts - 0 issues

Remove the redundant steps type assertion and unused import so the new bot requests router passes lint without changing its behavior.
Copy link
Contributor

@marius-kilocode marius-kilocode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please at least fix the duplication

Handle missing request detail records as not-found errors, share the bot request status badge between pages, and validate page-size query params before using them in the dashboard.
@RSO RSO merged commit d40124f into main Mar 9, 2026
17 checks passed
@RSO RSO deleted the unmarred-mandible branch March 9, 2026 09:33
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.

3 participants