Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Web] Add support for enterprise-only notifications #40264

Merged
merged 1 commit into from
May 1, 2024

Conversation

rudream
Copy link
Contributor

@rudream rudream commented Apr 5, 2024

Purpose

Part of #37704

Adds support for enterprise-only notifications. This is so that we can configure notifications to redirect to enterprise-only routes.

For example, clicking an access request notification should take you to the access request's page, however this route isn't available in OSS, so it needs to be defined in e.

This PR is based on changes from:

Implementation

The TeleportContext has a notificationsContentFactory method which will by default be the base OSS notificationsContentFactory, however if the user is running enterprise, this method in the context will be overwritten by notificationsContentFactoryE which adds support for enterprise notifications.

The NotificationTypes story in the OSS Storybook will only display OSS notifications, while the NotificationTypesE story will support all notification types. I considered only having the Notification Types E story, but I thought it might be useful to have the OSS one as well in case an open-source contributor would like to add a new notification type to Teleport.

@rudream rudream added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v15 labels Apr 5, 2024
@github-actions github-actions bot requested review from avatus and gzdunek April 5, 2024 15:03
@rudream rudream force-pushed the yassine/notifications/ui-list branch from 7b9212e to 3e4c764 Compare April 11, 2024 23:04
@rudream rudream force-pushed the yassine/notifications/enterprise-routes branch from 649164b to 4b3963b Compare April 11, 2024 23:22
@rudream rudream force-pushed the yassine/notifications/ui-list branch 4 times, most recently from c76a771 to c1813df Compare April 30, 2024 20:22
Base automatically changed from yassine/notifications/ui-list to master April 30, 2024 20:41
@rudream rudream force-pushed the yassine/notifications/enterprise-routes branch from 4b3963b to 80f8849 Compare May 1, 2024 11:07
@rudream rudream enabled auto-merge May 1, 2024 11:10
@rudream rudream disabled auto-merge May 1, 2024 11:40
@rudream rudream force-pushed the yassine/notifications/enterprise-routes branch from 80f8849 to 9d26a88 Compare May 1, 2024 13:17
@rudream rudream enabled auto-merge May 1, 2024 13:17
@rudream rudream added this pull request to the merge queue May 1, 2024
Merged via the queue into master with commit 11cafbd May 1, 2024
39 checks passed
@rudream rudream deleted the yassine/notifications/enterprise-routes branch May 1, 2024 13:34
@public-teleport-github-review-bot

@rudream See the table below for backport results.

Branch Result
branch/v15 Failed

@public-teleport-github-review-bot

@rudream See the table below for backport results.

Branch Result
branch/v15 Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v15 no-changelog Indicates that a PR does not require a changelog entry size/sm ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants