73 Commits
Author SHA1 Message Date
科林 KELIN 2495e0dbc8 fix: show welcome guide on first visit by deferring auto-select (#24)
* fix: prevent enable toggle from discarding unsaved edits

* fix: show welcome guide on first visit by deferring auto-select
2026-04-13 09:23:01 +08:00
科林 KELIN b32b407b87 feat: persist and display API connection check status (#21)
* feat: persist and display API connection check status

* fix: add missing localStorage helpers and check status persistence
2026-04-13 09:12:30 +08:00
科林 KELIN dbc21e45eb feat: add hint for system provider Base URL field (#22) 2026-04-13 09:09:23 +08:00
科林 KELIN 31d266c2f2 feat: add welcome guide for first-time users (#20) 2026-04-13 09:09:19 +08:00
科林 KELIN 283fdccd13 feat: add auto-fetch models button for provider configuration (#19)
* feat: add auto-fetch models button for provider configuration

* fix: remove duplicate fetchModelsBtn declarations and i18n new count
2026-04-13 08:06:24 +08:00
科林 KELIN b8a4057565 feat: add human-readable hints for API check failures (#17) 2026-04-13 08:03:42 +08:00
科林 KELIN 58f76d8f83 fix: show "NEED KEY" status for providers without API key configured (#18) 2026-04-13 08:03:39 +08:00
科林 KELIN df94330fea fix: correct newline escape in Chinese i18n strings (#16) 2026-04-13 08:03:35 +08:00
科林 KELIN 85aea21048 feat: per-provider SSL verification toggle (#15)
Replace the global SSL-disabled context with a per-provider
skipSSLVerify option. SSL verification is now ON by default,
with Chinese API providers pre-configured to skip verification.

Adds a toggle switch in the Provider Manager UI.
2026-04-13 07:42:49 +08:00
科林 KELIN 5cc27b9c12 fix: mask API keys in provider endpoint responses (#14)
* fix: mask API keys in provider endpoint responses

The GET /llm_toolkit/providers endpoint now returns masked keys
(e.g. "sk-••••••xxxx") instead of full API keys. The POST save
handler preserves existing keys when it receives a masked value,
and the check-connectivity endpoint accepts a providerId to look
up the real key server-side instead of requiring it from the frontend.

* fix: prioritize user-typed key over stored key in check endpoint
2026-04-13 07:41:08 +08:00
科林 KELIN c1e53c0f7d fix: share provider cache across nodes and refresh after Manager save (#12) 2026-04-12 23:26:33 +08:00
科林 KELIN c799416237 fix: prevent enable toggle from silently saving unsaved edits (#8) 2026-04-12 23:25:21 +08:00
科林 KELIN dfc0f9834d fix: prevent stale async render from overwriting current view (#11)
* fix: ensure save button shows "Saved!" feedback to user

* fix: prevent stale async render from overwriting current view
2026-04-12 23:24:55 +08:00
科林 KELIN c8a9fb0e62 fix: correct template literal interpolation in usage stats tooltip (#9) 2026-04-12 23:24:45 +08:00
科林_Cyril Pilgrim 180829eca3 feat(llm-translator): implement dynamic provider/model selection and UI improvements
Motivation:
Users needed a more convenient way to select LLM providers and models directly on the LLM Translator node without mandatory external configuration nodes, and requested clearer guidance on how to use the glossary feature.

Implementation:
- Refactored llm_translator.py to dynamically read from providers.json and support standalone configuration.
- Extended the provider_manager.js frontend extension to support the LLMTranslator node for dynamic dropdown syncing.
- Enhanced widget placeholders with detailed multi-line instructions and examples.
- Updated .gitignore to exclude session-specific documents.
2026-03-08 18:24:40 +08:00
科林_Cyril Pilgrim 11b94718a6 fix(ui): fundamentally fix ESC key listener lifecycle
Motivation:
ESC worked only on first open because the listener was registered inside the first-time DOM creation block. On close(), it was detached. On subsequent show() calls, the modal DOM already existed so the function returned early — the listener was NEVER re-attached.

Implementation:
Extracted listener management into two symmetric private methods: _attachEscListener() and _detachEscListener(). show() now calls _attachEscListener on EVERY open (both first-time and subsequent). _closeModal is stored as an instance method so it can be referenced on re-opens. closeModal() calls _detachEscListener() symmetrically. This pattern is leak-proof and correctly re-attaches on every modal activation.
2026-03-05 12:41:09 +08:00
科林_Cyril Pilgrim 46a3db8053 style(ui): refine toggle switch animation for a silkier feel
Motivation:
User feedback indicated that the strong spring animation felt rigid and 'blocking' during interactions.

Implementation:
Adjusted CSS transition cubic-bezier curves from an aggressive spring (.34,1.56,.64,1) to a smoother, faster ease-out curve (.25,1.1,.5,1). Reduced transition durations to 0.2s-0.28s to make the interaction feel instantaneous and fluid.
2026-03-05 12:27:56 +08:00
科林_Cyril Pilgrim 3e33595aa1 fix(ui): restore ESC key listener lost on UI re-rendering
Motivation:
When the UI completely re-renders (like when switching between English and Chinese), the old DOM gets destroyed but the window event listener was not properly cleared and the new modal failed to reattach the listener effectively, breaking the ESC key to close.

Implementation:
Added cleanup logic before attaching a new 'keydown' listener to the window object to ensure the _escListener stays active.
2026-03-05 12:22:53 +08:00
科林_Cyril Pilgrim 910d2792ce feat(ui): implement smooth Apple-style spring animation for toggle switch
Motivation:
The previous toggle switch animation was abrupt and rigid. The clickable area also spanned the entire row width, which led to unintentional clicks.

Implementation:
- CSS: Replaced static transitions with cubic-bezier spring physics, hardware-accelerated transforms (translate), and pressed-state squish feedback.
- JS: Wrapped the switch in a constrained flex container, replacing the full-width <label> wrapper to fix the clickable area.
2026-03-05 12:06:48 +08:00
科林_Cyril Pilgrim f6d72ef002 feat(ui): refine save button style and add ESC key listener to close manager
Motivation:
The save button's style was originally an overly bright gradient, making it feel out of place compared to the frosted glass aesthetics. Additionally, the user requested the ability to close the modal using the Escape key.

Implementation:
1. Updated '.llm-pm-actions-right button:last-child' CSS to use a restrained translucent background similar to the sidebar items, keeping it cohesive with the glassmorphism design.
2. Added a global 'keydown' listener on 'Escape' inside 'ProviderManager.show()' which correctly triggers 'closeModal()' (also checking for unsaved changes) and automatically removes itself when closed.
2026-03-05 09:34:16 +08:00
科林_Cyril Pilgrim 6f597d75f1 fix(i18n): fix language switcher bug and refine Chinese translations
Motivation:
The language switcher's change event listener was never registered because () does not support an initialization callback as its 4th argument. Additionally, the Chinese translation for 'LLM Manager' was inaccurate (模型管家).

Implementation:
1. Replaced the unsupported  callback with an IIFE to manually create the select element, set its value, and add the 'change' event listener.
2. Updated 'I18N_DICT' to change '模型管家' to 'LLM 管理器' for better accuracy.
2026-03-05 09:24:00 +08:00
科林_Cyril Pilgrim b869fefce2 fix(i18n): bind language change event using addEventListener
Motivation:
修复使用 ComfyUI 的  构建 select 元素时 onchange 属性绑定失效的问题。
2026-03-04 22:35:33 +08:00
科林_Cyril Pilgrim 3c7bea009a feat(i18n): convert language toggle to a dropdown menu 2026-03-04 22:02:15 +08:00
科林_Cyril Pilgrim 1c3f998bc1 style(i18n): replace text toggle with language icon
Motivation:
提升管理界面的视觉精致度,使用图标替代文字切换按钮。
2026-03-04 21:41:03 +08:00
科林_Cyril Pilgrim 1dc6567c46 feat(i18n): translate main menu button and fallback button
Motivation:
使 ComfyUI 顶栏按钮也能随界面语言切换而动态更新。
2026-03-04 19:50:40 +08:00
科林_Cyril Pilgrim 4825bc3c06 feat(i18n): implement language switcher (EN/ZH)
Motivation:
提高中英文用户的使用体验,使界面语言可一键切换。

Implementation:
1. 在 provider_manager.js 中注入 I18N_DICT 词典与 t(key) 翻译函数。
2. 将所有硬编码的 UI 字符串替换为翻译调用。
3. 在管理面板标题旁增加语言切换快按键,状态持久化至 localStorage。
2026-03-04 19:35:24 +08:00
科林_Cyril Pilgrim 7f22ab5b07 style: reduce hover glow intensity on Custom Provider button 2026-03-04 18:17:01 +08:00
科林_Cyril Pilgrim a244b74140 style: align Custom Provider button with glassmorphism active style 2026-03-04 18:15:19 +08:00
科林_Cyril Pilgrim 8d2dbdcb9e style: remove active provider left border 2026-03-04 18:09:02 +08:00
科林_Cyril Pilgrim dc653c0cf2 style: remove SYSTEM tags & redesign active sidebar item 2026-03-04 18:02:20 +08:00
科林_Cyril Pilgrim 0754a7aa85 feat(ui): refine glassmorphism details (inline eye icon, loading animations) 2026-03-04 16:41:10 +08:00
科林_Cyril Pilgrim 0590ed5d17 feat(ui): complete glassmorphism UI redesign - Apple frosted glass aesthetic 2026-03-04 16:08:03 +08:00
科林_Cyril Pilgrim d148633515 fix(ui): fix visibility of 'I' in default provider icon 2026-03-04 15:47:07 +08:00
科林_Cyril Pilgrim 159e5a4acd style(ui): update default provider icon with colorful gradient 2026-03-04 15:41:07 +08:00
科林_Cyril Pilgrim 45304d03a0 feat(ui): add default SVG icon for custom providers 2026-03-04 15:36:59 +08:00
科林_Cyril Pilgrim c64a887021 style(ui): unify font family across LLM Manager UI 2026-03-04 15:31:08 +08:00
科林_Cyril Pilgrim c94a9aa360 refactor(ui): rename panel title to 'LLMs Toolkit Manager' 2026-03-04 15:25:15 +08:00
科林_Cyril Pilgrim 95f4100a31 feat(ui): add iFlow SVG icon 2026-03-04 14:56:30 +08:00
科林_Cyril Pilgrim 4cc17d77e1 feat(ui): add ModelScope SVG icon 2026-03-04 14:49:51 +08:00
科林_Cyril Pilgrim e872ee5120 feat(ui): add icons for StepFun, SenseChat (SenseNova), MiniMax, and Baichuan 2026-03-04 14:46:19 +08:00
科林_Cyril Pilgrim f956459146 feat(ui): add Moonshot SVG icon 2026-03-04 14:43:50 +08:00
科林_Cyril Pilgrim 23864745bf feat(ui): add icons for Doubao, Spark, and GLM; fix syntax error in provider_manager.js 2026-03-04 14:39:04 +08:00
科林_Cyril Pilgrim bd59723eff feat(ui): add DeepSeek SVG icon 2026-03-04 14:27:34 +08:00
科林_Cyril Pilgrim 6a46c3dcc4 feat(ui): add infrastructure for provider specific SVG icons and add Qwen icon 2026-03-04 14:22:39 +08:00
科林_Cyril Pilgrim b7983e344b fix(ui): convert inline CSS text to style objects to avoid CSSStyleDeclaration TypeError 2026-03-03 21:59:01 +08:00
科林_Cyril Pilgrim fda6944164 fix(usage): handle 404 gracefully when route not yet loaded, prompt restart 2026-03-03 20:06:50 +08:00
科林_Cyril Pilgrim db3c46b586 fix(usage): harden usage tracking - gitignore, thread lock, rotation, error logging, summary cards 2026-03-03 19:37:05 +08:00
科林_Cyril Pilgrim a59f774c7d feat(llm): implement usage statistics tracking and dashboard UI 2026-03-03 19:14:18 +08:00
科林_Cyril Pilgrim 36c5f3028c refactor(web): extract 300+ line CSS into dedicated provider_manager.css 2026-03-03 19:06:43 +08:00
科林_Cyril Pilgrim 75de8c4f25 feat(ui): add double-click to edit model tags
Motivation:
Users found it cumbersome to delete and re-type a model name if they made a typo.

Implementation:
Added ondblclick listener and pointer cursor to model tags. Reuses the new custom showPrompt dialog for editing.
2026-03-03 18:32:17 +08:00