Skip to content

Add notification triggers support#57

Merged
Garneauma merged 3 commits into
ServiceCanada:mainfrom
bblaisATcoveo:notification_triggers
May 1, 2026
Merged

Add notification triggers support#57
Garneauma merged 3 commits into
ServiceCanada:mainfrom
bblaisATcoveo:notification_triggers

Conversation

@bblaisATcoveo

@bblaisATcoveo bblaisATcoveo commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

Add the possibility to display an information message on top of the search box to provide additional details using the notification trigger mechanism.

TEST CASE 1
Prerequisite : a 'notification trigger' must be configured on the backend with proper conditions
1- Open the search results page, english version
2- Perform a search that match the condition of a trigger
3- A notification should appear under the search box in english

TEST CASE 2
Prerequisite : a 'notification trigger' must be configured on the backend with proper conditions
1- Open the search results page, french version
2- Perform a search that match the condition of a trigger
3- A notification should appear under the search box in french

@GormFrank GormFrank left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is missing the focusToView update so that the trigger receives focus upon display instead of being bypassed to the Query summary

@GormFrank

Copy link
Copy Markdown
Contributor

Closes #36

@BeraJosh BeraJosh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Notice changes, no security or risk is observed.
Requested Changes will be locally tested before merge
Approved

@Garneauma

Copy link
Copy Markdown
Contributor

@bblaisATcoveo Can you please add steps to reproduce? If I need to change stuff on the page to get a working example locally, this will need to be addressed by creating a page with a working example. Thanks!

@bblaisATcoveo

Copy link
Copy Markdown
Contributor Author

@Garneauma Test cases were added. Notifications are entirely driven by configs on the backend only so we can use srb-en.html or sb-fr.html for testing

@Garneauma

Copy link
Copy Markdown
Contributor

@bblaisATcoveo What are the patterns available so I can test?

Comment thread src/connector.js
Comment thread src/connector.js Outdated
Comment thread src/connector.js Outdated
@Garneauma

Copy link
Copy Markdown
Contributor

@bblaisATcoveo As-tu un exemple pour en français? J'ai juste "sign in", mais le message est en anglais dans la page en français.

@Garneauma

Copy link
Copy Markdown
Contributor

@GormFrank Added a notification trigger for French "se connecter". It works as expected.

@Garneauma Garneauma merged commit 8430b73 into ServiceCanada:main May 1, 2026
1 check passed
@ouafaaetta ouafaaetta added this to the v1.9.0 milestone May 19, 2026
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.

5 participants