Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix(dashboard): minor adjustments here and there

Carl-Gerhard Lindesvärd584a6d21f16a
diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx
index 3a36b814c..b293d6748 100644
--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx
+++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx
@@ -27,7 +27,7 @@ const ProfileCharts = ({ profileId, projectId }: Props) => {
},
],
id: 'A',
- name: '*',
+ name: 'screen_view',
displayName: 'Events',
},
],
diff --git a/apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsx b/apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsx
index 5636cd1f0..d070af91b 100644
--- a/apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsx
+++ b/apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsx
@@ -16,16 +16,8 @@ import { ReportBreakdownMore } from './ReportBreakdownMore';
import type { ReportEventMoreProps } from './ReportEventMore';
export function ReportBreakdowns() {
- const { projectId } = useAppParams();
const selectedBreakdowns = useSelector((state) => state.report.breakdowns);
-
const dispatch = useDispatch();
- const properties = useEventProperties({
- projectId,
- }).map((item) => ({
- value: item,
- label: item, // <RenderDots truncate>{item}</RenderDots>,
- }));
const handleMore = (breakdown: IChartBreakdown) => {
const callback: ReportEventMoreProps['onClick'] = (action) => {
diff --git a/packages/trpc/src/routers/chart.ts b/packages/trpc/src/routers/chart.ts
index bc332f110..9b34d6d55 100644
--- a/packages/trpc/src/routers/chart.ts
+++ b/packages/trpc/src/routers/chart.ts
@@ -115,7 +115,7 @@ export const chartRouter = createTRPCRouter({
.map((item) => item.replace(/\.([0-9]+)/g, '[*]'))
.map((item) => `properties.${item}`);
- if (event === '*') {
+ if (event === '*' || !event) {
properties.push('name');
}