You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stop the process list's Time colour and kill options misleading for idle sessions #833
On ?mock=connected, Toolbar → Admin → Process List:
Every Time over 30s is red, whatever the command: the Daemon thread (1209644s), the Binlog Dump GTID replica thread (604812s) and idle Sleep sessions (47s, 590s, 1212s) look as alarming as the real 340s analytics query. Times are raw seconds (1209644s is 14 days).
Click the skull on idle Sleep session 2214: the confirm offers "Kill query" for a session with no statement. Clicking it does nothing visible — the row stays and there is no message.
Focus the skull with Tab and press Enter: focus drops to <body>, and Escape does not dismiss the confirm.
Opening the confirm widens the last column and reflows the whole table (other columns shrink and wrap).
Cause
src/components/admin/ProcessListTab.tsx:85-89,190: timeColor uses time only.
:213-219: "Kill query" is always offered.
:210-234: the confirm replaces the focused skull button and has no key handling; the action column has no fixed width.
Fix
Colour by time only for active commands (Query, Execute, Killed); keep Sleep/Daemon/Binlog Dump muted. Format durations ("14d 0h", "5m 40s"). Hide "Kill query" when info is null. Focus "Kill query" when the confirm opens and close it on Escape. Give the action column a fixed width.
Activity
fix: process list time colour and kill confirm