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:
Felipe Domingues 2026-04-30 20:41:06 -03:00 committed by GitHub
parent cb54fa4666
commit d87ea2657c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 4019 additions and 95 deletions

View file

@ -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"] });
}