Correctly handle scenario when no top-level groups are available

Problem to solve

When a user is unable to create a top-level group (due to permissions) and no top-level groups are available for that user to migrate into, the UI does not handle this scenario. UI blows up (due to error in console) and displays empty dropdown instead of "No parent" being preselected

before

Proposed solution

Show a simple message to the user: You must have at least one top-level group with write permission before you could perform an import.

Select "No parent" as default for this case and do not blow up due to missing groups. This functionality depends on !54323 (merged)

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by 🤖 GitLab Bot 🤖