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

Use Sanitize on actor_names #810

Merged
merged 2 commits into from Jan 8, 2024

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
36 checks passed
@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.

None yet

2 participants