Skip to content

docs: document display themes and display config keys - #107

Merged
nazozokc merged 23 commits into
mainfrom
AI-agent
Aug 19, 2026
Merged

docs: document display themes and display config keys#107
nazozokc merged 23 commits into
mainfrom
AI-agent

Conversation

@nazozokc

Copy link
Copy Markdown
Owner

Summary

Documentation for the display theming feature (merged in #106).

  • commands.md: add the new display config keys (tableBorderColor, tableHeaderColor, tableZebraColor, accentColor, tableZebra, tableMinWidth, dateFormat, listShowNotes, listShowMethod) to the config reference, and describe theme presets, color names, and precedence rules
  • guides.md: add a "Customizing the display" section with practical examples (theme presets, color overrides, table sizing, date format, list columns)

Docs site builds cleanly with VitePress.

nazozokc and others added 23 commits August 16, 2026 14:30
The CSV export writes a 16-column header (status, payment_method,
contract dates, vendor, discount, ...) that import rejected, breaking
the export -> import roundtrip. Parse the header by column name and
validate/preserve the optional fields.
getLlmUsageTotal returns USD cents, but compare --api and
payment --currency --api passed the value straight to convertPrice /
formatPrice, which expect major units — overstating API cost ~100x
(e.g. $0.0075 displayed as $1). Also fix the compare divider row to
span the full table width via colSpan.
bulk status and bulk delete support --force for non-interactive use,
but bulk tag add/remove always prompted for confirmation, making them
unusable in scripts. Add -f/--force and thread it through.
tsc --noEmit picked up stale .d.mts files in dist/ referencing
hashed .mjs outputs, failing lint:types with TS6053.
- Remove dead barrel (subscription.ts) and empty source directories
- Centralize date helpers (toDate, formatDate, daysUntil, month names, pad2)
- Add fx helpers (convertSubsWithRates, tryConvert) for subscription conversion
- Extract pre-command hooks (autoScan + notification banner) into pre-command.ts
- Add getNonCancelledSubscriptions db helper
- Extract restoreFromFile and safePath/safeOutputPath helpers
- Unify table column width calculation in display.ts
- Drop unused imports and dead exports
Add a named-color theme system driven by config:
- theme presets (default, light, high-contrast, none) plus per-key
  overrides for border, header, zebra, and accent colors
- tableZebra on/off, tableMinWidth, dateFormat, and default list
  columns (listShowNotes, listShowMethod) as config keys
- unified section headings, status colors, total-row emphasis,
  USD cost formatting, and FX-failure messaging across modules
- shared column-width calculation for all cli-table3 tables
- menu header showing version, subscription count, and DB path
- docs: document display config keys and themes
getDbDir() returned SUBSC_CLI_DB_DIR verbatim, so on Windows
path.join() produced backslash paths from a forward-slash env value
(e.g. \tmp\... from /tmp/...), breaking path containment checks
in tests and causing inconsistent paths at runtime.
- commands.md: add new display config keys to the config table and
  describe theme presets, color overrides, dateFormat, and list
  default columns
- guides.md: add a Customizing the display section with examples
@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@nazozokc, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 28 minutes

Limit details: You’ve used all 1 included review currently available under your plan.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3ed830b7-b570-48ca-ae05-a98e3bbc6c96

📥 Commits

Reviewing files that changed from the base of the PR and between 6720e32 and 4ee13c3.

📒 Files selected for processing (34)
  • apps/subtrack/src/__tests__/commands.test.ts
  • apps/subtrack/src/__tests__/config.test.ts
  • apps/subtrack/src/__tests__/display-constants.test.ts
  • apps/subtrack/src/__tests__/display.test.ts
  • apps/subtrack/src/analytics.ts
  • apps/subtrack/src/audit.ts
  • apps/subtrack/src/budget.ts
  • apps/subtrack/src/calendar.ts
  • apps/subtrack/src/cancel.ts
  • apps/subtrack/src/color.ts
  • apps/subtrack/src/compare.ts
  • apps/subtrack/src/config.ts
  • apps/subtrack/src/currency.ts
  • apps/subtrack/src/db/connection.ts
  • apps/subtrack/src/display-constants.ts
  • apps/subtrack/src/display.ts
  • apps/subtrack/src/export.ts
  • apps/subtrack/src/forecast.ts
  • apps/subtrack/src/menu.ts
  • apps/subtrack/src/notify.ts
  • apps/subtrack/src/payment.ts
  • apps/subtrack/src/price.ts
  • apps/subtrack/src/report.ts
  • apps/subtrack/src/stats.ts
  • apps/subtrack/src/subscription/core.ts
  • apps/subtrack/src/trial.ts
  • apps/subtrack/src/types.ts
  • apps/subtrack/src/usage-add.ts
  • apps/subtrack/src/usage-total.ts
  • apps/subtrack/src/usage.ts
  • apps/subtrack/vitest.config.ts
  • docs/commands.md
  • docs/configuration.md
  • docs/guides.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nazozokc
nazozokc merged commit 982e459 into main Aug 19, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant