Skip to content

feat: early flow gates and housing options involvement#12

Closed
camlambert2000 wants to merge 13 commits intomainfrom
early-flow-gates
Closed

feat: early flow gates and housing options involvement#12
camlambert2000 wants to merge 13 commits intomainfrom
early-flow-gates

Conversation

@camlambert2000
Copy link
Collaborator

Adds preferred name, access location, return user questions and housing options involvement gate between B6 and B7. 9 new tests for housing options involvement gate coverage. Depends on PR #11.

🤖 Generated with Claude Code

camlambert2000 and others added 13 commits March 13, 2026 21:54
…health/ethnicity questions

Adds SPECIAL_CATEGORY_CONSENT gate that fires before asking LGBTQ+, ethnicity,
or health questions. Declining consent sets lgbtq=false and marks health/ethnicity
as declined_consent, skipping those questions entirely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replaces the 4-option publicFunds question with a 10-option immigration status
question that derives publicFunds automatically. Maps statuses like asylum_seeker
and undocumented to No, british_irish and refugee to Yes, pre-settled to Not sure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When a user identifies as LGBTQ+, they are now asked whether they'd prefer
referral to an LGBTQ+ specialist service. Adds LGBTQ_SPECIALIST_ASK gate,
lgbtqSpecialist session field, and no-local-service fallback phrase.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…and gate fix tests

Adds 10 tests covering: immigration status derives correct publicFunds values
(5 tests), LGBTQ+ Yes routes to specialist follow-up, consent decline skips
LGBTQ question, and null-check gate fix prevents re-triggering for lgbtq:false,
hasChildren:false, and specialCategoryConsent:false.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ove dead code

- B5_PROFILE_LGBTQ "Prefer not to say" now sets lgbtq=false instead of null,
  preventing infinite loop where routeToNextProfileQuestion re-triggers the question
- LGBTQ_SPECIALIST_ASK now writes to lgbtqServicePreference ('Specialist first' /
  'Show both') instead of the unused lgbtqSpecialist field, making it compatible
  with serviceMatcher.getSpecialistOrgs()
- Removed lgbtqSpecialist from SessionState and createSession (dead field)
- Removed LGBTQ_SPECIALIST_NO_LOCAL phrasebank entries (never referenced)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
street-support-va-staging Ready Ready Preview, Comment Mar 13, 2026 10:03pm
streetsupport-platform-va Ready Ready Preview, Comment Mar 13, 2026 10:03pm

Request Review

@james-cross
Copy link
Collaborator

Closing — this work is already on main via PRs 9 and 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants