From 472a32097b2ff3304d85dcd009fb1c297e5773f9 Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Fri, 6 Feb 2026 12:10:52 +0000 Subject: [PATCH] feat: restrict PostHog to SaaS builds and migrate Hotjar attrs to PostHog Gate PostHog initialization behind the saas environment flag so it is excluded from self-hosted builds. Replace all data-hj-suppress (Hotjar) attributes with data-ph-no-capture (PostHog) for session replay masking. Co-Authored-By: Claude Opus 4.6 --- .../audit/info-dialog/info-dialog.component.html | 8 ++++---- .../charts/chart-edit/chart-edit.component.html | 2 +- .../db-table-row-view/db-table-row-view.component.html | 2 +- .../db-table-view/db-table-view.component.html | 4 ++-- .../saved-filters-panel.component.html | 2 +- .../record-edit-fields/code/code.component.html | 2 +- .../json-editor/json-editor.component.html | 2 +- .../markdown/markdown.component.html | 2 +- frontend/src/main.ts | 10 ++++++---- 9 files changed, 18 insertions(+), 16 deletions(-) diff --git a/frontend/src/app/components/audit/info-dialog/info-dialog.component.html b/frontend/src/app/components/audit/info-dialog/info-dialog.component.html index 441626352..252b8f2b1 100644 --- a/frontend/src/app/components/audit/info-dialog/info-dialog.component.html +++ b/frontend/src/app/components/audit/info-dialog/info-dialog.component.html @@ -1,6 +1,6 @@

Log details

-

+

{{ log.User }} {{ action }} in "{{ normalizedTableName }}" table on {{formattedCrreatedAt}} {{ log.Status }}.

@@ -10,10 +10,10 @@

Log details

class="mat-body" [ngClass]="{changed: isChangedFiled(field)}"> {{filedsNames[field]}} - + {{log.prevValue[field]}} -
@@ -35,7 +35,7 @@

Log details

class="mat-body" [ngClass]="{changed: isChangedFiled(field)}"> {{filedsNames[field.key]}} - + {{field.value}} diff --git a/frontend/src/app/components/charts/chart-edit/chart-edit.component.html b/frontend/src/app/components/charts/chart-edit/chart-edit.component.html index a8005ae4b..b5b28b085 100644 --- a/frontend/src/app/components/charts/chart-edit/chart-edit.component.html +++ b/frontend/src/app/components/charts/chart-edit/chart-edit.component.html @@ -47,7 +47,7 @@

SQL Query

{{ testing() ? 'Testing...' : 'Test Query' }}
-
+
Preview
{{column.normalizedTitle}} -
+
{{ displayName }}
- @@ -282,7 +282,7 @@

{{ displayName }}

- +
- + {{ getFilter(filter) }}
diff --git a/frontend/src/app/components/ui-components/record-edit-fields/code/code.component.html b/frontend/src/app/components/ui-components/record-edit-fields/code/code.component.html index 5f50cc70d..4f13836da 100644 --- a/frontend/src/app/components/ui-components/record-edit-fields/code/code.component.html +++ b/frontend/src/app/components/ui-components/record-edit-fields/code/code.component.html @@ -1,6 +1,6 @@ {{ normalizedLabel }} {{ required ? '*' : '' }} -
+
{{ normalizedLabel }} {{ required ? '*' : '' }} -
+
{{ normalizedLabel }} {{ required ? '*' : '' }} -
+