New issue from group issues page using previously selected project
Resources
FE @brycepj
Background
- We want to make it super easy to do issue management from groups. We want to keep pushing groups.
- Right now it's hard to create an issue from a group. There's a dropdown button that makes you pick a project.
- The solutions here are too complicated, or would take a lot of work: https://gitlab.com/gitlab-org/gitlab-ce/issues/33432.
Description
- In the group issue page, replace the
New issue
dropdown button to be a combo button. - There is a default selection (if one is stored) and you can click that (instead of activating the dropdown).
- The default selection is saved in browser local storage and updated every time you use the dropdown. If you click the default, the default selection doesn't change. If you activate the dropdown and choose something else, the default is updated in browser local storage.
- If browser local storage doesn't have anything, the dropdown should behave as it does now, i.e. it forces you to make a selection. So in future times you come back, you will have a default.
- Note that the update happens when you make the selection from the dropdown. (Or continue to use the default.) So if you get to the new issue web form but don't actually create a new issue, the update has already happened in your local browser storage.
- The text in the button default selection should be
New issue in <Project Name>
.
Note that this is similar to the design of the Create a merge request
combo button, or the Comment
combo button. There's always a one-click default. But in this issue, that default is dynamic to the last selection you made.


- Per https://gitlab.com/gitlab-org/gitlab-ce/issues/34411#note_35776047, this change will also be the same for group-level merge requests view, and group level milestone view.
Edited by Victor Wu