Skip to content

Commit 6606f2a

Browse files
feat: LGBTQ+ Health modifier — LGBT Foundation surfaced alongside NHS 111 for LGBTQ+ users
Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 23108fa commit 6606f2a

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

lib/phrasebank.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,6 +1722,14 @@ In the meantime, keep chatting with me. I can help you look for more support now
17221722
text: `We're not finding {category} support showing up in {la} right now. That's something we want to know about — if you're able to, you can let us know via the link below and we'll try to fill the gap. In the meantime, you can browse everything available in their area on Street Support.`
17231723
},
17241724

1725+
TERMINAL_LGBT_FOUNDATION_HEALTH: {
1726+
text: `The LGBT Foundation can provide specialist health advice and support.`
1727+
},
1728+
1729+
TERMINAL_LGBT_FOUNDATION_HEALTH__SUPPORTER: {
1730+
text: `The LGBT Foundation can provide specialist health advice and support for them.`
1731+
},
1732+
17251733
TERMINAL_NRPF_FAMILY_SUPPORT: {
17261734
text: `Children's Services may be able to support you and your family regardless of immigration status — contact them to explore your options.`
17271735
},

lib/stateMachine.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,16 @@ function buildNonHousingTerminal(session: SessionState): TerminalResult {
531531
text += buildNationalFallbacksBlock(fallbacks);
532532
}
533533

534+
// LGBT Foundation for LGBTQ+ users on Health need
535+
if (session.lgbtq === true && need === 'Health') {
536+
const lgbtPhrase = getPhrase('TERMINAL_LGBT_FOUNDATION_HEALTH', session.isSupporter);
537+
if (!fallbacks.length) text += `---\n\n`;
538+
text += `LGBT Foundation\n`;
539+
text += `0345 3 30 30 30\n`;
540+
text += `https://lgbt.foundation\n`;
541+
text += (lgbtPhrase?.text || '') + '\n\n';
542+
}
543+
534544
// Search link for more options
535545
if (categoryKey && la !== 'your area') {
536546
text += `---\n\n`;

0 commit comments

Comments
 (0)