Skip to content

[ISSUE #15435] Improve next console AI resource version diff#15436

Merged
KomachiSion merged 8 commits into
alibaba:developfrom
saynoword:feat/skill-version-diff
Jun 29, 2026
Merged

[ISSUE #15435] Improve next console AI resource version diff#15436
KomachiSion merged 8 commits into
alibaba:developfrom
saynoword:feat/skill-version-diff

Conversation

@saynoword

Copy link
Copy Markdown
Contributor

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

Fixes #15435

What is the purpose of the change

Improve the next console AI resource detail experience by adding version diff support for Skill and Prompt resources, and by refining resource file editing actions so version review and draft editing are easier to use from the UI.

Brief changelog

  • Add Skill version diff support for added, removed, and modified files.
  • Add Prompt version diff support for template content.
  • Refine Skill resource editing with a file header action area and clearer text/non-preview file handling.
  • Align AgentSpec resource editing actions with the Skill resource editing experience.
  • Normalize Skill markdown preview for prompt-style heading separators.
  • Sync generated next console static assets.

Verifying this change

  • node -e "JSON.parse(require('fs').readFileSync('console-ui-next/src/locales/zh-CN.json','utf8')); JSON.parse(require('fs').readFileSync('console-ui-next/src/locales/en-US.json','utf8')); console.log('locales ok')"
  • git diff --check
  • Not run: frontend build in this iteration; static assets were committed from the existing generated output.

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 spotbugs:check -DskipTests to make sure basic checks pass. Run mvn clean install to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.

@github-actions

Copy link
Copy Markdown

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格式)。

@saynoword
saynoword force-pushed the feat/skill-version-diff branch from 91c726b to 348c44f Compare June 26, 2026 02:31
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

# Conflicts:
#	console/src/main/resources/static/next/css/main3.css
#	console/src/main/resources/static/next/js/FileTreePanel.js
#	console/src/main/resources/static/next/js/index28.js
#	console/src/main/resources/static/next/js/index29.js
#	console/src/main/resources/static/next/js/index32.js
#	console/src/main/resources/static/next/js/index33.js
#	console/src/main/resources/static/next/js/index34.js
#	console/src/main/resources/static/next/js/index35.js
#	console/src/main/resources/static/next/js/main.js
#	console/src/main/resources/static/next/js/skill-store.js
#	console/src/main/resources/static/next/js/vendor-icons.js
@saynoword
saynoword force-pushed the feat/skill-version-diff branch from 798abd2 to f5877d9 Compare June 26, 2026 07:15
@KomachiSion KomachiSion added this to the 3.2.3 milestone Jun 29, 2026
@KomachiSion
KomachiSion merged commit 5db14e3 into alibaba:develop Jun 29, 2026
6 checks passed
KomachiSion pushed a commit that referenced this pull request Jun 29, 2026
* Refine skill diff and resource editing

* Add prompt version diff

* Sync next console static assets

# Conflicts:
#	console/src/main/resources/static/next/css/main3.css
#	console/src/main/resources/static/next/js/FileTreePanel.js
#	console/src/main/resources/static/next/js/index28.js
#	console/src/main/resources/static/next/js/index29.js
#	console/src/main/resources/static/next/js/index32.js
#	console/src/main/resources/static/next/js/index33.js
#	console/src/main/resources/static/next/js/index34.js
#	console/src/main/resources/static/next/js/index35.js
#	console/src/main/resources/static/next/js/main.js
#	console/src/main/resources/static/next/js/skill-store.js
#	console/src/main/resources/static/next/js/vendor-icons.js

* Handle non-text skill version diffs

* Refine AI resource diff interactions

* Fix AI resource file tree rename prop

* Sync next console static assets

* Sync next console static assets

(cherry picked from commit 5db14e3)
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.

Improve next console AI resource version diff

3 participants