-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Inline Rename] Update the UI related to Copilot #71332
[Inline Rename] Update the UI related to Copilot #71332
Conversation
What's the key binding for this? I don't think we can pass accessibility review if it always requires a mouse click. |
Designers proposed Tab to set focus on the button, and Enter/Space to invoke it. |
@AmadeusW can you show that on the hover of that button? Thanks! |
src/EditorFeatures/Core.Wpf/InlineRename/UI/Adornment/RenameFlyout.xaml.cs
Outdated
Show resolved
Hide resolved
@CyrusNajmabadi We can use TAB followed by SPACE key to use it. The focus visual isn't there but I'm working on fixing it. |
src/EditorFeatures/Core.Wpf/InlineRename/UI/SmartRename/SmartRenameUserInputComboBox.xaml
Outdated
Show resolved
Hide resolved
Can you include screenshots of the changes? |
src/EditorFeatures/Core.Wpf/InlineRename/UI/SmartRename/SmartRenameUserInputComboBox.xaml
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/Adornment/RenameFlyout.xaml.cs
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/Adornment/RenameFlyoutViewModel.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/SmartRename/SmartRenameUserInputComboBox.xaml.cs
Outdated
Show resolved
Hide resolved
@veler : We can use TAB followed by SPACE key to use it. This is exactly what I had in mind. Not TAB + SPACE/ENTER at the same time. But just to tab to move the focus to the button and then SPACE/ENTER to invoke it. |
Great! We can still do this. Do we want to keep Ctrl+Space at the same time too? |
Looks good from my point of view! Consider updating the main PR with up to date screenshots |
src/EditorFeatures/Core.Wpf/InlineRename/UI/Adornment/RenameFlyout.xaml.cs
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/Adornment/RenameFlyout.xaml.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/Adornment/RenameFlyout.xaml.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/Adornment/RenameFlyoutViewModel.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/SmartRename/SmartRenameViewModel.cs
Show resolved
Hide resolved
Also tag @ryzngard here. Could you give this a peek? |
src/EditorFeatures/Core.Wpf/InlineRename/UI/SmartRename/SmartRenameViewModel.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/SmartRename/SmartRenameViewModel.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/SmartRename/SmartRenameUserInputComboBox.xaml.cs
Outdated
Show resolved
Hide resolved
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.
Small comments. The conversation on the UI looks good to me. Make sure to do a pass with accessibility insights to catch what my human eyes can't, and request a manual run at some point to make sure everything is MAS compliant. I can't see any faults, but I don't know MAS by heart.
I give soft approval, since I don't want to unblock merging on behalf of the Roslyn team. Feel free to ping with any questions or follow up needed.
src/EditorFeatures/Core.Wpf/InlineRename/UI/Adornment/RenameFlyout.xaml.cs
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/Adornment/RenameFlyout.xaml.cs
Show resolved
Hide resolved
src/EditorFeatures/Core.Wpf/InlineRename/UI/SmartRename/SmartRenameUserInputComboBox.xaml.cs
Outdated
Show resolved
Hide resolved
var listenerToken = listener.BeginAsyncOperation(nameof(_smartRenameSession.GetSuggestionsAsync)); | ||
_smartRenameSession.GetSuggestionsAsync(_cancellationTokenSource.Token).CompletesAsyncOperation(listenerToken); | ||
BaseViewModel = baseViewModel; | ||
this.BaseViewModel.IdentifierText = baseViewModel.IdentifierText; |
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.
Is this line not needed?
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.
One minor comment.
🚀
Update the UI of Inline Rename in a manner that when Copilot is available, a click is necessary in order to start getting suggestions. Suggestions are then available in a drop down list.
With updated icon: