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

feat: post type custom design #940

Merged
merged 23 commits into from
May 29, 2024
Merged

Conversation

NiclasNorin
Copy link
Contributor

No description provided.

@NiclasNorin NiclasNorin marked this pull request as ready for review May 28, 2024 14:05
Copy link
Contributor

@thorbrink thorbrink left a comment

Choose a reason for hiding this comment

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

Good job 🥇 Just a few comments and then double check the tests, they seem to be failing.

library/PostTypeDesign/SetDesigns.php Outdated Show resolved Hide resolved
library/App.php Outdated Show resolved Hide resolved
private const UPDATE_DESIGN = 'post_type_update_design';
private $uniqueId = null;

public function __construct(private string $sectionID, private object $postType)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we maybe pass wpService all the way down into this class? In this case to replace global calls to e.g. esc_html__.

library/PostTypeDesign/ConfigFromPageId.php Outdated Show resolved Hide resolved
library/PostTypeDesign/ConfigSanitizer.php Outdated Show resolved Hide resolved
library/PostTypeDesign/ConfigSanitizer.php Outdated Show resolved Hide resolved
library/PostTypeDesign/ConfigSanitizer.php Outdated Show resolved Hide resolved
library/PostTypeDesign/SaveDesigns.php Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented May 29, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@NiclasNorin NiclasNorin merged commit 5712824 into main May 29, 2024
5 of 7 checks passed
@NiclasNorin NiclasNorin deleted the feat/post-type-custom-design branch May 29, 2024 12:49
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.

None yet

2 participants