fix margins, teams button, and remove boards
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run

This commit is contained in:
Francis Cao 2025-09-16 13:31:21 -07:00
parent cfd49e1742
commit 28ba2a1666
8 changed files with 7 additions and 24 deletions

View file

@ -8,14 +8,7 @@ import {
SidebarProps,
ThemeButton,
} from '@umami/react-zen';
import {
Globe,
LayoutDashboard,
Link as LinkIcon,
Logo,
Pixel,
PanelLeft,
} from '@/components/icons';
import { Globe, Link as LinkIcon, Logo, Pixel, PanelLeft } from '@/components/icons';
import { useMessages, useNavigation, useGlobalState } from '@/components/hooks';
import { TeamsButton } from '@/components/input/TeamsButton';
import { PanelButton } from '@/components/input/PanelButton';
@ -30,12 +23,6 @@ export function SideNav(props: SidebarProps) {
const hasNav = !!(websiteId || pathname.startsWith('/admin') || pathname.includes('/settings'));
const links = [
{
id: 'boards',
label: formatMessage(labels.boards),
path: '/boards',
icon: <LayoutDashboard />,
},
{
id: 'websites',
label: formatMessage(labels.websites),

View file

@ -9,7 +9,7 @@ export function AdminTeamsPage() {
const { formatMessage, labels } = useMessages();
return (
<Column gap="6">
<Column gap="6" margin="2">
<PageHeader title={formatMessage(labels.teams)} />
<Panel>
<AdminTeamsDataTable />

View file

@ -12,7 +12,7 @@ export function UsersPage() {
const handleSave = () => {};
return (
<Column gap="6">
<Column gap="6" margin="2">
<PageHeader title={formatMessage(labels.users)}>
<UserAddButton onSave={handleSave} />
</PageHeader>

View file

@ -9,7 +9,7 @@ export function AdminWebsitesPage() {
const { formatMessage, labels } = useMessages();
return (
<Column gap="6">
<Column gap="6" margin="2">
<PageHeader title={formatMessage(labels.websites)} />
<Panel>
<AdminWebsitesDataTable />

View file

@ -8,7 +8,7 @@ import { Panel } from '@/components/common/Panel';
export function WebsiteSettingsPage({ websiteId }: { websiteId: string }) {
return (
<WebsiteProvider websiteId={websiteId}>
<Column gap="6">
<Column gap="6" margin="2">
<WebsiteSettingsHeader />
<Panel>
<WebsiteSettings websiteId={websiteId} />

View file

@ -10,7 +10,7 @@ export function WebsiteLayout({ websiteId, children }: { websiteId: string; chil
return (
<WebsiteProvider websiteId={websiteId}>
<Grid columns="auto 1fr" width="100%" height="100%">
<Column height="100%" border="right" backgroundColor marginRight="2">
<Column height="100%" border="right" backgroundColor>
<WebsiteNav websiteId={websiteId} />
</Column>
<PageBody gap>

View file

@ -26,7 +26,7 @@ export function WebsitePage({ websiteId }: { websiteId: string }) {
};
return (
<Column gap>
<Column gap marginLeft="2">
<WebsiteControls websiteId={websiteId} />
<WebsiteMetricsBar websiteId={websiteId} showChange={true} />
<Panel minHeight="520px">

View file

@ -33,10 +33,6 @@ export function TeamsButton({ showText = true, onAction }: TeamsButtonProps) {
return <Loading icon="dots" size="sm" placement="center" />;
}
if (!data?.count) {
return null;
}
return (
<MenuTrigger>
<Pressable>