From b5aaba447b81fc92d3fd7f158ab5761b2f29c605 Mon Sep 17 00:00:00 2001 From: Bryan Nie Date: Sat, 4 Apr 2026 21:33:11 +0800 Subject: [PATCH] fix(authFiles): address PR review comments for custom headers - Add missing translation keys for headers hint - Use dynamic translation key for headers textarea placeholder - Add validation and error throwing for invalid JSON headers - Prevent saving if headers JSON is invalid --- .../AuthFilesPrefixProxyEditorModal.tsx | 2 +- .../hooks/useAuthFilesPrefixProxyEditor.ts | 29 +++++++++++++++---- src/i18n/locales/en.json | 1 + src/i18n/locales/zh-CN.json | 1 + 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx b/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx index 1cdf7fc..8e811c9 100644 --- a/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx +++ b/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx @@ -143,7 +143,7 @@ export function AuthFilesPrefixProxyEditorModal(props: AuthFilesPrefixProxyEdito