feat(split-meow): 搶救每筆支出幣別與匯率快照#445
Merged
Merged
Conversation
- 從被 PR433 取代的 governance 分支搶救 split-meow 幣別快照功能(原 commit 87fcbe3) - ExpenseRecord 保存記帳當下 currency 與 exchangeRateKrwPerTwd 快照 - HistoryTab 個別金額用各筆快照幣別、KRW 副標即時換算 TWD、彙總結算採 trip 主導幣別 - currencies.test 合併 main 完整版(detectCurrencyFromTimezone)與 formatKrwAsTwd 測試 - 補 002:split-meow 幣別快照與 PR426 SW bounded-nav 稽核條目(本次 +2,累計 +68) 測試:split-meow vitest 175/175 通過、typecheck 通過 Generated with Claude Code via Happy Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e814a9bbf
ℹ️ 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".
Comment on lines
+183
to
+185
| const tripCurrency: CurrencyCode = tripExpenses[tripExpenses.length - 1]?.currency ?? currency; | ||
| // 取得單筆記錄的顯示幣別(優先使用記帳當下快照,舊資料 fallback 主導幣別)。 | ||
| const expenseCurrency = (exp: ExpenseRecord): CurrencyCode => exp.currency ?? tripCurrency; |
| </span> | ||
| <h2 className="text-4xl font-medium text-on-surface tracking-tight"> | ||
| {formatAmount(totalSpent, currency)} | ||
| {formatAmount(totalSpent, tripCurrency)} |
There was a problem hiding this comment.
This was referenced Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
摘要
搶救因 governance 分支被 PR #433 取代而遺失的 split-meow 每筆支出幣別+匯率快照功能(原 commit
87fcbe30,原屬已關閉路徑的 #411)。背景
chore/ratewise-production-governance(chore(ratewise): 生產治理 — PWA precache-first、ETag 修復、SEO 治理 #411)完成 + Playwright QA 驗收變更
ExpenseRecord新增currency+exchangeRateKrwPerTwd快照欄位,記帳時保存HistoryTab個別金額用各筆快照幣別、KRW 副標即時換算 TWD、彙總/結算採 trip 主導幣別 fallbackformatKrwAsTwdhelper;currencies.test合併 main 完整版 + formatKrwAsTwd 測試驗證
🤖 Generated with Claude Code