CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 658
DYN-8995 - Add preferences view toggle for DNA menu #16284
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
DYN-8995 - Add preferences view toggle for DNA menu #16284
Conversation
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.
Pull Request Overview
This PR introduces a toggle for the new Node Autocomplete Flyout in the preferences menu and updates the underlying view models and configuration settings accordingly.
- Added a new ToggleButton in the PreferencesView for enabling/disabling the new Node Autocomplete Flyout.
- Introduced a new binding property (NodeAutocompleteNewFlyoutIsChecked) in the PreferencesViewModel and corresponding configuration in PreferenceSettings.
- Updated logic in PortViewModel and PortCommands to use the new flyout flag and removed obsolete code pathways.
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/DynamoCoreWpf/Views/Menu/PreferencesView.xaml | Added a new RowDefinition and StackPanel with a new ToggleButton for the flyout feature. |
src/DynamoCoreWpf/ViewModels/Menu/PreferencesViewModel.cs | Added a new property to bind the new toggle state from the preference settings. |
src/DynamoCoreWpf/ViewModels/Core/PortViewModel.cs | Integrated conditional logic based on the new flyout flag and removed the obsolete AutoCompleteCluster method block. |
src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs | Added the IsNewDNAFlyoutEnabled property to facilitate controlling the new flyout behavior. |
src/DynamoCoreWpf/PublicAPI.Unshipped.txt, src/DynamoCore/PublicAPI.Unshipped.txt | Updated public API documentation to expose the new preference settings. |
src/DynamoCoreWpf/Commands/PortCommands.cs | Changed the DelegateCommand logic to remove the dependency on the DNAClusterPlacementEnabled flag. |
src/DynamoCore/Configuration/PreferenceSettings.cs | Added a new preference setting with a default value for the new flyout feature. |
Files not reviewed (1)
- src/DynamoCoreWpf/Properties/Resources.Designer.cs: Language not supported
Comments suppressed due to low confidence (3)
src/DynamoCoreWpf/Commands/PortCommands.cs:35
- The removal of the condition based on DNAClusterPlacementEnabled may impact behavior; please verify that this change is intended and that the new logic conforms with feature requirements.
autoCompleteCommand ??= new DelegateCommand(AutoComplete, CanAutoComplete);
src/DynamoCoreWpf/ViewModels/Menu/PreferencesViewModel.cs:1134
- [nitpick] Consider aligning naming conventions between 'NodeAutocompleteNewFlyoutIsChecked' and 'IsNewDNAFlyoutEnabled' for consistency across view models, if they represent the same feature state.
public bool NodeAutocompleteNewFlyoutIsChecked
src/DynamoCoreWpf/Views/Menu/PreferencesView.xaml:945
- [nitpick] The margin for the new StackPanel has been updated to '0,12,0,0'; please confirm that this spacing aligns with the intended design across similar UI elements.
<StackPanel Orientation="Horizontal" Margin="0,12,0,0" Grid.Row="1">
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.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8995
Pref options look nice and clear! |
Well.. I made a rebuild and I'm not reproducing the issue anymore so I think we're good to go! |
Update test settings file.
Purpose
This PR introduces a toggle for the new Node Autocomplete Flyout in the preferences menu and updates the underlying view models and configuration settings accordingly.
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Reviewers
@DynamoDS/synapse @Jingyi-Wen
FYIs
@Amoursol @QilongTang