[Feat] Add Roomote Cloud analytics and support integrations#391
Merged
brunobergher merged 15 commits intoJul 16, 2026
Conversation
Contributor
Author
|
1 issue outstanding. See task
Reviewed dbb0b0e |
Contributor
Author
|
Resolved the four reported issues in 22ee692: corrected cloud-runtime telemetry gating, replaced inline script construction with runtime loading, boots Intercom after its script loads, and clears third-party identity on sign-out or account changes. Targeted provider tests, web typechecks, and the repository pre-push checks passed. |
brunobergher
marked this pull request as ready for review
July 16, 2026 10:13
brunobergher
requested review from
brunobergher,
daniel-lxs and
mrubens
as code owners
July 16, 2026 10:13
brunobergher
force-pushed
the
feature/cloud-analytics-switch-1way1umrayiy0
branch
from
July 16, 2026 10:18
f285159 to
fbfa79e
Compare
brunobergher
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Adds the
R_CLOUD_ENABLEDmaster switch for Roomote Cloud analytics behavior. Cloud deployments force anonymous analytics on, remove admin opt-out controls, and load optional PostHog session replay and Intercom Messenger browser integrations from public runtime configuration. The browser integration now uses safe runtime script injection, resets stale user identity, and uses the web runtime resolved cloud flag for telemetry.The cloud Intercom integration now hides the default launcher on regular signed-in app pages and provides a Roomote Help entry in the navbar and side nav instead. The default Intercom launcher remains available on setup, onboarding, settings, analytics, and automations pages. The branch also refines the side nav recent-task layout, support entry placement, onboarding wordmark placement, and setup action button sizing to fit the support widget flow.
Why this change was made
Roomote Cloud requires consistent analytics and support behavior while self-hosted deployments must remain fully isolated from the new browser integrations. The additional UI changes keep support reachable in Cloud without letting the default Messenger launcher overlap core navigation or onboarding surfaces.
Impact
Cloud deployments can configure PostHog and Intercom without bundling either SDK, while self-hosted deployments render and execute neither integration path. Signed-in Cloud users get a native Help entry in the app shell, while onboarding and configuration pages can continue to use Intercom default support affordances. Browser proof was not applicable to the integration lifecycle fixes.