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

[VDG] UI Decoupling #8 #10239

Merged
merged 42 commits into from Apr 4, 2023
Merged

[VDG] UI Decoupling #8 #10239

merged 42 commits into from Apr 4, 2023

Conversation

ichthus1604
Copy link
Collaborator

  • Removes NavigationState.Instance singleton.
  • NavigationState now implements INavigate
  • Removes MainViewModel code that handles changes to NavigationState and encapsulates that code in NavigationState itself.
  • Removes RoutableViewModel.SetActive() method and moves logic to NavigationState.OnCurrentPageChanged()
  • Replaces references to NavigationState.Instance by UIContext.Navigation()
  • Fixes a bug in UIContext where UIContext.Default would yield a new instance every time it's called

This PR is in a workable state. Yet, as per VDG agreement this should not be merged before the release.

@SuperJMN you can rebase your PRs for ViewModel refactors off of this one.

Next step of UI Decoupling series: introduce source-generated fluent navigation APIs. Will be addressed in a future PR.

@pull-request-size pull-request-size bot added size/L and removed size/XL labels Mar 9, 2023
Copy link
Collaborator

@soosr soosr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@soosr soosr left a comment

Choose a reason for hiding this comment

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

@ichthus1604 @SuperJMN

Some tests are failing due to the clipboard is null. Please fix it.

@SuperJMN
Copy link
Collaborator

SuperJMN commented Apr 3, 2023

@ichthus1604 @SuperJMN

Some tests are failing due to the clipboard is null. Please fix it.

Done. Please check now.

@soosr soosr merged commit adc9226 into zkSNACKs:master Apr 4, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants