adjust the display order of anomaly groups

This commit is contained in:
MaysWind
2026-04-19 01:53:45 +08:00
parent b9b210c591
commit 124962a4f4
+6 -6
View File
@@ -562,7 +562,7 @@ export const useExplorersStore = defineStore('explorers', () => {
categoryNameNeedI18n: !transaction.sourceAccount.currency, categoryNameNeedI18n: !transaction.sourceAccount.currency,
categoryId: transaction.sourceAccount.currency || 'unknown', categoryId: transaction.sourceAccount.currency || 'unknown',
categoryIdType: TransactionExplorerDimensionType.Other, categoryIdType: TransactionExplorerDimensionType.Other,
categoryDisplayOrders: [currencyDisplayOrders[transaction.sourceAccount.currency] || 0] categoryDisplayOrders: [currencyDisplayOrders[transaction.sourceAccount.currency] || Number.MAX_SAFE_INTEGER]
}; };
} else if (dimension === TransactionExplorerDataDimension.DestinationAccount) { } else if (dimension === TransactionExplorerDataDimension.DestinationAccount) {
const primaryAccount = accountsStore.allAccountsMap[transaction.destinationAccount?.parentId ?? ''] ?? transaction.destinationAccount; const primaryAccount = accountsStore.allAccountsMap[transaction.destinationAccount?.parentId ?? ''] ?? transaction.destinationAccount;
@@ -584,7 +584,7 @@ export const useExplorersStore = defineStore('explorers', () => {
categoryNameNeedI18n: true, categoryNameNeedI18n: true,
categoryId: transaction.type === TransactionType.Transfer ? (accountCategory?.name || 'unknown') : 'none', categoryId: transaction.type === TransactionType.Transfer ? (accountCategory?.name || 'unknown') : 'none',
categoryIdType: TransactionExplorerDimensionType.Other, categoryIdType: TransactionExplorerDimensionType.Other,
categoryDisplayOrders: transaction.type === TransactionType.Transfer ? [accountCategoryDisplayOrder] : [0] categoryDisplayOrders: transaction.type === TransactionType.Transfer ? [accountCategoryDisplayOrder] : [Number.MAX_SAFE_INTEGER]
}; };
} else if (dimension === TransactionExplorerDataDimension.DestinationAccountCurrency) { } else if (dimension === TransactionExplorerDataDimension.DestinationAccountCurrency) {
return { return {
@@ -592,7 +592,7 @@ export const useExplorersStore = defineStore('explorers', () => {
categoryNameNeedI18n: transaction.type !== TransactionType.Transfer || !transaction.destinationAccount?.currency, categoryNameNeedI18n: transaction.type !== TransactionType.Transfer || !transaction.destinationAccount?.currency,
categoryId: transaction.type === TransactionType.Transfer ? (transaction.destinationAccount?.currency || 'unknown') : 'none', categoryId: transaction.type === TransactionType.Transfer ? (transaction.destinationAccount?.currency || 'unknown') : 'none',
categoryIdType: TransactionExplorerDimensionType.Other, categoryIdType: TransactionExplorerDimensionType.Other,
categoryDisplayOrders: transaction.type === TransactionType.Transfer ? [currencyDisplayOrders[transaction.destinationAccount?.currency ?? ''] || 0] : [0] categoryDisplayOrders: transaction.type === TransactionType.Transfer ? [currencyDisplayOrders[transaction.destinationAccount?.currency ?? ''] || Number.MAX_SAFE_INTEGER] : [Number.MAX_SAFE_INTEGER]
}; };
} else if (dimension === TransactionExplorerDataDimension.PrimaryCategory) { } else if (dimension === TransactionExplorerDataDimension.PrimaryCategory) {
return { return {
@@ -615,7 +615,7 @@ export const useExplorersStore = defineStore('explorers', () => {
categoryNameNeedI18n: true, categoryNameNeedI18n: true,
categoryId: 'none', categoryId: 'none',
categoryIdType: TransactionExplorerDimensionType.Other, categoryIdType: TransactionExplorerDimensionType.Other,
categoryDisplayOrders: [0] categoryDisplayOrders: [Number.MAX_SAFE_INTEGER]
}; };
} }
@@ -629,7 +629,7 @@ export const useExplorersStore = defineStore('explorers', () => {
categoryNameNeedI18n: true, categoryNameNeedI18n: true,
categoryId: 'unknown', categoryId: 'unknown',
categoryIdType: TransactionExplorerDimensionType.Other, categoryIdType: TransactionExplorerDimensionType.Other,
categoryDisplayOrders: [0] categoryDisplayOrders: [Number.MAX_SAFE_INTEGER]
}; };
} }
@@ -644,7 +644,7 @@ export const useExplorersStore = defineStore('explorers', () => {
categoryNameNeedI18n: true, categoryNameNeedI18n: true,
categoryId: 'unknown', categoryId: 'unknown',
categoryIdType: TransactionExplorerDimensionType.Other, categoryIdType: TransactionExplorerDimensionType.Other,
categoryDisplayOrders: [0] categoryDisplayOrders: [Number.MAX_SAFE_INTEGER]
}; };
} }
} }