Fix positioning of work item sticky alerts

What does this MR do and why?

This MR fixes the sticky positioning of work item alerts, taking into account the possibility that they will appear in a drawer and the presence of the sticky header for work items when scrolled.

References

Screenshots or screen recordings

Scenario Before After
Full page work item, at top (no change) Screenshot_2025-08-13_at_14.41.32 Screenshot_2025-08-13_at_14.39.13
Full page work item, scrolling Screen_Recording_2025-08-13_at_14.41.15 Screen_Recording_2025-08-13_at_14.38.25
Drawer work item, at top Screenshot_2025-08-13_at_14.41.45 Screenshot_2025-08-13_at_14.39.38
Drawer work item, scrolling Screen_Recording_2025-08-13_at_14.40.41 Screen_Recording_2025-08-13_at_14.39.51

How to set up and validate locally

The easiest way to get an alert currently is to create a work item that has child tasks, then try to toggle confidentiality on the parent.

  1. Check out this branch
  2. Create or locate in your GDK a work item that has one or more child tasks, all of which are not confidential
  3. Open the parent work item in a full page view.
  4. Attempt to toggle confidentiality. An error alert will appear. It will be correctly positioned at the top of the work item detail.
  5. Scroll the work item. The work item sticky header will appear and the alert will move to be beneath the sticky header.
  6. Open the same parent work item in a drawer, for example from the project issues list page, and repeat steps 4 and 5. You will see that in a drawer, the alert is now positioned correctly both when scrolled to the top of the drawer and when scrolling down and revealing the work item sticky header.

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.

Related to #558376 (closed)

Merge request reports

Loading