Skip to content

Add dividers between items within the work item lists

What does this MR do and why?

This MR

  • adds $gray-50 border between Child items and Linked items
  • Include 4px spacing between items and the divider
  • On the Linked items widget, remove the borders between relationship types (Blocked, Blocking, etc)
    • Instead of borders, increase the spacing between these sections to 24px
  • Remove the glitch of expand button when more records are fetched using Load more button
  • Align remove button which were regressed due to introduction of crud component

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Child items border Screenshot 2024-08-30 at 9.35.22 PM.png Screenshot 2024-08-30 at 9.23.58 PM.png
Child item's children with border Screenshot 2024-08-30 at 9.38.07 PM.png Screenshot 2024-08-30 at 9.24.50 PM.png
Child items border with paginated data Screenshot 2024-08-30 at 9.39.24 PM.png Screenshot 2024-08-30 at 9.25.25 PM.png
Linked items border Screenshot 2024-08-30 at 9.40.38 PM.png Screenshot 2024-08-30 at 9.26.03 PM.png
Expand button on Load more action Screen Recording 2024-08-30 at 9.30.27 PM.mov Screen Recording 2024-08-30 at 9.28.06 PM.mov
Align remove button Screenshot 2024-08-30 at 9.31.02 PM.png Screenshot 2024-08-30 at 9.33.16 PM.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Prerequisites:

  1. Enable the OKRs feature as mentioned in the OKRs docs (e.g. ::Feature.enabled?(:okrs_mvc, Project.find(<PROJECT_ID>)) and the namespace must have Ultimate plan).
  2. Enable Epic work items
    1. Feature.enable(:work_item_epics_rollout)
    2. Feature.enable(:work_item_epics)

Steps to verify at Group level:

  1. Login with any user
  2. Go to Group > Epics
  3. Open or create an Epic
  4. Create or add existing child items
  5. Verify if borders are appearing between items and its child items
  6. Link few items in Linked items widget
  7. Verify if the borders are applying properly

Related to #479187 (closed)

Edited by Rajan Mistry

Merge request reports

Loading