Skip to content

feat(billing): add demo equivalences config for the nav compute gauge#3899

Merged
PierreBrisorgueil merged 2 commits into
masterfrom
feat/billing-equivalences-demo-config
Jun 18, 2026
Merged

feat(billing): add demo equivalences config for the nav compute gauge#3899
PierreBrisorgueil merged 2 commits into
masterfrom
feat/billing-equivalences-demo-config

Conversation

@PierreBrisorgueil

Copy link
Copy Markdown
Contributor

What

Ship a neutral devkit demo billing.equivalences config so the Vue nav compute-gauge renders its capacity-chip estimate out of the box, and the serverConfig.billing.equivalences contract is documented in config.

How

  • Adds an illustrative billing.equivalences array (easy operations / heavy operations) to the billing module config.
  • No code changemodules/auth/controllers/auth.controller.js already serves config.billing?.equivalences ?? null verbatim to the client.
  • Downstream projects override with their own kinds / labels / unit costs (or omit the block → the gauge shows raw units only). Entry shape: { kind:'easy'|'hard', unitCost:number>0, label:string }.

Supports pierreb-devkit/Vue#4349.

Ships a neutral devkit demo billing.equivalences block so the Vue nav
compute-gauge renders its capacity-chip estimate out of the box and the
serverConfig.billing.equivalences contract is documented in config. The auth
config endpoint already serves this key verbatim; downstream projects override
with their own kinds/labels/unit costs (or omit it -> gauge shows raw units).

Supports pierreb-devkit/Vue#4349.
Copilot AI review requested due to automatic review settings June 18, 2026 14:33
@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@PierreBrisorgueil, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 46 minutes and 49 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

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 credits.

🚦 How do rate limits work?

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

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, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: fd662200-8508-4936-9103-9ada6294632b

📥 Commits

Reviewing files that changed from the base of the PR and between b55719b and 308c4db.

📒 Files selected for processing (1)
  • modules/billing/config/billing.development.config.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/billing-equivalences-demo-config

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 and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a devkit-default billing.equivalences configuration (and inline documentation) so the Vue nav compute gauge can render capacity equivalence estimates out-of-the-box via serverConfig.billing.equivalences.

Changes:

  • Add demo billing.equivalences entries (easy/hard) with example unit costs and labels.
  • Document the expected shape/behavior of serverConfig.billing.equivalences in the billing module config.

Comment thread modules/billing/config/billing.development.config.js Outdated
@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.66%. Comparing base (e4d7241) to head (308c4db).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3899   +/-   ##
=======================================
  Coverage   92.66%   92.66%           
=======================================
  Files         169      169           
  Lines        5535     5535           
  Branches     1778     1777    -1     
=======================================
  Hits         5129     5129           
  Misses        326      326           
  Partials       80       80           
Flag Coverage Δ
integration 61.12% <ø> (ø)
unit 74.23% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b55719b...308c4db. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…ault

Correct the comment: the block ships as the billing base config, so omitting it
downstream inherits the demo values — disable explicitly with [] / null. Drop the
'~' from the example to match the exact integer counts the gauge renders.
@PierreBrisorgueil PierreBrisorgueil merged commit 7a26112 into master Jun 18, 2026
8 checks passed
@PierreBrisorgueil PierreBrisorgueil deleted the feat/billing-equivalences-demo-config branch June 18, 2026 14:59
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