🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
✨ feat(notification): support full action URLs + wider detail modal (#16940)
LobeHub Botd2f15bf8a3a3
diff --git a/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationDetailModal.tsx b/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationDetailModal.tsxindex 254e29da6cf..445c18bccdc 100644--- a/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationDetailModal.tsx+++ b/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationDetailModal.tsx@@ -63,5 +63,5 @@ export const createNotificationDetailModal = ({footer: null,maskClosable: true,title,- width: 480,+ width: 640,});diff --git a/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationItem.tsx b/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationItem.tsxindex 9a2a8b36eae..a3a052a9f10 100644--- a/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationItem.tsx+++ b/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationItem.tsx@@ -76,11 +76,20 @@ const NotificationItem = memo<NotificationItemProps>(const handleClick = useCallback(() => {if (!isRead) onMarkAsRead(id);+ const onAction = actionUrl+ ? () => {+ if (/^https?:\/\//i.test(actionUrl)) {+ window.open(actionUrl, '_blank', 'noopener,noreferrer');+ } else {+ navigate(actionUrl);+ }+ }+ : undefined;createNotificationDetailModal({category,content,createdAt,- onAction: actionUrl ? () => navigate(actionUrl) : undefined,+ onAction,title,});}, [id, isRead, actionUrl, onMarkAsRead, navigate, category, content, createdAt, title]);