mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 06:56:44 +00:00
Go-live runtime sync and control plane hardening (#1)
* Implement Mika runtime sync and go-live controls * Add CI validation workflow * Align CI with validated runtime checks * Fix Mika CI install workflow
This commit is contained in:
parent
cb54fa4666
commit
d87ea2657c
31 changed files with 4019 additions and 95 deletions
|
|
@ -119,7 +119,11 @@ function IntegrationDetailPage() {
|
|||
|
||||
async function handleRefresh() {
|
||||
setRefreshing(true);
|
||||
const { error } = await invokeFunction("refresh-integration-token", {
|
||||
const { data, error } = await invokeFunction<{
|
||||
success: boolean;
|
||||
expires_at: string | null;
|
||||
runtime_sync_warning?: string | null;
|
||||
}>("refresh-integration-token", {
|
||||
integration_id: integration!.id,
|
||||
});
|
||||
setRefreshing(false);
|
||||
|
|
@ -127,6 +131,9 @@ function IntegrationDetailPage() {
|
|||
toast.error(error.message);
|
||||
} else {
|
||||
toast.success("Token renovado.");
|
||||
if (data?.runtime_sync_warning) {
|
||||
toast.warning("Token renovado, mas o runtime do agente não sincronizou.");
|
||||
}
|
||||
}
|
||||
queryClient.invalidateQueries({ queryKey: ["user-integrations"] });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue