Improve consistency between Group & Project Milestone creation/editing
requested to merge 454591-use-field-error-instead-of-alert-when-milestone-name-is-unavailable into master
What does this MR do and why?
- Consolidates Milestone creation and editing form into a single shared form for group and project Miletones
- Adds some information about the scope of the milestone to New milestone pages
- Updates breadcrumbs, H1s and page titles for New and Edit milestone pages
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
Changed feature | Before | After |
---|---|---|
New milestone form with a title error | ||
New project milestone page breadcrumb | ||
New group milestone page breadcrumb (Unchanged) |
||
New project milestone page title |
||
New group milestone page title | ||
Edit project milestone page title |
||
Edit group milestone page title |
Side by side
Before | After |
---|---|
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
- Check out this branch locally
- visit a project milestones page. If there are no project milestones, create a new one. On the project milestones page, take note of the name of an existing project milestone
- Click "New milestone"
- Try to create a new project milestone with the same name as the milestone you took note of in step 2
- You will get a field-level error on the Title field saying that the name is already in use on another milestone
- Visit a group milestones page. If there are no group-level milestones, create one. On the group milestones page, take note of the name of an existing group milestone.
- Click "New milestone"
- Try to create a new group-level milestone with the same name as the milestone you took note of in step 6
- You will get a field-level error on the Title field saying that the name is already in use on another milestone
- Open the new group milestone form page in one tab and the new project milestone page in another. Compare the two and you will see that they are identical except that the URL, breadcrumb, title and group or project scope information displayed before the form are different.
Related to #454591
Edited by Chad Lavimoniere