Commit 04899cb
[web] Fix hosted viewer layout and close action (#32)
# Problem
Hosted session and comparison banners could be auto-placed into an
implicit
second root-grid column, squeezing the viewer workspace into half of the
browser width. The viewer header also exposed separate open-bundle and
comparison actions instead of a single way to close the current design
and
start fresh.
### Before
The hosted workspace is only 344 px wide in this 1280 x 720 viewport and
begins
at x=936, leaving most of the viewer blank.

# Solution
- Pin the header, banner, landing content, workspace, and footer to the
root
grid's sole column while preserving the hosted-banner overlay and
workspace
offset.
- Render the current bundle or comparison name as plain text and replace
the
header open/compare controls with one `Close design` action across
bundle,
comparison, and module-pairing views.
- Reset active opening, bundle, comparison, hosted-session, dialog, and
error
state when closing. Hosted capability URLs push the splash route so
browser
Back restores the design.
- Update unit and Playwright coverage for close behavior, hosted history
restoration, and full-width viewer geometry.
- Document in `AGENTS.md` that substantial GUI changes require
before-and-after
screenshots in their pull request descriptions.
### After
The same design and viewport now use the full 1280 px workspace with no
horizontal overflow, and the header exposes the new `Close design`
action.

Validation:
- `npm --workspace web run check`
- `npm --workspace web run test` (39 files, 331 tests)
- Hosted production build
- Static production build
- Playwright app suite (12 passed, 5 optional fixture skips)
- `node scripts/run-netlist-e2e.mjs`
- Manual browser inspection of the updated hosted build, including
full-width
geometry, close-to-splash behavior, and browser-Back restoration
---------
Co-authored-by: Codex <noreply@openai.com>1 parent 244773b commit 04899cb
14 files changed
Lines changed: 271 additions & 246 deletions
File tree
- docs/images/pr-32
- web
- e2e
- src
- components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
345 | 361 | | |
346 | 362 | | |
347 | 363 | | |
348 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 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 | + | |
349 | 400 | | |
350 | 401 | | |
351 | 402 | | |
| |||
515 | 566 | | |
516 | 567 | | |
517 | 568 | | |
518 | | - | |
| 569 | + | |
| 570 | + | |
519 | 571 | | |
520 | 572 | | |
521 | 573 | | |
| |||
557 | 609 | | |
558 | 610 | | |
559 | 611 | | |
560 | | - | |
| 612 | + | |
561 | 613 | | |
562 | 614 | | |
| 615 | + | |
563 | 616 | | |
564 | 617 | | |
565 | 618 | | |
| |||
698 | 751 | | |
699 | 752 | | |
700 | 753 | | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
714 | 763 | | |
715 | 764 | | |
716 | 765 | | |
| |||
970 | 1019 | | |
971 | 1020 | | |
972 | 1021 | | |
973 | | - | |
| 1022 | + | |
974 | 1023 | | |
975 | 1024 | | |
976 | 1025 | | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
990 | 1030 | | |
991 | 1031 | | |
992 | 1032 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 356 | + | |
368 | 357 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
385 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
386 | 367 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 368 | + | |
396 | 369 | | |
| 370 | + | |
| 371 | + | |
397 | 372 | | |
398 | 373 | | |
399 | 374 | | |
| |||
579 | 554 | | |
580 | 555 | | |
581 | 556 | | |
582 | | - | |
| 557 | + | |
583 | 558 | | |
584 | 559 | | |
585 | 560 | | |
586 | 561 | | |
587 | 562 | | |
588 | 563 | | |
589 | 564 | | |
590 | | - | |
| 565 | + | |
591 | 566 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
| 567 | + | |
| 568 | + | |
602 | 569 | | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
610 | 579 | | |
611 | 580 | | |
612 | 581 | | |
| |||
626 | 595 | | |
627 | 596 | | |
628 | 597 | | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
629 | 614 | | |
630 | 615 | | |
631 | 616 | | |
| |||
797 | 782 | | |
798 | 783 | | |
799 | 784 | | |
800 | | - | |
| 785 | + | |
801 | 786 | | |
802 | 787 | | |
803 | 788 | | |
| |||
822 | 807 | | |
823 | 808 | | |
824 | 809 | | |
825 | | - | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
826 | 823 | | |
827 | 824 | | |
828 | 825 | | |
| |||
0 commit comments