Commit e8933b2
authored
Agentic UI: Create blank or Blueprint sites (#4177)
## Related issues
<!--
Link a related issue to this PR. If the PR does not immediately resolve
the issue,
for example, it requires a separate deployment to production, avoid
using the "Fixes" keyword and use "Related to" instead.
-->
- First product increment from #3941
## How AI was used in this PR
<!--
Help reviewers understand what to look for and verify that you have
reviewed the code yourself.
-->
Codex helped compare the original umbrella PR with current trunk,
implement the scoped first increment, and add focused coverage. The
resulting behavior, cleanup paths, and tests were manually reviewed. The
updated visual design still needs human review in both color schemes.
## Proposed Changes
<!--
Explain the intent of this PR:
- What problem does it solve, or what need does it address?
- How does it affect the user (new capability, fix, performance,
accessibility, etc.)?
- Note any user-visible behavior changes or trade-offs.
Focus on the why and the user impact. Avoid listing modified files or
describing implementation mechanics — the diff already shows that.
-->
- Give users one Create flow for blank sites and uploaded JSON or ZIP
Blueprints, including full-window drop, replacement, removal, reset of
prior untouched suggestions, and Blueprint deep-link handoff.
- Preserve user-entered values while applying Blueprint suggestions only
to pristine fields, and retain the existing path and WordPress-version
reliability behavior.
- Keep temporary uploads safe across selection, replacement,
cancellation, creation, and failure recovery.
- Make creation progress accessible, prevent route interaction and
closing while creation is active, restore the flow after failure, and
manage focus between onboarding routes.
- Simplify onboarding around the currently working Create and Import
jobs, redirect the legacy Blueprint route into Create, and remove the
unused gallery surface.
- Bring the updated onboarding design into the reduced flow with the
animated dot-grid backdrop, illustrated job cards, frosted panels,
responsive layouts, persistent footer actions, and compact Blueprint
picker.
## Testing Instructions
<!--
Add as many details as possible to help others reproduce the issue and
test the fix.
"Before / After" screenshots can also be very helpful when the change is
visual.
-->
1. Open onboarding and confirm the home screen shows the dot-grid
backdrop, illustrated Create and Import cards, and persistent Back
action when existing sites are present. Start Create and create a blank
site.
2. Select JSON and ZIP Blueprints using the inline picker and
full-window drop target. Confirm the selected file can be replaced or
removed and that ZIP-relative assets still resolve during creation.
3. Edit the site name or path before selecting a Blueprint. Confirm
suggestions fill pristine fields without overwriting dirty fields.
4. Open a Blueprint deep link and confirm it hands the uploaded
Blueprint to `/onboarding/create`.
5. During creation, confirm the visible status is announced, route
content is inert, Close is disabled, and route headings receive focus.
Force a failure and confirm the form recovers.
6. Confirm uploaded and extracted temporary files are cleaned after
invalid uploads, stale selections, replacement, removal, success, and
failure.
7. Check the Create flow, selected Blueprint state, drop overlay,
advanced settings, and progress state in both light and dark color
schemes.
## Pre-merge Checklist
<!--
Complete applicable items on this checklist **before** merging into
trunk. Inapplicable items can be left unchecked.
Both the PR author and reviewer are responsible for ensuring the
checklist is completed.
-->
- [x] Have you checked for TypeScript, React or other console errors?1 parent 48dfe84 commit e8933b2
65 files changed
Lines changed: 3587 additions & 1334 deletions
File tree
- apps
- local/src
- studio/src
- hooks
- modules/add-site
- components
- hooks
- tests
- ui
- src
- components
- blueprint-selector
- blueprint-upload
- create-site-form
- dot-grid
- file-dropzone
- onboarding-illustrations
- onboarding-layout
- sidebar-header
- site-fields
- site-settings-view
- data
- core
- connectors
- hosted
- ipc
- local
- queries
- hooks
- lib
- ui-classic/router
- layout-onboarding
- layout-root
- route-onboarding-blueprint
- route-onboarding-create
- route-onboarding-home
- packages/common
- lib
- tests
- sites
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 538 | + | |
553 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
554 | 555 | | |
555 | 556 | | |
556 | 557 | | |
557 | 558 | | |
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
561 | | - | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
562 | 568 | | |
563 | 569 | | |
564 | 570 | | |
| |||
790 | 796 | | |
791 | 797 | | |
792 | 798 | | |
793 | | - | |
794 | | - | |
795 | 799 | | |
796 | 800 | | |
797 | 801 | | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
| 802 | + | |
811 | 803 | | |
812 | 804 | | |
813 | 805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 46 | + | |
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
| |||
147 | 143 | | |
148 | 144 | | |
149 | 145 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 146 | + | |
182 | 147 | | |
183 | 148 | | |
184 | 149 | | |
| |||
188 | 153 | | |
189 | 154 | | |
190 | 155 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 156 | + | |
| 157 | + | |
226 | 158 | | |
227 | | - | |
| 159 | + | |
228 | 160 | | |
229 | 161 | | |
230 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2269 | 2269 | | |
2270 | 2270 | | |
2271 | 2271 | | |
2272 | | - | |
2273 | | - | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
2274 | 2278 | | |
2275 | 2279 | | |
2276 | 2280 | | |
| |||
Lines changed: 13 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
212 | 203 | | |
213 | 204 | | |
214 | 205 | | |
215 | 206 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | 207 | | |
221 | 208 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 209 | + | |
| 210 | + | |
228 | 211 | | |
229 | 212 | | |
230 | | - | |
| 213 | + | |
231 | 214 | | |
232 | 215 | | |
233 | 216 | | |
234 | | - | |
| 217 | + | |
235 | 218 | | |
236 | 219 | | |
237 | 220 | | |
| |||
Lines changed: 11 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
74 | 68 | | |
75 | 69 | | |
76 | 70 | | |
77 | | - | |
78 | 71 | | |
79 | 72 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 73 | + | |
| 74 | + | |
86 | 75 | | |
87 | 76 | | |
88 | | - | |
| 77 | + | |
89 | 78 | | |
90 | 79 | | |
91 | 80 | | |
| |||
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 9 | + | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
| |||
58 | 54 | | |
59 | 55 | | |
60 | 56 | | |
61 | | - | |
| 57 | + | |
62 | 58 | | |
63 | 59 | | |
64 | 60 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 61 | + | |
| 62 | + | |
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
| |||
0 commit comments