-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dn/interactions-test
- Loading branch information
Showing
80 changed files
with
494 additions
and
779 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { PostHogEE } from '@posthog/ee/types' | ||
|
||
const myTestCode = (): void => { | ||
// eslint-disable-next-line no-console | ||
console.log('it works!') | ||
} | ||
|
||
const postHogEE: PostHogEE = { | ||
enabled: true, | ||
myTestCode, | ||
} | ||
|
||
export default postHogEE |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { PostHogEE } from './types' | ||
|
||
const posthogEE: PostHogEE = { | ||
enabled: false, | ||
} | ||
|
||
export default posthogEE |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// NOTE: All exported items from the EE module _must_ be optionally defined to ensure we work well with FOSS | ||
export type PostHogEE = { | ||
enabled: boolean | ||
myTestCode?: () => void | ||
} |
Binary file modified
BIN
+499 Bytes
(100%)
frontend/__snapshots__/components-cards-insight-card--insight-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-30 Bytes
(100%)
frontend/__snapshots__/components-compact-list--compact-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+557 Bytes
(100%)
...end/__snapshots__/exporter-exporter--funnel-left-to-right-breakdown-insight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+457 Bytes
(100%)
frontend/__snapshots__/exporter-exporter--funnel-left-to-right-insight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+266 Bytes
(150%)
frontend/__snapshots__/filters-cohort-filters-fields-number--basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11.5 KB
(140%)
frontend/__snapshots__/filters-propertyfilters--comparing-property-filters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-28 Bytes
(100%)
frontend/__snapshots__/filters-propertyfilters--with-no-close-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.14 KB
(140%)
frontend/__snapshots__/lemon-ui-lemon-calendar-lemon-calendar--custom-styles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.97 KB
(150%)
frontend/__snapshots__/lemon-ui-lemon-calendar-lemon-calendar--default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.94 KB
(150%)
frontend/__snapshots__/lemon-ui-lemon-calendar-lemon-calendar--friday-first.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.7 KB
(150%)
frontend/__snapshots__/lemon-ui-lemon-calendar-lemon-calendar--monday-first.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.31 KB
(150%)
frontend/__snapshots__/lemon-ui-lemon-calendar-lemon-calendar--multiple-months.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.99 KB
(150%)
frontend/__snapshots__/lemon-ui-lemon-calendar-lemon-calendar--saturday-first.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.97 KB
(150%)
frontend/__snapshots__/lemon-ui-lemon-calendar-lemon-calendar--sunday-first.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.08 KB
(150%)
frontend/__snapshots__/lemon-ui-lemon-calendar-lemon-calendar--thursday-first.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.73 KB
(150%)
frontend/__snapshots__/lemon-ui-lemon-calendar-lemon-calendar--tuesday-first.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.1 KB
(150%)
frontend/__snapshots__/lemon-ui-lemon-calendar-lemon-calendar--wednesday-first.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-356 Bytes
(98%)
...pshots__/lemon-ui-lemon-calendar-lemon-calendar-range--lemon-calendar-range.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7.51 KB
(140%)
...-ui-lemon-calendar-lemon-calendar-range-inline--lemon-calendar-range-inline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-936 Bytes
(93%)
...hots__/lemon-ui-lemon-calendar-lemon-calendar-select--lemon-calendar-select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.16 KB
(160%)
frontend/__snapshots__/lemon-ui-lemon-select--long-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.01 KB
(98%)
frontend/__snapshots__/posthog-3000-navigation--navigation-3000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.78 KB
(98%)
frontend/__snapshots__/posthog-3000-navigation--navigation-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Binary file modified
BIN
+298 Bytes
(100%)
frontend/__snapshots__/scenes-app-experiments--complete-funnel-experiment.png
Oops, something went wrong.
Binary file modified
BIN
-78 Bytes
(100%)
frontend/__snapshots__/scenes-app-feature-flags--edit-feature-flag.png
Oops, something went wrong.
Binary file modified
BIN
-257 Bytes
(100%)
...end/__snapshots__/scenes-app-feature-flags--edit-multi-variate-feature-flag.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...nd/__snapshots__/scenes-app-insights--funnel-historical-trends-edit--webkit.png
Oops, something went wrong.
Binary file modified
BIN
+262 Bytes
(100%)
frontend/__snapshots__/scenes-app-insights--funnel-left-to-right--webkit.png
Oops, something went wrong.
Binary file modified
BIN
+568 Bytes
(100%)
...d/__snapshots__/scenes-app-insights--funnel-left-to-right-breakdown--webkit.png
Oops, something went wrong.
Binary file modified
BIN
+130 Bytes
(100%)
...napshots__/scenes-app-insights--funnel-left-to-right-breakdown-edit--webkit.png
Oops, something went wrong.
Binary file modified
BIN
+411 Bytes
(100%)
...tend/__snapshots__/scenes-app-insights--funnel-left-to-right-breakdown-edit.png
Oops, something went wrong.
Binary file modified
BIN
-263 Bytes
(100%)
frontend/__snapshots__/scenes-app-insights--funnel-left-to-right-breakdown.png
Oops, something went wrong.
Binary file modified
BIN
+2 Bytes
(100%)
frontend/__snapshots__/scenes-app-insights--funnel-left-to-right-edit--webkit.png
Oops, something went wrong.
Binary file modified
BIN
-310 Bytes
(100%)
frontend/__snapshots__/scenes-app-insights--funnel-left-to-right-edit.png
Oops, something went wrong.
Binary file modified
BIN
+1.27 KB
(100%)
frontend/__snapshots__/scenes-app-insights--funnel-left-to-right.png
Oops, something went wrong.
Binary file modified
BIN
-17 Bytes
(100%)
frontend/__snapshots__/scenes-app-insights--funnel-top-to-bottom.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-2.58 KB
(99%)
frontend/__snapshots__/scenes-app-project-homepage--project-homepage.png
Oops, something went wrong.
Binary file modified
BIN
+18 Bytes
(100%)
frontend/__snapshots__/scenes-other-toolbar--heatmap-dark.png
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import fs from 'fs' | ||
|
||
const eeFolderExists = fs.existsSync('ee/frontend/exports.ts') | ||
export const ifEeIt = eeFolderExists ? it : it.skip | ||
export const ifFossIt = !eeFolderExists ? it : it.skip | ||
|
||
import posthogEE from '@posthog/ee/exports' | ||
|
||
describe('ee importing', () => { | ||
ifEeIt('should import actual ee code', () => { | ||
expect(posthogEE.enabled).toBe(true) | ||
}) | ||
|
||
ifFossIt('should import actual ee code', () => { | ||
expect(posthogEE.enabled).toBe(false) | ||
}) | ||
}) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.