chore: update dependencies in pnpm-lock.yaml and package.json, including zod to version 4.3.6, @dokploy/trpc-openapi to version 0.0.13, and @trpc packages to version 11.10.0; refactor loading state handling in application components

This commit is contained in:
Mauricio Siu
2026-02-23 23:50:55 -06:00
parent df648eccf6
commit 7c534d62b6
180 changed files with 717 additions and 828 deletions
@@ -60,7 +60,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
const { data: servers } = api.server.withSSHKey.useQuery();
const { data: isCloud } = api.settings.isCloud.useQuery();
const { mutateAsync, isError, error, isLoading } = destinationId
const { mutateAsync, isError, error, isPending } = destinationId
? api.destination.update.useMutation()
: api.destination.create.useMutation();
@@ -75,7 +75,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
);
const {
mutateAsync: testConnection,
isLoading: isLoadingConnection,
isPending: isPendingConnection,
error: connectionError,
isError: isErrorConnection,
} = api.destination.testConnection.useMutation();
@@ -410,7 +410,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
<Button
type="button"
variant={"secondary"}
isLoading={isLoadingConnection}
isLoading={isPendingConnection}
onClick={async () => {
await handleTestConnection(form.getValues("serverId"));
}}
@@ -420,7 +420,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
</div>
) : (
<Button
isLoading={isLoadingConnection}
isLoading={isPendingConnection}
type="button"
variant="secondary"
onClick={async () => {
@@ -432,7 +432,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
)}
<Button
isLoading={isLoading}
isLoading={isPending}
form="hook-form-destination-add"
type="submit"
>