Add missing labels for token fields of Github and ZenTao integrations
What does this MR do and why?
This MR adds titles and labels to the token fields of Github and ZenTao integrations, which display when viewing the form of the integrations once they have been saved.
The labels tell the user that they can leave the field blank to continue using the current token.
This is similar to other integrations that have a type: 'password'
field, like BambooHR, Jira, and Jenkins. The existing frontend integration form will display these labels when they're supplied by the backend.
Screenshots or screen recordings
How to set up and validate locally
To QA the GitHub integration:
- Visit the GitHub integration form for a project
http://127.0.0.1:3000/<project full path>/-/services/github/edit
. - Enter
mytoken
for the token, andhttps://github.com/example
for the repository URL. - Save the integration
- View the integration form again. The token field will have the placeholder text and you should see a label below the token field: "Leave blank to use your current token"
To QA the Zentao integration:
- Enable the
zentao_issues_integration
feature flag. - Visit the Zentao integration form for a project
http://127.0.0.1:3000/<project full path>/-/services/zentao/edit
. - For "web URL", enter
https://www.zentao.net
, entermytoken
for the token, andproduct
for the Product ID. - Save the integration
- View the integration form again. The token field will have the placeholder text and you should see a label below the token field: "Leave blank to use your current token"
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Markus Koller