mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 07:56:42 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
c65eea1e38
commit
be2c9a2f6c
8 changed files with 16 additions and 16 deletions
|
|
@ -57,7 +57,7 @@ export function LandingHeader() {
|
||||||
<ThemeToggle />
|
<ThemeToggle />
|
||||||
{user ? (
|
{user ? (
|
||||||
<Button asChild className="rounded-lg bg-primary hover:bg-primary-dark text-primary-foreground transition-all duration-150 active:scale-[0.98]">
|
<Button asChild className="rounded-lg bg-primary hover:bg-primary-dark text-primary-foreground transition-all duration-150 active:scale-[0.98]">
|
||||||
<Link to="/painel">Ir para o painel</Link>
|
<Link to="/painel" search={{}}>Ir para o painel</Link>
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|
@ -98,7 +98,7 @@ export function LandingHeader() {
|
||||||
<div className="mt-6 flex flex-col gap-3">
|
<div className="mt-6 flex flex-col gap-3">
|
||||||
{user ? (
|
{user ? (
|
||||||
<Button asChild className="rounded-lg w-full bg-primary hover:bg-primary-dark text-primary-foreground">
|
<Button asChild className="rounded-lg w-full bg-primary hover:bg-primary-dark text-primary-foreground">
|
||||||
<Link to="/painel" onClick={() => setOpen(false)}>Ir para o painel</Link>
|
<Link to="/painel" search={{}} onClick={() => setOpen(false)}>Ir para o painel</Link>
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,7 @@ export function CronjobWizard({ onCreated, onCancel }: Props) {
|
||||||
Conecte as integrações faltantes antes de criar.
|
Conecte as integrações faltantes antes de criar.
|
||||||
</p>
|
</p>
|
||||||
<Button asChild size="sm" variant="outline" className="mt-2">
|
<Button asChild size="sm" variant="outline" className="mt-2">
|
||||||
<Link to="/painel/integracoes">Ir para Integrações</Link>
|
<Link to="/painel/integracoes" search={{}}>Ir para Integrações</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ export function IntegrationsDashboardWidget() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Button asChild variant="ghost" size="sm" className="text-primary hover:text-primary">
|
<Button asChild variant="ghost" size="sm" className="text-primary hover:text-primary">
|
||||||
<Link to="/painel/integracoes">
|
<Link to="/painel/integracoes" search={{}}>
|
||||||
Gerenciar <ArrowRight className="ml-1 h-3.5 w-3.5" />
|
Gerenciar <ArrowRight className="ml-1 h-3.5 w-3.5" />
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -52,7 +52,7 @@ export function IntegrationsDashboardWidget() {
|
||||||
Conecte serviços como Gmail, Notion e Cal.com para ampliar seu Mika.
|
Conecte serviços como Gmail, Notion e Cal.com para ampliar seu Mika.
|
||||||
</p>
|
</p>
|
||||||
<Button asChild size="sm" variant="outline" className="rounded-lg">
|
<Button asChild size="sm" variant="outline" className="rounded-lg">
|
||||||
<Link to="/painel/integracoes">Explorar integrações</Link>
|
<Link to="/painel/integracoes" search={{}}>Explorar integrações</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ function CheckoutSuccessPage() {
|
||||||
// Invalida queries de assinatura para refletir o novo estado quando o webhook chegar
|
// Invalida queries de assinatura para refletir o novo estado quando o webhook chegar
|
||||||
queryClient.invalidateQueries({ queryKey: ["subscription"] });
|
queryClient.invalidateQueries({ queryKey: ["subscription"] });
|
||||||
const t = setTimeout(() => {
|
const t = setTimeout(() => {
|
||||||
navigate({ to: "/painel" });
|
navigate({ to: "/painel", search: {} });
|
||||||
}, 6000);
|
}, 6000);
|
||||||
return () => clearTimeout(t);
|
return () => clearTimeout(t);
|
||||||
}, [navigate, queryClient]);
|
}, [navigate, queryClient]);
|
||||||
|
|
@ -37,7 +37,7 @@ function CheckoutSuccessPage() {
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col sm:flex-row gap-3 justify-center">
|
<div className="flex flex-col sm:flex-row gap-3 justify-center">
|
||||||
<Button asChild className="rounded-lg bg-primary hover:bg-primary-dark text-primary-foreground">
|
<Button asChild className="rounded-lg bg-primary hover:bg-primary-dark text-primary-foreground">
|
||||||
<Link to="/painel">Ir para o painel</Link>
|
<Link to="/painel" search={{}}>Ir para o painel</Link>
|
||||||
</Button>
|
</Button>
|
||||||
<Button asChild variant="outline" className="rounded-lg">
|
<Button asChild variant="outline" className="rounded-lg">
|
||||||
<Link to="/painel/faturamento">Ver faturamento</Link>
|
<Link to="/painel/faturamento">Ver faturamento</Link>
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ function LoginPage() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
toast.success("Bem-vindo de volta!");
|
toast.success("Bem-vindo de volta!");
|
||||||
navigate({ to: (redirect as "/painel") || "/painel" });
|
navigate({ to: (redirect as "/painel") || "/painel", search: {} });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ function CronjobDetailPage() {
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
<Button asChild size="sm" variant="outline" className="mt-3">
|
<Button asChild size="sm" variant="outline" className="mt-3">
|
||||||
<Link to="/painel/integracoes">Conectar agora</Link>
|
<Link to="/painel/integracoes" search={{}}>Conectar agora</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ function IntegrationDetailPage() {
|
||||||
return (
|
return (
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<Button variant="ghost" size="sm" asChild>
|
<Button variant="ghost" size="sm" asChild>
|
||||||
<Link to="/painel/integracoes">
|
<Link to="/painel/integracoes" search={{}}>
|
||||||
<ArrowLeft className="h-4 w-4 mr-2" /> Voltar
|
<ArrowLeft className="h-4 w-4 mr-2" /> Voltar
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -84,7 +84,7 @@ function IntegrationDetailPage() {
|
||||||
return (
|
return (
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<Button variant="ghost" size="sm" asChild>
|
<Button variant="ghost" size="sm" asChild>
|
||||||
<Link to="/painel/integracoes">
|
<Link to="/painel/integracoes" search={{}}>
|
||||||
<ArrowLeft className="h-4 w-4 mr-2" /> Voltar
|
<ArrowLeft className="h-4 w-4 mr-2" /> Voltar
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -93,7 +93,7 @@ function IntegrationDetailPage() {
|
||||||
Você ainda não conectou {mcp.name}.
|
Você ainda não conectou {mcp.name}.
|
||||||
</p>
|
</p>
|
||||||
<Button asChild className="mt-4">
|
<Button asChild className="mt-4">
|
||||||
<Link to="/painel/integracoes">Conectar</Link>
|
<Link to="/painel/integracoes" search={{}}>Conectar</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -154,7 +154,7 @@ function IntegrationDetailPage() {
|
||||||
return (
|
return (
|
||||||
<div className="space-y-6">
|
<div className="space-y-6">
|
||||||
<Button variant="ghost" size="sm" asChild>
|
<Button variant="ghost" size="sm" asChild>
|
||||||
<Link to="/painel/integracoes">
|
<Link to="/painel/integracoes" search={{}}>
|
||||||
<ArrowLeft className="h-4 w-4 mr-2" /> Voltar
|
<ArrowLeft className="h-4 w-4 mr-2" /> Voltar
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -298,7 +298,7 @@ function IntegrationDetailPage() {
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const stillConnected = integs.some((i) => i.id === integration.id);
|
const stillConnected = integs.some((i) => i.id === integration.id);
|
||||||
if (!stillConnected) {
|
if (!stillConnected) {
|
||||||
navigate({ to: "/painel/integracoes" });
|
navigate({ to: "/painel/integracoes", search: {} });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -86,9 +86,9 @@ function SignupPage() {
|
||||||
toast.success("Conta criada!");
|
toast.success("Conta criada!");
|
||||||
if (plan && plan !== "enterprise") {
|
if (plan && plan !== "enterprise") {
|
||||||
// TODO Etapa 3: chamar create-checkout-session com plan/cycle
|
// TODO Etapa 3: chamar create-checkout-session com plan/cycle
|
||||||
navigate({ to: "/painel" });
|
navigate({ to: "/painel", search: {} });
|
||||||
} else {
|
} else {
|
||||||
navigate({ to: "/painel" });
|
navigate({ to: "/painel", search: {} });
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue