-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gui): Separate Landscape and Pro subscription sources (#684)
We originally considered that having a Pro subscription managed via the organization (represented by the existence of the Pro token inside the Windows registry) should also mean that Landscape configuration data should be treated as if coming from the same source, even in cases which the organization didn't set any data about Landscape. This PR changes that assumption by: - Replacing the `GetSubscriptionInfo` RPC with `GetConfigSources`, grouping both the Pro subscription and the Landscape config data sources, so the GUI can decide which elements and features to present or hide based on each source individually. - Replacing the main app state from being the `SubscriptionInfo` to being the `ConfigSources`, so we propagate that information letting the individual pages decide which elements to display - Changing the declaration of the `LandscapeConfigPage` route in the Wizard to skip that page if the Landscape config source is the organization - Conditionally hiding or presenting the `Configure Landscape` button in the SubscriptionStatus page variants, which still have their main layout defined by the Pro subscription source, but now allowing that button to show if the Landscape source allows configuration via the GUI. For example, the Pro subscription may come from the organization and we still present the `Configure Landscape` button if there is no Landscape data or if the user provided it.
- Loading branch information
Showing
30 changed files
with
1,201 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.