feat(ui): enhance model select modal UX and modal traffic lights (#1111)
* feat(model-select-modal): highlight added models and support bulk selection - Add addedModelValues prop to highlight already-added models with primary color - Sort models alphabetically per provider, with added models floated to top - Replace green highlight with primary brand color (orange #E56A4A) - Use check icon (10px) inline with model name instead of check_circle - Replace Done button with info bar explaining click-to-toggle behavior - Add ProviderIcon to provider group headers replacing colored dot - Import ProviderIcon, remove unused Button import * feat(cli-tools): wire addedModelValues, onDeselect, and auto-save to model select modals - Pass selectedModels as addedModelValues to ModelSelectModal in OpenCode and Copilot cards - Add onDeselect handler to remove model from list on second click - Set closeOnSelect=false to allow bulk model selection - Remove manual setModalOpen(false) from onSelect callbacks - Add saveModels() silent auto-save triggered on modal close (OpenCodeToolCard) - Use useRef to track latest selectedModels in closure-safe way * feat(modal): functional traffic light close button with hover icon and tooltip - Make red dot a clickable button that closes the modal - Show ✕ icon inside red dot on hover via group-hover opacity transition - Gray out yellow and green dots (cursor-not-allowed, no tooltip) - Increase dot size from w-3 h-3 to w-4 h-4 - Add Tooltip with brand-matched color #FF5F56 on red dot - Remove X close button from modal header * feat(tooltip): add color prop for themed tooltip backgrounds * feat(i18n): add translations for model select info bar and close tooltip - Add 'Click to add, click again to remove. Changes are saved automatically.' to all 32 locales - Add 'Close' translation to all 32 locales * fix(ui): address code review feedback on modal UX and auto-save - Modal: remove showCloseButton prop, use showTrafficLights for header condition, hide traffic lights on mobile (hidden md:flex), add mobile X button (md:hidden) with aria-label, add aria-label and title on traffic light close button - OpenCodeToolCard: validate activeModel membership before saving — fallback to models[0] or empty string; clear/reassign activeModel on deselect when removed model was the active one - CopilotToolCard: add useRef + selectedModelsRef, add saveModels() using /api/cli-tools/copilot-settings, wire auto-save on modal close - ModelSelectModal: fix JSX formatting — separate info bar closing div from Search comment onto its own line
This commit is contained in:
committed by
GitHub
parent
4098f91ac5
commit
1fd3132647
@@ -12,7 +12,7 @@
|
||||
"Logout": "로그아웃",
|
||||
"Login": "로그인",
|
||||
"Providers": "제공자",
|
||||
"Usage": "사용 현황",
|
||||
"Usage": "통계",
|
||||
"API Key": "API 키",
|
||||
"Connected": "연결됨",
|
||||
"Disconnected": "연결 해제됨",
|
||||
@@ -91,9 +91,7 @@
|
||||
"Dark": "어두움",
|
||||
"Auto": "자동",
|
||||
"Endpoint": "엔드포인트",
|
||||
"Providers": "제공자",
|
||||
"Combos": "조합",
|
||||
"Usage": "통계",
|
||||
"Quota Tracker": "할당량 추적",
|
||||
"MITM": "MITM",
|
||||
"CLI Tools": "CLI 도구",
|
||||
@@ -150,7 +148,6 @@
|
||||
"No Proxy": "프록시 없음",
|
||||
"Comma-separated hostnames/domains to bypass the proxy.": "프록시를 우회하기 위한 쉼표로 구분된 호스트명/도메인입니다.",
|
||||
"Test proxy URL": "프록시 URL 테스트",
|
||||
"Apply": "적용",
|
||||
"Proxy settings applied": "프록시 설정이 적용되었습니다",
|
||||
"Proxy enabled": "프록시 활성화됨",
|
||||
"Proxy disabled": "프록시 비활성화됨",
|
||||
@@ -178,7 +175,6 @@
|
||||
"Use Antigravity IDE & GitHub Copilot → with ANY provider/model from 9Router": "Antigravity IDE 및 GitHub Copilot 사용 → 9Router의 모든 제공자/모델과 함께",
|
||||
"How it works:": "작동 방식:",
|
||||
"Antigravity/Copilot IDE request → DNS redirect to localhost:443 → MITM proxy intercepts → 9Router → response to Antigravity/Copilot": "Antigravity/Copilot IDE 요청 → localhost:443로 DNS 리디렉션 → MITM 프록시가 가로챔 → 9Router → Antigravity/Copilot으로 응답",
|
||||
"API Key": "API 키",
|
||||
"No API keys — create one in Keys page": "API 키 없음 — 키 페이지에서 만들기",
|
||||
"sk_9router (default)": "sk_9router (기본값)",
|
||||
"Server started": "서버 시작됨",
|
||||
@@ -192,5 +188,5 @@
|
||||
"Sudo Password Required": "Sudo 암호 필요",
|
||||
"Enter your sudo password to start/stop MITM server": "MITM 서버를 시작/중지하려면 sudo 암호를 입력하세요",
|
||||
"Sudo Password": "Sudo 암호",
|
||||
"Confirm": "확인"
|
||||
"Click to add, click again to remove. Changes are saved automatically.": "클릭하여 추가, 다시 클릭하여 제거. 변경 사항은 자동으로 저장됩니다."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user