feat(dashboard): render adapter-origin tool calls#67
Merged
Conversation
…metadata on AuditRecord; migrate fixtures (#16)
…_denied reason (#16)
Tailwind v4 dropped the default button cursor and we restored it globally for button/[role=button]/summary, but native <select> dropdowns kept the default arrow. Add `select` to the rule so the audit filter dropdowns (status, record kind) and all other selects share the pointer affordance.
origin, metadata.channel_id and metadata.sender_id filtered by exact equality, while the tool-name filter uses substring (LIKE %value%). In the dashboard's free-text filter inputs this made origin/channel/sender feel unresponsive — partial input matched nothing until the exact value was typed, unlike the tool field which narrows as you type. Switch all three to substring LIKE for a consistent search-as-you-type experience. record_kind stays exact (select).
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.
Description
Implements #16: the Feed and Audit pages now coherently render and filter non-MCP-origin (adapter/sideband) tool calls. Pure consumer of the
record_kind/origin/metadataaudit shape from #12 — no contract re-cut.mcp→ MCP,openclaw→ OpenClaw) and a raw-slug fallback for any future adapter.Install Scan/Drift/Expired) rendered orthogonally to the decision badge;tool_callrenders no chip. Covers all non-tool_callkinds, satisfying "render install-scan as a distinct action type."metadata.channel_id/metadata.sender_idsurfaced as Audit columns and as filter controls; filtered server-side via SQLitejson_extract(no schema change, no migration)./api/auditand/api/audit/exportacceptorigin/record_kind/channel_id/sender_idfilters.actionSSE event carriesorigin+record_kind(additive; MCP path unchanged).metadatais intentionally not on the event — the Feed fetches the full record on card expand, where channel/sender appear under "Adapter Context."LIKE %value%) for origin/channel/sender, consistent with the tool-name field's search-as-you-type behaviour;record_kindstays exact (it's a select).<select>dropdowns.Closes #16
Type of Change
Packages Affected
packages/proxypackages/dashboardpackages/python-sdkdocs/examples/Checklist
anytypes or@ts-ignorewithout justificationpnpm secrets:scan,pnpm docs:check:ci,pnpm audit --audit-level=high,pnpm build,pnpm lint,pnpm format:check,pnpm typecheck,pnpm test)feat:,fix:,docs:)How to Test
pnpm --filter @gethelio/proxy test(1575 tests) andpnpm --filter @gethelio/dashboard test(300 tests) — both green.GET /api/audit/export?format=csv&origin=openclawreturns only OpenClaw rows.—for channel/sender).Additional Context
Known follow-up: #66 (CSV export is missing the origin/record_kind/metadata columns).