Repository navigation
Apply court validation rules to party forms and link filing errors to the field - #279
Merged
Merged
Conversation
…les in the browser The views pass error_actions the message after describe_efsp_error appends its hint, so the state capture ran into the hint and never matched. The "u" RegExp flag rejected \- outside a class, which portable_regex allows, so those court rules were silently skipped in the browser. 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.
Closes #259.
What changes
Court rules on the people forms. Your information and Party details now load the court's own rules from the EFSP code lists (name, organization name, email and phone patterns; required flags; the list of states and locations it accepts).
portable_regex).Checked before sending.
prepare_efile_payloadruns the same checks on the outgoing parties. Values that came from extraction or an older draft are caught before the fee quote or submission ever reaches the court.Errors that point at the field. When the court (or our own pre-check) rejects a party field, the fee and submit responses now include
error_actions: links back to that party's form with the field focused.Follow-up fixes from review (f39d3e9):
uflag, which rejected\-and silently skipped those rules.Testing
uv run pytest -q: 1386 passed, 2 skipped before the push. Ruff,ty check, ESLint, and the 72 JS unit tests all pass.efsp_validation_2026-10-02.json). They cover the follow-up fixes, including a JS test that runsparty-validation.jsagainst a rule with\-.test_profile_api_basic_functionalitystarted failing with "Tyler auth failed" for the.envtest account. It passed with this same code earlier, and this branch doesn't touch sign-in.🤖 Generated with Claude Code