GitbookIO / integrations

Toolkit to build integrations on GitBook
81 stars 46 forks source link

Search Functionality in Project Selection with GitLab Sync Does Not Include Unloaded Projects #516

Open Benjamin-SCAYLE opened 3 months ago

Benjamin-SCAYLE commented 3 months ago

Description The current implementation of project selection with GitLab sync is inefficient and inconvenient for users with multiple projects. By default, only a limited number of projects are loaded initially, and the search functionality only considers this loaded subset. Users have to repeatedly press the "Load More" button to load additional projects before performing a search. This process is cumbersome and time-consuming, especially for users with a large number of projects.

Steps to Reproduce

  1. Navigate to the project selection interface with GitLab sync.
  2. Enter you GitLab access token and press the authetication button
  3. Observe that only a limited number of projects are initially loaded.
  4. Attempt to use the search functionality to find a project that is not within the initially loaded list.
  5. Press the "Load More" button multiple times to load more projects.
  6. Perform the search again.

Expected Result The search functionality should consider all projects, including those not yet loaded, allowing users to find any project without repeatedly pressing the "Load More" button.

Actual Result The search functionality only considers the projects that have been loaded. Users must manually load more projects to expand the search scope.

Impact This issue significantly impacts users with a large number of projects by making the search process tedious and inefficient.

Suggested Solution Implement a search feature that queries all projects available in the GitLab, regardless of whether they have been loaded in the UI.

addisonschultz commented 3 months ago

Thanks @Benjamin-Neske-SCAYLE for the detailed context on this one - I can see how this might not be a great experience if you have many projects. Will tag this for now, hopefully our team can visit this in the near future