diff --git a/ui/web/src/i18n/locales/en/channels.json b/ui/web/src/i18n/locales/en/channels.json index b91e7d6b..15c81e70 100644 --- a/ui/web/src/i18n/locales/en/channels.json +++ b/ui/web/src/i18n/locales/en/channels.json @@ -169,7 +169,7 @@ "requireMention": "Require @mention", "enabled": "Enabled", "allowedUsers": "Allowed Users", - "allowedUsersPlaceholder": "One user ID per line", + "allowedUsersPlaceholder": "One user ID per line or comma-separated", "skillsFilter": "Skills Filter", "skillsPlaceholder": "One skill name per line (empty = inherit)", "toolAllow": "Tool Allow", diff --git a/ui/web/src/pages/channels/channel-fields.tsx b/ui/web/src/pages/channels/channel-fields.tsx index d664ef82..95ec32dd 100644 --- a/ui/web/src/pages/channels/channel-fields.tsx +++ b/ui/web/src/pages/channels/channel-fields.tsx @@ -132,7 +132,7 @@ function FieldRenderer({ id={id} value={Array.isArray(value) ? (value as string[]).join("\n") : ""} onChange={(e) => { - const lines = e.target.value.split("\n").map((l) => l.trim()).filter(Boolean); + const lines = e.target.value.split(/[\n,]/).map((l) => l.trim()).filter(Boolean); onChange(lines.length > 0 ? lines : undefined); }} placeholder={t("groupOverrides.fields.allowedUsersPlaceholder")} diff --git a/ui/web/src/pages/channels/channel-schemas.ts b/ui/web/src/pages/channels/channel-schemas.ts index 4d62914c..5c065d69 100644 --- a/ui/web/src/pages/channels/channel-schemas.ts +++ b/ui/web/src/pages/channels/channel-schemas.ts @@ -78,7 +78,7 @@ export const configSchema: Record = { { key: "reaction_level", label: "Reaction Level", type: "select", options: [{ value: "off", label: "Off" }, { value: "minimal", label: "Minimal" }, { value: "full", label: "Full" }], defaultValue: "full" }, { key: "media_max_bytes", label: "Max Media Size (bytes)", type: "number", defaultValue: 20971520, help: "Default: 20MB" }, { key: "link_preview", label: "Link Preview", type: "boolean", defaultValue: true }, - { key: "allow_from", label: "Allowed Users", type: "tags", help: "User IDs or @usernames, one per line" }, + { key: "allow_from", label: "Allowed Users", type: "tags", help: "User IDs or @usernames, one per line or comma-separated" }, { key: "block_reply", label: "Block Reply", type: "select", options: blockReplyOptions, defaultValue: "inherit", help: "Deliver intermediate text during tool iterations" }, ], discord: [