New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement date navigation links in process monitoring screen #6241
Labels
Comments
freddidierRTE
added
Enhancement
New feature
LetsCo
Issues needed for letscoordinate project
Draft
Issue not totally defined
labels
Mar 28, 2024
freddidierRTE
changed the title
Add year/month/week in monitoring processus
Implement Date Navigation Links in Process Monitoring Screen
Mar 29, 2024
vlo-rte
added a commit
that referenced
this issue
Apr 16, 2024
Signed-off-by: vlo-rte <valerie.longa@rte-france.com>
vlo-rte
added a commit
that referenced
this issue
Apr 16, 2024
Signed-off-by: vlo-rte <valerie.longa@rte-france.com>
vlo-rte
added a commit
that referenced
this issue
Apr 16, 2024
Signed-off-by: vlo-rte <valerie.longa@rte-france.com>
vlo-rte
added a commit
that referenced
this issue
Apr 18, 2024
Signed-off-by: vlo-rte <valerie.longa@rte-france.com>
vlo-rte
added a commit
that referenced
this issue
Apr 18, 2024
Signed-off-by: vlo-rte <valerie.longa@rte-france.com>
vlo-rte
added a commit
that referenced
this issue
Apr 22, 2024
Signed-off-by: vlo-rte <valerie.longa@rte-france.com>
vlo-rte
added a commit
that referenced
this issue
Apr 22, 2024
Signed-off-by: vlo-rte <valerie.longa@rte-france.com>
freddidierRTE
pushed a commit
that referenced
this issue
Apr 22, 2024
Signed-off-by: vlo-rte <valerie.longa@rte-france.com>
vlo-rte
changed the title
Implement Date Navigation Links in Process Monitoring Screen
Implement date navigation links in process monitoring screen
Apr 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We aim to enhance the user experience on the process monitoring screen by adding date navigation links at the top-right corner of the screen. The links will be as follows:
<< Year Month Week >>
Each link will have the following functionality:
- Year: Sets the date values in the form to the current year.
- Month: Sets the date values in the form to the current month.
- Week: Sets the date values in the form to the current week.
- '<<': Moves to the past based on the previously selected period (year, month, or week).
- '>>': Moves to the future based on the previously selected period.
By default, upon landing on the screen, the date will be set to the current year, and the startDate and endDate fields will be adjusted accordingly.
If the user manually changes the date and then clicks on <<, the dates should shift as follows:
New StartDate = current StartDate - (current EndDate - current StartDate)
New EndDate = current EndDate - (current EndDate - current StartDate)
If the startDate and endDate fields are not set (i.e., the user has cleared the date fields), no action should be taken.
If only the startDate or endDate is set, the date should shift based on the last selected period (year, month, or week).
When the user clicks on ">>", the system should advance to future dates, mirroring the behavior of the "<<" button which navigates to past dates.
These rules should be implemented in ui/main/src/app/business/view/processmonitoring/processmonitoring.view.ts with corresponding unit tests. For instance, a method named
getDatesAfterPeriodClick(periodClicked: string)
could be created, which returns a new object containing startDate and endDate.For end-to-end testing, a single use case should be covered using Cypress. For example, clicking on "week" and verifying that the dates change accordingly.
The text was updated successfully, but these errors were encountered: