From e484e74803e274f4681b3fc23385584caef8967f Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Date: Thu, 24 Jul 2025 18:53:28 -0300 Subject: [PATCH] fix: refactor auth modal design for mcp composer (#9180) * added biome config * added classes on footer * added new auth size * changed auth modal design * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .cursor/settings.json | 3 + src/frontend/src/modals/authModal/index.tsx | 199 ++++++++++-------- .../baseModal/helpers/switch-case-size.ts | 5 + src/frontend/src/modals/baseModal/index.tsx | 13 +- 4 files changed, 123 insertions(+), 97 deletions(-) create mode 100644 .cursor/settings.json diff --git a/.cursor/settings.json b/.cursor/settings.json new file mode 100644 index 000000000..ab4c98c2a --- /dev/null +++ b/.cursor/settings.json @@ -0,0 +1,3 @@ +{ + "biome.configurationPath": "src/frontend/biome.json" +} \ No newline at end of file diff --git a/src/frontend/src/modals/authModal/index.tsx b/src/frontend/src/modals/authModal/index.tsx index 45ce08a46..4b894d5dc 100644 --- a/src/frontend/src/modals/authModal/index.tsx +++ b/src/frontend/src/modals/authModal/index.tsx @@ -121,14 +121,26 @@ const AuthModal = ({ open, setOpen, authSettings, onSave }: AuthModalProps) => { }; return ( - - -
Authentication
-
- -
+ + +
+ + Configure MCP Server Authentication +
+
{/* Left column - Radio buttons */} -
+
+ + Auth type + {AUTH_METHODS_ARRAY.map((option) => (
@@ -153,11 +165,12 @@ const AuthModal = ({ open, setOpen, authSettings, onSave }: AuthModalProps) => { ))}
- {authType !== "none" && } - +
+ {authType !== "none" && } +
{/* Right column - Input fields */} {authType !== "none" && ( -
+
{authType === "apikey" && (