ef-cms icon indicating copy to clipboard operation
ef-cms copied to clipboard

Docket Clerk: Connect Order to Motion - One to One

Open cholly75 opened this issue 3 years ago • 21 comments

As a party to a case, so that I can quickly tell the disposition of a particular motion, I need motions to indicate their disposition and connection to the dispositive Order.

Currently when an order granting or denying a motion is docketed, there is no indication on the motion docket entry or in the motion data of how it has been disposed. This means that to find out whether a particular motion has been granted or denied the docket record and orders must be scanned and parsed individually for the order doing so. This makes it difficult to see at a glance the disposition of the motion for parties to the case and Court personnel.

Additionally, this makes it difficult to report out on operational Court data regarding types and behaviors w/r/t motions. For example, the Court is interested in monitoring how many Motions for Summary Judgment are granted vs. denied, but because there's no explicit connection between the motion itself and the order disposing of it, these statistics are difficult to collect with any degree of accuracy.

This story will address an order disposing of a single motion.

We would like to keep this behind a feature flag pending the full rollout of use cases. A future story will extend this functionality to orders disposing of multiple motions.

Pre-Conditions

Acceptance Criteria

  • When adding an order to the docket record, if an order is disposing of a motion, the clerk can indicate which motion on the docket record the order is disposing of
  • When adding an order disposing of a motion to the docket record, the clerk must indicate whether the motion is Granted, Granted in Part, or Denied
  • The motion disposition is indicated on the docket record entry for the motion by appending " - [DISPOSITION] #[ENTRY]" to the current description in the "Filings and Proceedings" column of the appropriate motion
    • [DISPOSITION] is either "GRANTED", "GRANTED IN PART" or "DENIED" based on the selection by the docket clerk
    • [ENTRY] is a hyperlink to the docket entry for the order disposing of the motion (this means that for Court users and parties to the case with visibility into the Motion docket entry there will be two different hyperlinks present on the entry - one for the original motion and one linking to the order disposing of the motion. Both links should obey all visibility rules.)
    • This does not trigger a Notice of Docket Change entry on the record
  • If the order disposing of the motion is sealed, the [ENTRY] hyperlink displays the red lock icon as well
  • If the docket entry for an order is edited, the motion disposition association can be edited as well
  • If the order is in a consolidated group, all appropriate motion records in each case in the group are edited in the manner above upon multi-docketing of the order

Notes

  • We would like the motion disposition to be stored as data in some way on the motion itself to enable reporting

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:

  • [ ] Is framed in business/user need, the value has been addressed.
  • [ ] Includes acceptance criteria
  • [ ] Has been refined
  • [ ] Pre conditions have been satisfied. 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

  • [ ] Acceptance criteria have been met and validated on the Court's migration environment
  • [ ] Add scenario to testing document, if applicable (https://docs.google.com/spreadsheets/d/1FUHKC_YrT-PosaWD5gRVmsDzI1HS_U-8CyMIb-qX9EA/edit?usp=sharing)

UX

  • [ ] Business test scenarios have been refined to meet all acceptance criteria
  • [ ] Usability has been validated
  • [ ] Wiki has been updated (if applicable)
  • [ ] Story has been tested on a mobile device (for external users only)

Engineering

  • [ ] Automated test scripts have been written, including visual tests for newly added PDFs.
  • [ ] Field level and page level validation errors (front-end and server-side) integrated and functioning.
  • [ ] New screens have been added to pa11y scripts.
  • [ ] All new functionality verified to work with keyboard and macOS voiceover https://www.apple.com/voiceover/info/guide/_1124.html.
  • [ ] Swagger docs have been updated if API endpoints have been added or updated.
  • [ ] UI should be touch optimized and responsive for external users.
  • [ ] Interactors should validate entities before calling persistence methods.
  • [ ] Features have been optimized where possible to reduce response times. For example, reducing api response times, parallelizing client network calls, optimizing database reads, etc.
  • [ ] Types have been added to all added and updated functions.
  • [ ] Code refactored for clarity and to remove any known technical debt.
  • [ ] If new docket entries have been added as seed data to efcms-local.json, 3 local s3 files corresponding to that docketEntryId have been added to web-api/storage/fixtures/s3/noop-documents-local-us-east-1.
  • [ ] Acceptance criteria for the story has been met.
  • [ ] If there are special instructions in order to deploy into the next environment, add them as a comment in the story.
  • [ ] If the work completed for the story requires a reindex without a migration, or any other special deploy steps, apply these changes to the following flexion branches:
    • [ ] experimental1
    • [ ] experimental2
    • [ ] experimental3
    • [ ] experimental4
    • [ ] experimental5

cholly75 avatar Mar 27 '23 17:03 cholly75

Pre-refinement questions:

  • If you edit disposition on motion, after the order was associated, does it need to flow through?
  • Should we create a work item for somethings like if they strike it? If the disposition was granted, is there more we can automate for the user?
  • As a regular person/petitioner, is there more we can do to notify them of the results of their motion? (Email something?)

katiecissell avatar Jun 14 '23 15:06 katiecissell

In the add/edit docket entry field for all orders a new checkbox should be added above the inclusion/attachments checkbox.

  • The checkbox should say "This order acts on a motion"
  • If checkbox is selected two new fields should appear below the checkbox.
  • The first is a dropdown box with the label: "What motion is being acted on?". The dropdown should show the line number with the name of any motions on the docket.
  • The second is a dropdown with the label "What action is being taken?" The dropdown options should be Denied, Granted, Granted in Part.

image.png image.png image.png image.png

If there are no motions on the docket record, the dropdown should say "There are no motions on the docket record". image.png

If the user clicks a motion is being disposed but does not select a motion and/or its status, display validation messages. image.png

Figma File

katiecissell avatar Jul 05 '23 19:07 katiecissell

Test Cases

1) Docket Clerk navigates to a draft Order; Adds Docket Entry; New checkbox is present to indicate if the Order disposes of a motion.

*Pre-Conditions - Be sure that the case you are on has a few motions on the docket record.

  • Log in as a Docket clerk
  • Navigate to a case that has a signed Order in Drafts
  • Click Add Docket Entry

Expected Results:

  • [ ] NEW FUNCTIONALITY - There is a new checkbox that states, "This order disposes of a motion" that is below the "What is this order for?" field and the Inclusions header.

2) Docket Clerk checks the box indicating that the Order disposes of a motion, two additional fields appear.

  • Continuing from the previous test
  • Check the box for "This order disposes of a motion"

Expected Results:

  • [ ] NEW FUNCTIONALITY - Two new fields appear: "What motion is being disposed of?" and "What is the disposition of the motion?"

3) Docket Clerk Clicks Save and Serve; receives validation error.

  • Continuing from the previous test
  • Be sure that you leave the two additional fields blank
  • Click the Save and Serve button

Expected Results:

  • [ ] NEW FUNCTIONALITY - User receives validation errors indicating that they need to select a motion to displose of, and the disposition.

4) Docket Clerk selects a motion and the disposition for the Order; Saves and Serves Order.

Part 1

  • Continuing from the previous test
  • Click on the dropdown menu to select a motion that is being disposed of

Expected Results:

  • [ ] NEW FUNCTIONALITY - The dropdown menu displays the index number and Motion Name for each motion on the docket record.

Part 2

  • Click on the dropdown for the disposition of the motion

Expected Results:

  • [ ] NEW FUNCTIONALITY - Selections include Granted, Granted in Part, and Denied.

Part 3

  • Docket Clerk clicks save and serve.

Expected Results:

  • [ ] Order is served appropriately

5) The text in the Filings and Proceedings column for the original Motion on the docket record is updated

  • Continuing from the previous test
  • You should have a green confirmation banner
  • Scroll down on the docket record and review the entry for the original motion

Expected Results:

  • [ ] NEW FUNCTIONALITY - The original motion has text appended to the original title that includes the disposition that the clerk entered for the Order in the previous test (Granted, Granted in Part, or Denied)
  • [ ] NEW FUNCTIONALITY - The original motion has a link to the index number of the Order that disposed of the motion.
  • [ ] NEW FUNCTIONALITY - Clicking on the link opens the document for viewing
  • [ ] NEW FUNCTIONALITY - There is no Notice of Docket Change for the updated text on the Original motion.

6) Docket Clerk edits an existing Order that is on the docket record of a case; Checkbox for This Order disposes of a motion

*Pre-Conditions - Be sure that the case you are on has a few motions and Orders on the docket record.

  • Log in as a docket clerk
  • Navigate to a case with the pre-conditions above
  • Click on the edit link to edit an order

Expected Results:

  • [ ] NEW FUNCTIONALITY - There is a new checkbox that states, "This order disposes of a motion" that is below the "What is this order for?" field and the Inclusions header.
  • [ ] NEW FUNCTIONALITY - If the checkbox is checked, two new fields appear: "What motion is being disposed of?" and "What is the disposition of the motion?"

