Commit eefbab7
overhaul variant UI: editable card, picker dialog, name editing
Reworks the variants experience end-to-end so the page-level and
section-level variant flows share the same components, sizing, and
behaviour.
- Replace the custom matcher-picker modal with a CommandDialog list
- Convert the variant rule area into a collapsible bordered card
(state persisted in localStorage) with the Rule picker and schema
fields aligned at the same px-5 inset
- Make the variant title in the breadcrumb inline-editable via a
pencil affordance; persist as a top-level "name" on the raw
multivariate variant (exposed through CmsVariant / PageVariantEntry)
- Rebuild DateField as a styled overlay over a real datetime-local
input so users can both type and pick; restore the input border
beneath the overlay
- Unify both variant lists on a single SortableVariantItem (flag icon
only, no colored chip) with drag-reorder for page variants too
- Allow adding the first page variant from a flat-sections page
- Add a delete button inside the page-variant detail breadcrumb
- Drop all-caps title styling; bring section labels to text-sm
font-semibold to match the FieldLabel scale
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ff26b72 commit eefbab7
3 files changed
Lines changed: 842 additions & 384 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| 760 | + | |
760 | 761 | | |
761 | 762 | | |
762 | 763 | | |
| |||
797 | 798 | | |
798 | 799 | | |
799 | 800 | | |
| 801 | + | |
800 | 802 | | |
801 | 803 | | |
802 | 804 | | |
| |||
816 | 818 | | |
817 | 819 | | |
818 | 820 | | |
| 821 | + | |
819 | 822 | | |
820 | 823 | | |
821 | 824 | | |
| |||
1099 | 1102 | | |
1100 | 1103 | | |
1101 | 1104 | | |
| 1105 | + | |
1102 | 1106 | | |
1103 | 1107 | | |
1104 | 1108 | | |
| |||
1143 | 1147 | | |
1144 | 1148 | | |
1145 | 1149 | | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
1146 | 1153 | | |
1147 | 1154 | | |
1148 | 1155 | | |
| |||
1182 | 1189 | | |
1183 | 1190 | | |
1184 | 1191 | | |
| 1192 | + | |
1185 | 1193 | | |
1186 | 1194 | | |
1187 | 1195 | | |
| |||
1200 | 1208 | | |
1201 | 1209 | | |
1202 | 1210 | | |
| 1211 | + | |
1203 | 1212 | | |
1204 | 1213 | | |
1205 | 1214 | | |
| |||
1210 | 1219 | | |
1211 | 1220 | | |
1212 | 1221 | | |
1213 | | - | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
1214 | 1228 | | |
1215 | 1229 | | |
1216 | 1230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
309 | 324 | | |
310 | 325 | | |
311 | 326 | | |
| |||
322 | 337 | | |
323 | 338 | | |
324 | 339 | | |
| 340 | + | |
325 | 341 | | |
326 | | - | |
327 | | - | |
328 | | - | |
| 342 | + | |
329 | 343 | | |
330 | 344 | | |
331 | 345 | | |
| |||
353 | 367 | | |
354 | 368 | | |
355 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
356 | 408 | | |
357 | 409 | | |
358 | 410 | | |
359 | | - | |
| 411 | + | |
360 | 412 | | |
361 | 413 | | |
362 | 414 | | |
363 | 415 | | |
364 | 416 | | |
365 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
366 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
367 | 451 | | |
368 | 452 | | |
369 | | - | |
370 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
371 | 456 | | |
372 | 457 | | |
373 | 458 | | |
374 | | - | |
375 | | - | |
| 459 | + | |
| 460 | + | |
376 | 461 | | |
377 | 462 | | |
378 | 463 | | |
379 | 464 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
| 465 | + | |
390 | 466 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
| 467 | + | |
397 | 468 | | |
398 | 469 | | |
399 | 470 | | |
| |||
1221 | 1292 | | |
1222 | 1293 | | |
1223 | 1294 | | |
1224 | | - | |
| 1295 | + | |
1225 | 1296 | | |
1226 | 1297 | | |
1227 | 1298 | | |
| |||
1356 | 1427 | | |
1357 | 1428 | | |
1358 | 1429 | | |
1359 | | - | |
| 1430 | + | |
1360 | 1431 | | |
1361 | 1432 | | |
1362 | 1433 | | |
| |||
1370 | 1441 | | |
1371 | 1442 | | |
1372 | 1443 | | |
1373 | | - | |
| 1444 | + | |
1374 | 1445 | | |
1375 | 1446 | | |
1376 | 1447 | | |
| |||
0 commit comments