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

Updated Confirmation Dialog #248

Merged
merged 4 commits into from
Nov 25, 2021
Merged

Updated Confirmation Dialog #248

merged 4 commits into from
Nov 25, 2021

Conversation

ccsliinc
Copy link
Contributor

Please look over the proposed changes to make the dialog box cancellable. The proposed changes will not break any existing code. The method remains the same with an additional argument, additional example added to source as well.

@AydinHassan
Copy link
Member

Hi @ccsliinc thanks for the contribution - I've been afk for a few days, will get to this soon

@codecov-commenter
Copy link

codecov-commenter commented Oct 27, 2021

Codecov Report

Merging #248 (42a6491) into master (d5a96a5) will increase coverage by 0.30%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #248      +/-   ##
============================================
+ Coverage     93.08%   93.38%   +0.30%     
- Complexity      634      659      +25     
============================================
  Files            37       38       +1     
  Lines          1922     1994      +72     
============================================
+ Hits           1789     1862      +73     
+ Misses          133      132       -1     
Impacted Files Coverage Δ
src/CliMenu.php 94.40% <100.00%> (+0.10%) ⬆️
src/Dialogue/CancellableConfirm.php 100.00% <100.00%> (ø)
src/Dialogue/Dialogue.php 90.00% <100.00%> (ø)
src/Input/InputIO.php 96.92% <100.00%> (+0.02%) ⬆️
src/MenuStyle.php 98.96% <100.00%> (+0.01%) ⬆️
src/Style/Locator.php 100.00% <0.00%> (+2.85%) ⬆️

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 d5a96a5...42a6491. Read the comment docs.

@AydinHassan
Copy link
Member

Hi @ccsliinc - I've taken a look and while it mostly looks good I'm concerned about using the existing Confirm class. I'd prefer, as noted in the previous PR, that we use a separate class. CancellableConfirm would be fine.

@ccsliinc
Copy link
Contributor Author

ccsliinc commented Nov 9, 2021

ok i will fix and resubmit, give me a couple days.

@AydinHassan
Copy link
Member

Sure, no rush!

@ccsliinc
Copy link
Contributor Author

I uploaded a fixed PR.

@AydinHassan AydinHassan merged commit f03460d into php-school:master Nov 25, 2021
@AydinHassan
Copy link
Member

Thanks for the contribution @ccsliinc !

@AydinHassan AydinHassan mentioned this pull request Nov 25, 2021
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