From 90e1bc2ea0a06fa45ed1ac3323939e60818064d6 Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Fri, 31 Jul 2026 13:32:06 +0700 Subject: [PATCH] refactor: standardize theme colors, update UI components, and refine auth redirection logic --- packages/ui/src/components/status-badge/status-badge.tsx | 9 +++++---- .../enterprise-module/components/data-table/index.tsx | 2 +- .../enterprise-module/providers/detail-page.provider.tsx | 3 +-- .../enterprise-module/providers/form-page.provider.tsx | 3 +-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/ui/src/components/status-badge/status-badge.tsx b/packages/ui/src/components/status-badge/status-badge.tsx index f85b579..3ff0066 100644 --- a/packages/ui/src/components/status-badge/status-badge.tsx +++ b/packages/ui/src/components/status-badge/status-badge.tsx @@ -107,14 +107,15 @@ export enum STATUS_COLOR { // INACTIVE = '#6A252A', // DEACTIVATED = '#792A2C', - INACTIVE = '#B52B24', - DEACTIVATED = '#B52B24', + INACTIVE = '#BC1913', + DEACTIVATED = '#BC1913', CLOSE = '#883230', CLOSED = '#973C35', // ACTIVE = '#518F00', - ACTIVE = '#54BE05', - ACTIVATED = '#539B01', + // ACTIVATED = '#539B01', + ACTIVE = '#54B304', + ACTIVATED = '#54B304', APPROVED = '#54A702', PROCESSED = '#54B304', COMPLETED = '#54BE05', diff --git a/packages/ui/src/foundations/enterprise-module/components/data-table/index.tsx b/packages/ui/src/foundations/enterprise-module/components/data-table/index.tsx index 8c63284..5624a8b 100644 --- a/packages/ui/src/foundations/enterprise-module/components/data-table/index.tsx +++ b/packages/ui/src/foundations/enterprise-module/components/data-table/index.tsx @@ -678,7 +678,7 @@ export function EnterpriseDataTable(props: EnterpriseDataT field: 'status' as any, headerName: t('common:fields.status'), - cellRenderer: ({ value }: any) => , + cellRenderer: ({ value }: any) => , }; const prefixColumn: ColDef[] = [ diff --git a/packages/ui/src/foundations/enterprise-module/providers/detail-page.provider.tsx b/packages/ui/src/foundations/enterprise-module/providers/detail-page.provider.tsx index 044552b..07c8a4a 100644 --- a/packages/ui/src/foundations/enterprise-module/providers/detail-page.provider.tsx +++ b/packages/ui/src/foundations/enterprise-module/providers/detail-page.provider.tsx @@ -698,8 +698,7 @@ export function EnterpriseDetailPageProvider( badges={ detailData ? ( diff --git a/packages/ui/src/foundations/enterprise-module/providers/form-page.provider.tsx b/packages/ui/src/foundations/enterprise-module/providers/form-page.provider.tsx index 6a16cb3..37a2acc 100644 --- a/packages/ui/src/foundations/enterprise-module/providers/form-page.provider.tsx +++ b/packages/ui/src/foundations/enterprise-module/providers/form-page.provider.tsx @@ -534,8 +534,7 @@ export function EnterpriseFormPageProvider(pr badges={ detailData && formPageType === 'EDIT' ? (