Skip to content

Conversation

@bryszard
Copy link
Contributor

@bryszard bryszard commented Jan 5, 2024

Solves issue - #805

Motivation & context

As pointed out in the issue, there is currently an inconsistency between how we treat on the UI some elements (eg. Flipper::UI.configuration.banner_text, @feature.description) and how we treat the @feature.actor_names.

The real world use case is making the actor names clickable as links to the resources that are the actors.

I've done the simplest possible change, not changing anything about the content itself.

Changes

  • apply Sanitize.fragment to the "#{@feature.actor_names[item]} (#{item})" on feature.erb

Visual QA

image

Copy link
Collaborator

@bkeepers bkeepers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. It would be great to have a test for this too. Let me know if you want help adding that.

@bkeepers bkeepers merged commit aee29ac into flippercloud:main Jan 8, 2024
@bkeepers
Copy link
Collaborator

@bryszard 1.2.0 is out with this change. Thanks for your help! https://blog.flippercloud.io/flipper-1-2-0/

@bryszard
Copy link
Contributor Author

Thank you for writing tests!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants