From 5336bcf0c2fd077b1e3a32058f3c4bad142d659c Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 18 Oct 2025 22:41:08 +0000 Subject: [PATCH] Prettier format pending files --- client/components/admin/AdminSystemMap.tsx | 171 +++++++++++++++++---- client/pages/Realms.tsx | 76 ++++++--- 2 files changed, 198 insertions(+), 49 deletions(-) diff --git a/client/components/admin/AdminSystemMap.tsx b/client/components/admin/AdminSystemMap.tsx index 2e493230..9d840483 100644 --- a/client/components/admin/AdminSystemMap.tsx +++ b/client/components/admin/AdminSystemMap.tsx @@ -1,7 +1,24 @@ -import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card"; +import { + Card, + CardContent, + CardHeader, + CardTitle, + CardDescription, +} from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { cn } from "@/lib/utils"; -import { Database, Globe, Layers, Network, Route, ServerCog, ShieldCheck, Spline, Users, Workflow } from "lucide-react"; +import { + Database, + Globe, + Layers, + Network, + Route, + ServerCog, + ShieldCheck, + Spline, + Users, + Workflow, +} from "lucide-react"; type Node = { id: string; @@ -13,25 +30,91 @@ type Node = { const NODES: Node[] = [ // Entry/realms - { id: "realms", label: "Realms", subtitle: "GD / Consulting / Community / Get Started", icon: Workflow, group: "entry" }, - { id: "onboarding", label: "Onboarding", subtitle: "Profile • Interests • Path", icon: Users, group: "entry" }, + { + id: "realms", + label: "Realms", + subtitle: "GD / Consulting / Community / Get Started", + icon: Workflow, + group: "entry", + }, + { + id: "onboarding", + label: "Onboarding", + subtitle: "Profile • Interests • Path", + icon: Users, + group: "entry", + }, // Frontend app - { id: "dashboard", label: "Dashboard", subtitle: "Realm‑aware UI", icon: Globe, group: "frontend" }, - { id: "routes", label: "Routes", subtitle: "/feed • /status • /teams • /docs", icon: Route, group: "frontend" }, + { + id: "dashboard", + label: "Dashboard", + subtitle: "Realm‑aware UI", + icon: Globe, + group: "frontend", + }, + { + id: "routes", + label: "Routes", + subtitle: "/feed • /status • /teams • /docs", + icon: Route, + group: "frontend", + }, // Product services (frontend+api) - { id: "feed", label: "Social Feed", subtitle: "Posts • Likes • Comments • Tags", icon: Layers, group: "services" }, - { id: "mentorship", label: "Mentorship", subtitle: "Requests • Mentors • Moderation", icon: Users, group: "services" }, - { id: "status", label: "Status", subtitle: "Live health from /api/status", icon: ShieldCheck, group: "services" }, - { id: "investors", label: "Investors", subtitle: "Interest • Client realm", icon: Network, group: "services" }, + { + id: "feed", + label: "Social Feed", + subtitle: "Posts • Likes • Comments • Tags", + icon: Layers, + group: "services", + }, + { + id: "mentorship", + label: "Mentorship", + subtitle: "Requests • Mentors • Moderation", + icon: Users, + group: "services", + }, + { + id: "status", + label: "Status", + subtitle: "Live health from /api/status", + icon: ShieldCheck, + group: "services", + }, + { + id: "investors", + label: "Investors", + subtitle: "Interest • Client realm", + icon: Network, + group: "services", + }, // Backend - { id: "api", label: "API", subtitle: "Node/Express server routes", icon: ServerCog, group: "backend" }, - { id: "db", label: "Supabase", subtitle: "Auth • Profiles • Content • Migrations", icon: Database, group: "backend" }, + { + id: "api", + label: "API", + subtitle: "Node/Express server routes", + icon: ServerCog, + group: "backend", + }, + { + id: "db", + label: "Supabase", + subtitle: "Auth • Profiles • Content • Migrations", + icon: Database, + group: "backend", + }, // Infra - { id: "hosting", label: "Hosting/CDN", subtitle: "Vercel/Netlify + Edge", icon: Spline, group: "infra" }, + { + id: "hosting", + label: "Hosting/CDN", + subtitle: "Vercel/Netlify + Edge", + icon: Spline, + group: "infra", + }, ]; // Directed edges between nodes @@ -65,11 +148,13 @@ const groupStyles: Record = { function NodeCard({ node }: { node: Node }) { const Icon = node.icon ?? Globe; return ( -
+
@@ -90,53 +175,79 @@ export default function AdminSystemMap() { System map - High‑level architecture and primary flows + + High‑level architecture and primary flows +
{/* Row: entry */}
- {NODES.filter(n => n.group === "entry").map(n => ( + {NODES.filter((n) => n.group === "entry").map((n) => ( ))}
{/* Row: frontend */}
- {NODES.filter(n => n.group === "frontend").map(n => ( + {NODES.filter((n) => n.group === "frontend").map((n) => ( ))}
{/* Row: services */}
- {NODES.filter(n => n.group === "services").map(n => ( + {NODES.filter((n) => n.group === "services").map((n) => ( ))}
{/* Row: backend + infra */}
- {NODES.filter(n => n.group === "backend").map(n => ( + {NODES.filter((n) => n.group === "backend").map((n) => ( ))} - {NODES.filter(n => n.group === "infra").map(n => ( + {NODES.filter((n) => n.group === "infra").map((n) => ( ))}
{/* Legend */}
- Entry - Frontend - Services - Backend - Infra + + Entry + + + Frontend + + + Services + + + Backend + + + Infra +
{/* Edges list (readable relationships) */}
-
Flows
+
+ Flows +
    {EDGES.map(([from, to, note]) => (
  • diff --git a/client/pages/Realms.tsx b/client/pages/Realms.tsx index 97481073..cd7a54ef 100644 --- a/client/pages/Realms.tsx +++ b/client/pages/Realms.tsx @@ -98,38 +98,63 @@ export default function Realms() {
    Contributor network -

    Mentors, Maintainers, and Shipmates

    -

    Grow the platform with us—teach, steward projects, and ship products together.

    +

    + Mentors, Maintainers, and Shipmates +

    +

    + Grow the platform with us—teach, steward projects, and ship + products together. +

    Mentors - Guide builders through 1:1 sessions, clinics, and code reviews. + + Guide builders through 1:1 sessions, clinics, and code + reviews. + - - + + Maintainers - Own modules, triage issues, and lead roadmap execution. + + Own modules, triage issues, and lead roadmap execution. + - - + + Shipmates - Join product squads shipping across Labs, Platform, and Community. + + Join product squads shipping across Labs, Platform, and + Community. + - - + +
    @@ -138,14 +163,20 @@ export default function Realms() {
    Teams hiring now -

    Across Labs, Platform, and Community

    -

    Apply to active squads and help us accelerate delivery.

    +

    + Across Labs, Platform, and Community +

    +

    + Apply to active squads and help us accelerate delivery. +

    Labs squads - R&D and experimental products. + + R&D and experimental products. +
      @@ -154,14 +185,18 @@ export default function Realms() {
    • Mentorship Programs
    - +
    Platform squads - Core app, APIs, and reliability. + + Core app, APIs, and reliability. +
      @@ -170,7 +205,9 @@ export default function Realms() {
    • Content & Docs
    - +
    @@ -186,13 +223,14 @@ export default function Realms() {
  • Creator Success
- +
-
);