Skip to content

feat: audit log notif - #1081

Merged
arunjaindev merged 4 commits into
mainfrom
feat/audit-log-notif
Nov 23, 2026
Merged

arunjaindev merged 4 commits into
mainfrom
feat/audit-log-notif

Conversation

@arunjaindev

Copy link
Copy Markdown
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Copilot AI balanced review requested due to automatic review settings November 20, 2026 08:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The selection-change handler can silently drop unrelated selected channels when they are missing from the available options, so it needs a fallback to the matching destination in value.

1 open issue
What changed in this PR

Adds shared notification destination pickers to support audit-log notifications and reuse across Devtron notification flows.

Changes:

  • Adds grouped channel selection, optional email recipients, and an SES/SMTP account picker.
  • Exports notification-loading utilities, types, and audit-log notification route constants.
  • Updates the package version to 4.0.15-pre-1.
File Description
src/​Shared/​Components/​NotificationChannelSelect/​utils.tsx Adds destination keys, labels, icons, and option grouping.
src/​Shared/​Components/​NotificationChannelSelect/​types.ts Defines channel data and picker interfaces.
src/​Shared/​Components/​NotificationChannelSelect/​service.ts Loads, flattens, and sorts notification configurations.
src/​Shared/​Components/​NotificationChannelSelect/​NotificationEmailAgentSelect.component.tsx Adds the SES/SMTP sending-account picker.
src/​Shared/​Components/​NotificationChannelSelect/​NotificationChannelSelect.component.tsx Adds channel multi-selection and email recipient creation.
src/​Shared/​Components/​NotificationChannelSelect/​index.ts Exports the notification components and helpers.
src/​Shared/​Components/​NotificationChannelSelect/​constants.ts Defines provider labels, icons, and display order.
src/​Shared/​Components/​index.ts Exposes notification exports through the shared library.
src/​Pages-Devtron-2.0/​Shared/​Routes/​routes.ts Adds audit-log notification route fragments and creation URLs.
package.json Sets the prerelease package version.
package-lock.json Aligns lockfile version metadata.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 20, 2026 12:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Selection updates silently drop unrelated selected channels that are absent from the latest options instead of preserving them until explicitly removed.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 23, 2026 11:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Removing one chip can silently erase other selected notification destinations when options are temporarily unavailable because the change handler lacks a fallback to the controlled value.

No open issues 🎉

Review effort: Balanced

@arunjaindev
arunjaindev merged commit 2ef2225 into main Nov 23, 2026
7 checks passed
@arunjaindev
arunjaindev deleted the feat/audit-log-notif branch November 23, 2026 11:22
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.

3 participants