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

Improve details UI for some predicates #413

Merged
merged 1 commit into from
May 2, 2022
Merged

Conversation

bluekeyes
Copy link
Member

These are some minor adjustments that came up in testing:

  • Replace "from branches" with "source branches" to make the resulting sentence less awkward
  • Add padding to condition maps and rephrase the changed files condition to separate the top-level condition phrase from the sub-phrases in the map
  • Add a special case for predicates that have no values to avoid rendering an empty list. I don't think it is necessary to show the condition details when there are no values to compare with. An alternative would be to render something like [no {{.ValuePhrase}}] as the only list element when there are no values, but I thought that could potentially get confused with actual values.

* Replace "from branches" with "source branches" to make the resulting
  sentence less awkward

* Add padding to condition maps and rephrase the changed files
  condition to separate the top-level condition phrase from the
  sub-phrases in the map

* Add a special case for predicates that have no values to avoid
  rendering an empty list. I don't think it is necessary to show the
  condition details when there are no values to compare with.
@bluekeyes bluekeyes requested review from yiweny and a team April 29, 2022 23:41
Copy link
Contributor

@yiweny yiweny left a comment

Choose a reason for hiding this comment

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

Thank you for taking time to improve the UI!

@bluekeyes bluekeyes merged commit 7a24083 into develop May 2, 2022
@bluekeyes bluekeyes deleted the bkeyes/detail-tweaks branch May 2, 2022 04:25
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.

3 participants