Remember user preference for showing labels on work item widgets
requested to merge 478618-show-labels-setting-on-work-items-hierarchy-widget-is-not-persistent into master
What does this MR do and why?
Remember what the user's preference was for showing or hiding labels on
- Work item tree (children)
- Work item Relationships (Linked items)
- Work item links (Task list on an issue)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Area | Before | After |
---|---|---|
Task list on issue | Screen_Recording_2024-08-23_at_17.41.38 | Screen_Recording_2024-08-23_at_17.40.38 |
Work item "Child items" list | Screen_Recording_2024-08-23_at_17.42.22 | Screen_Recording_2024-08-23_at_17.38.46 |
Work item "Linked items" list | Screen_Recording_2024-08-23_at_17.43.04 | Screen_Recording_2024-08-23_at_17.39.41 |
How to set up and validate locally
- Check out this branch
- Visit an issue in the GDK that has tasks (or add tasks to an existing issue)
- Make sure that at least one of the tasks has a label applied to it
- On the issue page, in the "Child items" section turn off the "Show labels" preference
- The labels will stop showing
- Refresh the page. The labels will not show once the page loads, and the "Show labels" preference toggle will be in the off position.
- Toggle the "Show labels" setting back on and refresh the page
- You will see that the labels show again on page load.
- Ensure you are using the epic work items feature flag
- Navigate to or create an epic that has at least one child epic
- Make sure that at least one of the child epics has a label applied to it
- In the "Child items" of the epic that has at least one child item with a label on it, toggle off the "Show labels" preference
- The labels will stop showing on child items
- Refresh the page. The labels will not show once the page loads, and the "Show labels" preference toggle will be in the off position.
- Toggle the "Show labels" setting back on and refresh the page
- You will see that the labels show again on page load.
- Link an issue that has at least one label applied to it to the epic in the "Linked items" section
- Turn off the "Show labels" preference for the Linked items section
- Refresh the page. The labels will not show once the page loads, and the "Show labels" preference toggle will be in the off position.
- Toggle the "Show labels" setting back on and refresh the page
- You will see that the labels show again on page load.
Related to #478618 (closed), #469616 (closed)
Edited by Chad Lavimoniere