chore(cloud): clarify private beta settings copy
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
6e87a42247
commit
d17343e41b
2 files changed
+16
-4
No files matched your search
@@ -1680,15 +1680,20 @@ function ConfiguredCloudLinkRow({ canManageRelay }: { readonly canManageRelay: b
|
||||
: !canManageRelay
|
||||
? "Your session does not have permission to manage T3 Cloud access."
|
||||
: null;
|
||||
const linked = primaryCloudLinkState.data?.linked ?? false;
|
||||
|
||||
return (
|
||||
<SettingsRow
|
||||
title="T3 Cloud"
|
||||
description="Make this environment available through your T3 Cloud account."
|
||||
description={
|
||||
linked
|
||||
? "This environment is available to your other devices through T3 Cloud."
|
||||
: "Make this environment available to your other devices through T3 Cloud."
|
||||
}
|
||||
status={operationError ?? primaryCloudLinkState.error}
|
||||
control={
|
||||
<CloudLinkSwitch
|
||||
checked={primaryCloudLinkState.data?.linked ?? false}
|
||||
checked={linked}
|
||||
disabled={!canManageRelay || !isSignedIn || primaryCloudLinkState.isPending || isUpdating}
|
||||
disabledReason={disabledReason}
|
||||
onCheckedChange={(enabled) => void updateLink(enabled)}
|
||||
@@ -1704,7 +1709,7 @@ function CloudLinkRow({ canManageRelay }: { readonly canManageRelay: boolean })
|
||||
) : (
|
||||
<SettingsRow
|
||||
title="T3 Cloud"
|
||||
description="Make this environment available through your T3 Cloud account."
|
||||
description="Make this environment available to your other devices through T3 Cloud."
|
||||
control={
|
||||
<CloudLinkSwitch
|
||||
checked={false}
|
||||
|
||||
@@ -21,6 +21,7 @@ import {
|
||||
SidebarSeparator,
|
||||
useSidebar,
|
||||
} from "../ui/sidebar";
|
||||
import { Badge } from "../ui/badge";
|
||||
|
||||
export type SettingsSectionPath =
|
||||
| "/settings/general"
|
||||
@@ -35,12 +36,13 @@ export const SETTINGS_NAV_ITEMS: ReadonlyArray<{
|
||||
label: string;
|
||||
to: SettingsSectionPath;
|
||||
icon: ComponentType<{ className?: string }>;
|
||||
badgeLabel?: string;
|
||||
}> = [
|
||||
{ label: "General", to: "/settings/general", icon: Settings2Icon },
|
||||
{ label: "Keybindings", to: "/settings/keybindings", icon: KeyboardIcon },
|
||||
{ label: "Providers", to: "/settings/providers", icon: BotIcon },
|
||||
{ label: "Source Control", to: "/settings/source-control", icon: GitBranchIcon },
|
||||
{ label: "T3 Cloud", to: "/settings/cloud", icon: CloudIcon },
|
||||
{ label: "T3 Cloud", to: "/settings/cloud", icon: CloudIcon, badgeLabel: "Private Beta" },
|
||||
{ label: "Connections", to: "/settings/connections", icon: Link2Icon },
|
||||
{ label: "Archive", to: "/settings/archived", icon: ArchiveIcon },
|
||||
];
|
||||
@@ -97,6 +99,11 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) {
|
||||
}
|
||||
/>
|
||||
<span className="truncate">{item.label}</span>
|
||||
{item.badgeLabel ? (
|
||||
<Badge variant="warning" size="sm" className="ml-auto">
|
||||
{item.badgeLabel}
|
||||
</Badge>
|
||||
) : null}
|
||||
</SidebarMenuButton>
|
||||
</SidebarMenuItem>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user