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

Some recent repositories settings improvements #10903

Conversation

pmiossec
Copy link
Member

I have selected only the accepted and already reviewed commit of #3769 to see some improvements made for v4.1

Note: Small commits that are easily reviewed one by one.

Configure repositories popup:

  • Being able to see the repository selected in the lists
  • Being able to do an action on multiple repositories at the same time
  • Resize column size to prevent bad display (when destination list was initially empty or changing shortening strategy)
  • Display 'Anchored' repositories in bold
  • Show full path in a tooltip
  • Display unavailable/deleted repositories in red
  • Double click to transfer a repository from one list to the other

Repositories list:

  • Always display a separator between pinned and all recent repositories

Screenshots

Configuration

Before

image

After

image

Menu

Before

image

After

With separator:

image

Test methodology

  • Manual

Test environment(s)

  • Git Extensions 33.33.33
  • Build 29515dc
  • Git 2.40.0.windows.1
  • Microsoft Windows NT 10.0.22621.0
  • .NET 6.0.16
  • DPI 96dpi (no scaling)
  • Microsoft.WindowsDesktop.App Versions
    Microsoft.WindowsDesktop.App 6.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Merge strategy

I agree that the maintainer "Merge commit" (better) or "Rebase merge" this PR.


✒️ I contribute this code under The Developer Certificate of Origin.

@ghost ghost assigned pmiossec Apr 21, 2023
@pmiossec
Copy link
Member Author

pmiossec commented Apr 21, 2023

I do not want to delay 4.1 any more...

As I said, I really want to see a beginning of improvements on this form included in the next release.
That's why I have selected just the small changes that introduce mostly UI improvements that could easily be review (one by one) and tested (and that introduce no translation modifications).
But in the end, I let you decide if you want include it or not (and to merge it).

Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

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

+0

@RussKie RussKie added this to the 4.1 milestone Apr 22, 2023
Copy link
Member

@mstv mstv left a comment

Choose a reason for hiding this comment

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

appears sensible to me

Copy link
Member

@gerhardol gerhardol left a comment

Choose a reason for hiding this comment

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

+0
Changes seem fine to me but not run and no deep review.
(and pmiossec, I am not innocent of delaying releases myself, but I want the normal update to start so we can get a 4.2 out).

@RussKie RussKie added the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Apr 28, 2023
@RussKie
Copy link
Member

RussKie commented Apr 28, 2023

@mstv's comments are still unresolved.

@RussKie
Copy link
Member

RussKie commented Apr 30, 2023

@pmiossec could you please resolve the outstanding feedback - action or reject - so that we could merge this. This seems to be the last outstanding item tagged for v4.1. Thanks

@RussKie RussKie changed the base branch from release/4.1 to release/4.0 April 30, 2023 06:27
@pmiossec pmiossec force-pushed the recent_repositories_settings_improvements branch from 004a776 to 432e5a7 Compare April 30, 2023 07:45
@ghost ghost removed the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Apr 30, 2023
@pmiossec
Copy link
Member Author

@pmiossec could you please resolve the outstanding feedback - action or reject - so that we could merge this. This seems to be the last outstanding item tagged for v4.1. Thanks

Done.

Comment on lines 181 to 186
AllRecentLB.BeginUpdate();

SetComboWidth();
RefreshRepos();
}
finally
{
Copy link
Member

Choose a reason for hiding this comment

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

PinnedLB.BeginUpdate();
AllRecentLB.BeginUpdate();

seems to be not necessary here any longer.
Though it should be added to RefreshRepos().

Copy link
Member Author

Choose a reason for hiding this comment

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

done (With a little bonus: improvement over the bad UX of the "Combobox minimum width" that I had to use for the 1st time to test this piece of code)

@@ -35,6 +37,7 @@ private void LoadSettings()
SetNumericUpDownValue(_NO_TRANSLATE_maxRecentRepositories, AppSettings.MaxPinnedRepositories);
SetNumericUpDownValue(_NO_TRANSLATE_RecentRepositoriesHistorySize, AppSettings.RecentRepositoriesHistorySize);

_previousValue = comboMinWidthEdit.Value;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
_previousValue = comboMinWidthEdit.Value;
_previousValue = comboMinWidthEdit.Value;
return;

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

by jumping directly to values that has an effects i.e 0 to 30
(values between 1 and 30 will have the same effect than 30)

Prevent the user to have to click 30 times on a up or down buttons
to see an effect.
@pmiossec pmiossec force-pushed the recent_repositories_settings_improvements branch from ff2b1df to 92a1d0e Compare April 30, 2023 14:25
@RussKie RussKie merged commit ea3445d into gitextensions:release/4.0 Apr 30, 2023
5 checks passed
@pmiossec pmiossec deleted the recent_repositories_settings_improvements branch April 30, 2023 16:53
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

4 participants