Add general info text

This commit is contained in:
Matthias Mair 2024-08-21 22:33:48 +02:00
parent 7112dcb75c
commit 06fd7a408b
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
2 changed files with 31 additions and 6 deletions

View File

@ -1,14 +1,38 @@
import { Trans } from '@lingui/macro'; import { Trans, t } from '@lingui/macro';
import { Divider, Stack, Title } from '@mantine/core'; import { Alert, Button, Divider, Stack, Title } from '@mantine/core';
import { IconBrandGithub } from '@tabler/icons-react';
export default function HomePanel() { export default function HomePanel() {
return ( return (
<Stack gap="xs"> <Stack gap="xs">
<Alert color="blue" title={t`This is new!`}>
<Trans>
This is a new feature in PUI previously not available. It provides a
centralized location for all administration functionality and is meant
to replace Djangos admin view.
</Trans>
<br />
<Trans>Please raise issues for any missing admin functionality.</Trans>
<br />
<Button
color="green"
top={'https://github.com/inventree/InvenTree/issues/new'}
>
<IconBrandGithub /> <Trans>Open an issue</Trans>
</Button>
</Alert>
<Title order={5}> <Title order={5}>
<Trans>Home Status Panel</Trans> <Trans>Quick actions</Trans>
</Title> </Title>
TBD
<Divider /> <Title order={5}>
<Trans>System status</Trans>
</Title>
TBD
<Title order={5}>
<Trans>Security recommodations</Trans>
</Title>
TBD
</Stack> </Stack>
); );
} }

View File

@ -104,7 +104,8 @@ export default function AdminCenter() {
name: 'home', name: 'home',
label: t`Home`, label: t`Home`,
icon: <IconHome />, icon: <IconHome />,
content: <HomePanel /> content: <HomePanel />,
showHeadline: false
}, },
{ {
name: 'user', name: 'user',