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
StageAll and UnstageAll improvement when Filter active #8596 #8731
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8731 +/- ##
==========================================
+ Coverage 55.74% 56.13% +0.39%
==========================================
Files 900 900
Lines 64990 65103 +113
Branches 11739 11808 +69
==========================================
+ Hits 36226 36545 +319
+ Misses 25911 25650 -261
- Partials 2853 2908 +55
Flags with carried forward coverage won't be shown. Click here to find out more. |
0e82fa3
to
5314665
Compare
I think bottom right would be better. What do you think? |
I've updated the picture with that option. I still like the B version a bit more :) but the C is Ok to me too. Let's wait for further votes - if no more vote comes, I'll update it with C version! 🥇 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Please provide your sign off as well.
IntegrationTests/UI.IntegrationTests/CommandsDialogs/FormCommitTests.cs
Outdated
Show resolved
Hide resolved
5314665
to
1f48d67
Compare
Great, thank you for the review! I've pushed the changes!
Done. Separate PR.
Bottom right commited as promised ;) |
1f48d67
to
a797a9c
Compare
a797a9c
to
81c4612
Compare
@msftbot merge in 24 hours |
Hello @RussKie! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
@@ -967,7 +967,7 @@ private void InitializeComponent() | |||
this.toolStageAllItem.ImageTransparentColor = System.Drawing.Color.Magenta; | |||
this.toolStageAllItem.Name = "toolStageAllItem"; | |||
this.toolStageAllItem.Size = new System.Drawing.Size(23, 23); | |||
this.toolStageAllItem.Text = "Stage All"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be removed here and made sure they are explicitly assigned in init or load
The text is translated twice now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. Good point. I can fix it together with the other change below.
@@ -1534,13 +1537,25 @@ private void FileStatusList_Enter(object sender, EventArgs e) | |||
private readonly Subject<string> _filterSubject = new Subject<string>(); | |||
[CanBeNull] private Regex _filter; | |||
private bool _filterVisible = false; | |||
private bool _filterActive = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this used?
OnFilterChanged() may fire the event more than once, is that so bad?
(these status variablles are hard to maintain, someon else reuses it for a slightly separate use case or add a parallel variable...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fires on every character added/removed. But you're right, it would be no problem here without it so I can remove that check. Or maybe just rename it to something more meaningful like _filterActiveLastState or _filterActiveCheck? (and sorry for my delayed answer)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be sure - Which one do you prefer?
- remove the unnecessary check? or
- rename to something more meaningful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer maintainability, so removing the variable if there is no noticeable effect is what I prefer.
Review feedback on PR #8731 (StageAll,UnstageAll)
Followup on #8596
Note: The first PR #8730 closed (because of I've pushed my changes on master instead of a separate branch and used merge-commit,...)
Proposed changes
Screenshots
Before
After
StageAll (TooltipText/icon) - with filefilter:
Before:
After:
UnstageAll (TooltipText/icon) - with filefilter:
Before:
After:
OnCommitClick (message) - with filefilter:
Before:
After:
Test methodology
Test environment(s)
✒️ I contribute this code under The Developer Certificate of Origin.