From b7f5417e23d884711a92772c5efc6b2d521b1a01 Mon Sep 17 00:00:00 2001 From: DaX Date: Wed, 19 Nov 2025 19:13:48 +0100 Subject: [PATCH] Move dashboard to root level route - Dashboard now accessible at /dashboard instead of /upadaj/dashboard - Updated all navigation links to use new /dashboard route - Login page still at /upadaj, redirects to /dashboard on success - Colors and requests remain under /upadaj prefix - Updated test files to reference new dashboard path --- __tests__/no-mock-data.test.ts | 4 ++-- __tests__/ui-features.test.ts | 12 ++++++------ app/{upadaj => }/dashboard/page.tsx | 0 app/upadaj/colors/page.tsx | 2 +- app/upadaj/page.tsx | 2 +- app/upadaj/requests/page.tsx | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) rename app/{upadaj => }/dashboard/page.tsx (100%) diff --git a/__tests__/no-mock-data.test.ts b/__tests__/no-mock-data.test.ts index 25ef3a3..5b0ad23 100644 --- a/__tests__/no-mock-data.test.ts +++ b/__tests__/no-mock-data.test.ts @@ -18,8 +18,8 @@ describe('No Mock Data Tests', () => { it('should use API service in all components', () => { const pagePath = join(process.cwd(), 'app', 'page.tsx'); - const adminPath = join(process.cwd(), 'app', 'upadaj', 'dashboard', 'page.tsx'); - + const adminPath = join(process.cwd(), 'app', 'dashboard', 'page.tsx'); + const pageContent = readFileSync(pagePath, 'utf-8'); const adminContent = readFileSync(adminPath, 'utf-8'); diff --git a/__tests__/ui-features.test.ts b/__tests__/ui-features.test.ts index 2f7773c..b1c5da5 100644 --- a/__tests__/ui-features.test.ts +++ b/__tests__/ui-features.test.ts @@ -3,7 +3,7 @@ import { join } from 'path'; describe('UI Features Tests', () => { it('should have color hex input in admin form', () => { - const adminDashboardPath = join(process.cwd(), 'app', 'upadaj', 'dashboard', 'page.tsx'); + const adminDashboardPath = join(process.cwd(), 'app', 'dashboard', 'page.tsx'); const adminContent = readFileSync(adminDashboardPath, 'utf-8'); // Check for color input @@ -22,7 +22,7 @@ describe('UI Features Tests', () => { }); it('should have number inputs for quantity fields', () => { - const adminDashboardPath = join(process.cwd(), 'app', 'upadaj', 'dashboard', 'page.tsx'); + const adminDashboardPath = join(process.cwd(), 'app', 'dashboard', 'page.tsx'); const adminContent = readFileSync(adminDashboardPath, 'utf-8'); // Check for number inputs for quantities @@ -34,7 +34,7 @@ describe('UI Features Tests', () => { }); it('should have number input for quantity', () => { - const adminDashboardPath = join(process.cwd(), 'app', 'upadaj', 'dashboard', 'page.tsx'); + const adminDashboardPath = join(process.cwd(), 'app', 'dashboard', 'page.tsx'); const adminContent = readFileSync(adminDashboardPath, 'utf-8'); // Check for number input @@ -44,7 +44,7 @@ describe('UI Features Tests', () => { }); it('should have predefined material options', () => { - const adminDashboardPath = join(process.cwd(), 'app', 'upadaj', 'dashboard', 'page.tsx'); + const adminDashboardPath = join(process.cwd(), 'app', 'dashboard', 'page.tsx'); const adminContent = readFileSync(adminDashboardPath, 'utf-8'); // Check for material select dropdown @@ -54,8 +54,8 @@ describe('UI Features Tests', () => { }); it('should have admin header with navigation', () => { - const adminDashboardPath = join(process.cwd(), 'app', 'upadaj', 'dashboard', 'page.tsx'); - + const adminDashboardPath = join(process.cwd(), 'app', 'dashboard', 'page.tsx'); + const dashboardContent = readFileSync(adminDashboardPath, 'utf-8'); // Check for admin header diff --git a/app/upadaj/dashboard/page.tsx b/app/dashboard/page.tsx similarity index 100% rename from app/upadaj/dashboard/page.tsx rename to app/dashboard/page.tsx diff --git a/app/upadaj/colors/page.tsx b/app/upadaj/colors/page.tsx index 6c5918e..bce9847 100644 --- a/app/upadaj/colors/page.tsx +++ b/app/upadaj/colors/page.tsx @@ -194,7 +194,7 @@ export default function ColorsManagement() {

Admin Panel