-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
My Site Dashboard: Add site picker to MySite screen only once #17814
Conversation
You can trigger an installable build for these changes by visiting CircleCI here. |
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
This fixes a bug where a sitePicker was getting added to the layout every time a user switched sites.
If the MSD feature flag is enabled, the current blog should be the SitePickerVC's blog -- since the SitePickerVC is responsible for updating the currently selected blog.
Also, extracted the updateChildViewController method to handle updating whichever child vc is currently being shown.
cff3fb0
to
1b3ff59
Compare
stackView.insertArrangedSubview(sitePickerViewController.view, at: 0) | ||
sitePickerViewController.didMove(toParent: self) | ||
} | ||
|
||
private func setupSegmentedControl() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: we shouldn't show the segmented control for self-hosted sites. Not sure if this is planned for a future task, but it might be good to add it as a subtask so we won't forget about it. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created an issue! #17825
Fixes #17813
Description
This PR fixes the following:
How to test
Make sure the My Site Dash feature flag is enabled.
Site Picker should be added only once
Simulator.Screen.Recording.-.iPhone.13.-.2022-01-25.at.19.26.24.mp4
Switching to the dashboard
Simulator.Screen.Recording.-.iPhone.13.-.2022-01-26.at.15.55.42.mp4
Regression Notes
PR submission checklist:
RELEASE-NOTES.txt
if necessary.