mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5421] [MERGED] feat: replace notification checkboxes with card-based layout #5877
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5877
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5421
Author: @Ssentiago
Created: 6/17/2026
Status: ✅ Merged
Merged: 6/20/2026
Merged by: @MHSanaei
Base:
main← Head:feat/notification-cards-ui📝 Commits (1)
591c6c1feat: replace notification checkboxes with card-based layout📊 Changes
13 files changed (+365 additions, -162 deletions)
View changed files
➖
frontend/src/components/ui/EventBusCheckboxes.tsx(+0 -147)📝
frontend/src/components/ui/index.ts(+0 -1)➕
frontend/src/components/ui/notifications/EmailNotifications.tsx(+94 -0)➕
frontend/src/components/ui/notifications/NotificationCard.tsx(+23 -0)➕
frontend/src/components/ui/notifications/NotificationEvent.tsx(+26 -0)➕
frontend/src/components/ui/notifications/NotificationGroup.tsx(+60 -0)➕
frontend/src/components/ui/notifications/NotificationHeader.tsx(+27 -0)➕
frontend/src/components/ui/notifications/NotificationLayout.tsx(+13 -0)➕
frontend/src/components/ui/notifications/TelegramNotifications.tsx(+94 -0)➕
frontend/src/components/ui/notifications/index.ts(+8 -0)➕
frontend/src/components/ui/notifications/types.ts(+14 -0)📝
frontend/src/pages/settings/EmailTab.tsx(+3 -7)📝
frontend/src/pages/settings/TelegramTab.tsx(+3 -7)📄 Description
Related to closed #5326
Summary
Replace the event notification checkboxes with a card-based layout. Each event group (Outbound, Xray, Node, System, Security) gets its own card with a grid layout, group-level master checkbox, and inline parameter inputs.
Why
The old
EventBusCheckboxescomponent used accordion + inline inputs that were confusing:extraprop pattern, leading to tangled logicThe new card-based layout:
extrarender function in the configType of change
Areas affected
What changed
EventBusCheckboxescomponentfrontend/src/components/ui/notifications/directory with:types.ts—NotificationEventConfig,NotificationGroupConfiginterfacesNotificationLayout.tsx— CSS Grid container (auto-fit, minmax(260px, 1fr))NotificationCard.tsx— Ant Design Card wrapper with theme-adaptive bordersNotificationHeader.tsx— Group header with icon, name, counter, master checkboxNotificationEvent.tsx— Checkbox + optional children (for parameter inputs)NotificationGroup.tsx— Renders a group of events using configTelegramNotifications.tsx— Telegram-specific event groups and toggle logicEmailNotifications.tsx— Email-specific event groups and toggle logicTelegramTab.tsxto useTelegramNotificationsEmailTab.tsxto useEmailNotificationsScreenshots / recordings
Breaking changes
None. This is a UI-only change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.