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

Polish OpenSettings action for Settings UI and Profile page navigation on refresh #8670

Merged
merged 8 commits into from
Jan 4, 2021

Conversation

carlos-zamora
Copy link
Member

@carlos-zamora carlos-zamora commented Dec 28, 2020

Summary of the Pull Request

Performs a number of minor bugfixes related to the Settings UI:

  • b5370a1 Dropdown bug:
    • the dropdown would display the keybinding for the first openSettings found. So it would accidentally present and bind the one for the Settings UI.
  • 91eb49e autogenerated name for opening Settings UI:
    • the Settings UI keybinding would display "open settings file". This was updated to say "Open Settings UI".
  • 1cadbf4 Profile Page navigation crash:
    • the selected item off of a MUX navigation view returns a MUX NavViewItem (as opposed to WUX)
  • dd2f3e5 Hookup delete for Profile page navigation:
    • missed a spot where we were manually navigating to the Profile page. So it wasn't hooked up properly
  • 9fea6de Properly cast NavViewItem tags
    • When we update the NavigationView's menu items, we were casting the tags to Model::Profile instead of Editor::ProfileViewModel.

References

#6800 - Settings UI epic

Fixes the following bug:

  • JSON change --> crash
    • open SUI --> open JSON --> edit retro effects in JSON --> save file --> cry because the app crashed

Additional comments

This was a part of some manual testing I performed on the Settings UI. More intricate bugs are being reported on #6800 and will be fixed in their own PR.

@carlos-zamora
Copy link
Member Author

Ugh! 1174aab still caused the crash. Surprisingly, "Discard Changes" works fine, but "Apply" causes the out-of-bounds crash. :/

@zadjii-msft zadjii-msft self-assigned this Jan 4, 2021
@zadjii-msft zadjii-msft removed their assignment Jan 4, 2021
@@ -363,4 +363,7 @@
<data name="BreakIntoDebuggerCommandKey" xml:space="preserve">
<value>Break into the debugger</value>
</data>
</root>
<data name="OpenSettingsUICommandKey" xml:space="preserve">
<value>Open Settings UI</value>
Copy link
Member

Choose a reason for hiding this comment

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

nit: maybe just.. Open Settings

UI is a term we use, not a term our community uses.

@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jan 4, 2021
@ghost
Copy link

ghost commented Jan 4, 2021

Hello @DHowett!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@DHowett DHowett merged commit 990e06b into main Jan 4, 2021
@DHowett DHowett deleted the dev/cazamor/sui/bugfix-dropdown branch January 4, 2021 22:14
mpela81 pushed a commit to mpela81/terminal that referenced this pull request Jan 28, 2021
…n on refresh (microsoft#8670)

Performs a number of minor bugfixes related to the Settings UI:
- b5370a1 Dropdown bug:
  - the dropdown would display the keybinding for the first
    `openSettings` found. So it would accidentally present and bind the
    one for the Settings UI.
- 91eb49e autogenerated name for opening Settings UI:
  - the Settings UI keybinding would display "open settings file". This
    was updated to say "Open Settings UI".
- 1cadbf4 Profile Page navigation crash:
  - the selected item off of a MUX navigation view returns a MUX
    NavViewItem (as opposed to WUX)
-  dd2f3e5 Hookup delete for Profile page navigation:
   - missed a spot where we were manually navigating to the Profile
     page. So it wasn't hooked up properly
- 9fea6de Properly cast NavViewItem tags
  - When we update the NavigationView's menu items, we were casting the
    tags to `Model::Profile` instead of `Editor::ProfileViewModel`.

## References
microsoft#6800 - Settings UI epic

Fixes the following bug:
> - [ ] JSON change --> crash
>   - open SUI --> open JSON --> edit retro effects in JSON --> save file --> cry because the app crashed

## Additional comments
This was a part of some manual testing I performed on the Settings UI.
More intricate bugs are being reported on microsoft#6800 and will be fixed in
their own PR.
@zadjii-msft zadjii-msft mentioned this pull request Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge Marked for automatic merge by the bot when requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants