From b2912da4dcad7bf7f11000a5ba0bc267fd5956cc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Mar 2026 14:38:46 +0000 Subject: [PATCH] fix(ui): styled toggle switches and Dropbox global-credentials field visibility in admin connections Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> Agent-Logs-Url: https://github.com/christianlouis/DocuElevate/sessions/a9796f5c-5899-4a1d-bf50-0b0148938162 --- frontend/templates/admin_connections.html | 66 ++++++++++++++++++++--- 1 file changed, 59 insertions(+), 7 deletions(-) diff --git a/frontend/templates/admin_connections.html b/frontend/templates/admin_connections.html index c3e7af78..9472f5c6 100644 --- a/frontend/templates/admin_connections.html +++ b/frontend/templates/admin_connections.html @@ -174,12 +174,22 @@ function openServiceModal(serviceKey) { fields.forEach(function(field) { const meta = field.metadata || {}; const div = document.createElement('div'); + div.setAttribute('data-field-key', field.key); - const label = document.createElement('label'); - label.setAttribute('for', 'field-' + field.key); - label.className = 'block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1'; - label.textContent = field.key.replace(/_/g, ' ').replace(/\b\w/g, function(c) { return c.toUpperCase(); }); - div.appendChild(label); + if (meta.type === 'boolean') { + // For boolean fields use a plain paragraph for the title so the toggle's + // own