Skip to content

Conversation

@arifulhoque7
Copy link
Contributor

@arifulhoque7 arifulhoque7 commented Oct 20, 2025

  • Merged upstream/develop (commits up to f8a9a6e)
  • Fixed tailwind.config.js to prevent CSS purging of form styles
    • Restored critical content paths: includes/Admin, admin/form-builder/assets/js
    • Kept new subscription template paths from upstream
    • Re-added daisyui plugin for compatibility
  • Rebuilt form-builder.css with correct configuration
    • Restored @tailwindcss/forms base styles (2,106 lines)
    • Fixed missing input, checkbox, radio, and select styles

The upstream commit f8a9a6e had a broken tailwind.config.js that removed critical content paths, causing Tailwind to purge essential form styles. This commit combines both old and new content paths to ensure all styles are included while maintaining new functionality.

Summary by CodeRabbit

  • Style
    • Comprehensive refresh of form-builder interface styling with enhanced buttons, dropdowns, tabs, tables, and toggles
    • Improved responsive design support across all screen sizes and devices
    • Added light and dark theme compatibility with refined color system

- Merged upstream/develop (commits up to f8a9a6e)
- Fixed tailwind.config.js to prevent CSS purging of form styles
  - Restored critical content paths: includes/Admin, admin/form-builder/assets/js
  - Kept new subscription template paths from upstream
  - Re-added daisyui plugin for compatibility
- Rebuilt form-builder.css with correct configuration
  - Restored @tailwindcss/forms base styles (2,106 lines)
  - Fixed missing input, checkbox, radio, and select styles

The upstream commit f8a9a6e had a broken tailwind.config.js that removed
critical content paths, causing Tailwind to purge essential form styles.
This commit combines both old and new content paths to ensure all styles
are included while maintaining new functionality.
@arifulhoque7 arifulhoque7 requested a review from sapayth October 20, 2025 07:49
@arifulhoque7 arifulhoque7 self-assigned this Oct 20, 2025
@coderabbitai
Copy link

coderabbitai bot commented Oct 20, 2025

Walkthrough

Extensive CSS additions for form-builder UI system with comprehensive component styling (buttons, inputs, dropdowns, tables, modals, tooltips). Updates Tailwind configuration to integrate daisyui plugin and expand content paths for PHP and JavaScript templates.

Changes

Cohort / File(s) Summary
Form Builder CSS Styling
assets/css/admin/form-builder.css
Added extensive UI component styling including global form controls, button system with hover/active states, dropdowns, tabs, tables with sticky headers, toggles, tooltips, modals, and toast animations. Introduced utility classes with light/dark theme support, responsive breakpoint variants (sm:, md:, lg:, xl:), and RTL-aware rules. Updated button hover colors and removed collapse visibility rule.
Tailwind Configuration
tailwind.config.js
Extended content array with new paths (./assets/**/*.{js,jsx,ts,tsx,vue,html}, ./includes/Admin/**/*.php, ./admin/form-builder/assets/js/**/*.php, ./templates/**/*.php, wpuf-functions.php) and removed ./assets/js/**/*.{js,vue}. Added daisyui plugin with empty themes configuration.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20–25 minutes

Significant volume of CSS additions following consistent theming and utility class patterns reduces cognitive complexity per rule. Tailwind config updates are straightforward. Review requires understanding design system integration, daisyui plugin usage, and content path coverage validation.

Possibly related PRs

Suggested labels

needs: dev review

Suggested reviewers

  • sapayth

Poem

🐰 A form so fine with buttons bright,
Daisyui blooms in dark and light,
Tailwind paths now stretch so wide,
Styled components, theme-allied!
Admin forms hop with grace applied. 🎨✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "Merge upstream/develop and fix form-builder CSS issue" directly and accurately reflects the main objectives of this changeset. The title captures both primary actions taken: merging upstream/develop into the target branch and fixing a Tailwind CSS purge issue that had removed essential form-builder styles. It is concise, specific enough to convey meaningful information about the changeset without being verbose or vague, and avoids unnecessary noise like file listings or generic terms. A teammate scanning the project history would clearly understand that this PR addresses both an upstream merge and a CSS-related fix for the form-builder system.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f8a9a6e and f26bc5c.

📒 Files selected for processing (2)
  • assets/css/admin/form-builder.css (46 hunks)
  • tailwind.config.js (2 hunks)
🧰 Additional context used
🪛 Biome (2.1.2)
assets/css/admin/form-builder.css

[error] 641-641: Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally.

outline is already defined here.

Remove or rename the duplicate property to ensure consistent styling.

(lint/suspicious/noDuplicateProperties)


[error] 891-891: Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally.

border-color is already defined here.

Remove or rename the duplicate property to ensure consistent styling.

(lint/suspicious/noDuplicateProperties)


[error] 951-951: Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally.

transition-timing-function is already defined here.

Remove or rename the duplicate property to ensure consistent styling.

(lint/suspicious/noDuplicateProperties)


[error] 1358-1358: Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally.

line-height is already defined here.

Remove or rename the duplicate property to ensure consistent styling.

(lint/suspicious/noDuplicateProperties)


[error] 1406-1406: Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally.

line-height is already defined here.

Remove or rename the duplicate property to ensure consistent styling.

(lint/suspicious/noDuplicateProperties)


[error] 1710-1710: Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally.

transition-timing-function is already defined here.

Remove or rename the duplicate property to ensure consistent styling.

(lint/suspicious/noDuplicateProperties)


[error] 2144-2144: Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally.

line-height is already defined here.

Remove or rename the duplicate property to ensure consistent styling.

(lint/suspicious/noDuplicateProperties)


[error] 2152-2152: Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally.

line-height is already defined here.

Remove or rename the duplicate property to ensure consistent styling.

(lint/suspicious/noDuplicateProperties)


[error] 2248-2248: Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally.

transition-property is already defined here.

Remove or rename the duplicate property to ensure consistent styling.

(lint/suspicious/noDuplicateProperties)


[error] 2278-2278: Duplicate properties can lead to unexpected behavior and may override previous declarations unintentionally.

width is already defined here.

Remove or rename the duplicate property to ensure consistent styling.

(lint/suspicious/noDuplicateProperties)

🔇 Additional comments (4)
tailwind.config.js (3)

7-15: LGTM! Content paths restored successfully.

The content paths have been properly expanded to include all necessary template directories. The restoration of ./includes/Admin/**/*.php and ./admin/form-builder/assets/js/**/*.php should resolve the Tailwind purge issue mentioned in the PR objectives.


28-28: LGTM! DaisyUI plugin properly integrated.

The daisyui plugin has been correctly added to restore the component library as mentioned in the PR objectives.


30-32: Verify the empty themes array is intentional.

The themes: [] configuration disables all daisyUI themes. Based on learnings about daisyUI 4.12.2, an empty themes array means no theme CSS will be generated, which could affect components that rely on theme variables.

If you intend to use daisyUI components with theming, consider specifying at least one theme or removing the themes configuration to use defaults:

 daisyui: {
-    themes: [],
+    // themes: false, // to disable all themes
+    // themes: ["light", "dark"], // or specify themes you need
 }

Based on learnings: daisyUI v4 provides multiple built-in themes and CSS variables. An empty themes array may cause components to lack proper color variables.

assets/css/admin/form-builder.css (1)

1-6370: Generated CSS appears complete but contains duplicate properties.

This CSS file was automatically generated by Tailwind CSS v3.4.11 with the @tailwindcss/forms and daisyUI plugins. The static analysis tool has flagged 10 instances of duplicate properties (outline, border-color, transition-timing-function, line-height, transition-property, width) throughout the file.

These duplicates are typically intentional in generated CSS for progressive enhancement or browser compatibility, but it's worth verifying visually that components render correctly.

If you notice any visual issues with the form builder components, the duplicate properties at the following lines may need investigation:

  • Lines 641, 891, 951, 1358, 1406, 1710, 2144, 2152, 2248, 2278

Otherwise, since this is auto-generated code rebuilt with the corrected configuration, it should be functioning as intended.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sapayth sapayth merged commit bbd5e32 into weDevsOfficial:develop Oct 20, 2025
2 checks passed
arifulhoque7 added a commit to arifulhoque7/wp-user-frontend that referenced this pull request Oct 20, 2025
arifulhoque7 added a commit to arifulhoque7/wp-user-frontend that referenced this pull request Oct 20, 2025
arifulhoque7 added a commit to arifulhoque7/wp-user-frontend that referenced this pull request Oct 22, 2025
sapayth added a commit that referenced this pull request Oct 29, 2025
* Add WPUF post form fields reference documentation

Introduces a comprehensive Markdown reference for all available WPUF (WordPress User Frontend) post form fields, including field types, properties, options, Pro vs Free distinctions, validation rules, templates, and usage guidelines for AI-driven form creation

* feat: initialization of ai form builder design

* feat: check box design refinement

* fix: right side form design

* fix: move all the php file to vue file with build process

* fix: design and responsiveness

* fix: conflict

* fix: component divided

* feat :Added ai form builder implementation and the predefined templates

* php library added for ai and mock fortend form working

* chore: update implementatoin

* fix: mock date field issues

* fix issues of template hover css

* fix: design of required fields

* fix : chat box button logic

* chore: some code changes for better readability

* feat: added the setting from this branch sapayth:feat/settings_for_ai

* fix: updated the model and provide list based on our sdk

* big changes: real api call aplied

* fix: apply and cancel button

* some fix that need to privide best response

* chore: cleanup codebase

* chore: code cleanup and fix ai form template only for post forms

* fix: system prompt fix for ai to give specific answer

* chore: added post form field reference md

* fix: form not changing view

* fix: dropdown svg icon issues

* fix: form loading issues in edit in builder option

* fix: ai response

* fix: ai respones properly

* feat: design the modal of regenerate

* design fix modal

* fix: country fields fix

* fix: button disabled while generating response

* added pro fields checks in form success stage

* feat: added checkpoitns to each responses

* fix: radio field issues

* fix: design

* fix : msg and text area field issus

* fix: ai response

* feat: added latest model

* fix: gotosettings link when the ai settings is not configured

* fix : ai response waiting to form builder

* fix: ai respose for check box , radio button  and dropdowns

* fix: design

* fix: design

* fix: ignore form related questions

* fix: remove predefined provider

* fix: confetti url fix

* fix: broken response

* fix: settings onchange

* fix: selectted prompt unselect on change prompt input

* remove unused file from form generator

* fix: settings and md file change

* big changes: updated prompt and code refactor

* feat: add new button for ai form builder

* fix: waarnind added properly

* remove test file

* fix: coderabbit issues and checkpoints

* fix: ai form builder design cs s

* fix: code rabbit issues

* fix the admin css and dynamic link

* feat: ui desing fix

* fix: last resotore point not show

* fix: gif issues and other feeddback

* fix: post_type_object type error '

* chore : remove var dump

* fix: ai stage check and updated model

* fix: property form prompts

* chore: remove erro log

* chore: coderabbit issues

* fix: generalized the prompt

* feat: added registration ai form builder

* fix: ai return msg

* fix: response ai

* fix : all console logs

* fix: Updated the localization handle - Changed wp_localize_script() from 'wpuf-admin-script' to 'wpuf-admin' to match the registered script handle

* fix: ai model list in one place

* fix: file exists check for generator

* chore: rest controller optimization

* chore: AI_Manager fix

* fix: 00% Consistent Naming - All components now use rest_url (snake_case) for the REST API URL property across the entire codebase

* fix: resolve conflicts

* Enhancement/tailwind subscription packs view 993 (#1689)

* feat(subscription): implement Tailwind UI-based layout for packs view

* fix: design cjange

* fix: Fix subscription pack 'See more' button affecting multiple cards

- Moved JavaScript toggle function from pack-details.php to listing.php
- Function is now defined only once instead of being redefined for each pack
- Added unique IDs for each pack's elements to ensure proper isolation
- Added null checks to prevent errors if elements are not found
- Each subscription pack card now expands/collapses independently

This fixes the issue where clicking "See more" on one subscription pack
would expand all packs simultaneously. Now each pack's features list
expands and collapses independently as expected.

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>

* fix: Improve subscription pack toggle to use event delegation

- Replaced onclick handlers with data attributes and event delegation
- Added unique data-wpuf-pack-id attributes for proper isolation
- Implemented event listener on document level to handle all toggles
- Added data-expanded attribute to track button state
- Prevents multiple event listener registrations with initialization flag
- Each pack now properly expands/collapses independently

This ensures that clicking "See more" on one subscription pack only
affects that specific pack, not others on the page.

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>

* feat : added button color customization

* change the settings--->preferences

* fix: coderabit issues

* chore: yoda fuctions applied

* fix tailwind config

* fix: color fix

* chore : remove unused library

* fix: primary emerald color

* fix: import colors in tailwind.config.js and rebuild forms-list.min.js

---------

Co-authored-by: Claude <[email protected]>

* Merge upstream/develop and fix form-builder CSS issue (#1718)

* merge conflict remove

* fix: address field not working

* fix: category dropdown

* fix: prompts

* fix: registration form ai form

* fix: ai form builder fix:

* fix: predefined prompt

* fix: country field

* big changes: optimization and other fix

* fix : registration forms fields

* fix: bio and profile fields

* fix: ai response field options

* fix: ai form builder restore points

* fix: google map and bio field

* chore: remove debug log

* fix: google map error:

* fix: desing settings

* fix: options show

* fix: select , multi select and radio button fix in ai form builder

* fix: show data in post and hide field label in pst for ai form

* fix: max fiel and file size missing default valuw

* fix: embed field integration

* fix: issues

* fix: issues

* fix: shortcode ai generated dynamic

* fix: profile photo and avatar photo

* fix: ai form builder column fields check

* fix: column fields slider issues

* fix: language change in ai form builder

* fix: shortcode fix

* fix: shortcode

* fix: ai form builder issue

* fix: social and profile field

* fix: socil field meta key

---------

Co-authored-by: Sapayth Hossain <[email protected]>
Co-authored-by: Claude <[email protected]>
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.

2 participants