Skip to content

Commit

Permalink
Remove quick actions (#9222)
Browse files Browse the repository at this point in the history
* Remove placeholder components

- No function
- Cleanup for 1.0.0

* Remove Placeholder.tsx
  • Loading branch information
SchrodingersGat authored Mar 4, 2025
1 parent 8cee2e3 commit 8bca48d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 72 deletions.
38 changes: 0 additions & 38 deletions src/frontend/src/components/items/Placeholder.tsx

This file was deleted.

33 changes: 2 additions & 31 deletions src/frontend/src/pages/Index/Settings/AdminCenter/Index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Trans, t } from '@lingui/macro';
import { Paper, SimpleGrid, Skeleton, Stack, Text, Title } from '@mantine/core';
import { t } from '@lingui/macro';
import { Stack } from '@mantine/core';
import {
IconClipboardCheck,
IconCoins,
Expand All @@ -21,7 +21,6 @@ import {
import { lazy, useMemo } from 'react';

import PermissionDenied from '../../../../components/errors/PermissionDenied';
import { PlaceholderPill } from '../../../../components/items/Placeholder';
import PageTitle from '../../../../components/nav/PageTitle';
import { SettingsHeader } from '../../../../components/nav/SettingsHeader';
import type { PanelType } from '../../../../components/panels/Panel';
Expand Down Expand Up @@ -215,33 +214,6 @@ export default function AdminCenter() {
];
}, []);

const QuickAction = () => (
<Stack gap={'xs'} ml={'sm'}>
<Title order={5}>
<Trans>Quick Actions</Trans>
</Title>
<SimpleGrid cols={3}>
<Paper shadow='xs' p='sm' withBorder>
<Text>
<Trans>Add a new user</Trans>
</Text>
</Paper>

<Paper shadow='xs' p='sm' withBorder>
<PlaceholderPill />
</Paper>

<Paper shadow='xs' p='sm' withBorder>
<PlaceholderPill />
</Paper>
</SimpleGrid>
</Stack>
);

if (!user.isLoggedIn()) {
return <Skeleton />;
}

return (
<>
<PageTitle title={t`Admin Center`} />
Expand All @@ -252,7 +224,6 @@ export default function AdminCenter() {
title={t`Admin Center`}
subtitle={t`Advanced Options`}
/>
<QuickAction />
<PanelGroup
pageKey='admin-center'
panels={adminCenterPanels}
Expand Down
16 changes: 13 additions & 3 deletions src/frontend/src/pages/Index/Settings/SystemSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { t } from '@lingui/macro';
import { Skeleton, Stack } from '@mantine/core';
import { Alert, Skeleton, Stack, Text } from '@mantine/core';
import {
IconBellCog,
IconCategory,
IconCurrencyDollar,
IconFileAnalytics,
IconFingerprint,
IconInfoCircle,
IconPackages,
IconQrcode,
IconServerCog,
Expand All @@ -18,7 +19,6 @@ import {
import { useMemo } from 'react';

import PermissionDenied from '../../../components/errors/PermissionDenied';
import { PlaceholderPanel } from '../../../components/items/Placeholder';
import PageTitle from '../../../components/nav/PageTitle';
import { SettingsHeader } from '../../../components/nav/SettingsHeader';
import type { PanelType } from '../../../components/panels/Panel';
Expand Down Expand Up @@ -110,7 +110,17 @@ export default function SystemSettings() {
name: 'notifications',
label: t`Notifications`,
icon: <IconBellCog />,
content: <PlaceholderPanel />
content: (
<Stack>
<Alert
color='teal'
title={t`This panel is a placeholder.`}
icon={<IconInfoCircle />}
>
<Text c='gray'>This panel has not yet been implemented</Text>
</Alert>
</Stack>
)
},
{
name: 'pricing',
Expand Down

0 comments on commit 8bca48d

Please sign in to comment.