feat: strengthen environment tag color display (dms-ui)#841
Merged
Conversation
Coverage report
Test suite run success3743 tests passing in 816 suites. Report generated by 🧪jest coverage report action from 6069324 |
Expose environment_tag on tips API without frontend merge, unify tag rendering, expand preset colors, and improve EditableSelect color layout. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Refresh snapshots for CustomSelect and environment tag UI changes, and mock user tip list in PushRuleConfiguration to avoid flaky loading state. Co-authored-by: Cursor <cursoragent@cursor.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.
关联的 issue
https://github.com/actiontech/sqle-ee/issues/2983
描述你的变更
实现环境标签带色展示的前端能力:管理员赋色、SQLE/DMS 选源与列表/筛选统一展示带色标签,降低误选生产库风险。
主要改动
共用组件
EnvironmentTag组件(带色背景+边框,去掉左侧圆点)EditableSelect:环境标签编辑支持预设色(10 色)、自定义选色、实时预览、保存后提交CustomSelect/BasicSelect:ReactNode 标签不重复 icon、下拉宽度自适应避免截断环境标签管理
EnvironmentField:预设色板、四行编辑布局(名称/颜色/预设/预览)、移除前端 V2 二次合并SQLE 选源(useInstance)
DMS 选源(useDbService)
environment_tag,不再额外请求 V2 合并列表与筛选
兼容性
依赖关系
environment_tag)和 sqle(tip 返回environment_tag_color)MR 合并后联调验收确认项(pr提交后操作)
Tip
请在指定复审人之前,确认并完成以下事项,完成后✅
not_compatibleneed_update_doc