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

Pods 3.2.8 #7347

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
41333b9
Set version to 3.2.8-a-1
sc0ttkclark Aug 31, 2024
e93f06c
Support enabling or disabling wpautop for certain kinds of block content
sc0ttkclark Aug 31, 2024
cae1001
Add fallback for `$pod->field()` and the `find` argument in case the …
sc0ttkclark Aug 31, 2024
8b99c43
Disable phpcs rule for brackets and phpstan fix
sc0ttkclark Aug 31, 2024
76075de
Disable phpcs rule
sc0ttkclark Aug 31, 2024
194a0f6
Update TribalScents to StellarWP
sc0ttkclark Aug 31, 2024
6dee8cc
Update phpcs rules
sc0ttkclark Aug 31, 2024
b4f95c0
Update rules
sc0ttkclark Aug 31, 2024
e449c2f
Update phpcs
sc0ttkclark Aug 31, 2024
8875680
Exclude rules
sc0ttkclark Aug 31, 2024
06183dd
Update rules
sc0ttkclark Aug 31, 2024
c767aa3
Fix phpcs
sc0ttkclark Aug 31, 2024
49cabbf
Update reference
sc0ttkclark Aug 31, 2024
523481f
Update jest
sc0ttkclark Aug 31, 2024
164b45d
Try updating enzyme testing adapter
sc0ttkclark Aug 31, 2024
9ef034a
Install the enzyme adapter
sc0ttkclark Aug 31, 2024
0f36814
Update enzyme adapter
sc0ttkclark Aug 31, 2024
d385823
Update adapter version
sc0ttkclark Sep 1, 2024
84629bd
Update connection description
sc0ttkclark Sep 2, 2024
a3d2fdc
Add pods- prefix to the config paths supported
sc0ttkclark Sep 3, 2024
77aa5e1
Add pods/templates/$template_name to the list of Pods templates hiera…
sc0ttkclark Sep 3, 2024
08b47be
Abstract the default template handling for Pod Pages and ensure they …
sc0ttkclark Sep 3, 2024
1926f14
Update template list
sc0ttkclark Sep 5, 2024
add2f75
Update hook for default templates list
sc0ttkclark Sep 5, 2024
682f5d9
Replace PNG arrows with CSS only arrows and run SCSS (#7161)
heybran Sep 9, 2023
46939b4
Update awe new pods screen HTML structure (#7161)
heybran Sep 29, 2023
091fca8
Fix general paddings and add new grid layout (#7161)
heybran Sep 29, 2023
1467a9d
update add new pods screen (#7161)
heybran Dec 9, 2023
df5f5b3
build css output (#7161)
heybran Dec 9, 2023
3ea326d
remove commented out codes (#7161)
heybran Dec 9, 2023
2b4f0cd
Rebuild assets
sc0ttkclark Sep 7, 2024
99a2a69
More UX updates
sc0ttkclark Sep 8, 2024
28ada55
Tweak heading text
sc0ttkclark Sep 8, 2024
163b438
Remove extra padding
sc0ttkclark Sep 9, 2024
da75987
More CSS work for Add New Pod screen
sc0ttkclark Sep 10, 2024
61e9903
Disable more post types
sc0ttkclark Sep 10, 2024
6c3f61f
Update wizard handling for quick actions
sc0ttkclark Sep 10, 2024
acb09ab
Add taxonomy exclusion
sc0ttkclark Sep 10, 2024
2cc4c83
Feature/7161 add new pod screen UI enhancement (#7230)
sc0ttkclark Sep 10, 2024
cbd2c24
Auto rebuild assets
sc0ttkclark Sep 10, 2024
65ff349
Update padding for wizard
sc0ttkclark Sep 10, 2024
6ccfcd8
Revamp wizard screens across all components
sc0ttkclark Sep 12, 2024
9b36ded
Auto rebuild assets
sc0ttkclark Sep 12, 2024
be8e86d
Update artifact
sc0ttkclark Sep 12, 2024
b4b5752
More fixes for slug sanitization
sc0ttkclark Sep 13, 2024
9e46547
Fixes for phpstan
sc0ttkclark Sep 13, 2024
95e15fb
Simplify slug logic
sc0ttkclark Sep 14, 2024
18c0caa
Fix HTML formatting
sc0ttkclark Sep 14, 2024
83016f5
More phpcs fixes
sc0ttkclark Sep 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
# Upload artifacts (On failure)
# ------------------------------------------------------------------------------
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: output ${{ matrix.suite }}
Expand Down
2 changes: 1 addition & 1 deletion .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<arg name="colors"/>
<arg name="report" value="full,summary"/>

<rule ref="TribalScents"/>
<rule ref="StellarWP"/>
<rule ref="WordPress-VIP-Go"/>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName"/>
Expand Down
11 changes: 11 additions & 0 deletions classes/PodsMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -2949,6 +2949,16 @@ public function is_type_covered( $type, $object_name = null ) {
'wp_navigation' => true,
'wp_template' => true,
'wp_template_part' => true,
'wp_font_face' => true,
'wp_font_family' => true,
// Disable ACF post types.
'acf-taxonomy' => true,
'acf-post-type' => true,
'acf-field-group' => true,
'acf-field' => true,
// Disable Advanced views.
'acf_views' => true,
'acf_cards' => true,
// Disable Beaver Builder post types.
'fl-theme-layout' => true,
'fl-builder-template' => true,
Expand All @@ -2973,6 +2983,7 @@ public function is_type_covered( $type, $object_name = null ) {
'post_format' => true,
'wp_theme' => true,
'wp_template_part_area' => true,
'wp_pattern_category' => true,
// Disable Beaver Builder taxonomies.
'fl-builder-template-category' => true,
'fl-builder-template-type' => true,
Expand Down
110 changes: 78 additions & 32 deletions components/Migrate-ACF/ui/wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,57 +9,67 @@
<?php echo PodsForm::field( '_wpnonce', wp_create_nonce( 'pods-component-' . $component . '-' . $method ), 'hidden' ); ?>
<?php echo PodsForm::field( 'cleanup', 0, 'hidden', array( 'attributes' => array( 'id' => 'pods_cleanup' ) ) ); ?>

<h2 class="italicized"><?php _e( 'Migrate: Import from Advanced Custom Fields', 'pods' ); ?></h2>
<h2 class="italicized"><?php esc_html_e( 'Migrate: Import from Advanced Custom Fields', 'pods' ); ?></h2>

<img src="<?php echo esc_url( PODS_URL ); ?>ui/images/pods-logo-notext-rgb-transparent.png" class="pods-leaf-watermark-right" />

<div id="pods-wizard-box" class="pods-wizard-steps-2 pods-wizard-hide-first">
<div id="pods-wizard-heading">
<ul>
<li class="pods-wizard-menu-current" data-step="1">
<i></i> <span>1</span> <?php _e( 'Setup', 'pods' ); ?>
<i></i> <span>1</span> <?php esc_html_e( 'Step 1: Setup', 'pods' ); ?>
<em></em>
</li>
<li data-step="2">
<i></i> <span>2</span> <?php _e( 'Migrate', 'pods' ); ?>
<i></i> <span>2</span> <?php esc_html_e( 'Step 2: Migrate', 'pods' ); ?>
<em></em>
</li>
</ul>
</div>
<div id="pods-wizard-main">
<div id="pods-wizard-panel-1" class="pods-wizard-panel">
<div class="pods-wizard-content">
<p><?php _e( 'Advanced Custom Fields provides an interface to create Custom Post Types and Custom Taxonomies. You can import these and their settings directly into Pods', 'pods' ); ?></p>
<p><?php esc_html_e( 'Advanced Custom Fields provides an interface to create Custom Post Types and Custom Taxonomies. You can import these and their settings directly into Pods', 'pods' ); ?></p>
</div>
<div id="pods-wizard-options">
<div class="pods-wizard-option">
<a href="#pods-wizard-import" data-opt="0">
<h2><?php _e( 'Import Only', 'pods' ); ?></h2>

<p><?php _e( 'This will import your Custom Post Types and Taxonomies.', 'pods' ); ?></p>
<p><?php _e( 'Until you remove them from Advanced Custom Fields, these will be treated by Pods as extended content types.', 'pods' ); ?></p>
</a>

<p><br /></p>
</div>
<div class="pods-wizard-option">
<a href="#pods-wizard-import-clean" data-opt="1">
<h2><?php _e( 'Import and Clean Up', 'pods' ); ?></h2>

<p><?php _e( 'This will import your Custom Post Types and Taxonomies, and then remove them from Advanced Custom Fields.', 'pods' ); ?></p>
</a>

<p><br /></p>
<div id="pods-wizard-options">
<div class="pods-wizard-options-list">
<div class="pods-wizard-option">
<a href="#pods-wizard-import" data-opt="0">
<div>
<h2><?php esc_html_e( 'Import Only', 'pods' ); ?></h2>

<p><?php esc_html_e( 'This will import your Custom Post Types and Taxonomies.', 'pods' ); ?></p>
<p><?php esc_html_e( 'Until you remove them from Advanced Custom Fields, these will be treated by Pods as extended content types.', 'pods' ); ?></p>
</div>
<span>&#10095;</span>
</a>
</div>
<div class="pods-wizard-option">
<a href="#pods-wizard-import-clean" data-opt="1">
<div>
<h2><?php esc_html_e( 'Import and Clean Up', 'pods' ); ?></h2>

<p><?php esc_html_e( 'This will import your Custom Post Types and Taxonomies, and then remove them from Advanced Custom Fields.', 'pods' ); ?></p>
</div>
<span>&#10095;</span>
</a>
</div>
</div>
</div>
</div>
<div id="pods-wizard-panel-2" class="pods-wizard-panel">
<div id="pods-wizard-panel-2" class="pods-wizard-panel pods-wizard-option-content">
<div class="pods-wizard-content">
<p><?php _e( 'Choose below which Custom Post Types and Taxonomies you want to import into Pods', 'pods' ); ?></p>
<p><?php esc_html_e( 'Choose below which Custom Post Types and Taxonomies you want to import into Pods', 'pods' ); ?></p>

<p>
<a href='#toggle' class='button pods-wizard-toggle-all'
data-toggle='all'><?php esc_html_e( 'Toggle everything on / off', 'pods' ); ?></a>
</p>
</div>

<div class="stuffbox">
<h3><label for="link_name"><?php _e( 'Choose Post Types to Import', 'pods' ); ?></label>
<h3><label for="link_name"><?php esc_html_e( 'Choose Post Types to Import', 'pods' ); ?></label>
</h3>

<div class="inside pods-manage-field pods-dependency">
Expand All @@ -68,10 +78,15 @@
?>
<div class="pods-field-option-group">
<p class="pods-field-option-group-label">
<?php _e( 'Available Post Types', 'pods' ); ?>
<?php esc_html_e( 'Available Post Types', 'pods' ); ?>
</p>

<div class="pods-pick-values pods-pick-checkbox">
<p>
<a href='#toggle' class='button pods-wizard-toggle-all'
data-toggle="post_type"><?php esc_html_e( 'Toggle all on / off', 'pods' ); ?></a>
</p>

<ul>
<?php
foreach ( $post_types as $post_type ) {
Expand All @@ -97,15 +112,15 @@
<?php
} else {
?>
<p class="padded"><?php _e( 'No Post Types were found.', 'pods' ); ?></p>
<p class="padded"><?php esc_html_e( 'No Post Types were found.', 'pods' ); ?></p>
<?php
}//end if
?>
</div>
</div>

<div class="stuffbox">
<h3><label for="link_name"><?php _e( 'Choose Taxonomies to Import', 'pods' ); ?></label>
<h3><label for="link_name"><?php esc_html_e( 'Choose Taxonomies to Import', 'pods' ); ?></label>
</h3>

<div class="inside pods-manage-field pods-dependency">
Expand All @@ -114,10 +129,15 @@
?>
<div class="pods-field-option-group">
<p class="pods-field-option-group-label">
<?php _e( 'Available Taxonomies', 'pods' ); ?>
<?php esc_html_e( 'Available Taxonomies', 'pods' ); ?>
</p>

<div class="pods-pick-values pods-pick-checkbox">
<p>
<a href='#toggle' class='button pods-wizard-toggle-all'
data-toggle="taxonomy"><?php esc_html_e( 'Toggle all on / off', 'pods' ); ?></a>
</p>

<ul>
<?php
foreach ( $taxonomies as $taxonomy ) {
Expand All @@ -141,7 +161,7 @@
<?php
} else {
?>
<p class="padded"><?php _e( 'No Taxonomies were found.', 'pods' ); ?></p>
<p class="padded"><?php esc_html_e( 'No Taxonomies were found.', 'pods' ); ?></p>
<?php
}//end if
?>
Expand All @@ -151,8 +171,8 @@

<div id="pods-wizard-actions" class="pods-wizard-button-interface">
<div id="pods-wizard-toolbar">
<button id="pods-wizard-start" class="button button-secondary"><?php _e( 'Start Over', 'pods' ); ?></button>
<button id="pods-wizard-next" class="button button-primary" data-next="<?php esc_attr_e( 'Next Step', 'pods' ); ?>" data-finished="<?php esc_attr_e( 'Finished', 'pods' ); ?>" data-processing="<?php esc_attr_e( 'Processing', 'pods' ); ?>.."><?php _e( 'Next Step', 'pods' ); ?></button>
<button id="pods-wizard-start" class="button button-secondary"><?php esc_html_e( 'Start Over', 'pods' ); ?></button>
<button id="pods-wizard-next" class="button button-primary" data-next="<?php esc_attr_e( 'Next Step', 'pods' ); ?>" data-finished="<?php esc_attr_e( 'Finished', 'pods' ); ?>" data-processing="<?php esc_attr_e( 'Processing', 'pods' ); ?>.."><?php esc_html_e( 'Next Step', 'pods' ); ?></button>
</div>
<div id="pods-wizard-finished">

Expand All @@ -173,7 +193,33 @@
jQuery( '#pods_cleanup' ).val( $opt.data( 'opt' ) );
};

const toggle_all = {
all: true
};

jQuery( function ( $ ) {
$( '.pods-wizard-toggle-all' ).on( 'click', function ( e ) {
e.preventDefault();

const toggleData = $( this ).data( 'toggle' );

if ( 'undefined' == typeof toggle_all[toggleData] ) {
toggle_all[toggleData] = true;
}

let $parent;

if ( 'all' !== toggleData ) {
$parent = $( this ).closest( '.pods-field-option-group' );
} else {
$parent = $( this ).closest( '.pods-wizard-option-content' );
}

$parent.find( '.pods-field.pods-boolean input[type="checkbox"]' ).prop( 'checked', (!toggle_all[toggleData]) );

toggle_all[toggleData] = (!toggle_all[toggleData]);
} );

$( document ).Pods( 'validate' );
$( document ).Pods( 'submit' );
$( document ).Pods( 'wizard' );
Expand Down
Loading
Loading