fix(dashboard): minor adjustments here and there
This commit is contained in:
@@ -27,7 +27,7 @@ const ProfileCharts = ({ profileId, projectId }: Props) => {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
id: 'A',
|
id: 'A',
|
||||||
name: '*',
|
name: 'screen_view',
|
||||||
displayName: 'Events',
|
displayName: 'Events',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -16,16 +16,8 @@ import { ReportBreakdownMore } from './ReportBreakdownMore';
|
|||||||
import type { ReportEventMoreProps } from './ReportEventMore';
|
import type { ReportEventMoreProps } from './ReportEventMore';
|
||||||
|
|
||||||
export function ReportBreakdowns() {
|
export function ReportBreakdowns() {
|
||||||
const { projectId } = useAppParams();
|
|
||||||
const selectedBreakdowns = useSelector((state) => state.report.breakdowns);
|
const selectedBreakdowns = useSelector((state) => state.report.breakdowns);
|
||||||
|
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const properties = useEventProperties({
|
|
||||||
projectId,
|
|
||||||
}).map((item) => ({
|
|
||||||
value: item,
|
|
||||||
label: item, // <RenderDots truncate>{item}</RenderDots>,
|
|
||||||
}));
|
|
||||||
|
|
||||||
const handleMore = (breakdown: IChartBreakdown) => {
|
const handleMore = (breakdown: IChartBreakdown) => {
|
||||||
const callback: ReportEventMoreProps['onClick'] = (action) => {
|
const callback: ReportEventMoreProps['onClick'] = (action) => {
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export const chartRouter = createTRPCRouter({
|
|||||||
.map((item) => item.replace(/\.([0-9]+)/g, '[*]'))
|
.map((item) => item.replace(/\.([0-9]+)/g, '[*]'))
|
||||||
.map((item) => `properties.${item}`);
|
.map((item) => `properties.${item}`);
|
||||||
|
|
||||||
if (event === '*') {
|
if (event === '*' || !event) {
|
||||||
properties.push('name');
|
properties.push('name');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user