Repository navigation
Keep filers in place when checking or changing files, and return detours to where they started - #277
Merged
Conversation
Uploading a waiver on Fees redirected to the full document preview and back, which dropped the filer's fee waiver choice. The new copy is now previewed and confirmed (or removed) in place, and Continue waits for that check. Adds an opt-in Chromium test covering the Fees flows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change files on the preview dropped where the filer came from, so someone fixing a file from Review walked the whole flow again. Where a finished step goes is now decided by workflow.continue_url: back to Review or the handoff list, or to the one step that fixes what the change broke (Organize for a document without a filing type, Find your case for an existing case not yet found), still carrying the marker. The handoff middleware no longer rewrites every successful POST, which sent filers back to the list mid-step: adding a person on People, and finding a case before confirming it. Gates and intermediate actions keep the marker, markers are checked in one place, and only review and handoff are accepted. The organizing check no longer treats an empty document type as unfinished, since Organize saves none when the court offers no choices. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A missing document added on the checklist was only previewed after Review sent the filer to the preview step and back. The new copy is now shown open on the checklist to confirm or remove, and Continue waits for it. Confirming or removing a copy moves from the fee waiver endpoint to its own document-checks endpoint and script, shared by Fees and the checklist. Any supporting file can be removed there; the main document is still changed on the upload step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A tester uploading a fee waiver on Fees was sent to the full "Check your documents" page and back, losing their fee waiver choice. Fixing that surfaced a family of detours where the app forgot why the filer was on a page. This PR keeps people where they are, or returns them to where they came from.
1. Fee waiver uploads are checked on Fees
The new copy is previewed in place with This copy looks right / Remove and upload a different file. The fee waiver choice stays selected, and Continue waits for the check (the server also refuses to continue with unchecked files).
2. One detour model in
workflow.pycontinue_url/continue_stepdecide where a finished step goes: back to Review or the handoff list, or to the single step that fixes what the change broke, still carrying the marker. That's Organize when a document has no filing type, and Find your case when an existing case isn't found yet.reviewandhandoff. They're checked in one place (return_target/clean_return_to) and never echoed back unchecked.Bugs fixed along the way:
3. Files added on the checklist are checked there
Previously Review sent the filer to the preview page and back for them. Confirm/remove now live in a shared
document-checksendpoint and script used by both Fees and the checklist. Any supporting file can be removed there; the main document is still changed on the upload step.Behavior changes to note
paymentanddocument_checklistare no longer accepted as return markers.Not in this PR
issues_for) still requiresdocument_type_codefor every document, which can't be satisfied for courts with no confidentiality choices.Testing
uv run pytest: 1330 passed. New:test_detours.py,test_document_checks.py,test_checklist_document_checks.py.npm run test:unit: 70 passed. New:document-checks.test.js, plus coverage for Fees keeping Continue disabled while a check is pending.PAYMENT_FLOW_BROWSER_TESTS=1 uv run pytest -s efile/tests/test_payment_flow_browser.py. It needs the PDF.js vendor files (npm ciinefile_app).🤖 Generated with Claude Code