Docs /Reference

Real-Time Updates

What updates live across users, what needs a refresh, and how to know which is which.

Real-Time Updates

The platform is multi-user. Several people can be working in the same farm at the same time — a manager assigning tasks, a worker marking them complete, an admin recording transactions. To keep everyone in sync, most data updates live without page reloads.

What updates live

SurfaceLive?
Dashboard cards✓ Yes — refreshed when underlying data changes.
Tables (seasons, animals, tasks, etc.)✓ Yes — new rows appear, edits propagate.
Bell notifications✓ Yes — push to all open sessions.
Schedule calendar✓ Yes.
Inventory balances✓ Yes.
Activity feed✓ Yes.
Open detail pages✓ Yes — your view updates when someone else edits the same record.
Weather widget⏱ Refreshes on its own schedule (every 15 min).
Reports & exports✗ Snapshot at generation time. Re-run to refresh.
Search index⏱ Updates within a few seconds.

How it works

The platform uses Supabase Realtime under the hood — a websocket connection between your browser and the database. When a change happens that affects a record you're viewing or subscribed to, the change is pushed to your client and the UI re-renders.

You don't configure this. It just works as long as:

  • Your browser has internet.
  • The websocket isn't being blocked by network policies.

Indicators

When a record is updated by someone else while you're viewing it:

  • The detail page may show a brief flash or a toast: Updated by [Name] just now.
  • Tables animate the row that changed.
  • The activity card adds a new entry without reload.

If you're editing a record when someone else edits it:

  • You'll see a warning: This record was updated. Reload to see the latest changes.
  • Your unsaved changes are preserved locally; you decide whether to merge or discard.

What does NOT update live

  • Reports are point-in-time. They reflect data at the moment you generated them. Re-run to pick up newer data.
  • CSV / Excel exports are likewise snapshots.
  • Notifications you've already dismissed don't come back live — they're done.
  • Cached weather data updates on its own schedule, not on demand.

Conflict handling

If two users edit the same record at the same time:

  • Field-level merge where possible — different fields can be updated independently. Both saves succeed.
  • Last-write-wins for the same field — the later save replaces the earlier. The earlier user is warned with the activity log entry.
  • Financial records (transactions, payments) use stricter optimistic locking — the later edit fails with a clear message and you must reload before saving.

This is on purpose. Critical numeric records should never silently overwrite.

Connection status

A small indicator in the top-right corner (next to the bell) shows your real-time connection:

  • Green dot — connected, receiving updates.
  • Yellow dot — reconnecting after a brief drop.
  • Red dot — disconnected. You'll need to refresh manually to see updates.

If you see red:

  • Check your internet.
  • Check your VPN — corporate VPNs sometimes block websockets.
  • Refresh the page to force a reconnect.

Performance

Real-time updates are scoped to records you have access to and surfaces you have open. The platform doesn't push everything to everyone — that would be wasteful. You receive only the updates relevant to your current view.

When to manually refresh

  • After running a report — to see live data again, navigate away and back.
  • After a long inactive period (laptop closed for hours) — refresh to ensure you're synced.
  • If something looks stale — hard refresh (Cmd/Ctrl+Shift+R) clears caches.

See also