Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Add contact link to runtime settings label (#6880)

Robert Brennanc9ebabd82d81
diff --git a/frontend/src/components/features/settings/settings-dropdown-input.tsx b/frontend/src/components/features/settings/settings-dropdown-input.tsx
index 5bd89d7cd4..2a74ad82c9 100644
--- a/frontend/src/components/features/settings/settings-dropdown-input.tsx
+++ b/frontend/src/components/features/settings/settings-dropdown-input.tsx
@@ -1,9 +1,10 @@
import { Autocomplete, AutocompleteItem } from "@heroui/react";
+import { ReactNode } from "react";
import { OptionalTag } from "./optional-tag";
interface SettingsDropdownInputProps {
testId: string;
- label: string;
+ label: ReactNode;
name: string;
items: { key: React.Key; label: string }[];
showOptionalTag?: boolean;
@@ -29,7 +30,7 @@ export function SettingsDropdownInput({
{showOptionalTag && <OptionalTag />}
</div>
<Autocomplete
- aria-label={label}
+ aria-label={typeof label === "string" ? label : name}
data-testid={testId}
name={name}
defaultItems={items}
diff --git a/frontend/src/routes/account-settings.tsx b/frontend/src/routes/account-settings.tsx
index d364e80e17..0de521a482 100644
--- a/frontend/src/routes/account-settings.tsx
+++ b/frontend/src/routes/account-settings.tsx
@@ -278,7 +278,15 @@ function AccountSettings() {
<SettingsDropdownInput
testId="runtime-settings-input"
name="runtime-settings-input"
- label="Runtime Settings"
+ label={
+ <>
+ Runtime Settings (
+ <a href="mailto:[email protected]">
+ get in touch for access
+ </a>
+ )
+ </>
+ }
items={REMOTE_RUNTIME_OPTIONS}
defaultSelectedKey={settings.REMOTE_RUNTIME_RESOURCE_FACTOR?.toString()}
isDisabled