Skip to content
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

Conditional Display of Helper Text for AI Provider Account Creation #715

Closed
1 task done
ankitguptaindia opened this issue Feb 13, 2024 · 2 comments · Fixed by #770
Closed
1 task done

Conditional Display of Helper Text for AI Provider Account Creation #715

ankitguptaindia opened this issue Feb 13, 2024 · 2 comments · Fixed by #770
Assignees
Labels
help wanted Extra attention is needed type:bug Something isn't working. type:good-first-issue Good for newcomers.
Milestone

Comments

@ankitguptaindia
Copy link
Member

Describe the bug

Description:
The helper text, such as 'Don't have an IBM Cloud account yet? Register for one and set up a Natural Language Understanding Resource to get your API key.', should be displayed conditionally. It should only appear when the credentials fields are empty or contain incorrect credentials.

Use Case:
When the service is successfully configured, it implies that the admin already has an account, allowing them to set up the service correctly. Therefore, if the admin has already configured an account, this helper text is not useful on the screen.

Steps to Reproduce

Steps:

  1. Begin setting up the plugin.
  2. Enter the correct credentials for the AI provider.
  3. Save the settings.

Branch- develop

Screenshots, screen recording, code snippet

When fields are empty - this text will help the user to create an account and setup a plugin.

image

When Setting is configured successfully, this can be hidden:

image

Example -

image

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ankitguptaindia ankitguptaindia added the type:bug Something isn't working. label Feb 13, 2024
@jeffpaul jeffpaul added this to the 3.1.0 milestone Feb 13, 2024
@jeffpaul jeffpaul added help wanted Extra attention is needed type:good-first-issue Good for newcomers. labels Feb 13, 2024
@kmgalanakis kmgalanakis self-assigned this May 17, 2024
@kmgalanakis
Copy link
Contributor

Hello @ankitguptaindia (cc @jeffpaul). I'm assuming that we need the helper texts to be removed from all the services when they are properly configured, right?

@ankitguptaindia
Copy link
Member Author

@kmgalanakis Yes, that's correct. When a service is properly configured, it signifies that the user has successfully set up. To enhance user experience and streamline interface clarity, we can implement a conditional approach to display helper texts only when a service is not yet configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed type:bug Something isn't working. type:good-first-issue Good for newcomers.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants