Warn early and block filing for configured courts and case types - #274
Merged
Merged
Conversation
Fixes from review: - Extraction review checks once courts load, so a guided selector with no court chosen no longer leaves Continue blocked without a message. - Organize documents uses saved filing-type names until each card's list loads, so the server-rendered warning is not cleared by a blank check. - Rules are validated on every check, whatever names are saved, so a bad regex fails before the draft is claimed rather than leaving it in ERROR. - The guard only re-enables buttons it disabled itself. Simplifications: - The guard coalesces checks made in the same turn and skips unchanged selections; organize documents checks once after all cards load. - Draft checks query documents only when a filing-type rule exists, and submit checks load the court's rules once. - Shared apiUtils.selectedOptionText, a notice template include, a merged submit error response, and tidier tests and browser-spec mocks. 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.
What changes
Courts can temporarily block filing through LITEFile when a required capability, such as hearing scheduling, is unavailable. Add
filing_availabilityto a court's existing jurisdiction YAML entry to disable the whole court or selected case categories, case types, and filing types. Filing remains enabled by default.Filers see a live warning beside the court or type selection immediately, before answering the remaining questions. Continue is disabled while availability is being checked or when a restriction matches. Correcting the choice clears the warning. Existing-case court lookup and document filing-type changes use the same live check.
Rules match human-readable category, case-type, and filing-type names exactly by default, with explicit
{regex: "pattern"}entries for full-name regular expressions. Numeric Tyler type IDs can change without requiring rule edits. Court entries support a county prefix such ascook:*, and provide either the built-in explanation, a court-wide message, or a rule-specific message. All documents in an envelope are checked. Restrictions stop progression and final submission, including saved drafts, concurrent submission claims, and outgoing selections resolved to authoritative names from current court code lists. A failed required name lookup blocks submission with a retry message. Filers retain their drafts and can correct their selections.The Illinois YAML includes a commented Cook County Contract case-type example explaining the unsupported hearing-scheduling capability. The complete filing availability guide documents the full schema, exact and regex matching, message precedence, court and county examples, immediate warnings, submission enforcement, deployment, verification, re-enabling, troubleshooting, and live-check API. It is linked from the sidebar, court configuration, partner overview, and admin reference. The example is deliberately inactive: the affected production case-type names and actual scheduling requirements still need confirmation.
Validation
Validation screenshots on a gist. Images were captured under
/tmpand are not in this repository. Demo restrictions used an isolated local database and did not send filings to a court.Closes #212.