Bug or feature: Unbounded activeSessionIds accumulation on user accounts causing document bloat. Fix: Updated MongoDB update statements across all user login paths in
user-controller.js
from $addToSet to $push with $slice: -5 to cap active sessions to the 5 most recent logins, and added session cleanup on logout.
Bug or feature: Customer Service Representative (service_manager) role showing the Admin menu icon in the sidebar and landing on FAQ screens instead of the Support Ticket desk. Fix: Filtered out the Admin root item from the sidebar for service_manager in
Sidebar/index.tsx
, restricted FAQ screen access to admin/manager roles in
roleMenuAccess.ts
, and configured
tenantSession.ts
,
dynamicMenu.tsx
,
Header/index.tsx
, and
DropdownUser.tsx
to make /support-desk the primary initial and role-switch landing route.
Bug or feature: Stat overview card count in Support Desk (/support-desk) showing 0 or falling out of sync when switching view tabs. Fix: Resolved tab count fallbacks in
ServiceDeskTickets.tsx
so each card retains its count from cached tab counters or pagination total items without displaying zero during active tab selection.
Bug or feature: E-commerce FAQ help widget submitting enquiries into a separate bucket instead of routing directly into Customer Support Tickets. Fix: Updated backend
faq.service.js
to resolve or create customer client profiles, map ticket categories, and auto-create a CustomerTicket (channel: 'shop_faq') while preserving FaqEnquiry dual auditing; updated e-commerce
FaqHelpForm.tsx
success dialog copy with support ticket reference branding.