Question (user request)
If there are multiple users viewing an Attik work order, will there be a notification that appears so the users know multiple people are in the work order at the same time?
Current behavior
No. There is currently no notification or indicator when multiple users are viewing the same work order at the same time.
- No real-time presence: The app does not use WebSockets, Socket.IO, or any other real-time channel to track "who is viewing this page" or presence on a work order.
- No "others viewing" UI: The inspection work order page (e.g.
WorkorderScaffold,inspections/[id]) has no banner, toast, or component that shows other users viewing the same work order. - No backend support: The backend does not track or broadcast "user X is viewing inspection Y," so there is no data to surface in the UI.
Each user's view of a work order is independent; they are not informed that someone else is also viewing it.
Desired behavior
When multiple users have the same work order open, show a notification or indicator so users know others are viewing it at the same time (e.g. "Also viewing: [names]" or avatars in the header).
Scope / implementation notes
Adding this would require:
- Real-time presence layer
A way to know who is currently on a given work order (e.g. WebSockets or similar) and to broadcast join/leave per inspection/work order. - Backend
Track or relay "viewing" state (e.g. user + inspection id, optional heartbeat) and expose it to other viewers (or to a real-time channel clients subscribe to). - Frontend
UI on the work order page that shows when others are viewing—e.g. a small banner ("Jane and 2 others are viewing") or avatar list in the header—and optionally update when users leave.