Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request focuses on refactoring and improving the
messages
andstorage
modules by introducing a newsaveStats
module, updating test snapshots, and enhancing transaction summaries to include details about foreign transactions.The most important changes include the creation of the
saveStats
module, modifications to themessages
module, and updates to the storage implementations.Refactoring and Enhancements:
New
saveStats
Module:createSaveStats
andstatsString
functions to handle the creation and formatting of save statistics. (src/saveStats.ts
)Modifications to
messages
Module:getSummaryMessages
to include foreign currency transactions in the summary. (src/messages.ts
)saved
function and moved related logic to thesaveStats
module. (src/messages.ts
)Updates to Storage Implementations:
AzureDataExplorerStorage
andBuxferStorage
to use the newcreateSaveStats
function. (src/storage/azure-data-explorer.ts
,src/storage/buxfer.ts
) [1] [2]Test Updates:
Snapshot Updates:
src/__snapshots__/messages.test.ts.snap
) [1] [2] [3]Test Refactoring:
messages.test.ts
to use the newcreateSaveStats
function and updated the test cases accordingly. (src/messages.test.ts
) [1] [2] [3] [4] [5] [6] [7] [8]Code Cleanup:
src/storage/azure-data-explorer.ts
,src/storage/buxfer.ts
,src/storage/index.ts
) [1] [2] [3]