Skip to content

docs: update README with import pipeline, categorization, and ops crate - #898

Merged
robcohen merged 1 commit into
mainfrom
docs/update-readme-import-pipeline
Apr 23, 2026
Merged

robcohen merged 1 commit into
mainfrom
docs/update-readme-import-pipeline

Conversation

@robcohen

Copy link
Copy Markdown
Member

Summary

  • Add "Bank import" feature to "Why rustledger?" table
  • Expand rledger extract description in CLI Commands table
  • Add new "Import & Categorization" section covering CSV/OFX import, auto-detection, importers config, 3-tier categorization, transfer detection, duplicate detection, and balance reconciliation
  • Update crates table descriptions for rustledger-importer and rustledger-ops
  • Fix documentation links to point to correct paths in docs/reference/ and docs/guides/

Copilot AI review requested due to automatic review settings April 23, 2026 15:10
@robcohen
robcohen requested a review from a team as a code owner April 23, 2026 15:10
@codecov

codecov Bot commented Apr 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@robcohen
robcohen added this pull request to the merge queue Apr 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 99%
BQL Compatibility 100%
Full AST Match 99%
Total Files 782
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

Merged via the queue into main with commit da24a93 Apr 23, 2026
34 checks passed
@robcohen
robcohen deleted the docs/update-readme-import-pipeline branch April 23, 2026 15:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the top-level README to better document rustledger’s bank import pipeline, categorization capabilities, and to fix/modernize documentation links so new users can find the correct guides and references.

Changes:

  • Add “Bank import” to the “Why rustledger?” table and expand the rledger extract CLI description.
  • Add a new “Import & Categorization” section describing CSV/OFX import, importer config, dedup, categorization, transfers, and reconciliation.
  • Update crates table descriptions for rustledger-importer / rustledger-ops and fix documentation links to docs/reference/ and docs/guides/.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md

A 3-tier pipeline automatically categorizes transactions:

1. **Rules engine** — substring, regex, and exact match patterns from `importers.toml`

Copilot AI Apr 23, 2026

Copy link

Choose a reason for hiding this comment

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

The categorization tier-1 description is inaccurate: importers.toml currently only supports substring mappings via [importers.mappings]. Regex mappings and other enrichment options are available through the Rust CsvConfigBuilder API but are not exposed in importers.toml yet, so the README should either limit this bullet to substring mappings or explicitly call out that regex/exact-match rules are library-only for now.

Suggested change
1. **Rules engine** — substring, regex, and exact match patterns from `importers.toml`
1. **Rules engine** — substring mappings from `importers.toml` via `[importers.mappings]`

Copilot uses AI. Check for mistakes.
Comment thread README.md
A 3-tier pipeline automatically categorizes transactions:

1. **Rules engine** — substring, regex, and exact match patterns from `importers.toml`
2. **Merchant dictionary** — ~80 built-in patterns across 10 categories (grocery, dining, transport, subscriptions, etc.)

Copilot AI Apr 23, 2026

Copy link

Choose a reason for hiding this comment

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

The stated size of the built-in merchant dictionary (“~80 built-in patterns”) doesn’t match the implementation/docs elsewhere (the rustledger-ops merchant dictionary module describes ~150 patterns, and the extract command docs mention ~60). To avoid the README becoming stale, consider either updating this number to match the source-of-truth or rephrasing to something less exact (e.g., “dozens of built-in patterns”).

Suggested change
2. **Merchant dictionary** — ~80 built-in patterns across 10 categories (grocery, dining, transport, subscriptions, etc.)
2. **Merchant dictionary** — dozens of built-in patterns across multiple categories (grocery, dining, transport, subscriptions, etc.)

Copilot uses AI. Check for mistakes.
Comment thread README.md
rledger extract --importer chase chase-statement.csv
```

Config is searched in: current directory, `~/.config/rledger/importers.toml`, or via `--config`.

Copilot AI Apr 23, 2026

Copy link

Choose a reason for hiding this comment

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

The config discovery description is a bit misleading: when --config is provided it’s treated as an explicit path (and errors if missing), otherwise the search order is current directory importers.toml then ~/.config/rledger/importers.toml. Consider clarifying the precedence/order here to match the actual behavior.

Suggested change
Config is searched in: current directory, `~/.config/rledger/importers.toml`, or via `--config`.
If `--config` is provided, `rledger` uses that exact path and errors if it does not exist. Otherwise, it searches for `importers.toml` in the current directory first, then `~/.config/rledger/importers.toml`.

Copilot uses AI. Check for mistakes.
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