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

Webhook UI Shows Green Instead of Red #347

Open
5 tasks done
dhia-gharsallaoui opened this issue Aug 20, 2024 · 0 comments
Open
5 tasks done

Webhook UI Shows Green Instead of Red #347

dhia-gharsallaoui opened this issue Aug 20, 2024 · 0 comments
Labels
feat New feature or request.

Comments

@dhia-gharsallaoui
Copy link

dhia-gharsallaoui commented Aug 20, 2024

Preflight checklist

Ory Network Project

No response

Describe your problem

Hello,

I am developing a blocking webhook to prevent users from changing their usernames. The webhook is functioning correctly, but there's an issue with the UI. Instead of showing the error state in red, it's displaying as green.

Below is the webhook response payload and a screenshot:

{
  "messages": [
    {
      "instance_ptr": "#/traits/username",
      "messages": [
        {
          "id": 1337,
          "text": "This field is read-only.",
          "type": "conflict"
        }
      ]
    }
  ]
}

image

Thank you !

Describe your ideal solution

The ideal solution would be for the UI to display the blocking webhook response in red, indicating an error or conflict. This would provide a clear visual cue to users that they cannot change their username, aligning with standard UX practices where red typically signifies an error or warning.

Workarounds or alternatives

An alternative could be to keep the UI display as green, indicating success, despite the conflict message. However, this approach is not ideal from a user experience perspective, as it could mislead users into thinking that their action was successful, which could lead to confusion.

Version

0.15.0

Additional Context

Kratos version: v1.2.0

@dhia-gharsallaoui dhia-gharsallaoui added the feat New feature or request. label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant