feat: Implement Electric SQL replication setup for notifications table

- Added setup_electric_replication function to handle Electric SQL replication for the notifications table during app startup.
- Updated alembic migration script to remove direct SQL commands for replication, now managed in app/db.py.
- Refactored indexing functions in search_source_connectors_routes to support new start_date and end_date parameters for improved flexibility.
- Enhanced Google Gmail indexing task to utilize new date parameters, ensuring better control over indexing periods.
This commit is contained in:
Anish Sarkar 2026-01-13 03:16:42 +05:30
parent 44605749c5
commit 38f907e65b
5 changed files with 151 additions and 176 deletions

View file

@ -105,18 +105,18 @@ export function NotificationPopup({
<div className="flex items-start justify-between gap-2 mb-1">
<p
className={cn(
"text-sm font-medium truncate",
"text-xs font-medium break-words",
!notification.read && "font-semibold"
)}
>
{notification.title}
</p>
</div>
<p className="text-xs text-muted-foreground line-clamp-2">
<p className="text-[11px] text-muted-foreground break-words line-clamp-2">
{notification.message}
</p>
<div className="flex items-center justify-between mt-2">
<span className="text-xs text-muted-foreground">
<span className="text-[10px] text-muted-foreground">
{formatTime(notification.created_at)}
</span>
</div>