Move work item dev widget to main body and create MR and branch
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
- Move work item development widget to main body (#507749 - closed)
- 🚀 Development Widget: Create MR from Developmen... (#477785 - closed)
- 🚀 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 | |
Movement of dev widget inside the main body | |
Add dropdown in the dev widget to create branch and MR | |
Options dropdown in MR item and branch item |
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.
- In rails console enable the FF
Feature.enable(:work_items_alpha)
- 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
- 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)
- Create any MR for the issue/task and write "Resolves #id" in the description, come back to the issue and see the MR
- 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)
Merge request reports
Activity
changed milestone to %17.7
assigned to @deepika.guliani
added pipelinetier-1 label
mentioned in issue #427975 (closed)
- A deleted user
added frontend label
9 Warnings This merge request is quite big (1907 lines changed), please consider splitting it into multiple merge requests. ffbad81b: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines. ef6864f1: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines. 711b2f3d: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines. e36be451: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines. f03b965e: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines. 85adc3da: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines. This merge request changed files with disabled eslint rules. Please consider fixing them. This merge request contains lines with testid selectors. Please ensure e2e:test-on-omnibus
job is run.Disabled eslint rules
The following files have disabled
eslint
rules. Please consider fixing them:app/assets/javascripts/work_items/components/work_item_development/work_item_create_branch_merge_request_modal.vue
Run the following command for more details
node_modules/.bin/eslint --report-unused-disable-directives --no-inline-config \ 'app/assets/javascripts/work_items/components/work_item_development/work_item_create_branch_merge_request_modal.vue'
testid
selectorsThe following changed lines in this MR contain
testid
selectors:app/assets/javascripts/work_items/components/work_item_development/work_item_create_branch_merge_request_split_button.vue
+ 'data-testid': 'create-mr-dropdown-button', + 'data-testid': 'create-branch-dropdown-button', + <gl-disclosure-dropdown placement="bottom-end" data-testid="create-options-dropdown">
app/assets/javascripts/work_items/components/work_item_development/work_item_development.vue
+ 'data-testid': 'create-mr-dropdown-button', + 'data-testid': 'create-branch-dropdown-button', - data-testid="dev-widget-label" + data-testid="work-item-development" - data-testid="add-item" - <gl-button category="secondary" size="small" data-testid="create-mr-button">{{ - <gl-button category="tertiary" size="small" data-testid="create-branch-button">{{ + data-testid="create-options-dropdown"
app/assets/javascripts/work_items/components/work_item_development/work_item_development_branch_item.vue
+ data-testid="work-item-branch-actions-dropdown" + data-testid="branch-copy-name"
app/assets/javascripts/work_items/components/work_item_development/work_item_development_mr_item.vue
+ data-testid="work-item-mr-actions-dropdown" + data-testid="mr-copy-branch-name" + data-testid="mr-copy-reference"
app/assets/javascripts/work_items/components/work_item_detail.vue
- data-testid="design-upload-button" + data-testid="design-upload-button"
If the
e2e:test-on-omnibus
job in theqa
stage has run automatically, please ensure the tests are passing. If the job has not run, please start themanual:e2e-test-pipeline-generate
job in theprepare
stage and ensure the tests infollow-up:e2e:test-on-omnibus-ee
pipeline are passing.For the list of known failures please refer to the latest pipeline triage issue.
If your changes are under a feature flag, please check our Testing with feature flags documentation for instructions.
Reviewer roulette
Category Reviewer Maintainer frontend @rhardarson
(UTC+1, 4.5 hours behind author)
@ealcantara
(UTC+1, 4.5 hours behind author)
Please refer to documentation page for guidance on how you can benefit from the Reviewer Roulette, or use the GitLab Review Workload Dashboard to find other available reviewers.
If needed, you can retry the
danger-review
job that generated this comment.Generated by
DangerBundle size analysis [beta]
This compares changes in bundle size for entry points between the commits cbdf39a8 and e35a3f97
Special assetsEntrypoint / Name Size before Size after Diff Diff in percent average 4.5 MB 4.5 MB - 0.0 % mainChunk 3.37 MB 3.37 MB - 0.0 %
Please look at the full report for more details
Read more about how this report works.
Generated by
Dangeradded 1 commit
- 2eb2c76b - Move work item dev widget to main body and add create entity
added 1 commit
- 6589004f - Move work item dev widget to main body and add create entity
added 1 commit
- b9d741cd - Move work item dev widget to main body and add create entity
added 617 commits
-
b9d741cd...e801f50a - 616 commits from branch
master
- 3a7e8911 - Move work item dev widget to main body and add create entity
-
b9d741cd...e801f50a - 616 commits from branch
requested review from @nickleonard
added 1 commit
- 3ce245f4 - Move work item dev widget to main body and add create entity
- Resolved by Nick Leonard
- Resolved by Nick Leonard
- Resolved by Nick Leonard
- Resolved by Nick Leonard
- Resolved by Nick Leonard
- Resolved by Nick Leonard
- Resolved by Nick Leonard
- Resolved by 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.
- Resolved by Deepika Guliani
- Resolved by Deepika Guliani
@deepika.guliani Excellent work so far
Thanks a ton for working through these changes so quickly.With
onetwo 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
- Resolved by Nick Leonard
Create MR CTAs
- 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
- 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 - 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.
- 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 Edited by Nick Leonard - 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
added 245 commits
-
3ce245f4...e86ce3cc - 243 commits from branch
master
- a7f70a1a - Move work item dev widget to main body and add create entity
- 30a1ebc8 - Apply UX feedback
-
3ce245f4...e86ce3cc - 243 commits from branch
added 2 commits
Generated bygitlab_quality-test_tooling
.
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
requested review from @nickleonard
- Resolved by Nick Leonard
added 259 commits
Toggle commit listrequested review from @nickleonard
requested review from @ramistry
- Resolved by Natalia Tepluhina
Hey @ramistry
Can you please start the frontend review here(while I am still finishing up some tests but we should be good on the whole) since you have context about it from Create MR/branch from a work item (!172232 - closed) , sorry for the big MR but its easier to test and wanted to do it in %17.7
Edited by Deepika Guliani
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
added pipeline:mr-approved label
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:
test report for e35a3f97expand 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:
test report for e35a3f97expand 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 | ✅ | +-------------+--------+--------+---------+-------+-------+--------+
added 303 commits
-
fd881e55...5636e837 - 297 commits from branch
master
- db6e11d6 - Move work item dev widget to main body and add create entity
- e38de2a8 - Apply UX feedback
- 64b1744b - Test cases and copy to clipboard with props
- c712e14f - Tooltip on truncate and Mr item
- d711bf65 - MR item details
- b8f9e0f5 - Alignment of more button
Toggle commit list-
fd881e55...5636e837 - 297 commits from branch
mentioned in merge request !174812 (merged)
requested review from @jachapman
removed review request for @ramistry
mentioned in merge request !172232 (closed)
- Resolved by Natalia Tepluhina
added 1 commit
- f5510d78 - Make xhr request in modal to prevent individual calls
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
Hi @deepika.guliani, I've left an initial review with some suggestions, questions, and general thoughts.
I'll do some manual testing later to see if I can find anything else.
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
Toggle commit list-
225b2d1d...cfe9c621 - 244 commits from branch
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
Toggle commit list-
225b2d1d...cfe9c621 - 244 commits from branch
requested review from @jachapman
requested review from @cngo
removed review request for @cngo
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
Toggle commit list-
bd8995c5...e68c53f7 - 180 commits from branch
requested review from @ntepluhina
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
Toggle commit list-
6e1c19e5...c0a2be52 - 19 commits from branch
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
@deepika.guliani I tested it locally and everything works like a charm!
I have one question and one nitpick, rest of the MR looks good to me
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
Toggle commit list-
3b0803b3...72104cda - 234 commits from branch
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
- Resolved by Natalia Tepluhina
requested review from @ntepluhina
added pipelinetier-3 pipeline:run-e2e-omnibus-once labels and removed pipelinetier-2 label
started a merge train
mentioned in commit 8b7be1bb
mentioned in incident gitlab-org/quality/engineering-productivity/master-broken-incidents#9596 (closed)
added workflowstaging-canary label and removed workflowsolution validation label
added workflowcanary label and removed workflowstaging-canary label
added workflowstaging label and removed workflowcanary label
added workflowproduction label and removed workflowstaging label
added workflowpost-deploy-db-staging label and removed workflowproduction label
added releasedcandidate label
added releasedpublished label and removed releasedcandidate label