refactor(frontend): finish shadcn→custom primitive migration (green build)

- Remove tw-animate-css import + dead src/components/ui shadcn tree
- Convert 7 orphaned components (moderation, analysis, guild-selector,
  voice/activity-timeline, shared/empty+error) to new primitives
- Add missing moderation/view.tsx; analysis uses SearchPanel directly
- globals.css now uses new signal-driven ops-console tokens
- tsc --noEmit clean, next build green (11 routes), local smoke 200
This commit is contained in:
asepharyana
2026-08-14 10:49:44 +07:00
parent 5816e94a63
commit 5bbf75a65b
130 changed files with 4431 additions and 12978 deletions
@@ -1,11 +1,8 @@
/**
* Messages page — Server Component.
*
* Reads the URL (guild/channel/tab/selected) on the server and, when a guild
* is already selected, fetches the first message page server-side so the
* initial list is server-rendered, not a client round-trip.
* Messages — Server Component.
* Reads URL guild/channel/selected/tab on the server; seeds first page SSR.
*/
import { getMessages, type MessagePageResult } from "@/lib/api/server";
import { getMessages } from "@/lib/api/server";
import MessagesView from "./view";
export default async function MessagesPage({
@@ -22,7 +19,7 @@ export default async function MessagesPage({
? (sp.tab as "all" | "images" | "review")
: "all";
let initialPage: MessagePageResult | undefined;
let initialPage;
if (guild) {
initialPage = await getMessages(guild, channel || undefined).catch(
() => undefined,