Skip to content
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

Restructure main admin menu #2612

Merged
merged 14 commits into from
Oct 12, 2023
Merged

Conversation

fjorgemota
Copy link
Member

@fjorgemota fjorgemota commented Oct 10, 2023

Fixes #2586

Changes Proposed in this Pull Request

Testing Instructions

Using this branch of the plugin to test:

  1. Make sure the menu matches the design
  2. Check the icon, order of the items, and labels used in the menu
  3. Verify if no icons break with the changes

Release Notes

  • Restructure the main admin menu of the plugin

Screenshot / Video

New restructured menu


Plugin build for 941dfb8
📦 Download plugin zip
▶️ Open in playground

@fjorgemota fjorgemota self-assigned this Oct 10, 2023
@fjorgemota fjorgemota linked an issue Oct 10, 2023 that may be closed by this pull request
@fjorgemota fjorgemota marked this pull request as ready for review October 12, 2023 01:33
@fjorgemota fjorgemota requested a review from a team October 12, 2023 01:34
@fjorgemota fjorgemota changed the title Restructure menus Restructure main admin menu Oct 12, 2023
Copy link
Contributor

@yscik yscik left a comment

Choose a reason for hiding this comment

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

Looks good!

Comment on lines 5 to 9
url(../font/job-manager.eot?16367094#iefix) format("embedded-opentype"),
url(../font/job-manager.woff2?16367094) format('woff2'),
url(../font/job-manager.woff?16367094) format("woff"),
url(../font/job-manager.ttf?16367094) format("truetype"),
url(../font/job-manager.svg?16367094#job-manager) format("svg");
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no need for the extra formats nowadays, woff2 works everywhere:
https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face#browser_compatibility

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! Removed in 770ac8f. Thanks!

add_submenu_page( 'edit.php?post_type=job_listing', __( 'Settings', 'wp-job-manager' ), __( 'Settings', 'wp-job-manager' ), 'manage_options', 'job-manager-settings', [ $this->settings_page, 'output' ] );

if ( WP_Job_Manager_Helper::instance()->has_licensed_products() || apply_filters( 'job_manager_show_addons_page', true ) ) {
add_submenu_page( 'edit.php?post_type=job_listing', __( 'WP Job Manager Add-ons', 'wp-job-manager' ), __( 'Add-ons', 'wp-job-manager' ), 'manage_options', 'job-manager-addons', [ $this, 'addons_page' ] );
add_submenu_page( 'edit.php?post_type=job_listing', __( 'WP Job Manager Extensions', 'wp-job-manager' ), __( 'Extensions', 'wp-job-manager' ), 'manage_options', 'job-manager-addons', [ $this, 'addons_page' ] );
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the latest is that we are calling this 'Marketplace': p6r3EZ-1Nu-p2#comment-3379

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! Renamed in a79e326 and 941dfb8

@@ -247,7 +247,7 @@ public function register_post_types() {
'labels' => [
'name' => $plural,
'singular_name' => $singular,
'menu_name' => ucwords( $plural ),
'menu_name' => __( 'Types', 'wp-job-manager' ),
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also rename 'Job Categories' to 'Categories'?
image

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a good question. I renamed in 2ccdcab, but then we might want to update the Job Tags addon to use only "Tags" on the menu? Not sure.

@fjorgemota fjorgemota merged commit f308537 into feature/upsells Oct 12, 2023
7 checks passed
@fjorgemota fjorgemota deleted the change/restructure-menu branch October 12, 2023 19:28
@github-actions github-actions bot mentioned this pull request Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-design Menus
2 participants