10000 Remove conditional and rename dashboard to general page. by thijsoo · Pull Request #21691 · Yoast/wordpress-seo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove conditional and rename dashboard to general page. #21691

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

Merged
merged 9 commits into from
Oct 22, 2024

Conversation

thijsoo
Copy link
Contributor
@thijsoo thijsoo commented Oct 8, 2024

Context

  • We want to remove the conditional for the new dashboard page.

Summary

This PR can be summarized in the following changelog entry:

  • Introduces a new, redesigned General page.

Relevant technical choices:

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • Make sure you do not have define( 'YOAST_SEO_NEW_DASHBOARD_UI', true ); in your project.
  • Go to the dashboard and make sure you see the new dashboard.
  • Make sure you do not see the old dashboard anywhere.
  • Follow the test instructions in Fix FTC navigation #21661 to test for regressions.

Relevant test scenarios

  • Changes should be tested with the browser console open
  • Changes should be tested on different posts/pages/taxonomies/custom post types/custom taxonomies
  • Changes should be tested on different editors (Default Block/Gutenberg/Classic/Elementor/other)
  • Changes should be tested on different browsers
  • Changes should be tested on multisite

Test instructions for QA when the code is in the RC

  • QA should use the same steps as above.

QA can test this PR by following these steps:

Impact check

This PR affects the following parts of the plugin, which may require extra testing:

UI changes

  • This PR changes the UI in the plugin. I have added the 'UI change' label to this PR.

Other environments

  • This PR also affects Shopify. I have added a changelog entry starting with [shopify-seo], added test instructions for Shopify and attached the Shopify label to this PR.

Documentation

  • I have written documentation for this change. For example, comments in the Relevant technical choices, comments in the code, documentation on Confluence / shared Google Drive / Yoast developer portal, or other.

Quality assurance

  • I have tested this code to the best of my abilities.
  • During testing, I had activated all plugins that Yoast SEO provides integrations for.
  • I have added unit tests to verify the code works as intended.
  • If any part of the code is behind a feature flag, my test instructions also cover cases where the feature flag is switched off.
  • I have written this PR in accordance with my team's definition of done.
  • I have checked that the base branch is correctly set.

Innovation

  • No innovation project is applicable for this PR.
  • This PR falls under an innovation project. I have attached the innovation label.
  • I have added my hours to the WBSO document.

Fixes #

@thijsoo thijsoo added the changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog label Oct 8, 2024
…e-new-dashboard-feature-flag

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
…e-new-dashboard-feature-flag

# Conflicts:
#	packages/js/src/general/app.js
#	packages/js/src/general/components/sidebar-recommendations.js
#	src/general/user-interface/general-page-integration.php
@coveralls
Copy link
coveralls commented Oct 15, 2024

Pull Request Test Coverage Report for Build 23a72bf1994dab30060181382d0556bd26d909a7

Details

  • 14 of 35 (40.0%) changed or added relevant lines in 17 files are covered.
  • 538 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.002%) to 54.571%

Changes Missing Coverage Covered Lines Changed/Added Lines %
admin/class-admin.php 0 1 0.0%
admin/views/tabs/tool/import-seo.php 0 1 0.0%
packages/js/src/general/hooks/use-select-general-page.js 0 1 0.0%
packages/js/src/general/initialize.js 0 1 0.0%
src/integrations/admin/first-time-configuration-integration.php 0 1 0.0%
src/integrations/admin/installation-success-integration.php 2 3 66.67%
src/integrations/admin/old-configuration-integration.php 0 1 0.0%
admin/class-config.php 0 2 0.0%
packages/js/src/general/app.js 0 2 0.0%
packages/js/src/general/routes/alert-center.js 0 5 0.0%
Files with Coverage Reduction New Missed Lines %
admin/class-config.php 1 0.0%
admin/views/tabs/tool/import-seo.php 2 0.0%
src/generated/container.php 535 0.39%
Totals Coverage Status
Change from base Build 8a4aceaf168b36d80a31b458f7c1a87587e5bbbf: 0.002%
Covered Lines: 29672
Relevant Lines: 54642

💛 - Coveralls

@pls78
Copy link
Member
pls78 commented Oct 16, 2024

CR: ✅

Copy link
Contributor
@leonidasmi leonidasmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pausing this in favor of https://github.com/Yoast/reserved-tasks/issues/303.

In the meantime, a couple of remarks to save us time 👇

I see a bunch of mentions of dashboard in our files, for example:

  • useSelectDashboard
  • the store is still named @yoast/dashboard
  • actually a search of dashboard in packages/js/src/general will give you a lot more instances
  • also, the yoast-dashboard-notice class in the css/src/general-page.css
    Not sure which of these we want to clean up, but let's take a conscious decision.

Also, maybe we should consider removing admin/page/dashboard.php altogether? Although that would extend the impact of our changes. So another conscious decision to be made.

…e-new-dashboard-feature-flag

# Conflicts:
#	admin/class-config.php
#	src/general/user-interface/general-page-integration.php
#	tests/Unit/General/User_Interface/General_Page_Integration_Test.php
@pls78
Copy link
Member
pls78 commented Oct 22, 2024

CR: ✅

Copy link
Contributor
@leonidasmi leonidasmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acceptance test is ✅

@leonidasmi leonidasmi added this to the 23.8 milestone Oct 22, 2024
@enricobattocchi enricobattocchi added changelog: enhancement Needs to be included in the 'Enhancements' category in the changelog and removed changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog< A061 /tool-tip> labels Oct 22, 2024
@leonidasmi leonidasmi merged commit f9b6f3e into trunk Oct 22, 2024
34 checks passed
@leonidasmi leonidasmi deleted the 280-remove-new-dashboard-feature-flag branch October 22, 2024 08:44
@hardikgohil7988
Copy link

Tested new dashbard (General page) without feature flag in single site and multisite.
Tested all FTC scenarios in single site and multisite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: enhancement Needs to be included in the 'Enhancements' category in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0