-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Add convenience methods for Tips control with clickable links in ContentValue #3722
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
Open
Conversation
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
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
@Copilot
Copilot
AI
changed the title
(削除) [WIP] ContentValue类支持说明文字控件Tips控件 (削除ここまで)
(追記) Add convenience methods for Tips control with clickable links in ContentValue (追記ここまで)
Sep 24, 2025
Copilot finished work on behalf of
binarywang
September 24, 2025 15:33
这个和issue反馈的问题对不上,issue反馈link没生效,但是【调用发起审批流】是不能设置tips的link的,怀疑是提问者没搞清楚。
8d3b65bba00b23449e322cd311c3c27a
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.
Uh oh!
There was an error while loading. Please reload this page.
Problem
Users reported that Tips controls in WeChat Work approval flows could not render URLs as clickable links ("Tips控件无法将url渲染为可点击的链接"). While the underlying
ContentValue.NewTips
structure supported the necessary JSON format for clickable links, creating Tips with mixed text and link content required verbose nested object creation, making it difficult for developers to implement properly.Solution
This PR adds three static factory methods to
ContentValue.NewTips
to simplify creation of Tips controls with clickable links:New Methods
Generated JSON Structure
The methods generate the correct WeChat Work API JSON format with proper type differentiation:
Key Features
type: 1
(plain text) vstype: 2
(clickable links)Example Usage
Before (verbose manual creation):
After (simple and intuitive):
Files Changed
This enhancement makes it significantly easier for developers to create Tips controls with clickable links that render properly in WeChat Work approval flows.
Fixes #3418
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.