feat: Add switch to org button on plan usage screen#2366
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
What T-Rex did
ArtifactsPlan usage switch-org analysis
|
446682a to
89b8708
Compare
6670280 to
9dfa96d
Compare
3cf4284 to
10ef24e
Compare
9df0de6 to
7ae6bef
Compare
10ef24e to
00f8d97
Compare
7ae6bef to
a341041
Compare
bbe83b1 to
cf0e2a9
Compare
a341041 to
19f1fcb
Compare
cf0e2a9 to
16da428
Compare
16da428 to
ae6c12a
Compare
19f1fcb to
b18b14b
Compare

Problem
PlanUsageSettingsdetectedhasBetterPlanElsewhereand showed a callout but offered no way to actually switch to the org with the better plan. The page also calledclient.switchOrganizationdirectly from the renderer, bypassing the main-process auth service.Changes
hasBetterPlanElsewherecalloutuseSwitchOrgMutationsoAuthService.switchOrgis the single canonical pathautoProvision: trueafter the switch so the Pro card reflects the new active org?? "Pro org"fallback when the API omits the org nameHow did you test this?
manually
Publish to changelog?
no