Content
View differences
Updated by Marc Alcobé about 1 year ago
_**Note:** This will become mandatory to implement with from_ `_workPackageValue:42388:version_` _with the work package ###42388._ <mention class="mention" data-id="42388" data-type="work_package" data-text="#42388">#42388</mention>._
## Acceptance criteria
##### General
* There are only two scheduling modes.
* **Manual**: The user can freely set the start and finish dates, but relations are ignored.
* **Automatic:** Automatically sets the start date based on its relations (predecessor, successor, or child). a predecessor. The user can only set duration.
* This mode is also used for parents, where the duration field is also inactive.
* Any time a user wants to manually choose dates for a work package, they select manual scheduling.
* By default, all new work packages will be manually scheduled.
* A new manually-scheduled work package will either have no dates, or take the current date (depending on existing settings).
* Every newly created work package will have no predecessor; they have to be added later.
* If it's a new child work package, it will continue behaving as it does today and by default take the parent's start date.
* For automatic scheduling, a predecessor is required. If there are no predecessors:
* the top banner will show an error informing the user that a predecessor is required
* all fields will be disabled (non-working days, save action..)
##### **Migration from an earlier version**
* Check the scheduling mode of all work packages to be able to display their correct dates and mode (Manual or Automatic).
##### **Date picker**
* The date picker in mobile will not have any predecessor, successor or children tab.
* The header of the modal is removed to give space to the banners (specified bellow).
* There is a new segmented button with label "Scheduling mode"
* Options: "Manual" and "Automatic"
* The "Ignore non working days" toggle is renamed to "Working days only" and activated by default in all new work packages.
* In **Manual** mode:
* The dates are freely selectable, without restrictions.
* Relations don't affect the start and finish dates.
* A manually scheduled work package can push and pull successors that are automatically scheduled.
* A manual work package can start before any of their predecessors.
* A manually scheduled work package will not push a predecessor to the past when it's moved to the past.
* In **Automatic** mode:
* The _Start date_ and _Finish date_ fields are read-only.
* Duration remains editable.
* The mini calendar goes into read-only mode.
##### **Date picker banners:**
**Manual scheduling:**
* Colour: Warning yellow.
* Action: No action in mobile.
* Text: **Manually scheduled. Dates not affected by relations.**
**Automatic:**
* Colour: Info blue.
* Action: No action in mobile.
* Text case 1: There is a predecessor.
* **The start date is set by a predecessor.**
* Text case 2: The work package is a parent.
* **The dates are determined by child work packages.**
* If a work package is both a parent and has predecessors, this "parent" message will be displayed.
* Text case 3: The work package has no predecessor or children:
* **To enable automatic scheduling, this work package needs to have at least one predecessor.**
* All the options bellow but changing back to manual scheduling will be disabled, including the save button.
* This is an error message and therefore it will take light red as background colour.
##### **Add predecessor or successor dialog:**
* Adding a predecessor or successor through the relations tab we should check if that work package is manually or automatically scheduled.
* If the work package is scheduled automatically just add the relation and apply whatever date changes required with this action.
* If the work package is automatically scheduled display a dialog to allow the user to select how this should affected the related work package:
* Maintain manual scheduling
* Switch to automatic
## Figma and visuals
https://www.figma.com/design/0XMd4nX1d8gmQZvBNSOHS4/Mobile-App---Scheduling-modes?node-id=0-1
<br>
## Acceptance criteria
##### General
* There are only two scheduling modes.
* **Manual**: The user can freely set the start and finish dates, but relations are ignored.
* **Automatic:** Automatically sets the start date based on its relations (predecessor, successor, or child).
* This mode is also used for parents, where the duration field is also inactive.
* Any time a user wants to manually choose dates for a work package, they select manual scheduling.
* By default, all new work packages will be manually scheduled.
* A new manually-scheduled work package will either have no dates, or take the current date (depending on existing settings).
* Every newly created work package will have no predecessor; they have to be added later.
* If it's a new child work package, it will continue behaving as it does today and by default take the parent's start date.
* For automatic scheduling, a predecessor is required. If there are no predecessors:
* the top banner will show an error informing the user that a predecessor is required
* all fields will be disabled (non-working days, save action..)
##### **Migration from an earlier version**
* Check the scheduling mode of all work packages to be able to display their correct dates and mode (Manual or Automatic).
##### **Date picker**
* The date picker in mobile will not have any predecessor, successor or children tab.
* The header of the modal is removed to give space to the banners (specified bellow).
* There is a new segmented button with label "Scheduling mode"
* Options: "Manual" and "Automatic"
* The "Ignore non working days" toggle is renamed to "Working days only" and activated by default in all new work packages.
* In **Manual** mode:
* The dates are freely selectable, without restrictions.
* Relations don't affect the start and finish dates.
* A manually scheduled work package can push and pull successors that are automatically scheduled.
* A manual work package can start before any of their predecessors.
* A manually scheduled work package will not push a predecessor to the past when it's moved to the past.
* In **Automatic** mode:
* The _Start date_ and _Finish date_ fields are read-only.
* Duration remains editable.
* The mini calendar goes into read-only mode.
##### **Date picker banners:**
**Manual scheduling:**
* Colour: Warning yellow.
* Action: No action in mobile.
* Text: **Manually scheduled. Dates not affected by relations.**
**Automatic:**
* Colour: Info blue.
* Action: No action in mobile.
* Text case 1: There is a predecessor.
* **The start date is set by a predecessor.**
* Text case 2: The work package is a parent.
* **The dates are determined by child work packages.**
* If a work package is both a parent and has predecessors, this "parent" message will be displayed.
* Text case 3: The work package has no predecessor or children:
* **To enable automatic scheduling, this work package needs to have at least one predecessor.**
* All the options bellow but changing back to manual scheduling will be disabled, including the save button.
* This is an error message and therefore it will take light red as background colour.
##### **Add predecessor or successor dialog:**
* Adding a predecessor or successor through the relations tab we should check if that work package is manually or automatically scheduled.
* If the work package is scheduled automatically just add the relation and apply whatever date changes required with this action.
* If the work package is automatically scheduled display a dialog to allow the user to select how this should affected the related work package:
* Maintain manual scheduling
* Switch to automatic
## Figma and visuals
https://www.figma.com/design/0XMd4nX1d8gmQZvBNSOHS4/Mobile-App---Scheduling-modes?node-id=0-1
<br>