flexion / ef-cms

An Electronic Filing / Case Management System.
24 stars 10 forks source link

Calendaring: Generate Suggested Term #10275

Open cholly75 opened 9 months ago

cholly75 commented 9 months ago

As a Court user, so that creating a new term is as easy as possible, I need DAWSON to use its data to provide me with suggested term calendar sessions in a way that allows collaboration to happen.

Pre-Conditions

Acceptance Criteria

Notes

Reminders.pdf

image.png

Tasks

Test Cases

Story Definition of Ready (updated on 12/23/22)

The following criteria must be met in order for the user story to be picked up by the Flexion development team. The user story must:

Process: Flexion developers and designers will test if the story meets acceptance criteria and test cases in Flexion dev and staging environments (“standard testing”). If additional acceptance criteria or testing scenarios are discovered while the story is in progress, a new story should be created, added to the backlog and prioritized by the product owner.

Definition of Done (Updated 5-19-22)

Product Owner

UX

Engineering

katiecissell commented 4 months ago

UX Notes:

Please see Figma file for full comments

A new link is added to the trial sessions page. It is visible regardless of what tab you are viewing. Only Petitions clerks, Case Services Supervisors and Clerk of the Court will see the link.

image.png

When the link is clicked a modal appears.

image.png

When create term is clicked, Dawson will create a .xlsx or .csv file (depending on the engineers feedback when they pick this ticket up.) The file will create a calendar of the term and divide the eligible cases for each location into sessions. It will also respect additional rules outlined in the figma file. A loading state will be used while Dawson creates this file. When its done, the file will be downloaded to the user's computer/browser.

No specials or hybrid S's will be generated by this calendar. (existing specials already scheduled will show)

Hardcoded Session creation rules:

image.png
ttlenard commented 3 months ago

Test Cases

1) Petitions Clerk accesses the Trial Sessions Page; new link that says, "Create Term" displays to the left of the Trial Session Planning Report link at the top of the page.

Expected Results:

2) Petitions Clerk clicks on the "Create Term" link; new modal displays.

Expected Results:

3) Petitions Clerk adds in valid data into the modal; Clicks Create Term button; User sees a loading screen.

Expected Results:

4) Loading screen completes; Document is downloaded to the user's computer.

Expected Results:

5) Petitions Clerk opens the file; reviews generated Spreadsheet of the Term that was created.

Expected Results:

6) Petitions clerk pulls a Trial Session Planning Report; Using the data from that report, compare the results in the Generated Suggested Term spreadsheet with the data on the planning report.

Expected Results:

*DEV QUESTION - If I generated multiple suggested terms, will there be a different result each time? Is there randomization involved in generating the data? If yes, we will want to repeat test case 6 and 7 to ensure that the rules still apply even when the placement of suggested terms is random.

7) Petitions Clerk unblocks a number of cases for a few locations; re-runs the trial session planning report; Generates a new suggested term; results in the spreadsheet reflect the changes and sessions are suggested appropriately.

Expected Results

8) Regression test to ensure that no sessions are actually created.

Expected Results:

9) Repeat all of the tests with the following users:

TomElliottFlexion commented 2 months ago

New Rules: - Prioritize larger of small vs regular set of eligible cases

akuny commented 2 months ago

Based on discussion with UX the afternoon of 9/23/24, moving forward we will not include the "trial term" select element in the form for the first iteration of the suggested term generation workflow. The term name field will be the filename of the resulting Excel document, and the start and end date fields will be used by the module that generates the schedule to determine when the term starts and ends.

TomElliottFlexion commented 1 month ago

Compiled notes from several discussions:

TomElliottFlexion commented 1 month ago
TomElliottFlexion commented 1 month ago
TomElliottFlexion commented 4 weeks ago
akuny commented 2 weeks ago

Latest feedback:

  1. The error message stating that there are more than two special trial sessions scheduled for Washington DC in the same week should be changed to a warning message, and the spreadsheet should generate anyhow.
  2. In the spreadsheet, the cells containing special sessions on the triple-booked week should be red with an asterisk to call attention to the issue
  3. Add a second worksheet to the spreadsheet that lists the procedure type/location mismatches that currently appear in the success message. (If it's not feasible to add a second worksheet, then list these mismatches below the calendar on the first worksheet.)
katiecissell commented 2 weeks ago

Image

Image

akuny commented 2 weeks ago

Below is a screenshot of the error message that will display if we are unable to generate the spreadsheet:

Image

swongCO commented 2 weeks ago

Tested colors for color blindness (protanopia and deuteranopia) and found issues with the current colors for Special and Hybrid. Screenshots below show Small / Special and Regular / Hybrid are not differentiated. Image

Here are the new suggested colors:

ffbe2e = Special

fee685 = Hybrid

katiecissell commented 1 week ago

Updated warning messages: Show errors once for Maximum sessions per week exceeded and Maximum sessions per location exceeded

Trigger: Maximum sessions per week exceeded Updated Wording: More special sessions than maximum allowed per week: mm/dd Highlight: nothing for now, future perhaps header

Trigger: One session per location per week exceeded Updated: More than one special trial per week scheduled: Location, mm/dd. Highlight: The offending Session

Trigger: Maximum sessions per location exceeded Updated: More special sessions than maximum allowed per location scheduled: Location Highlight: nothing for now, future perhaps header

Washington specific:

Trigger:Two SPECIAL sessions per week in Washington DC exceeded Updated: More than two special trial sessions per week: Washington, DC, 2/10. Highlight: The offending Session

Trigger: Maximum sessions per location for Washington DC (South courtroom) exceeded Updated: More special sessions than maximum allowed per location scheduled: Washington, DC Highlight: nothing for now, future perhaps header

If no warnings display in warning tab: There were no warnings for this calendar.

akuny commented 1 week ago

If no warnings display in warning tab: There were no warnings for this calendar.

When there are no warnings from generating the term, the "Warnings" tab will not appear at all in the resulting spreadsheet.

katiecissell commented 1 week ago