feat(admin): add DO & reconcile events card to kiloclaw instance detail#1392
Merged
pandemicsyn merged 2 commits intomainfrom Mar 23, 2026
Merged
feat(admin): add DO & reconcile events card to kiloclaw instance detail#1392pandemicsyn merged 2 commits intomainfrom
pandemicsyn merged 2 commits intomainfrom
Conversation
Query Cloudflare Analytics Engine for recent do/reconcile events per instance and display them in a table on the admin detail page.
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Reviewed by gpt-5.4-20260305 · 425,327 tokens |
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
|
Contributor
Author
jeanduplessis
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a "DO & Reconcile Events" card to the KiloClaw admin instance detail page that queries Cloudflare Analytics Engine for the 20 most recent
doandreconciledelivery events for a given instance./admin/api/kiloclaw-analytics) queries thekiloclaw_eventsAE dataset, reusing existingR2_ACCOUNT_IDandCF_ANALYTICS_ENGINE_TOKENcredentials (same as gastown-analytics).useKiloclawInstanceEvents) auto-refreshes every 60s.sandboxIdis validated against base64url charset before SQL interpolation to prevent injection.Verification
pnpm typecheck— pass (root + all 29 workspace projects)pnpm format— pass (oxfmt)pnpm lint— pass (oxlint + eslint across all packages)Visual Changes
Reviewer Notes
gastown-analyticspattern (API route + hooks + component) exactly.blob8(sandboxId) andblob3 IN ('do', 'reconcile')withLIMIT 20.