Skip to content

Transactions feed #151

Merged
levhita merged 5 commits intodevelopfrom
transactions-feed
Sep 6, 2025
Merged

Transactions feed #151
levhita merged 5 commits intodevelopfrom
transactions-feed

Conversation

@mementablog
Copy link
Copy Markdown
Collaborator

Add transactions feed view with search functionality

image image image image

TODO: Implement filtering using a date range

@mementablog mementablog self-assigned this Sep 5, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new transactions feed view with search functionality, providing users with an alternative way to view transactions in a card-based layout. The changes reorganize the existing transactions view as a "Reports" section and introduce a new "Transactions Feed" that displays transactions as cards with search capabilities.

Key changes:

  • Reorganizes existing transactions view as "Reports"
  • Adds new transactions feed view with card-based layout and search functionality
  • Updates navigation to include both Reports and Transactions Feed options

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
frontend/src/router/index.js Updates routing to rename transactions route to reports and adds new transactions feed route
frontend/src/pages/transactionsFeed/TransactionsFeedView.vue Creates new transactions feed view with card layout and search functionality
frontend/src/pages/reports/TransactionsView.vue Refactors existing transactions view, removes draggable columns functionality and updates title
frontend/src/components/navbars/BookNavbar.vue Updates navigation to include both Reports and Transactions Feed menu items

const result = await transactionsStore.fetchTransactionsByBook(
booksStore.currentBook.id,
{
limit: 1000, // Fetch all transactions
Copy link

Copilot AI Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fetching 1000 transactions at once could cause performance issues with large datasets. Consider implementing pagination or lazy loading instead of loading all transactions upfront.

Copilot uses AI. Check for mistakes.
Comment on lines +248 to +250
if (newTransactions.length) {
console.log('Fetched transactions:', newTransactions);
}
Copy link

Copilot AI Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Console.log statements should be removed from production code. Consider using a proper logging system or removing this debug statement.

Suggested change
if (newTransactions.length) {
console.log('Fetched transactions:', newTransactions);
}
// Removed debug log for production

Copilot uses AI. Check for mistakes.
</label>
</div>
</div>
<!-- TODO : Include a DATE RANGE filter that takes an start and end dates and then filter all the transactions between them -->
Copy link

Copilot AI Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO comments should be tracked in a proper issue tracking system rather than left in production code. Consider creating a GitHub issue and removing this comment.

Suggested change
<!-- TODO : Include a DATE RANGE filter that takes an start and end dates and then filter all the transactions between them -->

Copilot uses AI. Check for mistakes.
@levhita levhita merged commit 39d8957 into develop Sep 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants