From 4f42740df4cae03d8ab48040401dcff2ecded795 Mon Sep 17 00:00:00 2001 From: Willie Date: Thu, 19 Mar 2026 23:13:42 +0800 Subject: [PATCH] fix(ui): convert (?i) inline flag to JS /i instead of Go-specific error (?i) is the most common Go regex flag and can be safely converted to JS RegExp's 'i' flag. Only flag (?im), (?ims), or \x{} are now marked as Go-specific. Multi-flag combos and non-i flags still show the Go-specific warning. --- .../components/audit/AuditAssistantPanel.tsx | 95 +++++++-------- ui/src/components/config/AssistantPanel.tsx | 66 +++++------ ui/src/components/config/StructureTree.tsx | 45 +++++-- ui/src/hooks/useRegexTester.ts | 38 +++++- ui/src/index.css | 110 +++++++++++++++++- 5 files changed, 245 insertions(+), 109 deletions(-) diff --git a/ui/src/components/audit/AuditAssistantPanel.tsx b/ui/src/components/audit/AuditAssistantPanel.tsx index 78b9bc5c1..ca78e9927 100644 --- a/ui/src/components/audit/AuditAssistantPanel.tsx +++ b/ui/src/components/audit/AuditAssistantPanel.tsx @@ -110,7 +110,6 @@ export default function AuditAssistantPanel({ onErrorsClick={handleErrorsClick} mode="audit" /> -
Structured view panel — coming in Phase 2
); @@ -187,63 +186,55 @@ export default function AuditAssistantPanel({ mode="audit" /> - {/* Separator */} -
- {/* Context area */} -
{renderContextArea()}
+
{renderContextArea()}
{/* Bottom bar */} -
- {/* Structure button */} - +
+
+ + + +
- {/* Diff button */} - - - {/* Test button */} - - - {/* Spacer */} - {/* Auto unlock button — shown when locked */} {lockedView !== 'auto' && ( +
+
+ + +
- {/* Diff button */} - - - {/* Spacer */} - {/* Auto button — shown when locked */} {lockedView !== 'auto' && (