[go: up one dir, main page]

Skip to content

Update labels for integration secret fields when reentering them is required

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Background

Follow-up from !65569 (merged):

When users change "exposing" fields like URLs, any "secret" fields need to be reentered to confirm the change. Right now the user only gets feedback after submitting the form, and the error message is confusing:

image

(in the backend we clear the "secret" fields before the update, which is how we end up with this validation error)

Proposal

Update the field labels and help text when reentering passwords is required:

State Current Proposed
No password set image No changes
Password set, no change needed image No changes
Password set, change needed image Change label, help text, and highlight the field in red: image
Re-enter your password to confirm the changes.

This needs to be done across all integrations for every field with type: 'password'.

The backend needs to provide the metadata for the dependant fields (which will be implemented in #344099 (closed)), and also the alternative labels and help texts (which can be implemented with this issue).

Availability & Testing

Suggestions:

  • Vue component tests can help lock down the correct UI state given backend metadata and user action.
  • Feature specs for the scenario of triggering a password confirmation validation seem to be appropriate here.
Edited by 🤖 GitLab Bot 🤖