Commit 349feb0
committed
feat(webapp): auto-select and optimize project selector
Automatically set the Vercel project when entering project-selection if
there is at least one available project and none selected. This prevents
an empty selection state and reduces manual clicks for the common case
of a single or first project.
Disable the Select when there is exactly one available project to make
the intent explicit and avoid unnecessary interaction. Add a filter
prop to the Select only when there are more than five projects to keep
the dropdown performant and avoid enabling filtering for small lists.
Adjust the effect deps to trigger selection only on relevant state and
project list changes.1 parent 7b296ce commit 349feb0
File tree
1 file changed
+8
-0
lines changed- apps/webapp/app/components/integrations
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
568 | 574 | | |
569 | 575 | | |
570 | 576 | | |
| |||
625 | 631 | | |
626 | 632 | | |
627 | 633 | | |
| 634 | + | |
628 | 635 | | |
629 | 636 | | |
630 | 637 | | |
| |||
634 | 641 | | |
635 | 642 | | |
636 | 643 | | |
| 644 | + | |
637 | 645 | | |
638 | 646 | | |
639 | 647 | | |
| |||
0 commit comments