Store recent work item type when creating work item in modal
In #517558 (closed) we added the ability to select a work item type based on the selected namespace.
To help keep the process of creating several new work items of the same type within the same namespace, we should persist the most recently selected type for the given namespace and use that type as the default when the namespace is selected.
If there is no persisted most recent type for the selected namespace, fallback to the defaults defined in #517558 (closed) (issue for projects, epic for groups).
We should use localStorage for this persistence, as it does not need to be extremely robust or persist across devices.
Acceptance Criteria
- when creating a new work item via the 'create work item' modal, the work item type I last used for the selected namespace is automatically selected for me.
Edited by Jack Chapman