Milestone workboard creation: Propose previous milestone's columns
Summary:
When you have a milestone and you are creating its workboard,
very often (always?) you just want to inherit the same columns
from the previous milestone.
So, when you use this feature on a milestone without a workboard:
{nav Project > Workboard > Import Columns}
Then, enjoy a good default: the previous milestone.
| Before | After |
|-----------|------------|
|{F6677478} | {F6677483} |
Note that the previous milestone will not be suggested if it has no columns,
or if it has just the "Backlog" default column (which is not really a column).
This is desired. We only show a default value if it does not cause errors when
proceeding.
If you don't like this default, click on the “x".
In the future, clicking that "x" angrily may automatically send a perfumed
letter of complaint to Valerio.
Additionally, now the user interface does not say anymore 'Choose a project',
but 'Choose a project or a milestone' because this feature has always worked
with both projects and milestones. It's true that milestones are technically
projects... but extra clarity does not hurt here.
Closes T16380
Test Plan:
Check that the out-of-discussion cases do not provide this new default:
Create a new Project named "MY PROJ".
Click on Workboard > Import Columns.
No default. As usual.
From the project "MY PROJ", create a milestone named "FIRST MILESTONE".
From "FIRST MILESTONE":
Click on Workboard > Import Columns.
No default. As usual.
From "FIRST MILESTONE", create a simple workboard without any extra column.
Create another milestone named "SECOND MILESTONE". From there:
Click on Workboard > Import Columns.
No default. As usual. Since the "FIRST MILESTONE" has no columns.
From the workboard of "FIRST MILESTONE", create some columns.
From "SECOND MILESTONE", finally:
Click on Workboard > Import Columns.
Enjoy the default set to "FIRST MILESTONE". YEEEH!
Finally, click on "Import":
The "SECOND MILESTONE" imported columns from "FIRST MILESTONE".
Do the very same but try to ignore the default,
and manually select another project:
your manually-selected project is used instead, successfully.
Reviewers: O1 Blessed Committers, aklapper
Reviewed By: O1 Blessed Committers, aklapper
Subscribers: aklapper, tobiaswiese, Matthew, Cigaryno
Maniphest Tasks: T16380
Differential Revision: https://we.phorge.it/D26550