Skip to content
Snippets Groups Projects

Move work item dev widget to main body and create MR and branch

All threads resolved!

What does this MR do and why?

Move work item dev widget to main body and add create entity

To give more context - since some decisions were made mid-milestone regarding placement of the dev widget , Create MR/branch from a work item (!172232 - closed) was scrapped midway.

Related issues

  1. Move work item development widget to main body (#507749 - closed)
  2. 🚀 Development Widget: Create MR from Developmen... (#477785 - closed)
  3. 🚀 Development Widget: Create branch from dev wi... (#477531 - closed)

This MR covers the following :

header header
Create Merge request split dropdown with the "add design" button in the main body

Screenshot 2024-12-04 at 16.21.51.png

Movement of dev widget inside the main body

Screenshot 2024-12-04 at 16.25.24.png

Add dropdown in the dev widget to create branch and MR

Screenshot_2024-12-02_at_17.10.51

Options dropdown in MR item and branch item

Screenshot 2024-12-04 at 16.26.33.png

Screenshot 2024-12-04 at 16.25.56.png

App

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

  • Do not show dev widget when empty
  • Do not show create branch/MR when work_items_alpha is off since it also touches "production tasks"
  • The new CTA's are behind work_items_alpha
  • Show tooltip on truncate MR long name
  • Truncate long name of branches
  • Make sure the create CTA split button in main body is available only on work items with dev widget (for example not available on epics but only issues and tasks)
  • The tooltip in dev widget is available when we have closing merge requests which will autoclose the work item
  • The main body create MR is not available when the ability to create branches does not exist
  • [ ]

Screenshots or screen recordings

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

How to set up and validate locally

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

  1. In rails console enable the FF
    Feature.enable(:work_items_alpha)
  2. Create any issue/task with new issue look on , and see that you are not able to see the dev widget in the main body
  3. Create a branch with the split button in the main body and see you that can the dev widget with the branch in the main body(real time update not available right now)
  4. Create any MR for the issue/task and write "Resolves #id" in the description, come back to the issue and see the MR
  5. You can also try linking the issue with any feature flag and see that pop up in the main body

See that there is no regression when the work_items_alpha is off and production tasks

Related to #427975 (closed) Resolves #477785 (closed) Resolves #477531 (closed) Resolves #507749 (closed)

Edited by Deepika Guliani

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Nick Leonard
  • Nick Leonard
    • Resolved by Natalia Tepluhina

      MR Responsive alignment

      When the widget is at smaller sizes, the content between the title and button should reflow to the row below. In the design only the milestone is hidden (this is also true in legacy related MRs and is lower importance than other info).

      In talking to Nick B he mentioned there is similar work happening with child/linked items to use container queries for sizing, though I'm not sure on the status of that work. We could change that later, and just use media queries for now, but with the drawer view the container sizing will be much more relevant.

      image

    • Resolved by Deepika Guliani

      @deepika.guliani Excellent work so far :raised_hands: Thanks a ton for working through these changes so quickly.

      With one two exceptions (added a note about split button) I've left comments inline as most are pretty small alignment/styling adjustments. I've generally tried to capture these for all relevant items (MRs vs branches) but if I missed any, assume the intent is for each to use the same general alignment/styling wherever there is comparable data.

      Edited by Nick Leonard
  • Nick Leonard requested changes

    requested changes

    • Resolved by Nick Leonard

      Create MR CTAs

      1. I don't think we need the top menu CTA now that there's an action in the body, though I'm open to this if you think it's useful :thinking:
      2. The action buttons that include "Create MR" split button should always be justified when side by side with the emojis
      Now (task) Intended With design
      image image image
      1. The dropdown from the split button always opens to the right, though it seems like it should open to the left so it's directly below the button.
      2. The "Create MR" button should be essentially grouped with "Add design", with 0.5rem gap between them, so that when they reflow they reflow as a row.
      Now Suggested
      image image
      Edited by Nick Leonard
  • Deepika Guliani added 245 commits

    added 245 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Deepika Guliani marked the checklist item Do not show dev widget when empty as completed

    marked the checklist item Do not show dev widget when empty as completed

  • Deepika Guliani changed the description

    changed the description

  • Deepika Guliani added 2 commits

    added 2 commits

    • e450926c - Apply UX feedback
    • 14836f60 - Test cases and copy to clipboard with props

    Compare with previous version

  • added 1 commit

    • ea548c46 - Test cases and copy to clipboard with props

    Compare with previous version

  • added 1 commit

    • c013bcc0 - Tooltip on truncate and Mr item

    Compare with previous version

  • :tools: Generated by gitlab_quality-test_tooling.


    :snail: Slow tests detected in this merge request. These slow tests might be related to this merge request's changes.

    Click to expand
    Job File Name Duration Expected duration
    #8528606164 ee/spec/features/work_items/work_item_detail_spec.rb#L21 Work item detail for signed in user behaves like work items weight updates and clears a weight 53.47 s < 50.13 s
  • A deleted user added rspec:slow test detected label
  • Deepika Guliani marked this merge request as ready

    marked this merge request as ready

  • added 1 commit

    • 8cb04508 - Tooltip on truncate and Mr item

    Compare with previous version

  • added 1 commit

    • 6baa856a - Tooltip on truncate and Mr item

    Compare with previous version

  • added 1 commit

    • 4c8b0f5c - Tooltip on truncate and Mr item

    Compare with previous version

  • requested review from @nickleonard

  • Deepika Guliani marked the checklist item Do not show create branch/MR when work_items_alpha is off since it also touches "production tasks" as completed

    marked the checklist item Do not show create branch/MR when work_items_alpha is off since it also touches "production tasks" as completed

    • Resolved by Nick Leonard

      MR directionality

      I'm not sure if this is new in this MR, or missed in the prior MR to add MR creation, but it looks like the directionality of the MR is backwards — it's attempting to merge the default branch into the newly created branch :thinking: Can break this to a follow up issue if needed.

      image

  • Nick Leonard requested changes

    requested changes

  • Deepika Guliani added 259 commits

    added 259 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • requested review from @nickleonard

  • added 1 commit

    Compare with previous version

  • Deepika Guliani marked the checklist item The new CTA's are behind work_items_alpha as completed

    marked the checklist item The new CTA's are behind work_items_alpha as completed

  • Deepika Guliani marked the checklist item Show tooltip on truncate MR long name as completed

    marked the checklist item Show tooltip on truncate MR long name as completed

  • Deepika Guliani marked the checklist item Truncate long name of branches as completed

    marked the checklist item Truncate long name of branches as completed

  • Deepika Guliani marked the checklist item Make sure the create CTA split button in main body is available only on work items with dev widget (for example not available on epics but only issues and tasks) as completed

    marked the checklist item Make sure the create CTA split button in main body is available only on work items with dev widget (for example not available on epics but only issues and tasks) as completed

  • Deepika Guliani marked the checklist item The tooltip in dev widget is available when we have closing merge requests which will autoclose the work item as completed

    marked the checklist item The tooltip in dev widget is available when we have closing merge requests which will autoclose the work item as completed

  • Deepika Guliani requested review from @ramistry

    requested review from @ramistry

  • Deepika Guliani changed the description

    changed the description

  • Nick Leonard approved this merge request

    approved this merge request

  • added pipelinetier-2 label and removed pipelinetier-1 label

  • Before you set this MR to auto-merge

    This merge request will progress on pipeline tiers until it reaches the last tier: pipelinetier-3. We will trigger a new pipeline for each transition to a higher tier.

    Before you set this MR to auto-merge, please check the following:

    • You are the last maintainer of this merge request
    • The latest pipeline for this merge request is pipelinetier-3 (You can find which tier it is in the pipeline name)
    • This pipeline is recent enough (created in the last 8 hours)

    If all the criteria above apply, please set auto-merge for this merge request.

    See pipeline tiers and merging a merge request for more details.

  • E2E Test Result Summary

    allure-report-publisher generated test report!

    e2e-test-on-gdk: :white_check_mark: test report for e35a3f97

    expand test summary
    +------------------------------------------------------------------+
    |                          suites summary                          |
    +-------------+--------+--------+---------+-------+-------+--------+
    |             | passed | failed | skipped | flaky | total | result |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Create      | 129    | 0      | 21      | 0     | 150   | ✅     |
    | Plan        | 76     | 0      | 0       | 0     | 76    | ✅     |
    | Verify      | 43     | 0      | 2       | 0     | 45    | ✅     |
    | Package     | 25     | 0      | 11      | 0     | 36    | ✅     |
    | Govern      | 75     | 0      | 3       | 0     | 78    | ✅     |
    | Manage      | 1      | 0      | 1       | 0     | 2     | ✅     |
    | Data Stores | 33     | 0      | 1       | 0     | 34    | ✅     |
    | Monitor     | 8      | 0      | 0       | 0     | 8     | ✅     |
    | Release     | 5      | 0      | 0       | 0     | 5     | ✅     |
    | Analytics   | 2      | 0      | 0       | 0     | 2     | ✅     |
    | Fulfillment | 2      | 0      | 0       | 0     | 2     | ✅     |
    | Secure      | 4      | 0      | 0       | 0     | 4     | ✅     |
    | Ai-powered  | 0      | 0      | 1       | 0     | 1     | ➖     |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Total       | 403    | 0      | 40      | 0     | 443   | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+

    e2e-test-on-cng: :white_check_mark: test report for e35a3f97

    expand test summary
    +------------------------------------------------------------------+
    |                          suites summary                          |
    +-------------+--------+--------+---------+-------+-------+--------+
    |             | passed | failed | skipped | flaky | total | result |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Ai-powered  | 0      | 0      | 2       | 0     | 2     | ➖     |
    | Govern      | 84     | 0      | 10      | 1     | 94    | ✅     |
    | Plan        | 86     | 0      | 8       | 0     | 94    | ✅     |
    | Verify      | 49     | 0      | 16      | 0     | 65    | ✅     |
    | Create      | 140    | 0      | 19      | 1     | 159   | ✅     |
    | Secure      | 2      | 0      | 5       | 0     | 7     | ✅     |
    | Data Stores | 33     | 0      | 10      | 0     | 43    | ✅     |
    | Monitor     | 8      | 0      | 12      | 0     | 20    | ✅     |
    | Package     | 24     | 0      | 14      | 0     | 38    | ✅     |
    | Manage      | 1      | 0      | 9       | 0     | 10    | ✅     |
    | Fulfillment | 2      | 0      | 7       | 1     | 9     | ✅     |
    | Analytics   | 2      | 0      | 0       | 1     | 2     | ✅     |
    | ModelOps    | 0      | 0      | 1       | 0     | 1     | ➖     |
    | Release     | 5      | 0      | 1       | 0     | 6     | ✅     |
    | Configure   | 0      | 0      | 3       | 0     | 3     | ➖     |
    | Growth      | 0      | 0      | 2       | 0     | 2     | ➖     |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Total       | 436    | 0      | 119     | 4     | 555   | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+
  • Deepika Guliani added 303 commits

    added 303 commits

    Compare with previous version

  • Deepika Guliani mentioned in merge request !174812 (merged)

    mentioned in merge request !174812 (merged)

  • Deepika Guliani requested review from @jachapman

    requested review from @jachapman

  • Deepika Guliani removed review request for @ramistry

    removed review request for @ramistry

  • Deepika Guliani mentioned in merge request !172232 (closed)

    mentioned in merge request !172232 (closed)

  • Deepika Guliani changed the description

    changed the description

  • added 1 commit

    • f5510d78 - Make xhr request in modal to prevent individual calls

    Compare with previous version

  • Jack Chapman
  • Jack Chapman
  • added 1 commit

    • 225b2d1d - Apply frontend review feedback

    Compare with previous version

  • Deepika Guliani added 252 commits

    added 252 commits

    • 225b2d1d...cfe9c621 - 244 commits from branch master
    • ca669ab0 - Move work item dev widget to main body and add create entity
    • 508c2bf2 - Apply UX feedback
    • b12e0a15 - Test cases and copy to clipboard with props
    • 08da2ef7 - Tooltip on truncate and Mr item
    • 61033333 - MR item details
    • 022676d4 - Alignment of more button
    • 744d3eb6 - Make xhr request in modal to prevent individual calls
    • bd8995c5 - Apply frontend review feedback

    Compare with previous version

  • Deepika Guliani added 252 commits

    added 252 commits

    • 225b2d1d...cfe9c621 - 244 commits from branch master
    • ca669ab0 - Move work item dev widget to main body and add create entity
    • 508c2bf2 - Apply UX feedback
    • b12e0a15 - Test cases and copy to clipboard with props
    • 08da2ef7 - Tooltip on truncate and Mr item
    • 61033333 - MR item details
    • 022676d4 - Alignment of more button
    • 744d3eb6 - Make xhr request in modal to prevent individual calls
    • bd8995c5 - Apply frontend review feedback

    Compare with previous version

  • Deepika Guliani requested review from @jachapman

    requested review from @jachapman

  • Jack Chapman approved this merge request

    approved this merge request

  • Jack Chapman requested review from @cngo

    requested review from @cngo

  • Deepika Guliani removed review request for @cngo

    removed review request for @cngo

  • Deepika Guliani added 188 commits

    added 188 commits

    • bd8995c5...e68c53f7 - 180 commits from branch master
    • 2eecad5a - Move work item dev widget to main body and add create entity
    • 4a691152 - Apply UX feedback
    • 53aa1849 - Test cases and copy to clipboard with props
    • ba0148bd - Tooltip on truncate and Mr item
    • 81035dfd - MR item details
    • d012d3c4 - Alignment of more button
    • 70a3a7c5 - Make xhr request in modal to prevent individual calls
    • e25d269d - Apply frontend review feedback

    Compare with previous version

  • added 1 commit

    • 6e1c19e5 - Apply frontend review feedback

    Compare with previous version

  • requested review from @ntepluhina

  • Deepika Guliani added 27 commits

    added 27 commits

    • 6e1c19e5...c0a2be52 - 19 commits from branch master
    • 641cd332 - Move work item dev widget to main body and add create entity
    • 9b9e21d6 - Apply UX feedback
    • 3bc3d805 - Test cases and copy to clipboard with props
    • 9f0a07d5 - Tooltip on truncate and Mr item
    • e5040c0a - MR item details
    • 50da811a - Alignment of more button
    • 4cd53d9c - Make xhr request in modal to prevent individual calls
    • 3b0803b3 - Apply frontend review feedback

    Compare with previous version

  • Natalia Tepluhina
  • Deepika Guliani added 243 commits

    added 243 commits

    • 3b0803b3...72104cda - 234 commits from branch master
    • b1295739 - Move work item dev widget to main body and add create entity
    • 85adc3da - Apply UX feedback
    • f03b965e - Test cases and copy to clipboard with props
    • e36be451 - Tooltip on truncate and Mr item
    • 711b2f3d - MR item details
    • 50c8a435 - Alignment of more button
    • ef6864f1 - Make xhr request in modal to prevent individual calls
    • ffbad81b - Apply frontend review feedback
    • e35a3f97 - Maintainer comments and couple of a11y issues

    Compare with previous version

  • Deepika Guliani
  • Deepika Guliani
  • Deepika Guliani
  • requested review from @ntepluhina

  • Natalia Tepluhina resolved all threads

    resolved all threads

  • Natalia Tepluhina approved this merge request

    approved this merge request

  • Natalia Tepluhina enabled automatic add to merge train when checks pass

    enabled automatic add to merge train when checks pass

  • mentioned in commit 8b7be1bb

  • added workflowstaging label and removed workflowcanary label

  • Deepika Guliani changed the description

    changed the description

  • Please register or sign in to reply
    Loading