Skip to content

add teams#3375

Open
tb102122 wants to merge 6 commits intobluewave-labs:developfrom
tb102122:feature/teams-notification-channel
Open

add teams#3375
tb102122 wants to merge 6 commits intobluewave-labs:developfrom
tb102122:feature/teams-notification-channel

Conversation

@tb102122
Copy link

@tb102122 tb102122 commented Mar 5, 2026

(Please remove this line only before submitting your PR. Ensure that all relevant items are checked before submission.)

Describe your changes

adding Team's as a notification channel.

Write your issue number after "Fixes "

Fixes #3363

Please ensure all items are checked off before requesting a review. "Checked off" means you need to add an "x" character between brackets so they turn into checkmarks.

  • (Do not skip this or your PR will be closed) I deployed the application locally.
  • (Do not skip this or your PR will be closed) I have performed a self-review and testing of my code.
  • I have included the issue # in the PR.
  • [] I have added i18n support to visible strings (instead of <div>Add</div>, use):
  • I have not included any files that are not related to my pull request, including package-lock and package-json if dependencies have not changed
  • I didn't use any hardcoded values (otherwise it will not scale, and will make it difficult to maintain consistency across the application).
  • I made sure font sizes, color choices etc are all referenced from the theme. I don't have any hardcoded dimensions.
  • My PR is granular and targeted to one specific feature.
  • I ran npm run format in server and client directories, which automatically formats your code.
  • I took a screenshot or a video and attached to this PR if there is a UI change.

Copy link
Member

@Br0wnHammer Br0wnHammer left a comment

Choose a reason for hiding this comment

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

Overall, a solid implementation! Please see my comments for further changes. Also, can you please take care of the failing checks?

@tb102122
Copy link
Author

tb102122 commented Mar 6, 2026

@Br0wnHammer the review comments are done. Sorry what do you mean with the failing checks? I don't see any check in the PR.

@tb102122 tb102122 requested a review from Br0wnHammer March 6, 2026 06:51
@Br0wnHammer
Copy link
Member

@tb102122 I have approved the workflows to run. Now you can see the checks that are failing.

@tb102122
Copy link
Author

tb102122 commented Mar 6, 2026

done sorry that I missed that part

@Br0wnHammer
Copy link
Member

@tb102122 There is also one more check that is failing. Can you please take a look at it?

@tb102122
Copy link
Author

tb102122 commented Mar 6, 2026

@Br0wnHammer Done hope that is the correct way. I haven't touched that file.

Copy link
Collaborator

@ajhollid ajhollid left a comment

Choose a reason for hiding this comment

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

In general, it looks great! There's a couple of minor nitpicks with regards to types and some validation I don't think we need, but a nice PR overall.

Thanks for your hard work here, looking forward to revisions!

Comment on lines +67 to +69
homeserverUrl: z.union([z.string(), z.literal("")]).optional(),
roomId: z.union([z.string(), z.literal("")]).optional(),
accessToken: z.union([z.string(), z.literal("")]).optional(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

These fields are for the Matrix notification type I believe? I don't think teams need them 🤔

actions.push({
type: "Action.OpenUrl",
title: "View Incident",
url: `${message.clientHost}/infrastructure/${message.monitor.id}`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should point to /incidents/{id}, I realize this is a bug in other providers as well.

};
const color = colorMap[message.severity] || "default";

const body: any[] = [];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's type this properly and avoid using any

/**
* Build an Adaptive Card from NotificationMessage
*/
private buildAdaptiveCard(message: NotificationMessage): object {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets type the return here properly, object type has no type safety

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.

[Feature] add Teams Groups as notification Channel

3 participants