From 85e96c596902712a92a06b51c9d8ccec5fa73c43 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 18 Oct 2025 22:21:46 +0000 Subject: [PATCH] Prettier format pending files --- client/App.tsx | 1 - client/pages/Changelog.tsx | 5 +- client/pages/Dashboard.tsx | 116 ++++++++++++---- client/pages/Investors.tsx | 274 ++++++++++++++++++++++++++++++------- client/pages/Portal.tsx | 49 +++++-- client/pages/Realms.tsx | 51 +++++-- client/pages/Status.tsx | 22 ++- server/index.ts | 57 ++++++-- 8 files changed, 467 insertions(+), 108 deletions(-) diff --git a/client/App.tsx b/client/App.tsx index 792a3733..726d0fb5 100644 --- a/client/App.tsx +++ b/client/App.tsx @@ -61,7 +61,6 @@ import Staff from "./pages/Staff"; import Realms from "./pages/Realms"; import Investors from "./pages/Investors"; - const queryClient = new QueryClient(); const App = () => ( diff --git a/client/pages/Changelog.tsx b/client/pages/Changelog.tsx index 6c6f4b07..f16560c1 100644 --- a/client/pages/Changelog.tsx +++ b/client/pages/Changelog.tsx @@ -62,7 +62,8 @@ export const changelogEntries: ChangelogEntry[] = [ date: "2025-10-18", type: "major", category: "Platform Enhancement", - title: "Realms consolidation, live Status, feed upgrades, and Investors revamp", + title: + "Realms consolidation, live Status, feed upgrades, and Investors revamp", description: "Introduces a dedicated Realms management page with realm-aware dashboards, a live system Status page backed by a real API, improved social feed (likes, comments, and trending tags), and a redesigned Investors page with clear legal guidance.", author: "AeThex Development Team", @@ -112,7 +113,7 @@ export const changelogEntries: ChangelogEntry[] = [ { type: "fixed", description: - "Resolved \"invalid input value for Enum user_type_enum: \\\"staff\\\"\" by adding \"staff\" to enum via migration", + 'Resolved "invalid input value for Enum user_type_enum: \\"staff\\"" by adding "staff" to enum via migration', impact: "high", }, ], diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index 37521271..e5a3ee70 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -139,7 +139,11 @@ export default function Dashboard() { "staff", ]; const current = ((profile as any)?.user_type as RealmKey) ?? null; - if (paramRealm && validRealms.includes(paramRealm) && paramRealm !== current) { + if ( + paramRealm && + validRealms.includes(paramRealm) && + paramRealm !== current + ) { (async () => { try { await updateProfile({ user_type: paramRealm } as any); @@ -663,7 +667,9 @@ export default function Dashboard() { } // Determine active realm for dashboard personalization - const activeRealm: RealmKey = (userRealm || ((profile as any)?.user_type as RealmKey) || "community_member") as RealmKey; + const activeRealm: RealmKey = (userRealm || + ((profile as any)?.user_type as RealmKey) || + "community_member") as RealmKey; return ( @@ -718,18 +724,24 @@ export default function Dashboard() {

- {activeRealm === "game_developer" && "Game Development Dashboard"} + {activeRealm === "game_developer" && + "Game Development Dashboard"} {activeRealm === "client" && "Consulting Dashboard"} {activeRealm === "community_member" && "Community Dashboard"} {activeRealm === "customer" && "Get Started Dashboard"} {activeRealm === "staff" && "Staff Dashboard"}

- Welcome back, {profile?.full_name || user.email?.split("@")[0]} • {streakLabel} + Welcome back,{" "} + {profile?.full_name || user.email?.split("@")[0]} •{" "} + {streakLabel}

{longestStreak > 0 && (
- + Realm: {activeRealm.replace("_", " ")}
@@ -887,8 +899,12 @@ export default function Dashboard() { {activeRealm === "game_developer" && ( - Create a Post - Share updates, images, or videos + + Create a Post + + + Share updates, images, or videos + @@ -899,14 +915,28 @@ export default function Dashboard() { {activeRealm === "community_member" && ( - Community actions - Post to the feed and explore trending topics + + Community actions + + + Post to the feed and explore trending topics + {}} />
- - + +
@@ -915,13 +945,29 @@ export default function Dashboard() { {activeRealm === "client" && ( - Project workspace - Kick off engagements and track delivery + + Project workspace + + + Kick off engagements and track delivery + - - - + + + )} @@ -930,11 +976,20 @@ export default function Dashboard() { Get started - Explore products and manage access + + Explore products and manage access + - - + + )} @@ -943,11 +998,17 @@ export default function Dashboard() { Operations - Moderation and internal tools + + Moderation and internal tools + - - + + )} @@ -1204,9 +1265,16 @@ export default function Dashboard() {
Realm & Path
-
Manage your realm preferences on the Realms page.
+
+ Manage your realm preferences on the Realms page. +
- +
diff --git a/client/pages/Investors.tsx b/client/pages/Investors.tsx index 5ee4109d..a15d1810 100644 --- a/client/pages/Investors.tsx +++ b/client/pages/Investors.tsx @@ -1,6 +1,12 @@ import Layout from "@/components/Layout"; import { Button } from "@/components/ui/button"; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; @@ -8,7 +14,16 @@ import { useAuth } from "@/contexts/AuthContext"; import { useToast } from "@/hooks/use-toast"; import { useRef, useState } from "react"; import { Link } from "react-router-dom"; -import { Flame, BarChart3, Layers, Shield, Handshake, Building2, Target, Rocket } from "lucide-react"; +import { + Flame, + BarChart3, + Layers, + Shield, + Handshake, + Building2, + Target, + Rocket, +} from "lucide-react"; type ThesisPoint = { icon: JSX.Element; title: string; desc: string }; @@ -26,7 +41,8 @@ export default function Investors() { const isClientRealm = (profile as any)?.user_type === "client"; - const scrollToForm = () => formRef.current?.scrollIntoView({ behavior: "smooth", block: "start" }); + const scrollToForm = () => + formRef.current?.scrollIntoView({ behavior: "smooth", block: "start" }); const submit = async () => { if (!email.trim()) { @@ -41,10 +57,20 @@ export default function Investors() { body: JSON.stringify({ name, email, amount, accredited, message }), }); if (!resp.ok) throw new Error("Failed to submit"); - toast({ title: "Thanks!", description: "We’ll follow up with next steps." }); - setName(""); setEmail(""); setAmount(""); setMessage(""); setAccredited(false); + toast({ + title: "Thanks!", + description: "We’ll follow up with next steps.", + }); + setName(""); + setEmail(""); + setAmount(""); + setMessage(""); + setAccredited(false); } catch (e: any) { - toast({ variant: "destructive", description: e?.message || "Try again later" }); + toast({ + variant: "destructive", + description: e?.message || "Try again later", + }); } finally { setSubmitting(false); } @@ -55,14 +81,29 @@ export default function Investors() { await updateProfile({ user_type: "client" as any }); toast({ title: "Realm set", description: "Consulting realm activated" }); } catch (e: any) { - toast({ variant: "destructive", description: e?.message || "Could not update realm" }); + toast({ + variant: "destructive", + description: e?.message || "Could not update realm", + }); } }; const thesis: ThesisPoint[] = [ - { icon: , title: "Three Engines", desc: "Studios (services), Platform (community), and Labs (R&D) compound value together." }, - { icon: , title: "Trust & Quality", desc: "Security-first engineering and measurable delivery keep churn low and NPS high." }, - { icon: , title: "Focused Markets", desc: "High-signal segments: games, real-time apps, and experience platforms." }, + { + icon: , + title: "Three Engines", + desc: "Studios (services), Platform (community), and Labs (R&D) compound value together.", + }, + { + icon: , + title: "Trust & Quality", + desc: "Security-first engineering and measurable delivery keep churn low and NPS high.", + }, + { + icon: , + title: "Focused Markets", + desc: "High-signal segments: games, real-time apps, and experience platforms.", + }, ]; const kpis = [ @@ -83,18 +124,40 @@ export default function Investors() {
- + Investor Relations -

AeThex | Building With Conviction

-

We craft reliable, loved software and the platform that powers creators. Explore our thesis, traction, and how to participate in compliant offerings.

+

+ AeThex | Building With Conviction +

+

+ We craft reliable, loved software and the platform that powers + creators. Explore our thesis, traction, and how to participate + in compliant offerings. +

- -
@@ -106,17 +169,31 @@ export default function Investors() {
-

Investment Thesis

-

Software creation is shifting to collaborative, real-time networks. AeThex aligns world-class services, platform, and research to accelerate outcomes for builders and brands.

+

+ Investment Thesis +

+

+ Software creation is shifting to collaborative, real-time + networks. AeThex aligns world-class services, platform, and + research to accelerate outcomes for builders and brands. +

{thesis.map((point) => ( - + - {point.icon}{point.title} - {point.desc} + + {point.icon} + {point.title} + + + {point.desc} + ))} @@ -129,10 +206,17 @@ export default function Investors() {
{kpis.map((m) => ( - + -
{m.kpi}
-
{m.label}
+
+ {m.kpi} +
+
+ {m.label} +
))} @@ -141,45 +225,118 @@ export default function Investors() {
{/* Interest + Realm */} -
+
- Investor interest - Request our investor packet and updates + + Investor interest + + + Request our investor packet and updates + - setName(e.target.value)} /> - setEmail(e.target.value)} /> - setAmount(e.target.value)} /> - -