fix: general ui fixes

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-02 21:54:57 +01:00
parent 50ef4c0d94
commit e4b919c4da
10 changed files with 256 additions and 248 deletions

View File

@@ -3,7 +3,6 @@ import { ProjectLink } from '@/components/links';
import { SerieIcon } from '@/components/report-chart/common/serie-icon';
import { useNumber } from '@/hooks/use-numer-formatter';
import { pushModal } from '@/modals';
import { formatDateTime, formatTimeAgoOrDateTime, timeAgo } from '@/utils/date';
import { getProfileName } from '@/utils/getters';
import type { ColumnDef } from '@tanstack/react-table';
@@ -28,7 +27,7 @@ export function useColumns() {
accessorKey: 'name',
header: 'Name',
cell({ row }) {
const { name, path, duration } = row.original;
const { name, path, duration, properties } = row.original;
const renderName = () => {
if (name === 'screen_view') {
if (path.includes('/')) {
@@ -209,7 +208,7 @@ export function useColumns() {
),
);
const items = Object.entries(filteredProperties);
const limit = 1;
const limit = 2;
const data = items.slice(0, limit).map(([key, value]) => ({
name: key,
value: value,