?
TRCKR-231
web ux
Created: 2025-12-10 Updated: 2025-12-16
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-10
Fixed duplicate toast notifications by removing the toast from the WebSocket event handler. **Problem Found:** Two toast notifications were shown when creating entities (issues, projects, milestones): 1. Form submission response: "Issue TRCKR-XXX created" (specific, informative) 2. WebSocket handler: "Issue created" (generic, redundant) **Changes Made:** - `server/templates/base.html:889-916`: Removed `showToast()` call from `handleEntityEvent()` function - The WebSocket handler now only refreshes tables, not showing duplicate notifications - The form submission response continues to show the more informative toast with the specific entity identifier **Why This Fix Works:** - The form submission already shows a detailed toast (e.g., "Issue TRCKR-231 created") - The WebSocket broadcast was causing a second, less informative toast - This fix applies to all entity types since they all use the same WebSocket handler **Verification:** - Existing tests pass (no regression) - The change is minimal and only removes redundant UI notification code - Table refresh functionality is preserved