Skip to content

feat: auto-refresh catalog explorer after sync completes via PubSub - #106

Merged
aalvaropc merged 1 commit into
mainfrom
feat/auto-catalog-refresh
Apr 11, 2026
Merged

feat: auto-refresh catalog explorer after sync completes via PubSub#106
aalvaropc merged 1 commit into
mainfrom
feat/auto-catalog-refresh

Conversation

@aalvaropc

@aalvaropc aalvaropc commented Apr 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • SyncWorker broadcasts :sync_complete via PubSub after successful catalog sync
  • CatalogLive.Explorer subscribes to "catalog:#{data_source_id}" topic on mount
  • On :sync_complete message, reloads schemas, resets selections, and shows "Catalog sync complete" flash
  • No more "Refresh the page" message — catalog appears automatically in real-time
  • Uses existing Phoenix.PubSub already in the supervision tree

Test plan

  • mix precommit — 638 tests, 0 failures
  • Manual: click "Sync Catalog", verify schemas/tables appear automatically without page reload

This is M-45 — the final task in the 45-item improvement roadmap. All tasks complete.

@aalvaropc
aalvaropc merged commit cdd6caa into main Apr 11, 2026
2 checks passed
@aalvaropc
aalvaropc deleted the feat/auto-catalog-refresh branch April 11, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant