diff --git a/package.json b/package.json index 05650bb..3c9f1de 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "wealthfolio-app", "private": true, - "version": "1.0.19", + "version": "1.0.20", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index b550c86..83858b3 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -5084,7 +5084,7 @@ dependencies = [ [[package]] name = "wealthfolio-app" -version = "1.0.19" +version = "1.0.20" dependencies = [ "chrono", "csv", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 95d67ce..cb77976 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wealthfolio-app" -version = "1.0.19" +version = "1.0.20" description = "Portfolio tracker" authors = ["Aziz Fadil"] license = "LGPL-3.0" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3253cea..5f52ee5 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -21,7 +21,7 @@ }, "productName": "Wealthfolio", "mainBinaryName": "Wealthfolio", - "version": "1.0.19", + "version": "1.0.20", "identifier": "com.teymz.wealthfolio", "plugins": { "updater": { diff --git a/src/commands/activity-import.ts b/src/commands/activity-import.ts index 520abbd..51534fe 100644 --- a/src/commands/activity-import.ts +++ b/src/commands/activity-import.ts @@ -28,7 +28,6 @@ export const createActivities = async (activities: NewActivity[]): Promise -
- {/* Sticky Header */} -
- - - - - # +
+
+
+ + + + # + + {importFormatFields.map((field) => ( + + {renderHeaderCell({ + field, + mapping, + headers, + handleColumnMapping, + })} - {importFormatFields.map((field) => ( - - {renderHeaderCell({ - field, - mapping, - headers, - handleColumnMapping, - })} - - ))} - - -
-
- - {/* Scrollable Body */} -
- - - {rowsToShow.map((rowNum) => { - const row = csvData[rowNum - 1]; - return ( - - - {rowNum} + ))} + + + + {rowsToShow.map((rowNum) => { + const row = csvData[rowNum - 1]; + return ( + + + {rowNum} + + {importFormatFields.map((field) => ( + + {renderCell({ + field, + row, + mapping, + getMappedValue, + handleActivityTypeMapping, + handleSymbolMapping, + invalidSymbols, + })} - {importFormatFields.map((field) => ( - - {renderCell({ - field, - row, - mapping, - getMappedValue, - handleActivityTypeMapping, - handleSymbolMapping, - invalidSymbols, - })} - - ))} - - ); - })} - -
-
+ ))} + + ); + })} + +
); diff --git a/src/pages/activity/import/components/import-mapping-table-cells.tsx b/src/pages/activity/import/components/import-mapping-table-cells.tsx index cabf121..816ddb3 100644 --- a/src/pages/activity/import/components/import-mapping-table-cells.tsx +++ b/src/pages/activity/import/components/import-mapping-table-cells.tsx @@ -41,7 +41,7 @@ export function renderHeaderCell({ return (
-
+
{field}
{isEditing ? ( @@ -53,7 +53,7 @@ export function renderHeaderCell({ value={mappedHeader || SKIP_FIELD_VALUE} onOpenChange={(open) => !open && setEditingHeader(null)} > - + @@ -76,7 +76,7 @@ export function renderHeaderCell({ + {mapping.accountId && selectedFile && isMapComplete() && ( + - {mapping.accountId && selectedFile && isMapComplete() && ( - - )} - {mapping.accountId && selectedFile && !isMapComplete() && ( -

- - Please map all columns and activity types before importing. -

- )} -
+ )} + {mapping.accountId && selectedFile && !isMapComplete() && ( +

+ + Please map all columns and activity types before importing. +

+ )}
); diff --git a/src/pages/asset/useAssetProfileMutations.ts b/src/pages/asset/useAssetProfileMutations.ts index c940605..d70deb8 100644 --- a/src/pages/asset/useAssetProfileMutations.ts +++ b/src/pages/asset/useAssetProfileMutations.ts @@ -26,7 +26,6 @@ export const useAssetProfileMutations = () => { const updateAssetProfileMutation = useMutation({ mutationFn: updateAssetProfile, onSuccess: (result) => { - console.log('Asset profile update result:', result); handleSuccess('Asset profile updated successfully.', result.id); }, onError: (error) => {