simplify(desktop): inline the cloud setup link like the rest of the app

Match the sibling pattern (pet-generate/generate-unavailable.tsx): inline the
portal URL literal in the ExternalLink href instead of a one-off named const.
This commit is contained in:
Brooklyn Nicholson 2026-07-10 02:01:40 -05:00
parent 1c7f31a577
commit 24f6ed53fc

View file

@ -31,10 +31,6 @@ interface GatewaySettingsState {
cloudOrg: string
}
// Where the "no agents found" empty state sends you to create one — the Hermes
// Cloud instance-setup flow (?setup=instance deep-links into the create form).
const HERMES_CLOUD_SETUP_URL = 'https://portal.nousresearch.com/cloud?setup=instance'
const EMPTY_STATE: GatewaySettingsState = {
envOverride: false,
mode: 'local',
@ -868,7 +864,10 @@ export function GatewaySettings() {
<AlertCircle className="mt-0.5 size-4 shrink-0" />
<span>
{g.cloudNoAgents.before}
<ExternalLink href={HERMES_CLOUD_SETUP_URL} showExternalIcon={false}>
<ExternalLink
href="https://portal.nousresearch.com/cloud?setup=instance"
showExternalIcon={false}
>
{g.cloudNoAgents.linkText}
</ExternalLink>
{g.cloudNoAgents.after}