From 56b0185c8f37dea0fab2961cf58a072933efa0e8 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Thu, 18 Dec 2025 10:58:16 -0500 Subject: [PATCH] visual adjustments --- messages/en-US.json | 13 +++++----- src/app/[orgId]/settings/general/page.tsx | 20 +++++++--------- .../proxy/[niceId]/authentication/page.tsx | 14 +++++------ .../resources/proxy/[niceId]/general/page.tsx | 2 +- .../resources/proxy/[niceId]/proxy/page.tsx | 4 ++-- .../resources/proxy/[niceId]/rules/page.tsx | 22 ++++++++--------- .../settings/sites/[niceId]/general/page.tsx | 24 +++++++++---------- src/components/ui/checkbox.tsx | 8 +++---- 8 files changed, 53 insertions(+), 54 deletions(-) diff --git a/messages/en-US.json b/messages/en-US.json index 1d705dae..0cfd8f6f 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -688,7 +688,7 @@ "resourceRoleDescription": "Admins can always access this resource.", "resourceUsersRoles": "Access Controls", "resourceUsersRolesDescription": "Configure which users and roles can visit this resource", - "resourceUsersRolesSubmit": "Save Users & Roles", + "resourceUsersRolesSubmit": "Save Access Controls", "resourceWhitelistSave": "Saved successfully", "resourceWhitelistSaveDescription": "Whitelist settings have been saved", "ssoUse": "Use Platform SSO", @@ -1311,7 +1311,7 @@ "documentation": "Documentation", "saveAllSettings": "Save All Settings", "saveResourceTargets": "Save Targets", - "saveResourceHttp": "Save Additional fields", + "saveResourceHttp": "Save Proxy Settings", "saveProxyProtocol": "Save Proxy protocol settings", "settingsUpdated": "Settings updated", "settingsUpdatedDescription": "Settings updated successfully", @@ -1662,7 +1662,7 @@ "siteAddressDescription": "The internal address of the site. Must fall within the organization's subnet.", "siteNameDescription": "The display name of the site that can be changed later.", "autoLoginExternalIdp": "Auto Login with External IDP", - "autoLoginExternalIdpDescription": "Immediately redirect the user to the external IDP for authentication.", + "autoLoginExternalIdpDescription": "Immediately redirect the user to the external identity provider for authentication.", "selectIdp": "Select IDP", "selectIdpPlaceholder": "Choose an IDP...", "selectIdpRequired": "Please select an IDP when auto login is enabled.", @@ -1877,8 +1877,8 @@ "enableTwoFactorAuthentication": "Enable two-factor authentication", "completeSecuritySteps": "Complete Security Steps", "securitySettings": "Security Settings", - "dangerSection": "Danger section", - "dangerSectionDescription": "Delete organization alongside all its sites, clients, resources, etc...", + "dangerSection": "Danger Zone", + "dangerSectionDescription": "Permanently delete all data associated with this organization", "securitySettingsDescription": "Configure security policies for the organization", "requireTwoFactorForAllUsers": "Require Two-Factor Authentication for All Users", "requireTwoFactorDescription": "When enabled, all internal users in this organization must have two-factor authentication enabled to access the organization.", @@ -2317,5 +2317,6 @@ "resourceLoginPageTitle": "Resource Login Page", "resourceLoginPageDescription": "Customize the login page for individual resources", "enterConfirmation": "Enter confirmation", - "blueprintViewDetails": "Details" + "blueprintViewDetails": "Details", + "defaultIdentityProvider": "Default Identity Provider" } diff --git a/src/app/[orgId]/settings/general/page.tsx b/src/app/[orgId]/settings/general/page.tsx index fa28dd05..7816924f 100644 --- a/src/app/[orgId]/settings/general/page.tsx +++ b/src/app/[orgId]/settings/general/page.tsx @@ -49,7 +49,8 @@ import { SettingsSectionTitle, SettingsSectionDescription, SettingsSectionBody, - SettingsSectionForm + SettingsSectionForm, + SettingsSectionFooter } from "@app/components/Settings"; import { useUserContext } from "@app/hooks/useUserContext"; import { useTranslations } from "next-intl"; @@ -122,16 +123,12 @@ export default function GeneralPage() { const { org } = useOrgContext(); return ( -
- + - + - {build !== "oss" && ( - - )} - {build !== "saas" && } -
+ {build !== "oss" && } + {build !== "saas" && }
); } @@ -222,7 +219,7 @@ function DeleteForm({ org }: SectionFormProps) { {t("dangerSectionDescription")} -
+ -
+ ); @@ -758,6 +755,7 @@ function SecuritySettingsSectionForm({ org }: SectionFormProps) { action={formAction} ref={formRef} id="security-settings-section-form" + className="space-y-4" > 0 && ( -
+ <>