Skip to content
Closed
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
cf835db
Add WPUF post form fields reference documentation
sapayth Sep 3, 2025
1ca880f
feat: initialization of ai form builder design
arifulhoque7 Sep 1, 2025
3c9b092
feat: check box design refinement
arifulhoque7 Sep 2, 2025
89472d9
fix: right side form design
arifulhoque7 Sep 2, 2025
1550861
fix: move all the php file to vue file with build process
arifulhoque7 Sep 2, 2025
3a8218b
fix: design and responsiveness
arifulhoque7 Sep 2, 2025
c702161
fix: design issues
arifulhoque7 Sep 2, 2025
8ee12d9
fix: component divided
arifulhoque7 Sep 2, 2025
77054be
feat :Added ai form builder implementation and the predefined templates
arifulhoque7 Sep 2, 2025
c1df682
php library added for ai and mock fortend form working
arifulhoque7 Sep 2, 2025
5da4716
chore: update implementatoin
arifulhoque7 Sep 2, 2025
32d79a0
fix: mock date field issues
arifulhoque7 Sep 2, 2025
71f9a70
fix issues of template hover css
arifulhoque7 Sep 2, 2025
c83d1b3
fix: design of required fields
arifulhoque7 Sep 3, 2025
a194aad
fix : chat box button logic
arifulhoque7 Sep 3, 2025
3c80547
chore: some code changes for better readability
arifulhoque7 Sep 3, 2025
86a0b46
feat: added the setting from this branch sapayth:feat/settings_for_ai
arifulhoque7 Sep 3, 2025
5351482
fix: updated the model and provide list based on our sdk
arifulhoque7 Sep 3, 2025
3610b30
big changes: real api call aplied
arifulhoque7 Sep 3, 2025
a07ebdb
fix: apply and cancel button
arifulhoque7 Sep 3, 2025
4f59281
some fix that need to privide best response
arifulhoque7 Sep 3, 2025
34b6be0
chore: cleanup codebase
arifulhoque7 Sep 5, 2025
8c1aa7d
chore: code cleanup and fix ai form template only for post forms
arifulhoque7 Sep 5, 2025
e0e5b22
fix: system prompt fix for ai to give specific answer
arifulhoque7 Sep 5, 2025
36f77cd
chore: added post form field reference md
arifulhoque7 Sep 5, 2025
040a0ad
fix: form not changing view
arifulhoque7 Sep 9, 2025
dd99848
fix: dropdown svg icon issues
arifulhoque7 Sep 9, 2025
213f249
fix: form loading issues in edit in builder option
arifulhoque7 Sep 9, 2025
9b0263f
fix: ai response
arifulhoque7 Sep 9, 2025
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
1,847 changes: 1,847 additions & 0 deletions AI_FORM_BUILDER_IMPLEMENTATION_PLAN.md

Large diffs are not rendered by default.

40 changes: 37 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module.exports = function( grunt) {
const tailwindFileMap = {
'admin/form-builder/views/form-builder-v4.1.php': 'admin/form-builder.css',
'admin/form-builder/views/post-form-settings.php': 'admin/form-builder.css',
'assets/js/forms-list.js': 'admin/form-builder.css'
'assets/js/forms-list.js': 'admin/form-builder.css',
'ai-form-builder': 'ai-form-builder.css'
}

var formBuilderAssets = require('./admin/form-builder/assets/js/form-builder-assets.js');
Expand Down Expand Up @@ -121,6 +122,17 @@ module.exports = function( grunt) {
]
},

aiFormBuilderVue: {
files: [
'assets/js/ai-form-builder.js',
'assets/js/components/**/*.vue',
'assets/js/stores/**/*.js',
],
tasks: [
'shell:npm_build_ai_form_builder'
]
},

tailwind: {
files: [
'src/css/**/*.css',
Expand All @@ -136,6 +148,19 @@ module.exports = function( grunt) {
spawn: false
}
},

aiFormBuilder: {
files: [
'src/css/ai-form-builder.css',
'assets/**/*.{js,jsx,ts,tsx,vue,html}',
'includes/Admin/**/*.php',
],
tasks: ['shell:tailwind:src/css/ai-form-builder.css:assets/css/ai-form-builder.css'],
options: {
spawn: false
}
},

},

// Clean up build directory
Expand Down Expand Up @@ -247,6 +272,9 @@ module.exports = function( grunt) {
npm_build: {
command: 'npm run build',
},
npm_build_ai_form_builder: {
command: 'npm run build:ai-form-builder',
},
tailwind: {
command: function ( input, output ) {
return `npx tailwindcss -i ${input} -o ${output}`;
Expand All @@ -270,15 +298,21 @@ module.exports = function( grunt) {
grunt.loadNpmTasks( 'grunt-shell' );
grunt.loadNpmTasks( 'grunt-postcss' );

grunt.registerTask( 'default', [ 'less', 'concat', 'uglify', 'i18n' ] );
grunt.registerTask( 'default', [ 'less', 'concat', 'uglify', 'i18n', 'build-tailwind' ] );

// file auto generation
grunt.registerTask( 'i18n', [ 'makepot' ] );
grunt.registerTask( 'readme', [ 'wp_readme_to_markdown' ] );

// build stuff
grunt.registerTask( 'release', [ 'less', 'concat', 'uglify', 'i18n', 'readme' ] );
grunt.registerTask( 'release', [ 'less', 'concat', 'uglify', 'i18n', 'readme', 'build-tailwind' ] );
grunt.registerTask( 'zip', [ 'clean', 'copy', 'compress' ] );

// Build all Tailwind CSS files
grunt.registerTask( 'build-tailwind', [ 'shell:tailwind:src/css/ai-form-builder.css:assets/css/ai-form-builder.css', 'tailwind' ] );

// Build AI Form Builder assets
grunt.registerTask( 'build-ai-form-builder', [ 'shell:tailwind:src/css/ai-form-builder.css:assets/css/ai-form-builder.css', 'shell:npm_build_ai_form_builder' ] );

grunt.event.on('watch', function(action, filepath, target) {
if (target === 'tailwind') {
Expand Down
Loading
Loading