Code Quality: Use WindowContext instead of AppModel
AppModel was leftover from UWP, removed and replaced with WindowContext which can be DI'd.
For testing, we should test one or two of the properties and ensure they are updated correctly. For example, we should ensure that IsCompactOverlay and IsPasteEnabled are correctly updated when the state changes.
Sorry for making extra change while you finished review. I wanted to make sure reduce App.WindowContext reference.
Now, ready to be merged
I'm not sure why it's fail again and again since I can build, deploy and see that the window successfully opens without any crash.
It's failing here: https://github.com/files-community/Files/blob/cc0a7701c9c2b744136a8f58940463dd769978e1/tests/Files.InteractionTests/Tests/FolderTests.cs#L54
Can you check if you can open New... button on your end?
Try rebasing the branch from main.
@0x5bfa can you try forking these changes to another branch to see if that fixes the CI issues?
Sure.