Agent Zero AI framework
Align WhatsApp configuration with shared integration settings
Alessandro270b089bc386
diff --git a/plugins/_whatsapp_integration/AGENTS.md b/plugins/_whatsapp_integration/AGENTS.mdindex 79ed54f1d..50e819bb8 100644--- a/plugins/_whatsapp_integration/AGENTS.md+++ b/plugins/_whatsapp_integration/AGENTS.md@@ -19,6 +19,7 @@- Enforce sender and group authorization in the bridge before downloading media, and contain every media write beneath the configured cache directory.- Keep Python dispatch checks and number normalization; propagate normalized authorization settings through all bridge startup paths and restart on policy changes.- Do not leave unmanaged bridge services outside plugin-owned runtime paths.+- Use the shared project/profile scope selector and Advanced accordion. Configuration is the sole plugin UI; keep pairing and connection controls there.## Work Guidancediff --git a/plugins/_whatsapp_integration/plugin.yaml b/plugins/_whatsapp_integration/plugin.yamlindex 86f0af4f4..d15ff1d8f 100644--- a/plugins/_whatsapp_integration/plugin.yaml+++ b/plugins/_whatsapp_integration/plugin.yaml@@ -4,5 +4,5 @@ description: Communicate with Agent Zero via WhatsApp. Uses Baileys bridge for mversion: 1.0.0settings_sections:- external-per_project_config: false-per_agent_config: false+per_project_config: true+per_agent_config: truediff --git a/plugins/_whatsapp_integration/webui/config.html b/plugins/_whatsapp_integration/webui/config.htmlindex f4033e1cf..91fca4c6c 100644--- a/plugins/_whatsapp_integration/webui/config.html+++ b/plugins/_whatsapp_integration/webui/config.html@@ -230,14 +230,15 @@</template><template x-if="$store.whatsappConfig.currentStep > 0">- <details class="wa-advanced">- <summary>+ <div class="settings-advanced-section" x-data="{ advOpen: false }">+ <button type="button" class="settings-advanced-toggle"+ :aria-expanded="advOpen" @click="advOpen = !advOpen">+ <x-icon class="settings-advanced-toggle-icon"+ :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon><span>Advanced</span>- <x-icon class="wa-advanced-chevron"- aria-hidden="true" name="keyboard_arrow_down"></x-icon>- </summary>- <div class="wa-advanced-body">- <div class="wa-info-box">+ </button>+ <div class="settings-advanced-body" x-show="advOpen" x-transition.opacity style="display: none;">+ <div class="field-description">These settings are here when you need them, but the defaults are fine for mostsetups.</div>@@ -266,7 +267,7 @@</div></div>- </details>+ </div></template></div></div>@@ -285,19 +286,6 @@border-radius: 0.5rem;}- .wa-advanced summary {- cursor: pointer;- list-style: none;- font-weight: 700;- display: flex;- align-items: center;- gap: 0.75rem;- }-- .wa-advanced summary::-webkit-details-marker {- display: none;- }-.wa-summary-title,.wa-step-title,.wa-test-title {@@ -360,7 +348,6 @@gap: 0.2rem;}- .wa-info-box,.wa-note {margin-bottom: 0.9rem;padding: 0.8rem 0.9rem;@@ -368,10 +355,6 @@font-size: var(--font-size-small);}- .wa-info-box {- background: color-mix(in srgb, #3b82f6 12%, var(--color-background) 88%);- }-.wa-note {background: color-mix(in srgb, var(--color-background) 88%, white 12%);}@@ -464,37 +447,6 @@background: white;}- .wa-advanced {- margin-top: 1rem;- border: 1px solid color-mix(in srgb, var(--color-border) 88%, white 12%);- border-radius: 14px;- overflow: hidden;- }-- .wa-advanced summary {- padding: 0.9rem 1rem;- background: color-mix(in srgb, var(--color-background) 88%, white 12%);- }-- .wa-advanced-chevron {- margin-left: auto;- flex: 0 0 auto;- transition: transform 0.18s ease, opacity 0.18s ease;- opacity: 0.72;- }-- .wa-advanced[open] .wa-advanced-chevron {- transform: rotate(180deg);- opacity: 1;- }-- .wa-advanced-body {- padding: 1rem;- display: flex;- flex-direction: column;- gap: 0.2rem;- }-.wa-test-panel {margin-top: 1rem;padding: var(--spacing-xs) 0;