Skip to content

Show inbound queue stats and dead letters in settings #8153

Open

Description

@senamakel

Parent: #8147

Summary

Add a settings UI for the inbound queues: per-queue counts, dead letters, and redrive, on top of the inbound.stats, inbound.dead and inbound.redrive RPCs.

Problem

#8136 added the RPCs and the InboundDeferred / InboundDeadLettered / InboundEventDropped events, but nothing in the app shows them. A dead-lettered event is invisible unless someone calls the RPC by hand.

Solution

  • A settings panel (shadcn primitives from app/src/components/ui/) listing each queue's ready / delayed / leased / dead counts.
  • A dead-letter list with reason and a redrive button.
  • A toast on InboundDeadLettered.
  • Strings through useT() with translations for every locale.

Acceptance criteria

  • Stats — the panel shows live counts from inbound.stats.
  • Dead letters — listed with reason; redrive moves one back and the count updates.
  • Disabled state — with the component off, the panel says so instead of erroring.
  • E2E — a mocked desktop E2E spec under app/test/e2e/specs/.
  • Diff coverage ≥ 80% — the implementing PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by .github/workflows/ci-fast.yml).

Related

Part of #8147. Builds on #8136 (inbound domain, tinyeventqueues v0.1.2) and tinyhumansai/tinyeventqueues#6.

Audit findings (2026-10-20)

  • No code in app/src calls inbound.* yet.
  • Where it goes: a new panel under app/src/components/settings/panels/. Its neighbours there are ComposioTriagePanel.tsx (161 LOC, embedded in ComposioPanel.tsx:49), EventLogPanel.tsx and DeveloperOptionsPanel.tsx. It also needs a route in settingsRouteElements.tsx (next to event-log, ~L187) and an entry in settingsRouteRegistry.ts (~L503-505).
  • What it can show today: inbound.stats returns queue depths and five totals only. Per-reason, per-source and per-lane counts come from [inbound-queues] stats: outcome counts by reason, source and lane; record lost context senamakel/tinyeventqueues#5.

Agent brief

Depends on: senamakel/tinyeventqueues#5 · Blocks: none · Parallel with: #8152, senamakel#515

Research first

  • How EventLogPanel.tsx subscribes to core events; reuse it for the live InboundDeadLettered toast.

Files to consider

  • Read: app/src/components/settings/panels/EventLogPanel.tsx, ComposioTriagePanel.tsx, app/src/components/settings/settingsRouteElements.tsx:180-195, settingsRouteRegistry.ts:495-510, crates/openhuman-core/src/inbound/schemas.rs
  • Change: a new InboundQueuesPanel.tsx (shadcn primitives from app/src/components/ui/), the route and registry, the locale files, the vendor/tinyeventqueues gitlink for the [inbound-queues] stats: outcome counts by reason, source and lane; record lost context senamakel/tinyeventqueues#5 release
  • Tests: InboundQueuesPanel.test.tsx, a spec under app/test/e2e/specs/

Workflow: implementing-an-epic step.

Subagents: tdd-implementer (Sonnet), then code-reviewer.

Gates: pnpm typecheck · pnpm lint · pnpm test -- InboundQueuesPanel · pnpm i18n:check · pnpm i18n:english:check

Activity

  1. added
    subtask
    feature
    react-ui
    on Oct 20, 2026
  2. M3gA-Mind commented on Nov 16, 2026

    @M3gA-Mind
    Collaborator

    Re-checked on current main: not started. The core already has the inbound.stats, inbound.dead and inbound.redrive RPCs and publishes InboundDeadLettered, but nothing in the app calls them or listens for the event. The RPC side is ready for this panel. Keeping it open as part of #8147.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurereact-uisubtask

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions