Skip to content

Conversation

@BadPirate
Copy link
Owner

No description provided.

Codex CLI added 7 commits April 26, 2025 12:30
# Conflicts:
#	.eslintignore
#	.gitignore
#	.prettierignore
#	CONTRIBUTING.md
#	README.md
#	codex.md
#	package.json
#	prisma/models.prisma
#	src/cards/WelcomeCard.tsx
#	src/components/Page.tsx
#	src/components/RootNav.tsx
#	src/services/db/index.ts
#	yarn.lock
@BadPirate BadPirate requested a review from Copilot April 27, 2025 01:03
Copy link

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 introduces enhancements for transaction processing and account management. Key changes include explicit type annotations and date handling improvements in transaction queries, updated logic for handling interest and allowance calculations, and API route modifications to support both JSON responses and redirection for form POSTs. Additionally, new e2e tests and updated documentation provide improved test coverage and developer guidance.

Reviewed Changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/services/db/transactions.ts Added explicit type annotation and enhanced date conversion logic.
src/services/db/financials.ts Improved interest/allowance calculation and guard conditions.
scripts/build-schemas.js Removed custom output path to let Prisma use its default configuration.
pages/api/manage/[userid]/update.ts Updated API to support redirection for POST requests and JSON for others.
pages/api/manage/[userid]/transaction.ts Adjusted transaction amount logic and unified redirection behavior.
e2e/update-account.spec.ts and e2e/transaction.spec.ts Added comprehensive end-to-end tests for account updates and transactions.
README.md and CONTRIBUTING.md Expanded testing instructions.
Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

pages/api/manage/[userid]/transaction.ts:24

  • Using Math.abs forces the transaction amount to be positive even for 'add' actions. If a negative amount is intentionally provided for non-subtract actions, this change may inadvertently alter behavior. Consider verifying whether the absolute value is always desired.
let amount = Math.abs(typeof amtRaw === 'string' ? parseFloat(amtRaw) : amtRaw)

Codex CLI added 2 commits April 26, 2025 18:14
@BadPirate BadPirate merged commit 66a9473 into main Jun 5, 2025
1 check 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.

2 participants