List short links before link pages, matching the sidebar

On the admin user screen the sections were reversed, and the create
buttons on that screen and the overview put link pages first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 17:16:50 +02:00
co-authored by Claude Opus 5.5
parent ab2150330a
commit 03fb4dcf0c
2 changed files with 10 additions and 10 deletions
+7 -7
View File
@@ -57,12 +57,12 @@ export function AdminUserScreen({ username, me }: { username: string; me: Me })
</p>
</div>
<div className="flex flex-wrap gap-2">
<Button variant="secondary" icon={<PanelsTopLeft />} onClick={() => setCreating("linkpage")}>
New link page
</Button>
<Button icon={<Plus />} onClick={() => setCreating("redirect")}>
New short link
</Button>
<Button variant="secondary" icon={<PanelsTopLeft />} onClick={() => setCreating("linkpage")}>
New link page
</Button>
</div>
</header>
@@ -80,13 +80,13 @@ export function AdminUserScreen({ username, me }: { username: string; me: Me })
</div>
<section>
<h2 className="mb-3 text-base font-semibold">Link pages</h2>
<PageTable kind="linkpage" pages={theirs} empty={{ title: "No link pages", description: `${username} hasn't created any link pages.` }} />
<h2 className="mb-3 text-base font-semibold">Short links</h2>
<PageTable kind="redirect" pages={theirs} empty={{ title: "No short links", description: `${username} hasn't created any short links.` }} />
</section>
<section>
<h2 className="mb-3 text-base font-semibold">Short links</h2>
<PageTable kind="redirect" pages={theirs} empty={{ title: "No short links", description: `${username} hasn't created any short links.` }} />
<h2 className="mb-3 text-base font-semibold">Link pages</h2>
<PageTable kind="linkpage" pages={theirs} empty={{ title: "No link pages", description: `${username} hasn't created any link pages.` }} />
</section>
</div>
+3 -3
View File
@@ -62,12 +62,12 @@ export function OverviewScreen({ me }: { me: Me }) {
description="Here's how your links are doing."
actions={
<>
<Button variant="secondary" icon={<PanelsTopLeft />} onClick={() => setCreating("linkpage")}>
New link page
</Button>
<Button icon={<Plus />} onClick={() => setCreating("redirect")}>
New short link
</Button>
<Button variant="secondary" icon={<PanelsTopLeft />} onClick={() => setCreating("linkpage")}>
New link page
</Button>
</>
}
/>