Skip to content

Gate bug fix, immigration status flow, LGBTQ+ specialist, consent gate removal (PR #7 redo)#11

Closed
camlambert2000 wants to merge 12 commits intomainfrom
pr7-redo
Closed

Gate bug fix, immigration status flow, LGBTQ+ specialist, consent gate removal (PR #7 redo)#11
camlambert2000 wants to merge 12 commits intomainfrom
pr7-redo

Conversation

@camlambert2000
Copy link
Collaborator

Re-raised as requested. Same commits as original PR #7, reviewed and updated to address all feedback. No new changes.

🤖 Generated with Claude Code

camlambert2000 and others added 12 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>
@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 9:58pm
streetsupport-platform-va Ready Ready Preview, Comment Mar 13, 2026 9:58pm

Request Review

@camlambert2000
Copy link
Collaborator Author

PR #11 is up with the same 12 commits from the original PR #7, rebased clean onto main. 63 tests passing, 0 lint errors.

The early flow gates work (preferred name, access location, return user, housing options involvement) will be a separate PR once this one is through.

The lint fixes PR is also ready for review when you're back — 21 errors resolved from the tightened rules you added. No rush on any of it.

@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