Skip to content

[P1] [doc-drift] FR-7.2.1 filters + ARCH §3.6 process monitor — unimplemented #437

Closed

Description

@EVWorth

[P1] [doc-drift] FR-7.2.1 filterable by user/database/state + ARCH §3.6 process monitor architecture — unimplemented

Context

FR-7.2.1 acceptance: "filterable by user, database, state". ARCH §3.6 shows backend tokio background task emitting process_list_update events.

Problem

Per docs/audits/admin.md F9.

Implementation has single free-text input matching across all columns (AdminPanel.tsx:118-131) — not 3 separate filters. Per-tab polling via setInterval means: 5 admin tabs × 5 connections × 2s = 150 req/min to MySQL; refresh jitter; documented start_process_monitor command does not exist; process_list_update event does not exist.

Files

  • src/components/admin/AdminPanel.tsx:118-131, 71-274
  • src-tauri/crates/mas-admin/src/lib.rs

Repro (if applicable)

Static analysis only.

Expected

5 admin tabs × 5 connections × 2s interval → 150 events/min from backend (not 150 req to MySQL). Filter dropdowns restrict table to "all root connections on db foo".

Proposed fix

Scope L. (1) Replace single filter with three <select> dropdowns (User, DB, State). (2) Move polling to mas-admin: start_process_monitor(connection_id, interval_ms) / stop_process_monitor(connection_id) with tokio::spawn and process_list_update event emission. (3) Frontend subscribes via @tauri-apps/api/event::listen.

Acceptance

Filter dropdowns restrict by column; per-connection polling shared across admin tabs.

Needs human verify

Yes

Labels: audit, area/admin, severity/p1, kind/doc-drift

Activity

  1. added
    audit
    severity/p1
    kind/doc-drift
    area/admin
    on Jul 31, 2026
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

    area/adminauditkind/doc-driftseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions