feat: add error handling modal to ChatWindow and improve call initiation logic

- Introduced ErrorModal in ChatWindow to display error messages related to call initiation issues.
- Enhanced error handling during call initiation to provide user-friendly feedback based on different error scenarios.
- Refactored backend queries to streamline the retrieval of active calls, ensuring accurate status checks.
- Updated function names for clarity and consistency in the backend call management logic.
This commit is contained in:
2025-11-21 16:57:21 -03:00
parent 8fc3cf08c4
commit 9d2f6e7c79
4 changed files with 78 additions and 31 deletions

View File

@@ -18,6 +18,7 @@ import type * as ausencias from "../ausencias.js";
import type * as autenticacao from "../autenticacao.js";
import type * as auth from "../auth.js";
import type * as auth_utils from "../auth/utils.js";
import type * as chamadas from "../chamadas.js";
import type * as chamados from "../chamados.js";
import type * as chat from "../chat.js";
import type * as configuracaoEmail from "../configuracaoEmail.js";
@@ -71,6 +72,7 @@ declare const fullApi: ApiFromModules<{
autenticacao: typeof autenticacao;
auth: typeof auth;
"auth/utils": typeof auth_utils;
chamadas: typeof chamadas;
chamados: typeof chamados;
chat: typeof chat;
configuracaoEmail: typeof configuracaoEmail;