Add ASP.NET Core expense tracker prototype with voice-to-transaction UI#1
Add ASP.NET Core expense tracker prototype with voice-to-transaction UI#1aceofbase199 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b75e32b5e4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const currency = new Intl.NumberFormat("en-US", { | ||
| style: "currency", | ||
| currency: "USD", | ||
| maximumFractionDigits: 0, | ||
| }); |
There was a problem hiding this comment.
Preserve cents when formatting amounts
The formatter is configured with maximumFractionDigits: 0, so any value with cents is rounded to a whole dollar before display. That means a user-entered 24.90 will show as $25 (and the sample -4.5 shows as -$5), and the totals in the stats will be rounded the same way, which misrepresents the stored amounts. Since the form allows step="0.01", this is a visible accuracy bug for any non-integer input.
Useful? React with 👍 / 👎.
Motivation
Description
Program.cs) with sample in-memory transactions,GET /api/transactions,POST /api/transactions, and a stubPOST /api/transcribethat returns a suggestedTransactionSuggestionbased on the transcript.wwwrootincludingindex.html(layout and controls),styles.css(minimal UI styling), andapp.js(stats, filters, add flow, voice capture, transcription request and retry/confirm behavior).ExpenseTracker.csprojandappsettings.json, update.gitignore, updateREADME.mddescribing features anddotnet runusage, and remove the olddb.jsonplaceholder.Testing
dotnetwas not possible in this environment because the .NET SDK is not available, sodotnet runwas not executed.Codex Task