From a441e87520f63e795083fafadaef6f2d08cb4439 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Wed, 21 Jan 2026 04:22:58 +0000 Subject: [PATCH] feat: add missing page-config route definitions for login, dashboard, and admin pages --- e2e/tests.ts | 16 ---------------- packages/dashboard/page-config/page-config.json | 13 +++++++++++++ .../package_manager/page-config/page-config.json | 13 +++++++++++++ .../role_editor/page-config/page-config.json | 13 +++++++++++++ packages/ui_login/page-config/page-config.json | 13 +++++++++++++ .../user_manager/page-config/page-config.json | 13 +++++++++++++ 6 files changed, 65 insertions(+), 16 deletions(-) delete mode 100644 e2e/tests.ts create mode 100644 packages/dashboard/page-config/page-config.json create mode 100644 packages/package_manager/page-config/page-config.json create mode 100644 packages/role_editor/page-config/page-config.json create mode 100644 packages/ui_login/page-config/page-config.json create mode 100644 packages/user_manager/page-config/page-config.json diff --git a/e2e/tests.ts b/e2e/tests.ts deleted file mode 100644 index 23a49d896..000000000 --- a/e2e/tests.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Playwright Tests - Auto-discover and execute JSON test definitions - * - * This file loads all JSON test definitions from packages/*/playwright/tests.json - * and registers them as Playwright tests at runtime. - * - * Usage: npm run test:e2e - */ - -import { test } from '@playwright/test' -import { loadAllPackageTests } from './json-runner/playwright-json-runner' -import { resolve } from 'path' - -// Discover and register all JSON tests from packages -const packagesDir = resolve(__dirname, '../packages') -void loadAllPackageTests(packagesDir, test) diff --git a/packages/dashboard/page-config/page-config.json b/packages/dashboard/page-config/page-config.json new file mode 100644 index 000000000..5131a949b --- /dev/null +++ b/packages/dashboard/page-config/page-config.json @@ -0,0 +1,13 @@ +[ + { + "id": "page_dashboard_home", + "path": "/dashboard", + "title": "Dashboard", + "packageId": "dashboard", + "component": "dashboard_home", + "level": 1, + "requiresAuth": true, + "isPublished": true, + "sortOrder": 0 + } +] diff --git a/packages/package_manager/page-config/page-config.json b/packages/package_manager/page-config/page-config.json new file mode 100644 index 000000000..e14777802 --- /dev/null +++ b/packages/package_manager/page-config/page-config.json @@ -0,0 +1,13 @@ +[ + { + "id": "page_package_manager_list", + "path": "/admin/packages", + "title": "Package Management", + "packageId": "package_manager", + "component": "package_list_admin", + "level": 4, + "requiresAuth": true, + "isPublished": true, + "sortOrder": 0 + } +] diff --git a/packages/role_editor/page-config/page-config.json b/packages/role_editor/page-config/page-config.json new file mode 100644 index 000000000..14f142733 --- /dev/null +++ b/packages/role_editor/page-config/page-config.json @@ -0,0 +1,13 @@ +[ + { + "id": "page_role_editor_list", + "path": "/admin/roles", + "title": "Role Management", + "packageId": "role_editor", + "component": "role_list_admin", + "level": 3, + "requiresAuth": true, + "isPublished": true, + "sortOrder": 0 + } +] diff --git a/packages/ui_login/page-config/page-config.json b/packages/ui_login/page-config/page-config.json new file mode 100644 index 000000000..cfe3d71b3 --- /dev/null +++ b/packages/ui_login/page-config/page-config.json @@ -0,0 +1,13 @@ +[ + { + "id": "page_ui_login_login", + "path": "/login", + "title": "Login", + "packageId": "ui_login", + "component": "login_page", + "level": 0, + "requiresAuth": false, + "isPublished": true, + "sortOrder": 0 + } +] diff --git a/packages/user_manager/page-config/page-config.json b/packages/user_manager/page-config/page-config.json new file mode 100644 index 000000000..d97fdb23d --- /dev/null +++ b/packages/user_manager/page-config/page-config.json @@ -0,0 +1,13 @@ +[ + { + "id": "page_user_manager_list", + "path": "/admin/users", + "title": "User Management", + "packageId": "user_manager", + "component": "user_list_admin", + "level": 3, + "requiresAuth": true, + "isPublished": true, + "sortOrder": 0 + } +]