8000 Fix credentials by luoxiner · Pull Request #13303 · alibaba/nacos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix credentials #13303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 25, 2025
Merged

Fix credentials #13303

merged 4 commits into from
Apr 25, 2025

Conversation

luoxiner
Copy link
Contributor

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

Fix credential and argument display

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.

Copy link

Thanks for your this PR. 🙏
Please check again for your PR changes whether contains any usage/api/configuration change such as Add new API , Add new configuration, Change default value of configuration.
If so, please add or update documents(markdown type) in docs/next/ for repository nacos-group/nacos-group.github.io


感谢您提交的PR。 🙏
请再次查看您的PR内容,确认是否包含任何使用方式/API/配置参数的变更,如:新增API新增配置参数修改默认配置等操作。
如果是,请确保在提交之前,在仓库nacos-group/nacos-group.github.io中的docs/next/目录下添加或更新文档(markdown格式)。

Copy link
lingma-agents bot commented Apr 24, 2025

增强凭证管理界面与表单验证功能

变更文件

文件路径 变更说明
console-ui/src/locales/zh-CN.js 新增`templateShouldBeJson`等12条国际化文案,修改Credential相关提示文本为`Credential(密钥)`完整表述,补充删除确认对话框和字段验证提示的中文描述
console-ui/​src/​pages/​AI/​CredentialManagement/​CredentialManagement.js 新增凭证ID命名规则校验,修改表单字段标题为`Credential Id`,设置命名空间参数初始化逻辑
console-ui/​src/​pages/​AI/​McpDetail/​CreateTools/​index.js 新增`validateTemplateJsonFormat`方法验证JSON格式,修改模板值解析为JSON对象,增强参数描述字段显示控制
console-ui/​src/​pages/​AI/​McpDetail/​McpDetail.js 新增Local Server Config的JSON格式展示,将凭证列表标题改为`Credentials(密钥)`,调整表格列标题为`Credential Id`
console-ui/​src/​pages/​AI/​NewCredential/​NewCredential.js 设置凭证内容初始值示例,修改名称验证正则为仅允许字母数字下划线,增强非法字符校验提示

时序图

sequenceDiagram
    participant User as 用户界面
    participant Form as 表单验证组件
    participant Locale as 国际化服务
    User->>Form: 输入凭证模板内容
    Form->>Form: 执行validateTemplateJsonFormat()
    Form->>Locale: 获取templateShouldBeJson提示文本
    Form-->>User: 显示JSON格式错误提示
    User->>Form: 提交凭证创建表单
    Form->>Form: 验证凭证名称格式
    Form->>Locale: 获取doNotEnter非法字符提示
    Form-->>User: 显示名称格式错误提示
    User->>UI: 查看凭证列表
    UI->>Locale: 获取credentialManagement8标题文本
    UI-->>User: 展示更新后的凭证管理界面
Loading

💡 小贴士

与 lingma-agents 交流的方式

📜 直接回复评论
直接回复本条评论,lingma-agents 将自动处理您的请求。例如:

  • 在当前代码中添加详细的注释说明。

  • 请详细介绍一下你说的 LRU 改造方案,并使用伪代码加以说明。

📜 在代码行处标记
在文件的特定位置创建评论并 @lingma-agents。例如:

  • @Lingma-Agent 分析这个方法的性能瓶颈并提供优化建议。

  • @Lingma-Agent 对这个方法生成优化代码。

📜 在讨论中提问
在任何讨论中 @lingma-agents 来获取帮助。例如:

  • @Lingma-Agent 请总结上述讨论并提出解决方案。

  • @Lingma-Agent 请根据讨论内容生成优化代码。

@KomachiSion KomachiSion merged commit 5075656 into alibaba:v3.0-develop Apr 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0