feat(adminui): Test Connect button on every typed driver page
- AdminProbeService routes TestDriverConnect through IAdminOperationsClient with a 65s outer guard (actor side already clamps to [1,60]). - Added generic AskAsync<T> to IAdminOperationsClient interface and AdminOperationsClient impl, delegating straight to the Akka proxy. - DriverTestConnectButton renders the button + inline result chip, auto-clears after 30s, disables during in-flight. - Wired into all 9 typed driver pages directly under the identity section. Sources timeout from the form's ProbeTimeoutSeconds; sources config JSON from the form's current Options (operator can test BEFORE saving).
This commit is contained in:
@@ -36,4 +36,12 @@ public sealed class AdminOperationsClient : IAdminOperationsClient
|
||||
linked.CancelAfter(AskTimeout);
|
||||
return await _proxy.Ask<StartDeploymentResult>(msg, AskTimeout, linked.Token);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Generic Ask — forwards any message to the AdminOperationsActor singleton proxy.
|
||||
/// Uses the caller-supplied <paramref name="ct"/> for cancellation; does not impose an
|
||||
/// additional internal timeout beyond what the proxy itself enforces.
|
||||
/// </summary>
|
||||
public Task<T> AskAsync<T>(object message, CancellationToken ct)
|
||||
=> _proxy.Ask<T>(message, cancellationToken: ct);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user