Skip to content

Commit 8b240ea

Browse files
authored
feat: local pg analytics (#3561)
1 parent 85687d5 commit 8b240ea

41 files changed

Lines changed: 5900 additions & 378 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ tsconfig.tsbuildinfo
7070
.jest/secret-env.js
7171

7272
infra/pgdata/
73+
infra/metabase-plugins/
74+
tmp/
75+
76+
details.md
7377

74-
tmp
75-
details.md

client/containers/AdminDashboard/AdminDashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type Props = {
1111
const AdminDashboard = (props: Props) => {
1212
const { impactData } = props;
1313
const { baseToken } = impactData;
14-
const dashUrl = `https://metabase.pubpub.org/embed/dashboard/${baseToken}#bordered=false&titled=false`;
14+
const dashUrl = `http://localhost:3030/embed/dashboard/${baseToken}#bordered=false&titled=false`;
1515
const getOffset = (width) => {
1616
return width < 960 ? 45 : 61;
1717
};

client/containers/App/paths.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
DashboardEdges,
1414
DashboardFacets,
1515
DashboardImpact,
16+
DashboardImpact2,
1617
DashboardMembers,
1718
DashboardPage,
1819
DashboardPages,
@@ -83,6 +84,10 @@ export default (viewData, locationData, chunkName) => {
8384
ActiveComponent: DashboardImpact,
8485
isDashboard: true,
8586
},
87+
DashboardImpact2: {
88+
ActiveComponent: DashboardImpact2,
89+
isDashboard: true,
90+
},
8691
DashboardMembers: {
8792
ActiveComponent: DashboardMembers,
8893
isDashboard: true,

0 commit comments

Comments
 (0)