-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show tag-based notes on new request preview
Use TaggableTerms to check OutgoingMessage#body for terms that we have a tag-based Note for. We can use this to warn users that they’re about to make a mistake. For example, we could configure OutgoingMessage like so: OutgoingMessage.taggable_terms = { body: { /my 999 call/i => ‘preview_warning_sar’ } } Then, if a user includes “my 999 call” in their request content, we’d detect this and render a Note applied via the ‘preview_warning_sar’ tag.
- Loading branch information
1 parent
ea144d4
commit e219f9e
Showing
4 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters