Skip to content

Conversation

murugapl
Copy link
Contributor

Some organisations may need to provide additional guidance when sharing phone numbers (like menu options), and this change allows that information to be stored and consistently displayed throughout the application.

Added a phone_instructions string field to both organisation and team models, with corresponding database migrations. The instructions now appear in brackets next to phone numbers in all user-facing views and are included in the Notify personalisation for emails and text communications.

The onboarding process also supports importing these instructions.

@tvararu tvararu temporarily deployed to mavis-pr-3480 April 30, 2025 15:29 Inactive
@thomasleese thomasleese added the feature New functionality label May 1, 2025
@thomasleese thomasleese added this to the v2.2.2 milestone May 1, 2025
@murugapl murugapl force-pushed the add-phone-instructions-to-organisations branch from 1454c94 to 067516a Compare May 1, 2025 13:55
@tvararu tvararu temporarily deployed to mavis-pr-3480 May 1, 2025 13:57 Inactive
@murugapl murugapl force-pushed the add-phone-instructions-to-organisations branch 2 times, most recently from 47456d1 to d1ef7bb Compare May 1, 2025 14:57
@tvararu tvararu temporarily deployed to mavis-pr-3480 May 1, 2025 14:57 Inactive
Copy link
Contributor

@thomasleese thomasleese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I think we should also update the generic_team method on the organisation to create the team with any instructions.

def generic_team
teams.create_with(email:, phone:).find_or_create_by!(name:)
end

teams.create_with(email:, phone:, phone_instructions:).find_or_create_by!(name:)

@murugapl murugapl force-pushed the add-phone-instructions-to-organisations branch from d1ef7bb to 626ce79 Compare May 2, 2025 14:38
@tvararu tvararu temporarily deployed to mavis-pr-3480 May 2, 2025 14:41 Inactive
murugapl added 2 commits May 2, 2025 15:43
Added phone_instructions string field to organisations and teams models to store additional
context for phone numbers. Updated tests to verify that the field can be populated both
through the onboarding YAML and manual editing. This allows staff to provide callers with
guidance on phone menu options.
Added phone instructions display to user-facing views and notify
personalisation. Phone instructions now appear in brackets next
to phone numbers across the application interface. Updated the
Notify personalisation variables to include these instructions
in all automated communications.
@murugapl murugapl force-pushed the add-phone-instructions-to-organisations branch from 626ce79 to 1914abc Compare May 2, 2025 14:43
@tvararu tvararu temporarily deployed to mavis-pr-3480 May 2, 2025 14:44 Inactive
Copy link

sonarqubecloud bot commented May 2, 2025

@murugapl murugapl changed the base branch from main to v2.2.2-wip May 12, 2025 11:50
@murugapl murugapl merged commit 5a043ff into v2.2.2-wip May 12, 2025
13 checks passed
@murugapl murugapl deleted the add-phone-instructions-to-organisations branch May 12, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants