The bell polls the unread count every 30 s while the tab is visible. Opening it loads the newest 10 and marks the unread ones read; items link only to paths on this site. /notifications lists all with paging and Mark all read. Titles and bodies render from message codes, in English and Chinese. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
17 lines
959 B
SQL
17 lines
959 B
SQL
-- Co-Lite change add-lead-notifications: rollback. Drops the bell columns and labels; the previous release never
|
|
-- reads them. The charset change is left in place (utf8mb4 holds everything utf8mb3 did).
|
|
SET NAMES utf8mb4;
|
|
USE `service-system`;
|
|
ALTER TABLE `notification`
|
|
DROP INDEX `idx_notification_inbox`,
|
|
DROP INDEX `idx_notification_collapse`,
|
|
DROP COLUMN `recipient_type`,
|
|
DROP COLUMN `company_id`,
|
|
DROP COLUMN `title`,
|
|
DROP COLUMN `type`,
|
|
DROP COLUMN `link`,
|
|
DROP COLUMN `collapse_key`,
|
|
DROP COLUMN `seen`,
|
|
DROP COLUMN `read_at`;
|
|
DELETE FROM message WHERE code IN ('NotificationsTitle', 'NotificationsUnread', 'NotificationsEmpty', 'NotificationsLoadFailed', 'NotificationsMarkAllRead', 'NotificationsSeeAll', 'NotificationsUnreadBadge', 'NoticeLeadAssigned', 'NoticeWebSignup', 'NoticeLeadBody', 'NoticeFollowUpDue', 'NoticeFollowUpBody', 'NoticeWhatsappMessage', 'NoticeWhatsappBody', 'NoticeWhatsappBodyNoName') AND area = 'A';
|