Commit Graph

9 Commits

Author SHA1 Message Date
Alba Rincón 6806f61aa7 Show the survey button only when AI is available 2023-12-06 14:43:16 +01:00
Chi-Hsuan Huang 73692a3b9b
[CYS] Hide feedback button when survey has already been completed (#41352)
* Fix cys feedback button should not appear if it has already been completed

* Add changelog
2023-11-10 16:35:46 +08:00
Adrian Duffell 9252e5a320
Add Customize Your Store AI Survey (#41234)
* Add Customize Your Store AI Survey

* Add rating required field validation

* Move survey state to layout component

* Add changelog

* Update style

* Enable notice

* Update plugins/woocommerce-admin/client/customize-store/transitional/style.scss

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Update plugins/woocommerce-admin/client/customize-store/transitional/survey-form/index.tsx

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Update plugins/woocommerce-admin/client/customize-store/transitional/survey-form/index.tsx

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Fix lint

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-11-07 17:34:20 +08:00
Chi-Hsuan Huang 14de97f03d
[CYS] Copy changes (#41235)
* Update copy for CYS

* Add changelog
2023-11-07 09:28:56 +08:00
Chi-Hsuan Huang 3c839b04c0
Add SlotFill for custom buttons on Transitional Page (#41153)
* Enqueue scripts in translation page

* Add cys transitiona page secondary button slotfill

* Add changelog

* Fix slot

* Fix lint
2023-11-01 19:40:12 +08:00
Ilyas Foo b108e19a93
Try using iframe for loading assembler hub behind the scenes (#40936)
* Try using iframe for loading assembler behind the scenes

* Add css

* Lint

* Changelog

* Update plugins/woocommerce-admin/client/customize-store/design-with-ai/actions.ts

* Handle navigations around CYS if we're using iframe

* Add better loading handler

* Increase loader screen intervals

* Fix navigation

* Increase loader timeout to 30 seconds

* Much better loading detect from editor hook as suggested by Chi

* Unused import

* Lint css
2023-10-26 16:46:50 +08:00
Chi-Hsuan Huang 06ea7ae24a
[Customize your store] Fix site preview in transitional screen (#40588)
* Replace mshot image with preview editor frame in transitional screen

* Add changelog

* Fix test

* Use current xstate to check if it is transitional page
2023-10-05 07:36:08 -05:00
Chi-Hsuan Huang 8ce2611326
Add track events to customize store transitional page (#40143)
* Add cys transitional page tracks

* Add changefile(s) from automation for the following project(s): woocommerce

* Update plugins/woocommerce-admin/client/customize-store/transitional/index.tsx

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Update plugins/woocommerce-admin/client/customize-store/transitional/index.tsx

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Update plugins/woocommerce-admin/client/customize-store/transitional/index.tsx

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Fix tests

* Update query step for transitional step

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2023-09-18 19:01:12 +08:00
Chi-Hsuan Huang 80eaece265
Add customize store transitional screen (#40122)
* Add CYS transitional screen

* Add changefile(s) from automation for the following project(s): woocommerce

* Add tests

* Update preview loading style and add requeue param

* Fix visible logic

* Fix img size

* Update comments

* Fix lint

* Pre-fetch image and wait a 5s before redirecting to transitional page after clicking on done button

* Remove unneed overflow

* Move pre-fetch logic to xstate and use spinner for button loading state

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-15 12:01:02 +08:00