feat: user form display modes (tabs/accordion/wizard) + consent-safe plugin-responsive registration #184
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Generalize the shared
layouts/mokoonyx/profile-tabsetlayout so the registration and profile edit forms can render their sections as Tabs, Accordion, or a step-by-step Wizard, selectable via template params. Registration defaults to the wizard (forces users through each section); profile edit defaults to tabs.Motivation
Done (branch
feature/user-form-modes, commit6d38e6c)profile-tabset.php:tabs|accordion|wizard.media/js/user-form-wizard.js: Back/Next, per-step native validation before advancing, hides the caller's submit until the last step, progressive-enhancement (no-JS = all steps visible).user_registration_mode(defaultwizard) +user_profile_mode(defaulttabs).Related
main).Testing plan in a comment below.
Branch created:
feature/184-feat-user-form-display-modes-tabs-accord🧪 Testing plan — User form display modes + consent safety
Build:
feature/user-form-modes(commit6d38e6c). Test with template debug ON (unminified JS).Registration — Wizard (default)
Registration — consent safety (critical) ⚖️
Mode switching (param-driven)
Registration display= Tabs / Accordion → registration re-renders in that mode; all fields incl. consent still present.Profile edit displaydefault = Tabs: profile edit renders as tabs (MFA appears as an extra tab; all plugin fieldsets present). Switch to wizard/accordion → re-renders.Regression
Pass criteria
All three modes render every field (incl. plugin + consent); wizard forces sequential completion with per-step validation; consent is always present and required; no field is ever dropped.