From 892e2e491b22eaec73819ac38fdbda6dcbe1f346 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Dec 2025 13:50:20 +0000 Subject: [PATCH] fix: create DBAL shared UI components for status and daemon page - Created dbal/shared/ui directory for shared UI components - Implemented getStatusResponse() for status API endpoint - Implemented DBALDaemonPage component with metadata - Updated tsconfig.json @dbal-ui path to point to dbal/shared/ui - Updated next.config.ts webpack alias for @dbal-ui - Components support both development and production DBAL modes Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- dbal/shared/ui/DaemonPage.tsx | 18 ++++++++++++++++++ dbal/shared/ui/status.ts | 13 +++++++++++++ frontends/nextjs/next.config.ts | 1 + frontends/nextjs/tsconfig.json | 2 +- 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 dbal/shared/ui/DaemonPage.tsx create mode 100644 dbal/shared/ui/status.ts diff --git a/dbal/shared/ui/DaemonPage.tsx b/dbal/shared/ui/DaemonPage.tsx new file mode 100644 index 000000000..192acc1e9 --- /dev/null +++ b/dbal/shared/ui/DaemonPage.tsx @@ -0,0 +1,18 @@ +/** + * DBAL Daemon Page + */ +export const metadata = { + title: 'DBAL Daemon', + description: 'DBAL Daemon Management', +} + +export function DBALDaemonPage() { + return ( +
+

DBAL Daemon

+

DBAL Daemon management interface.

+

Development mode: Direct TypeScript DBAL

+

Production mode: C++ Daemon via WebSocket

+
+ ) +} diff --git a/dbal/shared/ui/status.ts b/dbal/shared/ui/status.ts new file mode 100644 index 000000000..e59e5de82 --- /dev/null +++ b/dbal/shared/ui/status.ts @@ -0,0 +1,13 @@ +/** + * DBAL Status Response + */ +export function getStatusResponse() { + return { + status: 'ok', + timestamp: new Date().toISOString(), + dbal: { + mode: process.env.DBAL_MODE || 'development', + version: '1.0.0', + }, + } +} diff --git a/frontends/nextjs/next.config.ts b/frontends/nextjs/next.config.ts index 6dffda30e..e3ff1e340 100644 --- a/frontends/nextjs/next.config.ts +++ b/frontends/nextjs/next.config.ts @@ -86,6 +86,7 @@ const nextConfig: NextConfig = { config.resolve.alias = { ...config.resolve.alias, '@/dbal': path.resolve(__dirname, '../../dbal/development/src'), + '@dbal-ui': path.resolve(__dirname, '../../dbal/shared/ui'), } return config }, diff --git a/frontends/nextjs/tsconfig.json b/frontends/nextjs/tsconfig.json index 944f670d9..63e4458a8 100644 --- a/frontends/nextjs/tsconfig.json +++ b/frontends/nextjs/tsconfig.json @@ -36,7 +36,7 @@ "../../dbal/development/src/*" ], "@dbal-ui/*": [ - "../../dbal/src/*" + "../../dbal/shared/ui/*" ] }, "plugins": [