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

Item extra toggling support #187

Merged
merged 3 commits into from
Dec 17, 2019
Merged

Item extra toggling support #187

merged 3 commits into from
Dec 17, 2019

Conversation

AydinHassan
Copy link
Member

@jtreminio would this solve the problem for you?

Basically we previously inferred whether to display item extra based on the items in the menu. If no items displayed item extra then we disabled it globally.

I've added a method to the builder to force display item extra and if you customise the item extra text it will enable it globally also.

/cc @mikeymike @polothy (only two years late :D)

I'll add some tests and docs if everyone is happy with this.

@codecov-io
Copy link

codecov-io commented Dec 16, 2019

Codecov Report

Merging #187 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #187      +/-   ##
============================================
+ Coverage     93.19%   93.22%   +0.02%     
- Complexity      486      488       +2     
============================================
  Files            27       27              
  Lines          1470     1475       +5     
============================================
+ Hits           1370     1375       +5     
  Misses          100      100
Impacted Files Coverage Δ Complexity Δ
src/Builder/CliMenuBuilder.php 84.07% <100%> (+0.4%) 67 <1> (+2) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c4db90...b2febc9. Read the comment docs.

@mikeymike
Copy link
Member

seems fair to me 👍

@jtreminio
Copy link
Contributor

Looks like this solves the issue.

@AydinHassan AydinHassan merged commit 42aad08 into master Dec 17, 2019
@AydinHassan AydinHassan deleted the item-extra-toggling branch December 17, 2019 09: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.

4 participants