Patch smome doc issues and do minor bug mop up (outgoing bot message flaggin, unprotected bot endpoint, contact filtering on scope selection, don't drop disabled but configured community endpoints

This commit is contained in:
Jack Kingsman
2026-03-05 21:56:10 -08:00
parent adfb4addb7
commit 7534f0cc54
8 changed files with 82 additions and 18 deletions
@@ -477,8 +477,8 @@ function ScopeSelector({
onChange({ ...scope, messages: buildMessages(selectedChannels, current) });
};
// Non-repeater contacts only (type 0)
const filteredContacts = contacts.filter((c) => c.type === 0);
// Exclude repeaters (2), rooms (3), and sensors (4)
const filteredContacts = contacts.filter((c) => c.type === 0 || c.type === 1);
const modeDescriptions: Record<ScopeMode, string> = {
all: 'All messages',
@@ -1045,6 +1045,13 @@ export function SettingsFanoutSection({
Integrations are an experimental feature in open beta.
</div>
{health?.bots_disabled && (
<div className="rounded-md border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive">
Bot system is disabled by server configuration (MESHCORE_DISABLE_BOTS). Bot integrations
cannot be created or modified.
</div>
)}
<div className="flex flex-wrap items-center gap-2">
<span className="text-sm text-muted-foreground">Add:</span>
{TYPE_OPTIONS.filter((opt) => opt.value !== 'bot' || !health?.bots_disabled).map((opt) => (