Skip to content

Conversation

@chubakueno
Copy link
Contributor

@chubakueno chubakueno commented Nov 5, 2025

Purpose

Refactor dynamo toasts into separate public class, which was a pending todo since #12970

Declarations

Check these if you believe they are true

Release Notes

External packages will now have access to the creation of toasts.

Reviewers

@johnpierson

FYIs

@QilongTang
@avidit

Copy link

@github-actions github-actions bot left a 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-9515

Copy link
Contributor

Copilot AI left a 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 refactors toast notification functionality from the GuidesManager class into a new separate public ToastManager class, making toast notifications accessible to external packages. This addresses a TODO item from a previous pull request.

Key Changes:

  • Created new ToastManager class to handle toast notifications
  • Updated all references from MainGuideManager to ToastManager for toast-related operations
  • Made toast notification API publicly accessible via the new class

Reviewed Changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/DynamoCoreWpf/UI/ToastManager.cs New public class implementing toast notification functionality
src/DynamoCoreWpf/UI/GuidedTour/GuidesManager.cs Removed toast notification code and delegated to ToastManager
src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs Added ToastManager property and updated references
src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs Initialized ToastManager and updated location handling
src/DynamoCoreWpf/PublicAPI.Unshipped.txt Added public API surface for ToastManager
src/DynamoCoreWpf/DynamoCoreWpf.csproj Registered new ToastManager.cs file in project
test/DynamoCoreWpfTests/DynamoViewTests.cs Updated test to use ToastManager.PopupIsVisible
Multiple UI/ViewModel files Updated toast notification calls from MainGuideManager to ToastManager
Multiple extension files Updated toast notification calls from MainGuideManager to ToastManager

@johnpierson johnpierson changed the title DYN-9515: Refactor dynamo toasts into separate public class DYN-9818: Refactor dynamo toasts into separate public class Nov 5, 2025
@github-actions github-actions bot changed the title DYN-9818: Refactor dynamo toasts into separate public class 9515: DYN-9818: Refactor dynamo toasts into separate public class Nov 5, 2025
@johnpierson johnpierson changed the title 9515: DYN-9818: Refactor dynamo toasts into separate public class DYN-9819: Refactor dynamo toasts into separate public class Nov 5, 2025
@github-actions github-actions bot changed the title DYN-9819: Refactor dynamo toasts into separate public class 9515: DYN-9819: Refactor dynamo toasts into separate public class Nov 5, 2025
@chubakueno chubakueno merged commit 1d40b13 into DynamoDS:master Nov 6, 2025
26 of 29 checks passed
@zeusongit
Copy link
Contributor

Just saw this update, and I think if we may have to cherry pick this change to 4.0, as PythonNet3 also gets affected by this change, and at some point we will cherry-pick that as well. FYI @QilongTang

@QilongTang
Copy link
Contributor

Just saw this update, and I think if we may have to cherry pick this change to 4.0, as PythonNet3 also gets affected by this change, and at some point we will cherry-pick that as well. FYI @QilongTang

Please go ahead

@zeusongit zeusongit added this to the 4.0 milestone Nov 11, 2025
@zeusongit
Copy link
Contributor

/cherrypick

@github-actions
Copy link

Backport failed for RC4.0.0_master, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin RC4.0.0_master
git worktree add -d .worktree/cherrypick-16681 origin/RC4.0.0_master
cd .worktree/cherrypick-16681
git switch --create cherrypick-16681
git cherry-pick -x 1d40b1313b90e735b3f848f66a62531fb07d5e43

@zeusongit
Copy link
Contributor

/cherrypick

@github-actions
Copy link

Backport failed for RC4.0.0_master, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin RC4.0.0_master
git worktree add -d .worktree/cherrypick-16681 origin/RC4.0.0_master
cd .worktree/cherrypick-16681
git switch --create cherrypick-16681
git cherry-pick -x 1d40b1313b90e735b3f848f66a62531fb07d5e43

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.

3 participants