Repository navigation
Repository Remove menu label now indicates if it will show a dialog - #6489
Daniel-McCarthy wants to merge 3 commits into
Conversation
Previously the menu label Repository>Remove would not display the dialog indicator "...". If the user has the setting enabled for a dialog to be shown the indicator will be displayed, however if it is disabled it will not have the "...".
shiftkey
left a comment
There was a problem hiding this comment.
Code looks good, one suggestion to leverage our baked parsing rules for local storage.
I'm now wanting to tidy up this area because it's kind of organically grown complex, but I'll write that up as a future issue.
|
Also, this failing test is interesting - not sure what we want to do here: |
This simplifies the code necessary to get the repository removal boolean and makes use of a helper function that was not previously being used.
|
Ah, sorry. I had not realized that the tests had failed until today. This failing test is additionally strange to me as the test was passing locally for me after making the suggested changes, however is not when the test runs on the remote. I will have to keep looking into this. |
I'm also seeing it fail locally, and I'll try and add some more context as it why this is interesting:
|
|
Alright, I've narrowed down the issue but don't really have a solution just yet. Here's what's happening:
desktop/app/test/setup-test-framework.ts Lines 1 to 4 in 76ea9ca
desktop/app/test/unit/app-store-test.ts Lines 91 to 101 in 76ea9ca
desktop/app/src/lib/stores/app-store.ts Line 1120 in 76ea9ca
desktop/app/src/lib/stores/app-store.ts Line 1905 in 76ea9ca
|
|
Dropping myself from reviewing this issue because I haven't had a chance to come back to this, but I think desktop/app/src/lib/stores/app-store.ts Line 1142 in 9e6b012 There's potentially some side effects ( In the meantime I've merged |
|
Just following up here. It's a bit hard for me to follow the discussion, but it feels like maybe the complexity potentially introduced here might not be worth the payoff and maybe we should close the PR and issue? If we left it as is, we wouldn't be communicating as much information up front, but removing a repo shouldn't be a super common occurrence and my understanding is that the current behavior will still respect the user's preferences. Thoughts @shiftkey? |
|
I'm tentatively 👎 to closing the issue because we've made our context menus follow this pattern when they know a dialog will appear on click: At the moment this PR is blocked on being able to apply this change, because of how it impacts unit tests. Any objections to me updating #4976 to refer to this PR, summarizing the issue and closing out this PR? cc @Daniel-McCarthy |
|
@shiftkey @billygriffin I am definitely fine with closing out this pull request as it is currently blocked, and the scope involved with fixing the outlying issues would not likely be something that is quite in my domain as of yet. I would tend to agree with @shiftkey that adding the relevant information to the issue and keeping it open would be a good idea, as well as closing this pull request as it is not likely to be moving forward quite soon. |
|
Works for me, thanks y'all. |

Overview
Closes #4976
Description
Before changes (With dialog enabled):

After changes (With dialog enabled):

Release notes
Notes: The Repository Remove menu label now indicates if it will open a dialog.