Fix features: Save project name on blur/Enter in top navbar 修复顶部导航栏内联重命名问题#33
Open
harryhmx wants to merge 1 commit into
Open
Fix features: Save project name on blur/Enter in top navbar 修复顶部导航栏内联重命名问题#33harryhmx wants to merge 1 commit into
harryhmx wants to merge 1 commit into
Conversation
The top-navbar project-name input only reset to the original value on blur — it never called API.patchProject. The sidebar three-dot Rename worked because it uses prompt() + API.patchProject. Changes: - Enter key: blur → save - Escape key: reset to original name and blur (cancel edit) - blur: save via API.patchProject, sync state.projects so the sidebar refreshes immediately without a manual reload - .npmrc: add onnxruntime-node-install=skip to skip CUDA GPU binary download from NuGet CDN (unnecessary for CPU-only users, and the CDN is often unreachable from certain network environments) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The top-navbar project-name input only reset to the original value on blur — it never called API.patchProject. The sidebar three-dot Rename worked because it uses prompt() + API.patchProject.
Changes:
Additional Change:
注意顶部导航栏的项目名称输入框,当我尝试 Rename 并确认后,本来修改的项目名又重置为原始值——因为它从未调用过 API.patchProject。侧边栏的三个点“重命名”功能之所以有效,是因为它使用了 prompt() + API.patchProject。
更改:
附加修改: