← Back to Pull requests

fix(clients): distinguish unset birth dates in client and family forms #829

Closed
unknown closed this pull request without merging on Oct 27, 2026 05:31 UTC
View on GitHub
unknown unknown commented on Oct 22, 2026 10:04 UTC
Author

Create Client and Add Family Member now show “Not set” for an empty Date of Birth and offer a clear action after selection. Clearing after a rejected create also keeps the retry payload free of the old date. Client help describes the create wizard or the edit task, as appropriate. The latest review cleanup consolidates duplicate adapter imports without changing the component body.

Closes #747. The name-input validation associations reported there already work on main. Clearing an existing record’s DOB and constraining future birthdays remain outside this change; existing edit serialization is preserved.

Verification:

  • Latest import cleanup: 317 application test files / 2619 tests passed in UTC; 2 microfrontend tests passed. The prior 16d5020e head also passed all 2619 tests in America/New_York on October 25; that timezone was not rerun for the import-only cleanup.

  • 6 mocked browser tests passed without retries at 1280×900 and 390×844, covering the client and family create flows, selected/omitted DOB payloads, clear after rejected saves, picker dismissal/revisit, edit help and narrow overflow.

  • The exact focused regressions fail 4 / pass 18 on the pre-review-fix head and all pass with the fix. New family tests use HTTP interception without generated-client imports.

  • Production build, lint/format, i18n/icons/a11y/template/UI checks, E2E types, API surface, license and GA checks passed. The touched file now has no duplicate-import warnings; six existing warnings elsewhere, the header style-budget warning and adapter advisory remain.
  • All requests and fixtures in local browser coverage are synthetic and mocked. No local real-backend, full browser, non-English browser, offline/container build or generated-client regeneration was run. Screenshots and video are saved by the focused specs for inspection.

    Codex assisted with implementation and Vitest/Playwright verification. No generated API files or lint suppressions were hand-edited; commits are signed.

    Screenshots

    Captured with synthetic mocked data on the verified application head.

    Untouched optional DOB, desktop1280×900:

    !Create Client with an unset date of birth

    Explicitly selected DOB and Clear action, phone390×844:

    !Create Client with a selected date of birth and Clear action

    Empty family-member DOB (field capture):

    !Family member date of birth shows Not set

    Diff: 353 lines (+264 / -89) across 4 files Reviewer: zhangxinyao88 Review duration: 6927m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 353 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.351
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #829"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.8% · Safe to merge
    16.8%