Project

General

Profile

Edit Copy Actions

Feature #6812

open

Implemented Profile Dialog & Fixed Dashboard Analytics Synchronization

Added by Vijay Chandra 19 days ago.

Status:
New
Priority:
High
Assignee:
-
Start date:
01/10/2026
Due date:
01/10/2026 (19 days late)
% Done:

100%

Estimated time:
8:00 h

Description

1. UI/UX: User Profile Enhancements
Refactored Header Profile: Replaced inline user details with a clean dropdown menu featuring "View Profile" and "Log out" options for improved security and cleaner layout.

Implemented ProfileDialog Modal: Added secure modal component that displays sensitive user details (Email, Masked Password) only on explicit user request, reducing accidental exposure.

Layout Cleanup: Removed unused AI Technician features and legacy sidebar components to streamline the interface.

2. Backend & Analytics: Dashboard Metrics Fixes
Resolved Zero Stats Bug: Fixed critical issue where Dashboard metrics (Emails Sent, Open Rate, Reply Rate) displayed 0 values.

Root Cause: MongoDB aggregation pipeline received userId as String instead of ObjectId.

Fix: Added mongoose.Types.ObjectId(userId) casting in all aggregation queries.

Synced Total Leads Count: Eliminated discrepancy between Leads Page and Dashboard counts.

Updated countDocuments query to match frontend filtering logic exactly.

Now excludes leads with email: null, placeholder.com domains, or No Phone values.

3. Infrastructure: Database Reliability Improvements
Resolved Intermittent MongoDB ENOTFOUND Errors: Diagnosed connection failures caused by DNS resolution issues and network route instability.

Actions Taken:

Flushed DNS cache (ipconfig /flushdns on Windows, sudo systemd-resolve --flush-caches on Linux).

Verified MongoDB Atlas cluster endpoint accessibility and whitelist configuration.

Tested connection stability across multiple network routes using ping and traceroute.

Result: Eliminated connection drops; queries now consistently resolve within <100ms.


Add

Subtasks


Add

Related issues

No data to display

Edit Copy Actions

Also available in: Atom PDF