7) Docket Clerk Clicks Save; receives validation error.

  • Continuing from the previous test
  • Be sure that you leave the two additional fields blank
  • Click the Save button

Expected Results:

  • [ ] NEW FUNCTIONALITY - User receives validation errors indicating that they need to select a motion to displose of, and the disposition.

8) Docket Clerk selects a motion and the disposition for the Order; Saves edited Order.

Part 1

  • Continuing from the previous test
  • Click on the dropdown menu to select a motion that is being disposed of

Expected Results:

  • [ ] NEW FUNCTIONALITY - The dropdown menu displays the index number and Motion Name for each motion on the docket record.

Part 2

  • Click on the dropdown for the disposition of the motion

Expected Results:

  • [ ] NEW FUNCTIONALITY - Selections include Granted, Granted in Part, and Denied.

Part 3

  • Docket Clerk clicks save entry.

Expected Results:

  • [ ] Order record is saved appropriately

9) The text in the Filings and Proceedings column for the original Motion on the docket record is updated

  • Continuing from the previous test
  • You should have a green confirmation banner
  • Scroll down on the docket record and review the entry for the original motion

Expected Results:

  • [ ] NEW FUNCTIONALITY - The original motion has text appended to the original title that includes the disposition that the clerk entered for the Order in the previous test (Granted, Granted in Part, or Denied)
  • [ ] NEW FUNCTIONALITY - The original motion has a link to the index number of the Order that disposed of the motion.
  • [ ] NEW FUNCTIONALITY - Clicking on the link opens the document for viewing
  • [ ] NEW FUNCTIONALITY - There is no Notice of Docket Change for the updated text on the Original motion.

10) Docket Clerk checks the box indicating that the Order disposes of a motion; No motions are present on the docket record; What motion is being disposed dropdown menu indicates that there are no motions.

  • Log in as a docket clerk
  • Navigate to a case that does not have any motions on the docket record, but has a draft order
  • Click on the add docket entry button
  • Check the box for "This order disposes of a motion"
  • Click on the What motion is being disposed dropdown

Expected Results:

  • [ ] NEW FUNCTIONALITY - The dropdown menu states, "There are no motions on the docket record"

11) Repeat tests 1-10 with the Clerk of the Court and with the Case Services Supervisor

  • [ ] Tests 1-10 pass with the CotC user
  • [ ] Tests 1-10 pass with the Case Services Supervisor

12) When External parties view the case docket record, they can also see the appended text on the original motion.

  • As an external user, navigate to the cases that you were testing with in the previous steps.
  • Review the docket record

Expected Results:

  • [ ] NEW FUNCTIONALITY - The original motion has text appended to the original title that includes the disposition that the clerk entered for the Order in the previous test (Granted, Granted in Part, or Denied)
  • [ ] NEW FUNCTIONALITY - The original motion has a link to the index number of the Order that disposed of the motion.
  • [ ] NEW FUNCTIONALITY - Clicking on the link opens the document for viewing

*Repeat this test with other external users (Petitioner, IRS, Practitioner, Terminal user)

ttlenard avatar Jul 07 '23 20:07 ttlenard

Notes: (This list will be updated as work is done)

  • If orders are one to many with motions (so that each motion can only be affected by one order, but one order can affect many motions) then we will need to filter out any motions that have already been dispositioned from the dropdown.
  • Should we account for stricken orders and their resulting disposition on respective motions

zacharybrown204 avatar Sep 25 '25 19:09 zacharybrown204

@zacharybrown204 @JayFlexy @ttlenard - additional ask to the story: we would like the Order disposing of the motion to also have its docket entry edited when serving, indicating which motions were disposed of in the same manner that we are editing the docket entries of the motions.

The catch here is that since Orders are publicly viewable, the hyperlink to the Motions should only be active to internal Court users and parties to the case. If it's viewed by the public, the "GRANTED/DENIED/GRANTED IN PART # Whatever" should just be plain text. Will codify as AC.

cholly75 avatar Oct 08 '25 20:10 cholly75

Ready for UX review. New UI elements are visible by:

  • Creating a motion
  • Creating an order
    • When docketing the order there is a new checkbox to relate a motion to the order, revealing the new UI elements
  • New links will be visible on the order and motion referencing eachother
  • Editing the order will also show these new elements.

zacharybrown204 avatar Nov 05 '25 21:11 zacharybrown204

UX Feedback:

  • ~~The what motion is being acted on select helper text and the entries is bolded. Needs to be not bold.~~
  • ~~The "Remove" shouldn't appear on the first entry (you can remove it and get into a weird state. If they want to remove the first entry then they should uncheck the box.~~
  • ~~Space between remove and the select field should be 16px~~
  • ~~Space between remove and the divider line should 16px~~
  • ~~Space between add and divider line should be 16px.~~
  • ~~When you remove a set that has validation messages, remove those messages otherwise they could appear on a set that is fine.~~
  • ~~Just to confirm, are we seeing two alerts here because of 8477?~~ Yes, or at the very least those alerts are not related to 8546
Image

katiecissell avatar Nov 07 '25 16:11 katiecissell

@katiecissell Yes, when testing on a branch that only contains staging + 8546 code, we do not see these two alerts.

JayFlexy avatar Nov 07 '25 20:11 JayFlexy

I am ready to move this along, but I need to chat with Zack and Javis about the last two bulletpoints provided. I think they're both out today so I would like to check in with them on Monday

Evelyn-Durbin avatar Nov 14 '25 15:11 Evelyn-Durbin

I am ready to move this along, but I need to chat with Zack and Javis about the last two bulletpoints provided. I think they're both out today so I would like to check in with them on Monday

New code is up on exp1 and confirms that those paper service alerts are not present. Everything looks g2g. I consolidated 101-25 and 105-25 in this environment for testing.

JayFlexy avatar Nov 14 '25 22:11 JayFlexy

Document hyperlink visibility rules:

External (non-logged in) users: should have visibility into non-"sealed to public" Orders/Court-issued documents on the docket record Logged in parties (petitioner and practitioner) to a case should have visibility into Orders/Court-issued documents and all non-"sealed to parties" documents on the docket record. Court users should have access to all documents on the docket record.

cholly75 avatar Nov 19 '25 21:11 cholly75

Testing feedback

  • The links should be available to Public and Parties to the case.
  • Public should nsee the links to Orders only
  • Parties should see links to Motions and Orders

We will work with UX to get updated mocks @zacharybrown204 @JayFlexy

niusha1365 avatar Nov 19 '25 21:11 niusha1365

https://www.figma.com/design/Q1Jz3GUGzMXeF4JTHh0d0f/USTC-%7C-Docket-Record-%7C-Connect-order-disposing-of-motion-%7C-8546?node-id=2773-870&t=tuuE9t7nJtXBd0OO-1

Evelyn-Durbin avatar Nov 20 '25 18:11 Evelyn-Durbin

Testing Feedback:

@zacharybrown204

I found an instance that results in a generic error, rather than a descriptive error.

Preconditions: Be sure that you have an order on a docket record and that order already has data in it to identify that it acted on a motion.

  1. As a docket clerk, navigate to a case with an order that has acted on a motion
  2. Click on the edit link for the order
  3. Be sure that there is already data in the docket entry metadata indicating that it has acted on a motion
  4. Click on the Add new motion link to add an additional motion, but don't add any data to the two fields
  5. Click Save
  6. Receive generic error message at the top of the page that states, "Ensure that you are using a supported browser: Chrome, Firefox, Safari, MS Edge, or IE11 (or later)

Somewhat related...if someone were to get this generic error, shouldn't we remove the reference to IE 11 all together??? This can be a separate ticket, but that just caught my attention.

Generic error:

Image

I tested this when adding a docket entry, and if you attempt to add in a second motion on the add docket entry screen, the validation error displays correctly:

Image

I also attempted to get this generic error to display if you were to edit a docket entry and then attempt to save with no data if the user clicks on Add new motion only one time. For this scenario, I am seeing the correct validation error.

Image

The issue appears to only happen when you edit a docket entry and there is a second (or third) motion that is blank.

ttlenard avatar Dec 03 '25 20:12 ttlenard

@zacharybrown204 @ttlenard

Changes requested from feedback:

  • [ ] A) Change phrasing on checkbox to "This order is dispositive for at least one motion"

  • [ ] B) On the motion dropdown, order the menu items from newest -> oldest

  • [ ] C) Change association verbiage for both motion and order:

    • Motion: "GRANTED BY" / "GRANTED IN PART BY" / "DENIED BY"
    • Order: "GRANTING" / "GRANTING IN PART" / "DENYING"
  • [ ] D) Include association verbiage in index listing on Document View (@zacharybrown204 to assess feasibility/effort required)

  • [ ] E) Current behavior is that associations can be added to a single motion with successive orders - this is desired behavior, but unexpected. @zacharybrown204 to look into why it's doing that

cholly75 avatar Dec 09 '25 18:12 cholly75

Testing Feedback:

@zacharybrown204

  • [x] Can we please make sure that the verbiage matches this for Order? Thanks!

Order: "GRANTING" / "GRANTING IN PART" / "DENYING"

Here is what it is saying currently on TEST:

Image

ttlenard avatar Dec 11 '25 17:12 ttlenard

Testing Feedback:

@zacharybrown204

  • [x] Can we get these x's to function? Right now, they don't do anything. Thanks!
Image

ttlenard avatar Dec 11 '25 18:12 ttlenard

Testing Feedback

@zacharybrown204

  • [x] Can we please get the Order/Motion disposition information added to the Printable docket record?
Image

Here is an example of how an order looks like on the docket record (see the link to the motion)

Image Image

Here is how the current printable docket record looks (no information about the motion). We would like to be able to have both the motion and order information that got added to the docket record in this story also available on the printable docket record.

Image Image

ttlenard avatar Dec 17 '25 16:12 ttlenard

Testing Feedback

@zacharybrown204

  • [x] When a docket clerk or CSS seals an Order that has a motion disposition or seals the motion that has an associated Order(s), the reference links disappear. If you refresh the screen, the references will display again. It's just on initial load of the docket record after a document is sealed that the reference disappears. We need the reference to the Motion to remain, and not appear to be removed. Thanks!

  • [ ] DISREGARD THIS! ~~Also, can we adjust the seal icon to be in line with the document that is sealed? Right now it appears to just be aligned in the middle of the row? @Evelyn-Durbin~~

~~1. This is when there are no Motions associated:~~

Image

~~2. This is when there is one. Note how the lock icon is slightly off:~~

Image

~~3. This is when a sealed order disposes of multiple motions. The lock icon is now aligned somewhere with the motions, when it needs to be in line with the Order.~~

Image

ttlenard avatar Dec 17 '25 18:12 ttlenard

Testing Feedback:

@zacharybrown204

  • [ ] DISREGARD THIS! ~~When an Order is stricken, the information on the docket record looks good, but we need some updates on the document view. Right now when looking at the entry on the document view, it appears that all of the motions are also stricken. Can you ensure that it matches how it looks on the docket record? Thank you.~~

~~Document view~~ Image

~~This is how it should look. Here is the docket record view. only the Order is stricken, not the associated motions.~~

Image

ttlenard avatar Dec 17 '25 21:12 ttlenard

Testing Feedback:

  • [ ] A Few weeks ago, there was terminology change requested for how we display the dispositions on the docket record. For public non-logged in users and for the public terminal user, it looks like the verbiage didn't get updated on the docket record for these users. The docket record is still displaying the old verbiage "GRANTED, DENIED, GRANTED IN PART". When viewing the printable docket record as these user types, the verbiage IS updated. It seems the issue is only with what is displayed on the docket record for non-logged in users
Image

For reference, here is the original verbiage request.

C) Change association verbiage for both motion and order:

Motion: "GRANTED BY" / "GRANTED IN PART BY" / "DENIED BY" Order: "GRANTING" / "GRANTING IN PART" / "DENYING"

ttlenard avatar Dec 23 '25 19:12 ttlenard

Testing Feedback:

@zacharybrown204

  • [x] When viewing the Case docket record as the Public Terminal user, the visibility rules are not quite correct. The Terminal user should see a link to the motion that the Order is granting. The only time that the Public terminal user shouldn't be able to see a link to a document, is if the document is sealed or stricken.

See below. The terminal user should have a link to this motion.

Image

ttlenard avatar Dec 30 '25 16:12 ttlenard

Testing Feedback:

@zacharybrown204

  • [x] I'm getting a type error in the console when a public user or Public Terminal user attempts to sort or filter the docket record. Here are the steps to recreate the issue. Note: This does not happen on Production.
  1. As a public user, go to the DAWSON landing page
  2. Open the Console on your computer
  3. From the case search, navigate to a case that has an Order with a motion disposition on the docket record (coca cola)
  4. Click on any of the docket record headers to sort the docket record columns, or filter the docket record by any document type
  5. Receive a spinning wheel next to the column header, or if you filtered, the document type you selected doesn't get selected.
  6. Notice that there is a type error in your console that has something to do with "Order". See screen grabs below:
Image Image Image

ttlenard avatar Dec 30 '25 20:12 ttlenard