-
Notifications
You must be signed in to change notification settings - Fork 846
Add a feedback admin view switch #29246
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
|
Are you an Automattician? You can now test your Pull Request on WordPress.com. On your sandbox, run to get started. More details: p9dueE-5Nn-p2 |
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
jeherve
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.
The switch is similar to the one already implemented for switching between WP Admin and Calypso views but it is also quite different in that both views are actually part of WP Admin itself.
It works for me locally, but not on WoA. Do the 2 views conflict with each other?
|
It seems the issue is WP.com is using a separate entrypoint for the contact form module, which we never updated to use the package. I'd say that's probably a separate issue that needs addressing on it's own, especially in the context of #28791, but not sure if it's that relevant to this PR. |
|
On some further investigation, it seems that once WP.com does render the dashboard, there are indeed some conflicts between this switch and existing WP.com menu implementation. I'll need to add a few more changes to get this to work reliably in both environments. |
|
In the meantime, I'm hoping D103406-code will help sort things out on WP.com @jeherve. |
CGastrell
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.
"View" dropdown shows up when filter is enabled. Switching worked fine on its own. We need to give that app some more love though
jeherve
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 like there were some conflicting class names on .com, I think the latest changes should resolve that. |
jeherve
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.
This tests well for me now.
…shboard-view-switch

Proposed changes:
This patch adds a 'view switch' which will allow for switching between the classic WP Admin view for the feedback area and the new Jetpack Forms dashboard once it becomes enabled.
The switch is similar to the one already implemented for switching between WP Admin and Calypso views but it is also quite different in that both views are actually part of WP Admin itself.
Choosing an option through the dropdown, will also set that as the preferred option for the future.
Other information:
Jetpack product discussion
pcsBup-Pl-p2
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
Enable the new dashboard and the switch with these filters:
Feedbackin the sidebar, you should be redirected to the new dashboard which currently also saves as the default setting.Viewdropdown in the upper right corner of the screen.Classicfrom the dropdown.Modernversion.Modernis now the default again.admin.php?page=jetpack-formsoredit.php?post_type=feedbackpreferred-viewparam should not affect your default setting.