Jc/persist last type for namespace wi creation
What does this MR do and why?
Relates to #517559
When a work item is created, this change stores the namespace + work item type combination in localStorage, and recalls the work item type when the same namespace is selected in future sessions.
Only the most recent work item type will be persisted for each namespace.
The persistence happens in the browser's localStorage and is not shared between other users.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- Open the 'new item' modal (group-level namespace context works best)
- Select a project using the namespace selector
- Select a non-issue work item type (issue is the default for projects)
- Create the work item
- Refresh the page
- Re-open the 'new item' modal
- Select the same project as last time
- Check the previously used work item type is auto-selected for you.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.