Separate admins' own content from managing other users

- Short links, Link pages and Overview now show only the admin's own
  namespace and root; other users' content moved to Administration
- Administration lists users with their link/page/click counts; each
  opens /~/admin/users/<name> with that user's pages and links and
  lets admins create content in their namespace
- other users' pages open under /~/admin/users/<name>/…, keep the
  Administration section active and link back to the user
- one PageTable component for all lists, so search and the namespace
  filter (All / mine / Root, admins only) behave the same everywhere
- the create dialog offers admins only their own namespace and root;
  the existing-link picker groups links by namespace

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 16:52:22 +02:00
co-authored by Claude Opus 5.5
parent e44e56fd2d
commit 35cb7da929
13 changed files with 420 additions and 176 deletions
+4
View File
@@ -15,8 +15,12 @@ function sectionOf(route: Route): Section | null {
case "tokens":
case "admin":
return route.name;
case "adminUser":
return "admin";
case "list":
case "detail":
// Other users' pages are opened from Administration and stay in that section.
if (route.name === "detail" && route.owner) return "admin";
return route.kind === "redirect" ? "links" : "pages";
default:
return null;