Group-level dependencies: Add error handling for fetching projects for filter
The project filters on the group-level dependencies app fetch a list of projects. Currently, there is no error handling in place and if anything goes wrong during the fetch, this would just happen without informing the user of what went wrong.
This issue is to capture adding the handling.
Verification:
- Navigate to https://gitlab.com/groups/gitlab-org/govern/threat-insights-demos/verification-projects/verify-408846-group/-/dependencies
- Wait until the page has loaded
- Open your browsers DevTools and enable offline emulation (eg.: Chrome: Network -> Throttling -> offline).
- Click on "Search or filter dependencies ..."
- Choose "Project"
- Verify that an error banner pops up, displaying, "There was an error fetching the projects for this group. Please try again later."
- Note: Because we emulated being offline, the error icon within the banner might not show up. This would not happen in most real-life scenarios, since the user would still be online and the icon would load.
Edited by David Pisek