Repository navigation
Commit f775365
Start the agent invite collapsed behind a visible control
Samet's call, after I argued for the other default: the panel now folds to
its heading on arrival and only the person who wants the guide opens it.
Starting closed has a cost, so the chevron pays it. It is no longer an icon
sitting in the corner — it is a bordered, filled, round control large enough
to read as a button, and while the panel is closed it repeats a small nudge
to the right. Opening it rotates the arrow down and drops the fill: the
invitation is over, it is just a close button now.
The nudge animates the arrow while the rotation animates its container, so
the two never fight over one transform, and both stand down under
prefers-reduced-motion.
The remembered state flips with the default: expanded is what gets stored
and reapplied before first paint. Browser coverage flips with it too, and
now also asserts the affordance itself — the arrow must be visible, at
least 24px, and bordered. Removing that border fails six assertions, which
is the point: an arrow nobody recognises as a control would leave the guide
unreachable in practice while every functional test still passed.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 89a1469 commit f775365
3 files changed
Lines changed: 79 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
444 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
445 | 466 | | |
446 | | - | |
447 | | - | |
448 | 467 | | |
449 | | - | |
| 468 | + | |
| 469 | + | |
450 | 470 | | |
451 | | - | |
452 | | - | |
| 471 | + | |
| 472 | + | |
453 | 473 | | |
454 | 474 | | |
455 | | - | |
| 475 | + | |
456 | 476 | | |
457 | 477 | | |
458 | | - | |
459 | | - | |
| 478 | + | |
| 479 | + | |
460 | 480 | | |
461 | 481 | | |
462 | 482 | | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
| 483 | + | |
468 | 484 | | |
469 | 485 | | |
470 | | - | |
| 486 | + | |
471 | 487 | | |
472 | | - | |
473 | | - | |
| 488 | + | |
| 489 | + | |
474 | 490 | | |
475 | 491 | | |
476 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
912 | 912 | | |
913 | 913 | | |
914 | 914 | | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
915 | 918 | | |
916 | 919 | | |
917 | 920 | | |
| 921 | + | |
| 922 | + | |
918 | 923 | | |
919 | 924 | | |
920 | | - | |
921 | | - | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
922 | 930 | | |
923 | 931 | | |
924 | | - | |
925 | | - | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
926 | 936 | | |
927 | 937 | | |
928 | 938 | | |
929 | 939 | | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
930 | 954 | | |
931 | 955 | | |
932 | 956 | | |
933 | 957 | | |
934 | 958 | | |
935 | 959 | | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
936 | 964 | | |
937 | 965 | | |
938 | 966 | | |
| |||
0 commit comments