Admin UX improvements, AI helper, template library, and bug fixes#566
Open
vytisbulkevicius wants to merge 1 commit intodevelopmentfrom
Open
Admin UX improvements, AI helper, template library, and bug fixes#566vytisbulkevicius wants to merge 1 commit intodevelopmentfrom
vytisbulkevicius wants to merge 1 commit intodevelopmentfrom
Conversation
- Collapsible advanced settings in field editor modal - Empty state for fields list with guided CTA - Inline product/category assignment with AJAX search (replaces modal) - AI-powered field generation service (OpenAI + Anthropic) - Template library with 8 data-driven presets (2 free, 6 Pro) - Quick Setup wizard with onboarding for new users - AI Helper for adding/removing fields in existing groups - Live product page preview in field group editor - CSS/JS style presets (5 CSS themes, 4 JS snippets) and AI assistants - Frontend field layout improvements (consistent alignment and spacing) - Fix: multi-group CSS/JS now renders from all attached groups - Fix: stale group references auto-cleaned on product load - Fix: fields without ppom_id no longer silently filtered out - Fix: validation crash on single-value price matrix options - Fix: conditions format mismatch from imports (case-insensitive) - Fix: CodeMirror sync before AJAX form submit - Fix: CSS/JS sanitizer changed from sanitize_text_field to wp_unslash - Fix: CodeMirror editor resizable (removed 139px !important lock)
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Major admin UX overhaul addressing the most common user pain points: setup complexity, blank-slate confusion, manual product assignment workflow, and several pre-existing bugs. Adds AI-powered field generation, a template library with 8 data-driven presets, a Quick Setup onboarding wizard, live product preview, and CSS/JS style presets.
All changes are in the free plugin. Pro features (AI, Pro-only templates, Style tab customization) are gated behind
ppom_pro_is_valid_license()with appropriate upgrade CTAs. AI features additionally require an API key configured in PPOM Settings.Will affect visual aspect of the product
YES — frontend field layout improvements (consistent alignment, spacing, input styling) and new admin UI elements.
Changes overview
New features:
Bug fixes:
ppom_idno longer silently filtered out on frontendsanitize_text_fieldtowp_unslash(was stripping tags and line breaks)139px !importantheight lock)New files:
classes/ai-service.class.php— shared AI backend (API calls, AJAX handlers, field normalizer)classes/template-library.class.php— 8 template definitions + import handlerclasses/onboarding-wizard.class.php— Quick Setup wizard modalModified files:
woocommerce-product-addon.php— requires new class filesbackend/options.php— AI Provider + API Key settingsclasses/fields.class.php— advanced settings collapse, conditions format fixclasses/form.class.php— ppom_id resilience for imported/legacy fieldsclasses/ppom.class.php— multi-group CSS/JS, stale group auto-cleanupcss/ppom-admin.css— styles for all new admin features, CodeMirror resize, presetscss/ppom-style.css— frontend field layout baselineinc/admin.php— sanitizer fix for CSS/JS fieldsinc/validation.php— array key guard for price matrixjs/admin/ppom-admin.js— empty state removal, CodeMirror syncjs/admin/ppom-meta-table.js— Quick Setup button in toolbartemplates/admin/ppom-fields.php— inline assignment, preview, AI Helper, presets, empty stateTest instructions
Quick Setup wizard:
AI Helper (requires Pro + API key in PPOM Settings):
Inline assignment:
Style presets:
Bug fixes:
Check before Pull Request is ready:
Closes https://github.com/Codeinwp/ppom-pro/issues/643.
Closes https://github.com/Codeinwp/ppom-pro/issues/644.
Closes https://github.com/Codeinwp/ppom-pro/issues/645.
Closes https://github.com/Codeinwp/ppom-pro/issues/646.
Closes https://github.com/Codeinwp/ppom-pro/issues/647.
Closes https://github.com/Codeinwp/ppom-pro/issues/648.
Closes https://github.com/Codeinwp/ppom-pro/issues/649.
Closes https://github.com/Codeinwp/ppom-pro/issues/650.
Closes https://github.com/Codeinwp/ppom-pro/issues/651.
Closes https://github.com/Codeinwp/ppom-pro/issues/652.
Closes https://github.com/Codeinwp/ppom-pro/issues/653.