mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 10:05:36 +01:00
Add personal dashboard flow and per-component website selection
Some checks are pending
Node.js CI / build (push) Waiting to run
Some checks are pending
Node.js CI / build (push) Waiting to run
This introduces a user-scoped dashboard with board-style view/edit pages while keeping it unavailable in team context, and moves website targeting to component config so dashboard components can each select their own website.
This commit is contained in:
parent
2633697585
commit
631cc46f7f
73 changed files with 418 additions and 88 deletions
|
|
@ -24,7 +24,7 @@ export function WebsiteSelect({
|
|||
includeTeams?: boolean;
|
||||
isCollapsed?: boolean;
|
||||
} & SelectProps) {
|
||||
const { t, messages } = useMessages();
|
||||
const { t, labels, messages } = useMessages();
|
||||
const { data: website } = useWebsiteQuery(websiteId);
|
||||
const [name, setName] = useState<string>(website?.name);
|
||||
const [search, setSearch] = useState('');
|
||||
|
|
@ -57,12 +57,16 @@ export function WebsiteSelect({
|
|||
return '';
|
||||
}
|
||||
|
||||
const value = name || props.placeholder || t(labels.selectWebsite);
|
||||
|
||||
return (
|
||||
<Row alignItems="center" gap>
|
||||
<Icon>
|
||||
<Globe />
|
||||
</Icon>
|
||||
<Text truncate>{name}</Text>
|
||||
<Text truncate color={name ? undefined : 'muted'}>
|
||||
{value}
|
||||
</Text>
|
||||
</Row>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue