feat(network): centralize proxy settings and add MCP routing (NAN-315) (#6372)
* feat(network): share proxy settings across features and MCP (NAN-315) * fix(network): address shared proxy review regressions * test(network): align rebased OAuth fixtures with runtime admission * fix(webui): configure shared proxy without leaving connection drafts * feat(webui): add optional shared proxy authentication editor * fix(webui): align proxy save tests and loading skeleton
This commit is contained in:
1 parent
872a83340d
commit
084b6bb394
181 files changed
+3740
-807
No files matched your search
@@ -47,6 +47,7 @@ export function channelSetup(
|
||||
): ChannelConfigField => ({
|
||||
...localizeField(field.key),
|
||||
section: field.section,
|
||||
control: field.control,
|
||||
});
|
||||
const presentation: ChannelSetupPresentation = {
|
||||
...definition,
|
||||
|
||||
@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { Textarea } from "@/components/ui/textarea";
|
||||
import type { ChannelConfigField } from "@/channel-plugins/catalog";
|
||||
import { ToggleButton } from "@/components/ui/toggle-button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
function channelFieldValue(field: ChannelConfigField, values: Record<string, string>): string {
|
||||
@@ -129,6 +130,25 @@ export function CredentialForm({
|
||||
{error}
|
||||
</span>
|
||||
) : null;
|
||||
if (field.control === "switch" && field.kind === "bool") {
|
||||
return (
|
||||
<div key={field.key} className="flex items-center justify-between gap-4 py-2">
|
||||
<label htmlFor={inputId} className="min-w-0">{header}</label>
|
||||
<div className="flex shrink-0 items-center gap-2">
|
||||
{errorMessage}
|
||||
<ToggleButton
|
||||
id={inputId}
|
||||
checked={selectedOption === "true"}
|
||||
disabled={disabled}
|
||||
aria-invalid={Boolean(error)}
|
||||
aria-describedby={describedBy}
|
||||
label={field.label}
|
||||
onChange={(checked) => onChange(field.key, String(checked))}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
if (field.options?.length) {
|
||||
return (
|
||||
<fieldset
|
||||
|
||||
Reference in new issue
Block a user