From 2999497f1684c85153f19b0100543593d5b4d021 Mon Sep 17 00:00:00 2001 From: JimmFly Date: Thu, 22 May 2025 07:13:16 +0000 Subject: [PATCH] chore(admin): adjust import user style (#12295) close AF-2619 AF-2618 ## Summary by CodeRabbit - **Style** - Updated various components to use dynamic theme-based colors and consistent border radius for a more unified look and feel. - Adjusted icon size and text styling in the file upload area for improved visual clarity. - Applied consistent secondary text color to informational paragraphs. - **User Interface** - Changed the table header label from "Username" to "Name" and removed uppercase styling from all table headers. - Updated file upload instructions for clearer guidance. --- .../import-users/csv-format-guidance.tsx | 2 +- .../import-users/file-upload-area.tsx | 25 +++++++++++++++---- .../import-users/import-content.tsx | 5 ++-- .../accounts/components/user-table.tsx | 10 ++++---- 4 files changed, 29 insertions(+), 13 deletions(-) diff --git a/packages/frontend/admin/src/modules/accounts/components/import-users/csv-format-guidance.tsx b/packages/frontend/admin/src/modules/accounts/components/import-users/csv-format-guidance.tsx index 63e620d90..0c29860e0 100644 --- a/packages/frontend/admin/src/modules/accounts/components/import-users/csv-format-guidance.tsx +++ b/packages/frontend/admin/src/modules/accounts/components/import-users/csv-format-guidance.tsx @@ -18,7 +18,7 @@ export const CsvFormatGuidance: FC = ({ }) => { return (
- -
+ +
{isDragging ? 'Release mouse to upload file' - : 'Click to upload CSV file'} + : 'Upload your CSV file or drag it here'}

- {isDragging ? 'Preparing to upload...' : 'Or drag and drop file here'} + {isDragging ? 'Preparing to upload...' : ''}

= ({ return (
{!isImported && ( -

+

{parsedUsers.length} users detected from the CSV file. Please confirm the user list below and import.

@@ -49,7 +50,7 @@ export const ImportInitialContent: FC = ({ }) => { return (
-

+

You need to import the accounts by importing a CSV file in the correct format. Please download the CSV template.

diff --git a/packages/frontend/admin/src/modules/accounts/components/user-table.tsx b/packages/frontend/admin/src/modules/accounts/components/user-table.tsx index fde484c5a..f584d15e8 100644 --- a/packages/frontend/admin/src/modules/accounts/components/user-table.tsx +++ b/packages/frontend/admin/src/modules/accounts/components/user-table.tsx @@ -13,16 +13,16 @@ export const UserTable: React.FC = ({ users }) => { - - - -
- Username + + Name + Email + Password + Status