+ |
{column.fieldName}
|
-
+ |
{column.dataType}
@@ -439,12 +439,12 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
{translate('::App.Listforms.ImportManager.Yes')}
) : (
-
+
{translate('::App.Listforms.ImportManager.No')}
)}
|
-
+ |
{typeof column.defaultValue === 'object'
? JSON.stringify(column.defaultValue)
: column.defaultValue}
@@ -458,7 +458,7 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
{generating && (
-
+
{translate('::App.Listforms.ImportManager.GeneratingTemplate')}
@@ -468,8 +468,8 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
{/* File Upload - 1/3 width on large screens, full width on mobile */}
-
-
+
+
{translate('::App.Listforms.ImportManager.UploadData')}
@@ -506,9 +506,9 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
)}
) : (
-
-
-
+
+
+
{translate('::App.Listforms.ImportManager.NoDataToPreview')}
@@ -520,22 +520,15 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
)}
{activeTab === 'history' && (
-
-
-
-
- {translate('::App.Listforms.ImportManager.ImportHistory')}
-
-
-
-
+
+
{importHistory.map((session) => (
@@ -543,15 +536,15 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
{getStatusIcon(session.status)}
-
+
{session.blobName}
-
+
{new Date(session.creationTime).toLocaleString()}
{currentSession?.id === session.id && (
-
+
{translate('::App.Status.Active')}
)}
@@ -560,7 +553,7 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
-
+
{session.totalRows} {translate('::App.Listforms.ImportManager.TotalRows')}
@@ -578,8 +571,8 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
onClick={() => toggleSessionExecutes(session.id)}
className={`p-2 rounded-lg transition-colors ${
expandedSessions.has(session.id)
- ? 'text-red-500 bg-red-50 hover:text-red-600 hover:bg-red-100 dark:bg-red-950/30 dark:text-red-300 dark:hover:bg-red-950/40'
- : 'text-slate-400 hover:text-slate-600 hover:bg-slate-100 dark:text-slate-500 dark:hover:text-slate-300 dark:hover:bg-slate-800'
+ ? 'text-red-500 bg-red-50 hover:text-red-600 hover:bg-red-100 dark:bg-gray-800 dark:text-red-300 dark:hover:bg-gray-700'
+ : 'text-gray-400 hover:text-gray-600 hover:bg-gray-100 dark:text-gray-500 dark:hover:text-gray-300 dark:hover:bg-gray-800'
}`}
title={translate('::App.Listforms.ImportManager.ViewExecutionDetails')}
>
@@ -609,7 +602,7 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
}
}
}}
- className="p-2 rounded-lg transition-colors text-slate-400 hover:text-blue-500 hover:bg-blue-50 dark:text-slate-500 dark:hover:text-blue-300 dark:hover:bg-blue-950/30"
+ className="p-2 rounded-lg transition-colors text-gray-400 hover:text-blue-500 hover:bg-blue-50 dark:text-gray-500 dark:hover:text-blue-300 dark:hover:bg-gray-800"
title={translate('::App.Listforms.ImportManager.RefreshExecutionDetails')}
>
@@ -625,8 +618,8 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
disabled={currentSession?.id === session.id}
className={`p-2 rounded-lg transition-colors ${
currentSession?.id === session.id
- ? 'text-slate-300 dark:text-slate-600 cursor-not-allowed'
- : 'text-slate-400 hover:text-red-500 hover:bg-red-50 dark:text-slate-500 dark:hover:text-red-300 dark:hover:bg-red-950/30'
+ ? 'text-gray-300 dark:text-gray-600 cursor-not-allowed'
+ : 'text-gray-400 hover:text-red-500 hover:bg-red-50 dark:text-gray-500 dark:hover:text-red-300 dark:hover:bg-gray-800'
}`}
title={
currentSession?.id === session.id
@@ -647,10 +640,10 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
session.status === 'executed_with_errors' ||
session.status === 'failed' ||
session.status === 'execute_failed'
- ? 'bg-red-50 text-red-700 border border-red-200 dark:bg-red-950/30 dark:text-red-300 dark:border-red-900/60'
+ ? 'bg-red-50 text-red-700 border border-red-200 dark:bg-gray-800 dark:text-red-300 dark:border-gray-700'
: session.status === 'uploaded'
- ? 'bg-blue-50 text-blue-700 border border-blue-200 dark:bg-blue-950/30 dark:text-blue-300 dark:border-blue-900/60'
- : 'bg-green-50 text-green-700 border border-green-200 dark:bg-green-950/30 dark:text-green-300 dark:border-green-900/60'
+ ? 'bg-blue-50 text-blue-700 border border-blue-200 dark:bg-gray-800 dark:text-blue-300 dark:border-gray-700'
+ : 'bg-green-50 text-green-700 border border-green-200 dark:bg-gray-800 dark:text-green-300 dark:border-gray-700'
}`}
>
@@ -670,10 +663,10 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
{/* Execute Details Section */}
{expandedSessions.has(session.id) && (
-
+
{loadingExecutes.has(session.id) ? (
-
+
{translate('::App.Listforms.ImportManager.LoadingExecutionDetails')}
@@ -683,22 +676,22 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
sessionExecutes[session.id].length > 0 ? (
{sessionExecutes[session.id].map((execute) => (
-
+
{/* Sol: Tarih */}
-
+
{new Date(execute.creationTime).toLocaleString()}
{/* Orta: Executed, Valid, Errors */}
-
+
-
+
{execute.execRows}
-
+
{translate('::App.Listforms.ImportManager.Executed')}
@@ -706,7 +699,7 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
{execute.validRows}
-
+
{translate('::App.Listforms.ImportManager.Valid')}
@@ -714,7 +707,7 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
{execute.errorRows}
-
+
{translate('::App.Listforms.ImportManager.Errors')}
@@ -753,10 +746,10 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
{expandedErrors.has(execute.id) && (
-
+
{parseErrors(execute.errorsJson).length > 0 ? (
-
+
|
Satır
@@ -766,16 +759,16 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
|
-
+
{parseErrors(execute.errorsJson).map((err, idx) => (
|
{err.row}
|
-
+ |
{err.message}
|
@@ -795,7 +788,7 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
))}
) : (
-
+
{translate('::App.Listforms.ImportManager.NoExecutionRecords')}
)}
@@ -806,8 +799,8 @@ export const ImportDashboard: React.FC = ({ gridDto }) =>
))}
{importHistory.length === 0 && (
-
-
+
+
{translate('::App.Listforms.ImportManager.NoImportHistory')}
diff --git a/ui/src/components/importManager/ImportPreview.tsx b/ui/src/components/importManager/ImportPreview.tsx
index de4db27..93df1bc 100644
--- a/ui/src/components/importManager/ImportPreview.tsx
+++ b/ui/src/components/importManager/ImportPreview.tsx
@@ -100,13 +100,13 @@ export const ImportPreview: React.FC = ({
const getStatusColor = (status: string) => {
switch (status) {
case 'uploaded':
- return 'text-green-600 bg-green-50 border-green-200 dark:text-green-300 dark:bg-green-950/30 dark:border-green-900/60'
+ return 'text-green-600 bg-green-50 border-green-200 dark:text-green-300 dark:bg-gray-800 dark:border-gray-700'
case 'failed':
- return 'text-red-600 bg-red-50 border-red-200 dark:text-red-300 dark:bg-red-950/30 dark:border-red-900/60'
+ return 'text-red-600 bg-red-50 border-red-200 dark:text-red-300 dark:bg-gray-800 dark:border-gray-700'
case 'validating':
- return 'text-yellow-600 bg-yellow-50 border-yellow-200 dark:text-yellow-300 dark:bg-yellow-950/30 dark:border-yellow-900/60'
+ return 'text-yellow-600 bg-yellow-50 border-yellow-200 dark:text-yellow-300 dark:bg-gray-800 dark:border-gray-700'
default:
- return 'text-blue-600 bg-blue-50 border-blue-200 dark:text-blue-300 dark:bg-blue-950/30 dark:border-blue-900/60'
+ return 'text-blue-600 bg-blue-50 border-blue-200 dark:text-blue-300 dark:bg-gray-800 dark:border-gray-700'
}
}
@@ -145,14 +145,14 @@ export const ImportPreview: React.FC = ({
}
return (
-
+
{/* Header */}
-
+
{/* Başlık kısmı - Üstte mobile, solda desktop */}
-
+
{translate('::App.Listforms.ImportManager.ImportPreviewTitle')}
@@ -160,7 +160,7 @@ export const ImportPreview: React.FC = ({
{/* İstatistik kartları - Mobile'da alt alta, desktop'ta yan yana */}
-
+
{previewData?.rows?.length || session.totalRows || 0}{' '}
{translate('::App.Listforms.ImportManager.TotalRows')}
@@ -184,16 +184,16 @@ export const ImportPreview: React.FC = ({
{/* Preview Data */}
{previewData && previewData.headers && previewData.headers.length > 0 ? (
-
-
+
+
{translate('::App.Listforms.ImportManager.DataPreviewTitle')}
-
+
-
+
- |
+ |
= ({
{previewData.headers.map((header: string, index: number) => (
|
{header}
|
))}
-
+
{previewData.rows.map((row: any[], rowIndex: number) => (
@@ -230,7 +230,7 @@ export const ImportPreview: React.FC = ({
{row.map((cell, cellIndex) => (
|
{cell?.toString() || '-'}
|
@@ -242,25 +242,25 @@ export const ImportPreview: React.FC = ({
) : previewData && previewData.headers && previewData.headers.length === 0 ? (
-
+
-
+
{translate('::App.Listforms.ImportManager.NoDataFoundTitle')}
-
+
{translate('::App.Listforms.ImportManager.NoDataFoundDescription')}
) : (
-
+
-
+
{translate('::App.Listforms.ImportManager.LoadingPreviewTitle')}
-
+
{translate('::App.Listforms.ImportManager.LoadingPreviewDescription')}
@@ -271,7 +271,7 @@ export const ImportPreview: React.FC = ({
{/* Success Message */}
{showSuccessMessage && lastExecutionResult && (
-
+
@@ -314,7 +314,7 @@ export const ImportPreview: React.FC = ({
- | |