fix(dashboard): minor adjustments here and there

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-05-08 20:53:50 +02:00
parent 60ed005fe1
commit 584a6d21f1
3 changed files with 2 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ const ProfileCharts = ({ profileId, projectId }: Props) => {
},
],
id: 'A',
name: '*',
name: 'screen_view',
displayName: 'Events',
},
],

View File

@@ -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) => {

View File

@@ -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');
}