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

Track AI Onboarding Changes #368

Merged
merged 417 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
417 commits
Select commit Hold shift + click to select a range
2ff0e7d
Merge branch 'enhance/preview-step' of https://github.com/newfold-lab…
arunshenoy99 Dec 7, 2023
67b2c3a
Merge branch 'enhance/preview-step' of https://github.com/newfold-lab…
arunshenoy99 Dec 7, 2023
e0bf252
Lint Fixes
arunshenoy99 Dec 7, 2023
b8ea393
Lint fixes
arunshenoy99 Dec 7, 2023
2e6bf66
PRESS2-1262 | favorite toggle
Dec 7, 2023
2a33861
PRESS2-1913 | replaced filename casing
Dec 7, 2023
be0a560
Sidebar fixes
arunshenoy99 Dec 7, 2023
f8c6464
Fix Responsiveness Issues :construction:
officiallygod Dec 7, 2023
4afc518
PRESS2-1262 | added on the sitegen object in store
Dec 7, 2023
987ba47
Fix Link for Migration
officiallygod Dec 8, 2023
9ee916b
Update index.js
officiallygod Dec 8, 2023
66ae96f
Mark AI Sitegen Generated Themes on themes.php
arunshenoy99 Dec 11, 2023
e5340c1
questionnaire from api
girish-lokapure Dec 12, 2023
bf45801
lint fixes
girish-lokapure Dec 12, 2023
f147fd9
PRESS2-1262 | integration home page
Dec 12, 2023
4da6027
Merge pull request #385 from newfold-labs/enhance/preview-step
arunshenoy99 Dec 13, 2023
dca0ef4
Merge pull request #386 from newfold-labs/enhance/preview-sidebar
arunshenoy99 Dec 13, 2023
4ee24e2
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
arunshenoy99 Dec 13, 2023
e0e02b6
Merge pull request #388 from newfold-labs/enhance/child-theme-generation
arunshenoy99 Dec 13, 2023
08feb2e
Merge pull request #384 from newfold-labs/fix-fork-page-issues
arunshenoy99 Dec 13, 2023
9c923d5
Merge pull request #391 from newfold-labs/enhance/mark-sitegen-themes
arunshenoy99 Dec 13, 2023
a4fc45c
resetting build
girish-lokapure Dec 13, 2023
bd6a2cc
resetting build
girish-lokapure Dec 13, 2023
dbfc279
resetting build
girish-lokapure Dec 13, 2023
b4a66bf
Dump some code
officiallygod Dec 14, 2023
7c57bd3
PRESS-1262 | added home pages call
Dec 14, 2023
3163b56
PRESS2-1262 | created generating site loaders
Dec 15, 2023
39698d5
PRESS2-1465 | updated according to changes in option table
Dec 18, 2023
fc18656
PR changes
girish-lokapure Dec 18, 2023
81c0168
PRESS2-1465
Dec 18, 2023
1364820
lint fixes
girish-lokapure Dec 18, 2023
e77db69
Merge branch 'enhance/ai-onboarding' of github.com:newfold-labs/wp-mo…
girish-lokapure Dec 18, 2023
288e2a3
Update stylesheet.scss
girish-lokapure Dec 18, 2023
1780d4f
Update stylesheet.scss
girish-lokapure Dec 18, 2023
b044a9e
Demo Commit
officiallygod Dec 19, 2023
aed3e5a
Fix Styling
officiallygod Dec 20, 2023
8d1ff31
Cleanup.
officiallygod Dec 20, 2023
490d11a
Revert "Cleanup."
officiallygod Dec 20, 2023
cc28f26
Fix Lint
officiallygod Dec 20, 2023
46072f9
Comment
officiallygod Dec 20, 2023
fa8ff4a
PRESS2-1465 | added regenerate changes
Dec 20, 2023
8d05642
PRESS2-1465 | regenerated api endpoint
Dec 20, 2023
ed52a07
SiteGen: Plugin Installation
arunshenoy99 Dec 21, 2023
e068de5
Lint fixes
arunshenoy99 Dec 21, 2023
be980c8
PRESS2-1465
Dec 21, 2023
80b1ae3
New screen changes
girish-lokapure Dec 21, 2023
cfecccc
Update stylesheet.scss
girish-lokapure Dec 21, 2023
4071e8f
Revert "PRESS2-1465 | regenerated api endpoint"
Dec 21, 2023
e49b0fe
PRESS2-1465
Dec 22, 2023
e913362
Merge pull request #395 from newfold-labs/enhance/sitegen-plugins
arunshenoy99 Dec 26, 2023
7fb5da1
Update index.js
officiallygod Dec 27, 2023
dcbfed8
Update index.js
officiallygod Dec 27, 2023
59d66fd
Update index.js
officiallygod Dec 27, 2023
c170c26
Update stylesheet.scss
girish-lokapure Dec 27, 2023
4ed4c9e
Basic Input Analysis Checks
officiallygod Dec 27, 2023
fbc2c96
Update analyser.js
officiallygod Dec 27, 2023
00decb0
Final Analyser Piece
officiallygod Dec 27, 2023
a775299
Update analyser.js
officiallygod Dec 27, 2023
342a693
Update analyser.js
officiallygod Dec 27, 2023
e2b2a67
Update analyser.js
officiallygod Dec 27, 2023
481b1cd
Update analyser.js
officiallygod Dec 27, 2023
87130ef
Lintzy
officiallygod Dec 27, 2023
1008e48
PRESS2-1465 | regenerate functionality
Dec 28, 2023
f69ba4d
Merge branch 'enhance/ai-onboarding' into api-integration-preview-hom…
ajayadav09 Dec 29, 2023
c052920
updated preview
ajayadav09 Dec 29, 2023
a1fc1f2
Merge pull request #394 from newfold-labs/fix-dynamic-bg
arunshenoy99 Jan 1, 2024
7cc1db1
PRESS2-1465 | fixed linting issues
ajayadav09 Jan 2, 2024
91acf81
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
ajayadav09 Jan 2, 2024
bd38902
Merge branch 'trunk' of https://github.com/newfold-labs/wp-module-onb…
arunshenoy99 Jan 3, 2024
7aeb3bc
Update package.lock
arunshenoy99 Jan 3, 2024
a8b49d8
Add Memo to optimize code.
officiallygod Jan 3, 2024
500eacd
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
ajayadav09 Jan 3, 2024
bb4a753
Fixing PR comments | removed bg image
ajayadav09 Jan 3, 2024
9ab19d6
Press2-1465 | fixing PR comments
ajayadav09 Jan 4, 2024
695f879
Optimize Code
officiallygod Jan 4, 2024
ee14d50
Update index.js
officiallygod Jan 4, 2024
976d931
Press2-1465 | updated get options from Option
ajayadav09 Jan 4, 2024
246bae9
PRESS2-1465 | changed favourite logic
ajayadav09 Jan 5, 2024
2935589
create fork step test
avneet-raj Jan 5, 2024
a390f20
PRESS2-1465 | fixed Option with get_option
ajayadav09 Jan 5, 2024
712eb11
Changing Gif
officiallygod Jan 8, 2024
ae0be8b
PRESS2-1465 | fixed php linting
ajayadav09 Jan 8, 2024
121c22e
Add the remaining tests
avneet-raj Jan 8, 2024
8bbd4c6
Changes
officiallygod Jan 8, 2024
d9ec47e
Fix Header weird GAP.
officiallygod Jan 8, 2024
a8039ea
Update index.js
officiallygod Jan 8, 2024
f11a232
Merge branch 'trunk' of https://github.com/newfold-labs/wp-module-onb…
arunshenoy99 Jan 9, 2024
5b00cf3
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
arunshenoy99 Jan 9, 2024
5615d0d
Merge branch 'trunk' of https://github.com/newfold-labs/wp-module-onb…
arunshenoy99 Jan 9, 2024
f62be25
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
arunshenoy99 Jan 9, 2024
0f0a804
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
arunshenoy99 Jan 9, 2024
c4f6307
More lint fixes
arunshenoy99 Jan 9, 2024
3006c7e
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
arunshenoy99 Jan 9, 2024
fc44851
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
arunshenoy99 Jan 9, 2024
d33dfc7
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
arunshenoy99 Jan 9, 2024
59c579d
PR changes
girish-lokapure Jan 9, 2024
a3b4d5b
Merge branch 'add/sitedetails/simple' of github.com:newfold-labs/wp-m…
girish-lokapure Jan 9, 2024
731d752
Merge pull request #397 from newfold-labs/enhance/analysis-score-js
arunshenoy99 Jan 9, 2024
8c991e6
Merge branch 'enhance/ai-onboarding' into enhance/improve-performance
officiallygod Jan 9, 2024
c69a9dd
Fix Merge Conflicts
officiallygod Jan 9, 2024
02b803c
Merge pull request #400 from newfold-labs/enhance/improve-performance
arunshenoy99 Jan 9, 2024
a3ad4ef
PRESS2-1465 | added check
ajayadav09 Jan 10, 2024
5fa6c96
Merge branch 'enhance/ai-onboarding' of github.com:newfold-labs/wp-mo…
girish-lokapure Jan 10, 2024
147a026
lint fixes
girish-lokapure Jan 10, 2024
d3044f5
Update stylesheet.scss
girish-lokapure Jan 10, 2024
bef70c0
address review comments
avneet-raj Jan 10, 2024
8b217a6
Update fork.cy.js
avneet-raj Jan 10, 2024
13d0137
Merge pull request #403 from newfold-labs/add-initial-tests
avneet-raj Jan 10, 2024
953149e
PRESS2-1465 | handled error responses
ajayadav09 Jan 10, 2024
0d347b0
PRESS2-1465 | changed skeleton
ajayadav09 Jan 11, 2024
4b72509
Press2-1465 | updated preview
ajayadav09 Jan 11, 2024
8520596
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
ajayadav09 Jan 11, 2024
50ee515
Press2-1465 | hiding darkmode toggle from editor step
ajayadav09 Jan 11, 2024
19ce21b
create & add site-logo tests
avneet-raj Jan 11, 2024
0413114
Some Changes
officiallygod Jan 12, 2024
75e89b9
Update index.js
officiallygod Jan 12, 2024
09914b3
Update index.js
officiallygod Jan 12, 2024
93cc06b
add welcome step tests
avneet-raj Jan 12, 2024
c3b331e
Update site-logo.cy.js
avneet-raj Jan 12, 2024
6aa3c2a
update logo upload step
avneet-raj Jan 12, 2024
00afc88
Delete sitegen-ai-animation.45cdf3b3.gif
ajayadav09 Jan 12, 2024
0a6e6af
Merge pull request #411 from newfold-labs/add-welcome-step-tests
avneet-raj Jan 12, 2024
814ca25
Merge pull request #410 from newfold-labs/add-site-logo-step-tests
avneet-raj Jan 12, 2024
105a327
Merge pull request #380 from newfold-labs/api-integration-preview-hom…
arunshenoy99 Jan 15, 2024
0b7ab33
Add Frontend!
officiallygod Jan 15, 2024
a13b64b
lint
officiallygod Jan 15, 2024
863cabb
Merge branch 'enhance/ai-onboarding' of github.com:newfold-labs/wp-mo…
girish-lokapure Jan 15, 2024
e074db7
Use a dynamic list :stars:
officiallygod Jan 15, 2024
9d24d1d
Wait for lint to break :eyes:
officiallygod Jan 15, 2024
aa899a2
Fix Lint :wheelchair:
officiallygod Jan 15, 2024
30aae74
lintttt
officiallygod Jan 15, 2024
98e8a85
Update index.js
officiallygod Jan 15, 2024
4fea781
Update index.js
officiallygod Jan 15, 2024
0d9899e
Update index.js
officiallygod Jan 15, 2024
eb933af
Update index.js
officiallygod Jan 15, 2024
4671e14
Finallyyy linted
officiallygod Jan 15, 2024
7b4ef77
Fix Next Placement
officiallygod Jan 15, 2024
965c7c9
Update index.js
officiallygod Jan 15, 2024
12a6a39
Update index.js
officiallygod Jan 15, 2024
4edc4aa
Add homepages to wonder blocks
arunshenoy99 Jan 15, 2024
725407a
Update function name
arunshenoy99 Jan 15, 2024
6f7a110
Sitegen Minor Fixes 2
arunshenoy99 Jan 15, 2024
c6f7a78
Merge pull request #382 from newfold-labs/add/sitedetails/simple
arunshenoy99 Jan 15, 2024
4202460
Merge branch 'enhance/ai-onboarding' into hotfix/fix-minor-bugs
officiallygod Jan 16, 2024
2b837c7
Merge pull request #413 from newfold-labs/activate-woocommerce-by-pre…
arunshenoy99 Jan 16, 2024
a73083b
Merge pull request #415 from newfold-labs/enhance/wonder-blocks-homep…
arunshenoy99 Jan 16, 2024
d984c30
Reduce footer width on larger screens
arunshenoy99 Jan 16, 2024
fb3ebe0
added regenerate on editor
ajayadav09 Jan 16, 2024
bf1a76a
Update index.js
officiallygod Jan 17, 2024
7739438
Merge pull request #414 from newfold-labs/hotfix/fix-minor-bugs
arunshenoy99 Jan 17, 2024
ebf244e
Merge pull request #416 from newfold-labs/hotfix/fix-minor-bugs-2
arunshenoy99 Jan 17, 2024
5c95c1f
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
ajayadav09 Jan 17, 2024
72a853c
Minor Changes
officiallygod Jan 17, 2024
447b57a
Merge branch 'enhance/ai-onboarding' into sitegen-hiive-capability-flag
officiallygod Jan 17, 2024
c08bb8f
Integrate dev version
arunshenoy99 Jan 17, 2024
6d3083f
Update stylesheet.scss
officiallygod Jan 17, 2024
acd31f7
More
officiallygod Jan 17, 2024
505b1d8
Add missing updateInitialize code for plugin install
arunshenoy99 Jan 17, 2024
dfcb460
Add SiteGen Customize Sidebar (#417)
mr-vara Jan 17, 2024
7be5e3f
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
ajayadav09 Jan 17, 2024
9db0e43
Merge pull request #418 from newfold-labs/enhance/plugin-recommendations
arunshenoy99 Jan 17, 2024
a447a6f
Update index.js
officiallygod Jan 17, 2024
cbe2366
Merge pull request #412 from newfold-labs/sitegen-hiive-capability-flag
arunshenoy99 Jan 17, 2024
03c18ed
fixed header on editor page | responsiveness
ajayadav09 Jan 17, 2024
e159f20
Merge branch 'enhance/ai-onboarding' into PRESS2-1562-sitegen-editor-…
ajayadav09 Jan 17, 2024
6007e75
Add facebook module
arunshenoy99 Jan 17, 2024
9322968
add social media step before logo
arunshenoy99 Jan 17, 2024
315cc92
Merge branch 'trunk' of https://github.com/newfold-labs/wp-module-onb…
arunshenoy99 Jan 17, 2024
0eecbf1
Remove Detailed Prompt View
arunshenoy99 Jan 17, 2024
5bbbfab
fixed spinner on save and continue
ajayadav09 Jan 17, 2024
2a38db4
Merged changes from enhance/ai-onboarding into PRESS2-1562-sitegen-ed…
ajayadav09 Jan 17, 2024
51a1974
fixed lint
ajayadav09 Jan 17, 2024
adc39e6
fix js lint
ajayadav09 Jan 17, 2024
958a124
Remove build
arunshenoy99 Jan 18, 2024
d0c03b7
Merge pull request #422 from newfold-labs/PRESS2-1562-sitegen-editor-…
arunshenoy99 Jan 18, 2024
280f3b0
Merge pull request #421 from newfold-labs/remove/sitegen-detailed-prompt
arunshenoy99 Jan 18, 2024
837299e
Customize Sidebar Fixes
mr-vara Jan 18, 2024
ca7c9a6
Merge pull request #423 from newfold-labs/customize-sidebar-fixes
officiallygod Jan 18, 2024
fb4efb5
disabled rename input
ajayadav09 Jan 18, 2024
c757d32
Merge branch 'enhance/facebook-connect' of https://github.com/newfold…
arunshenoy99 Jan 18, 2024
6e2a5a3
regenerating spinner
ajayadav09 Jan 18, 2024
e2d4474
added spinner for regenerate
ajayadav09 Jan 18, 2024
1be8843
fixed linting
ajayadav09 Jan 18, 2024
640c04c
fix linting
ajayadav09 Jan 18, 2024
be5e438
Fix issues post integration
arunshenoy99 Jan 19, 2024
c465a9b
Code refactor pt 1
arunshenoy99 Jan 22, 2024
2f4af42
Update index.js
officiallygod Jan 22, 2024
cbde69d
Merge remote-tracking branch 'origin/fix/child-theme-generation' into…
officiallygod Jan 23, 2024
28c7918
Fix Bugs
officiallygod Jan 23, 2024
47b0344
Fixed slow Heart animation
officiallygod Jan 23, 2024
585a69a
Lintzy
officiallygod Jan 23, 2024
799fe02
ui fixes
girish-lokapure Jan 23, 2024
76b78a7
Update stylesheet.scss
officiallygod Jan 23, 2024
4961796
Animation to preview
officiallygod Jan 23, 2024
6d3d7fd
Update index.js
officiallygod Jan 23, 2024
7b275a3
Code refactor pt 2
arunshenoy99 Jan 23, 2024
563b119
Facebook state and navigate next on connect
arunshenoy99 Jan 23, 2024
c14127a
Revert skip_cache
arunshenoy99 Jan 23, 2024
3d90449
Update stylesheet.scss
officiallygod Jan 24, 2024
81b673d
Update stylesheet.scss
officiallygod Jan 24, 2024
9fdcf83
Merge remote-tracking branch 'origin/fix/child-theme-generation' into…
officiallygod Jan 24, 2024
26a4d8e
lint issues
girish-lokapure Jan 24, 2024
0cac47b
Update dependencies
arunshenoy99 Jan 24, 2024
b7ada26
fix issue with onboarding in AI branch
mr-vara Jan 25, 2024
a4e14fd
Merge remote-tracking branch 'origin/fix/child-theme-generation' into…
officiallygod Jan 25, 2024
3254868
Improve Footer Logic
officiallygod Jan 25, 2024
b69ea79
Use prefers-reduced-motion
officiallygod Jan 25, 2024
d79e62c
Lint
officiallygod Jan 25, 2024
00b63f2
Update stylesheet.scss
officiallygod Jan 25, 2024
904726e
css changes
girish-lokapure Jan 25, 2024
a60aaf1
CR fixes and code cleanup
arunshenoy99 Jan 25, 2024
aabf136
Merge pull request #426 from newfold-labs/the-fixes-just-go-on
arunshenoy99 Jan 25, 2024
3bc0361
Lint fixes
arunshenoy99 Jan 25, 2024
2964099
Merge branch 'fix/child-theme-generation' of https://github.com/newfo…
arunshenoy99 Jan 25, 2024
a70d332
Merge pull request #425 from newfold-labs/fix/child-theme-generation
arunshenoy99 Jan 25, 2024
644ad85
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
arunshenoy99 Jan 25, 2024
cc905da
Merge pull request #424 from newfold-labs/rename-fixes
arunshenoy99 Jan 25, 2024
15331f4
review changes
girish-lokapure Jan 25, 2024
734a2dc
pr
girish-lokapure Jan 25, 2024
e463580
initial commit
avneet-raj Jan 25, 2024
8eba561
Update stylesheet.scss
girish-lokapure Jan 25, 2024
9245739
Fix issue with step complete
mr-vara Jan 25, 2024
907c2d0
margin issues
girish-lokapure Jan 25, 2024
8ef143f
Merge pull request #427 from newfold-labs/PRESS2-1574-ui-fixes
arunshenoy99 Jan 25, 2024
b77d91e
add remaining tests
avneet-raj Jan 25, 2024
8cb0d9a
Press2 1570 visual fixes preview editor (#431)
ajayadav09 Jan 29, 2024
81acdfc
Merge branch 'enhance/ai-onboarding' into fix-press2-1589-onboarding-…
mr-vara Jan 29, 2024
cac31d0
hire pro fix
girish-lokapure Jan 29, 2024
eec8d29
Separate out header, content and footer for homepages
arunshenoy99 Jan 30, 2024
7ec7f78
Lint fixes
arunshenoy99 Jan 30, 2024
f7176a6
Merge pull request #430 from newfold-labs/add-experience-and-building…
arunshenoy99 Jan 30, 2024
9cf476f
Reset the customized fonts and colors in SiteGen Preview (#433)
mr-vara Jan 30, 2024
7f2f571
Sitegen: Trigger sitemap pages once preview step is done
arunshenoy99 Jan 30, 2024
653f218
Update composer
arunshenoy99 Jan 30, 2024
e2f4fb2
Fix reload issue
arunshenoy99 Jan 30, 2024
aa8d9d9
Merge branch 'trunk' of https://github.com/newfold-labs/wp-module-onb…
arunshenoy99 Jan 31, 2024
1a03588
relaced the gif with orb animation (#439)
ajayadav09 Jan 31, 2024
7c43621
Fix sitegen theme marker script
arunshenoy99 Jan 31, 2024
09b2913
Fix favorites sidebar
arunshenoy99 Jan 31, 2024
5ab64b7
Fix lint
arunshenoy99 Jan 31, 2024
9978f1a
Merge pull request #438 from newfold-labs/fix/double-header-footer
arunshenoy99 Jan 31, 2024
588c9fd
Merge pull request #440 from newfold-labs/enhance/sitegen-other-pages
arunshenoy99 Jan 31, 2024
0d50c6c
Merge branch 'enhance/ai-onboarding' of https://github.com/newfold-la…
arunshenoy99 Jan 31, 2024
e6d7036
Merge pull request #443 from newfold-labs/fix/sitegen-theme-marker
arunshenoy99 Jan 31, 2024
0455602
Fix lint
arunshenoy99 Jan 31, 2024
6d99a11
Merge pull request #435 from newfold-labs/fix-hirepro
arunshenoy99 Jan 31, 2024
8a49967
Fix lint in branch
arunshenoy99 Jan 31, 2024
907dd94
Merge pull request #444 from newfold-labs/fix/ai-onboarding-lint
arunshenoy99 Jan 31, 2024
5c0a76a
UI bug fixes reported (#436)
ajayadav09 Feb 1, 2024
e11ee01
Merge pull request #428 from newfold-labs/fix-press2-1589-onboarding-…
arunshenoy99 Feb 1, 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
3 changes: 3 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ function nfd_wp_module_onboarding_register() {
if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) {
define( 'NFD_ONBOARDING_DIR', __DIR__ );
}
if ( ! defined( 'NFD_ONBOARDING_SCRIPTS_URL' ) ) {
define( 'NFD_ONBOARDING_SCRIPTS_URL', $container->plugin()->url . 'vendor/newfold-labs/wp-module-onboarding/src/Scripts' );
}
if ( ! defined( 'NFD_ONBOARDING_BUILD_DIR' ) && defined( 'NFD_ONBOARDING_VERSION' ) ) {
define( 'NFD_ONBOARDING_BUILD_DIR', __DIR__ . '/build/' . NFD_ONBOARDING_VERSION );
}
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"wp-cli/wp-config-transformer": "^1.3",
"newfold-labs/wp-module-onboarding-data": "^0.1.0",
"newfold-labs/wp-module-patterns": "^0.1.12",
"newfold-labs/wp-module-install-checker": "^1.0"
"newfold-labs/wp-module-install-checker": "^1.0",
"newfold-labs/wp-module-facebook": "^1.0.2"
},
"require-dev": {
"wp-phpunit/wp-phpunit": "^6.2",
Expand Down
239 changes: 238 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 23 additions & 1 deletion includes/RestApi/FlowController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use NewfoldLabs\WP\Module\Onboarding\Permissions;
use NewfoldLabs\WP\Module\Onboarding\Data\Services\FlowService;
use NewfoldLabs\WP\Module\Onboarding\Services\PluginService;
use NewfoldLabs\WP\Module\Onboarding\Data\Services\SiteGenService;
use NewfoldLabs\WP\Module\Onboarding\Services\StatusService;

/**
Expand Down Expand Up @@ -129,9 +130,30 @@ public function save_onboarding_flow_data( \WP_REST_Request $request ) {
/**
* Flow completion API for child theme generation, verify child theme and publish site pages.
*
* @param \WP_REST_Request $request The incoming request.
*
* @return \WP_REST_Response|\WP_Error
*/
public function complete() {
public function complete( $request ) {
$flow = $request->get_param( 'flow' );
if ( 'sitegen' === $flow ) {
$flow_data_option = \get_option( Options::get_option_name( 'flow' ), false );
if ( false === $flow_data_option || ! isset( $flow_data_option['data'] ) ) {
return new \WP_Error(
'nfd_onboarding_error',
'Flow data does not exist to generate a child theme.',
array( 'status' => 500 )
);
}
$homepage_data = $flow_data_option['sitegen']['homepages']['data'];
$active_homepage = $flow_data_option['sitegen']['homepages']['active'];
SiteGenService::complete( $active_homepage, $homepage_data );
return new \WP_REST_Response(
array(),
201
);
}

$site_pages_publish_request = new \WP_REST_Request(
'POST',
'/newfold-onboarding/v1/site-pages/publish'
Expand Down
1 change: 1 addition & 0 deletions includes/RestApi/RestApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ final class RestApi {
'NewfoldLabs\WP\\Module\\Onboarding\\RestApi\\Themes\\ThemeFontsController',
'NewfoldLabs\WP\\Module\\Onboarding\\RestApi\\Themes\\ThemeColorsController',
'NewfoldLabs\\WP\\Module\\Onboarding\\RestApi\\SiteClassificationController',
'NewfoldLabs\\WP\\Module\\Onboarding\\RestApi\\SiteGenController',
);

/**
Expand Down
Loading
Loading