Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): offer Update client when the app is behind the server #5254

Closedmatheustimbo(GitHub profile, opens in a new tab)wants to merge 7 commits intomain fromrefs/pull/5254/headopened View on GitHub

Showing 6 changed files with 38 additions and 18 deletions (loading 4).

x
0 of 6 viewed, 6 left
21 additions and 9 deletionsapps/web/src/components/settings/ConnectionsSettings.tsxModified
View file
@@ -109,6 +109,7 @@
import { isDesktopLocalConnectionTarget } from "~/connection/desktopLocal";
import { useUiStateStore } from "~/uiStateStore";
import {
+ clientUpdateGuidance,
resolveServerConfigVersionMismatch,
resolveServerSelfUpdateCapability,
} from "~/versionSkew";
@@ -135,6 +136,7 @@
import { useAtomCommand } from "../../state/use-atom-command";
import { serverEnvironment } from "~/state/server";
import { ConnectionStatusDot } from "../ConnectionStatusDot";
+import { ClientUpdateAction } from "../ClientUpdateAction";
import { ServerUpdateAction, ServerUpdateProgress } from "../ServerUpdateAction";
import { CloudEnvironmentConnectRows } from "../cloud/CloudEnvironmentConnectList";
import { ITEM_ROW_CLASSNAME, ITEM_ROW_INNER_CLASSNAME } from "./itemRows";
@@ -1431,7 +1433,7 @@
{metadataBits.length > 0 ? (
<p className="text-xs text-muted-foreground">{metadataBits.join(" · ")}</p>
) : null}
- {serverUpdateState.status !== "idle" ? (
+ {versionMismatch?.outdatedSide !== "client" && serverUpdateState.status !== "idle" ? (
<div className="max-w-md">
<ServerUpdateProgress
fromVersion={serverUpdateState.fromVersion}
@@ -1443,6 +1445,7 @@
<TriangleAlertIcon className="size-3.5 shrink-0" />