-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improved My Site Header: Show site actions in menu #22151
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
Conversation
| return DDLogError("Failed to show dashboard personalization screen: siteID is missing") | ||
| } | ||
|
|
||
| // TODO: track event |
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.
Also need to track when the ellipsis button is tapped. I'll add these events in a separate PR
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.
I needed this recently too and learned about UIControlEventMenuActionTriggered.
|
Looks great so far! WDYT about adding 16px right padding to the right of the menu icon? It will be aligned more nicely with the chevrons in the list below. |
|
@osullivanchris Done! |
a7e71d2 to
3023b84
Compare
| private func makePrimarySection() -> UIMenu { | ||
| UIMenu(options: .displayInline, children: [ | ||
| MenuItem.visitSite(visitSiteTapped), | ||
| MenuItem.switchSite(siteSwitcherTapped) |
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.
Should it only be displayed if there is more than one site?
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.
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.
Yes I agree. The action should always be there in the menu. but the 'tap icon to switch site' idea - would only be for multiple sites I think. If we do that.
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.
Tapping "Switch Site" is not the most obvious way to add a new site. I'd suggest adding two new actions "Create Site" and "Share" to the new menu.
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.
Fair point. I'll look into this after the header gradient.
|
Tested – works great! The actions are much more discoverable now. I left one comment regarding "Switch Site". It was smart not to update the current iterations: tap on an icon, title etc, so that we could keep Quick Start as is for now. |
osullivanchris
left a comment
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.
Looks great! thanks for the padding tweak.
|
| App Name | WordPress Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr22151-a453c37 | |
| Version | 23.8 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | a453c37 | |
| App Center Build | WPiOS - One-Offs #8045 |
|
| App Name | Jetpack Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr22151-a453c37 | |
| Version | 23.8 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | a453c37 | |
| App Center Build | jetpack-installable-builds #7066 |
|
Just installed the build and it feels massively better and more modern in hand compared to the live app 👏 |





Description
How to test
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-12-05.at.11.29.45.mp4
Regression Notes
Potential unintended areas of impact
switching sites
What I did to test those areas of impact (or what existing automated tests I relied on)
updated UI test
What automated tests I added (or what prevented me from doing so)
see above
PR submission checklist:
RELEASE-NOTES.txtif necessary. (Improved My Site header: Update release notes #22203)