Skip to content

feat(realtime): sockets + normalized tables + deprecate sync#523

Merged
waleedlatif1 merged 62 commits into
mainfrom
feature/realtime-sockets
Jun 24, 2025
Merged

feat(realtime): sockets + normalized tables + deprecate sync#523
waleedlatif1 merged 62 commits into
mainfrom
feature/realtime-sockets

Conversation

@icecrasher321
Copy link
Copy Markdown
Collaborator

@icecrasher321 icecrasher321 commented Jun 20, 2025

Description

Implement Sockets Server, Deprecate old sync, Migration script to move JSON to normalized tables.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Security enhancement
  • Performance improvement
  • Code refactoring (no functional changes)

How Has This Been Tested?

Test everything

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • All tests pass locally and in CI (bun run test)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • I have updated version numbers as needed (if needed)
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Security Considerations:

  • My changes do not introduce any new security vulnerabilities
  • I have considered the security implications of my changes

Additional Information:

Any additional information, configuration or data that might be necessary to reproduce the issue or use the feature.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sim ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:51pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Skipped (Inspect) Jun 23, 2025 11:51pm

@vercel vercel Bot temporarily deployed to Preview – docs June 20, 2025 22:05 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs June 21, 2025 00:21 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs June 21, 2025 01:45 Inactive
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Major architectural overhaul transitioning from HTTP polling to WebSocket-based real-time collaboration.

  • Implements Socket.IO server (apps/sim/socket-server/index.ts) with presence tracking, RBAC, and collaborative workflow operations
  • Migrates workflow storage from JSON blobs to normalized tables (blocks, edges, subflows) with migration script (apps/sim/scripts/migrate-workflow-states.ts)
  • Introduces collaborative UI components with UserAvatarStack and real-time presence indicators
  • Adds comprehensive Socket.IO integration tests (apps/sim/tests/socket-server.test.ts) covering concurrent operations and connection handling
  • Significantly improves workflow duplication with transaction-based copying (apps/sim/app/api/workflows/[id]/duplicate/route.ts)

65 files reviewed, 45 comments
Edit PR Review Bot Settings | Greptile

Comment thread apps/sim/app/api/workflows/[id]/deploy/route.test.ts
Comment thread apps/sim/serializer/types.ts
Comment thread apps/sim/app/w/[id]/components/control-bar/control-bar.tsx
Comment thread apps/sim/next.config.ts
Comment thread apps/sim/app/w/[id]/components/control-bar/control-bar.tsx Outdated
Comment thread apps/sim/next.config.ts
Comment thread apps/sim/app/w/[id]/components/control-bar/control-bar.tsx Outdated
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.

2 participants