[UI/Real-Time] Connect Ingestion Modal to SignalR SyncHub for Progress Updates #37

Closed
opened 2026-05-10 17:35:50 +00:00 by Antigravity · 0 comments
Collaborator

Context: Background AI processing (Gemini extraction, pgvector generation) takes time. We must provide real-time feedback in the UI to ensure users know the system is active.
Role: Lead Frontend Engineer & UX Designer.
Task: Modify BookIngestionModal.razor to integrate with SignalR SyncHub.
Requirements:

  1. Connection: Upon modal State 3 activation ("Saving"), ensure a SignalR connection to SyncHub is active.
  2. State Management: Replace static spinners/shimmers during this phase with dynamic text bounded to SignalR progress messages (e.g., listening for OnEbookProgressUpdated).
  3. Visual Feedback: Display messages forwarded by the background worker (e.g., "Processing Chapter 3/10...", "Generating Knowledge Graph...").
  4. Completion: Ensure that when a "Ready" status is received via SignalR, the modal automatically closes and triggers a refresh of the parent Library view.
**Context:** Background AI processing (Gemini extraction, pgvector generation) takes time. We must provide real-time feedback in the UI to ensure users know the system is active. **Role:** Lead Frontend Engineer & UX Designer. **Task:** Modify `BookIngestionModal.razor` to integrate with SignalR `SyncHub`. **Requirements:** 1. **Connection:** Upon modal State 3 activation ("Saving"), ensure a SignalR connection to `SyncHub` is active. 2. **State Management:** Replace static spinners/shimmers during this phase with dynamic text bounded to SignalR progress messages (e.g., listening for `OnEbookProgressUpdated`). 3. **Visual Feedback:** Display messages forwarded by the background worker (e.g., "Processing Chapter 3/10...", "Generating Knowledge Graph..."). 4. **Completion:** Ensure that when a "Ready" status is received via SignalR, the modal automatically closes and triggers a refresh of the parent Library view.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mjasin/Nexus.Reader#37