mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Added journey page. Removed dashboard.
This commit is contained in:
parent
3847e32f39
commit
cee05d762c
24 changed files with 328 additions and 422 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import { useState, Key } from 'react';
|
||||
import { Grid, Row, Column, Label, List, ListItem, Button, Heading } from '@umami/react-zen';
|
||||
import { Grid, Row, Column, Label, List, ListItem, Button, Heading, Text } from '@umami/react-zen';
|
||||
import { useFilters, useMessages } from '@/components/hooks';
|
||||
import { EmptyPlaceholder } from '@/components/common/EmptyPlaceholder';
|
||||
import { FilterRecord } from '@/components/common/FilterRecord';
|
||||
|
||||
export interface FilterEditFormProps {
|
||||
|
|
@ -73,7 +72,7 @@ export function FilterEditForm({ data = [], onChange, onClose }: FilterEditFormP
|
|||
/>
|
||||
);
|
||||
})}
|
||||
{!filters.length && <EmptyPlaceholder message="No filters selected." />}
|
||||
{!filters.length && <Text align="center">{formatMessage(labels.none)}</Text>}
|
||||
</Column>
|
||||
<Row alignItems="center" justifyContent="flex-end" gridColumn="span 2" gap>
|
||||
<Button onPress={onClose}>{formatMessage(labels.cancel)}</Button>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export function TeamsButton({
|
|||
const selectedKeys = new Set([teamId || user.id]);
|
||||
|
||||
const handleSelect = (id: Key) => {
|
||||
router.push(id === user.id ? '/dashboard' : `/teams/${id}/dashboard`);
|
||||
router.push(id === user.id ? '/websites' : `/teams/${id}/websites`);
|
||||
};
|
||||
|
||||
if (!result?.count) {
|
||||
|
|
|
|||
|
|
@ -282,6 +282,7 @@ export const labels = defineMessages({
|
|||
defaultMessage: 'Track your goals for pageviews and events.',
|
||||
},
|
||||
journey: { id: 'label.journey', defaultMessage: 'Journey' },
|
||||
journeys: { id: 'label.journeys', defaultMessage: 'Journeys' },
|
||||
journeyDescription: {
|
||||
id: 'label.journey-description',
|
||||
defaultMessage: 'Understand how users navigate through your website.',
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 12px;
|
||||
font-size: var(--font-size);
|
||||
padding: 0.1em 0.5em;
|
||||
border-radius: 5px;
|
||||
color: var(--base500);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue