GitHub Importer: enable bulk import of GitHub personal gists to GitLab personal snippets in UI - BE
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=376278) </details> <!--IssueSummary end--> ## Problem to solve After https://gitlab.com/gitlab-org/gitlab/-/issues/371099+ is completed we enable bulk-import of user personal gists via API, but not in UI. ## Proposal On the [personal Snippets list view](https://gitlab.com/dashboard/snippets) next to `New snippet` button add new `Import from GitHub` button. On the click on `Import from GitHub` button show UI element (like modal) with text information like: "You can bulk import all your personal GitHub gists to your personal GitLab snippets, that are created independently of any project and listed here on the snippets dashboard. Your public gists will become snippets with public visibility level and your secret gists will become snippets with private visibility level. Note that only gists consisting of up to 10 files can be imported and any gists bigger than 10 files will be skipped." (Here link to documentation that says why we have this limit and encourages customers to manually migrate bigger than 10 files gists over to projects.) Under text buttons `Bulk-import gists` and `Cancel` After clicking on `Bulk-import gists` we have authentication (same as when importing projects from GitHub). After authentication a spinner `Importing...` (or whatever GitLab recommended simple solution is). In the later iteration we could maybe have an import progress bar. Finally imported gists are shown as snippets on the personal Snippets list.
issue