Repository navigation
Export a monthly cloud cost review - #84
Merged
Merged
Conversation
Closes #79 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 tasks
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.
Closes #79
Adds Export report to Overview on desktop. Pick a month and a file, and it saves one self-contained HTML file to read, print to PDF or share.
What's in the report
src/report.rsis pure composition, and every figure comes from a query the pages already read, so there is no second calculation. It carries no credentials or raw payloads, loads nothing external, and escapes all provider text. The same data and timestamp give the same bytes.Worth a look in review
CHANGELOG.mdconflicts with both, andsrc/ui/mod.rsconflicts with Reconcile invoices against the ledger #83. Both are adjacent additions, so keep both sides.exact_amountis copied unchanged from Freeze a billing period as an immutable month-end snapshot #82, sosrc/ui/fmt.rsmerges cleanly.Testing
Run locally on Windows against this branch:
cargo test: 574 passed, 2 ignored. New tests cover data gaps, credits and negative amounts, empty months, months in progress, partial scans, markup in provider text and identical output. Currency handling is covered only through formatting; the conversion itself happens in the existing queries.cargo clippy --all-targets -- -D warningsandcargo fmt --check: clean.cargo +nightly-2026-07-28 check --lib --target wasm32-unknown-unknown: passes. This is a type-check, not the fullbuild-web.sh.load_reportfor a closed month, an open month and an empty month. I read all three outputs. That run found the two problems above, the table total and the misleading percent. Both fixes came after it and are covered by unit tests, but I did not repeat the run.There is no committed test of
load_reportitself, because the ledger connection is global.Not tested in a real window. Nothing here has been clicked, and I haven't seen the HTML in a browser or a print preview. Please check on desktop, using demo data:
🤖 Generated with Claude Code