feat: no error display on sync integration and no test connectivity #355
feat: no error display on sync integration and no test connectivity #355Davsooonowy wants to merge 2 commits into
Conversation
|
Note on the polling approach The current implementation polls GET /api/tasks/<task_id> every 2s to detect sync failures. There's an open PR - #51 that saves synchronization status Once #51 lands, the polling approach here could be replaced with a simpler solution: read sync status from the DB (via a dedicated endpoint or WebSocket Worth keeping in mind as a follow-up or coordinating with #51 before merging. Priority is not high but it might be discussed :) |
|
close it for now - left for further consideration |
Note
Left for further consideration.
Problem
Two gaps in the Integrations page UX:
Solution
Sync error notification
When a sync is triggered, the button shows a spinner while the Celery task runs. The frontend polls /api/tasks/<task_id> every 2s until the task completes. On failure, a destructive Alert appears above the sources table with the error message returned by the task.
Test Connection
A "Test Connection" button is added to the Add/Edit source modal. It instantiates the plugin with the current config and attempts to fetch data without persisting anything.
The result is shown inline — green on success, red with the error message on failure. Works for product sources, document sources, and e-commerce integrations.
Backend changes
side effects
Demo
Sync error alert
Screen.Recording.2026-04-03.at.14.45.04.mov
Test Connection
Screen.Recording.2026-04-03.at.14.46.36.mov