Show the total number of groups available for migration
Problem to solve
When using the GitLab Group Migration feature, and then viewing the list of X groups that the user can migrate, the user is not sure if the list shown is just the first X, all of X, os just the X that they have access to. This leaves them confused about what they are seeing and not confident to proceed with the interaction.
The feedback provided by a user who was presented with a screenshot with 5 groups listed was (paraphrased):
I am confused whether this list shows all the groups or just some. For example, are these 5 groups just the first 5 and there is more, are there really only 5 groups in total or is it that I only have access to 5, but there may be more?
Additional context
On the previous page, the user has provided authentication details (URL and PAT) to connect to another instance of GitLab, so that they can import groups from there.
On this page, we show the groups from that other instance ([URL] is the URL for that other instance) and provide the ability for the user to import some of those groups. The view shows any groups that were already imported, as well as the groups still available for import. The primary action on this page is to import more groups.
The text proposed below is intended to answer all of those user's questions from above:
Showing 5 out of 17 groups that you can access at gitlab.com
Proposal
The current subtitle text for the group import page reads: "Importing groups from [URL]"
The updated text should read: "Showing X-Y of Z groups from [URL]"
Where:
- X = the order number of the first group in the list (i.e. 1, if this is the first page)
- Y = the order number of the last group in the list
- Z = total number of groups accessible by this user (given their permission levels on the source instance)
Additional considerations
When this page is filtered, the text should be adjusted to display: "Showing 1-20 of 137 groups matching filter {insert filter text here} from {URL}."