more ui adjustments

This commit is contained in:
miloschwartz
2026-10-15 14:39:29 -04:00
parent 5e8673a206
commit 857bc9528f
8 changed files with 27 additions and 18 deletions
@@ -80,7 +80,7 @@ export default function PrivateResourceHttpPage() {
<SettingsSection>
<SettingsSectionHeader>
<SettingsSectionTitle>
{t("httpSettings")}
{t("resourceTypeHttp")}
</SettingsSectionTitle>
<SettingsSectionDescription>
{t(
@@ -62,7 +62,10 @@ export default async function PrivateResourceLayout(
href: `/{orgId}/settings/resources/private/{niceId}/general`
},
{
title: t(modeSettingsKey),
title:
siteResource.mode === "http"
? t("resourceTypeHttp")
: t(modeSettingsKey),
href: `/{orgId}/settings/resources/private/{niceId}/${siteResource.mode === "inference" ? "ai-gateway" : siteResource.mode}`
},
{
@@ -151,7 +151,7 @@ export default function CreatePrivateResourcePage() {
},
{
value: "http" as const,
title: t("createInternalResourceDialogModeHttp"),
title: t("resourceTypeHttp"),
description: t("privateResourceTypeHttpDescription")
},
{
@@ -602,7 +602,7 @@ export default function CreatePrivateResourcePage() {
<SettingsSection>
<SettingsSectionHeader>
<SettingsSectionTitle>
{t("httpSettings")}
{t("resourceTypeHttp")}
</SettingsSectionTitle>
<SettingsSectionDescription>
{t(
@@ -88,7 +88,10 @@ export default async function ResourceLayout(props: ResourceLayoutProps) {
href: `/{orgId}/settings/resources/public/{niceId}/general`
},
{
title: t(`${resource.mode}Settings`),
title:
resource.mode === "http"
? t("resourceTypeHttp")
: t(`${resource.mode}Settings`),
href: `/{orgId}/settings/resources/public/{niceId}/${resource.mode === "inference" ? "ai-gateway" : resource.mode}`
}
];
@@ -770,7 +770,7 @@ export default function Page() {
{ title: string; description: string }
> = {
http: {
title: t("createInternalResourceDialogModeHttp"),
title: t("resourceTypeHttp"),
description: t("resourceTypeHttpDescription")
},
inference: {
+1 -1
View File
@@ -91,7 +91,7 @@ export function PrivateResourceInfoSections({
const modeLabel: Record<PrivateResourceMode, string> = {
host: t("editInternalResourceDialogModeHost"),
cidr: t("editInternalResourceDialogModeCidr"),
http: t("editInternalResourceDialogModeHttp"),
http: t("resourceTypeHttp"),
ssh: t("editInternalResourceDialogModeSsh"),
inference: t("editInternalResourceDialogModeInference"),
gateway: t("editInternalResourceDialogModeGateway")
+3 -1
View File
@@ -483,7 +483,9 @@ export default function RedirectForm({
defaultDomainId={
redirect?.domainId
}
allowWildcard
allowWildcard={
false
}
defaultSubdomain={
redirect?.subdomain
}