mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-12-03 03:44:54 +00:00
Follow-up to #105, which landed the backend (RoomAuditListener.onRequest, mcp_request_entries table, NotificationSettings.showAllMcpMessages). This wires the flag through the UI so users can actually see the extra entries. SettingsScreen gains a SwitchRow in the Audit Notifications section. The toggle binds to SettingsViewModel.showAllMcpMessages, which observes a new NotificationSettingsProvider.observeSettings() Flow so toggle state reacts to writes from either the Settings screen or the Audit tab. AuditHistoryViewModel now takes an optional McpRequestDao and NotificationSettingsProvider. When the toggle is off, only tool-call entries surface (unchanged). When on, generic MCP request entries are queried and merged with tool calls, sorted timestamp-desc within each day group. The display type is a sealed AuditHistoryItem hierarchy with ToolCall and Request variants so the view renders each shape correctly (tool calls stay clickable; requests show a muted Api icon + method). Sealed class chosen over a polymorphic AuditEntry because the two row shapes differ meaningfully in interactivity (detail navigation vs none) and visual treatment, and the compiler-enforced exhaustiveness prevents missing a variant when future row types are added. Screenshot goldens regenerated: existing Settings screens pick up the new SwitchRow; a new 36a_audit_history_show_all_mcp_messages pair captures the interleaved mixed view. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||