Commit 1d5fbb7
Analyze and remove usage cost rounding (#198)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Standardizes currency display to exactly 2 decimals, shows vCPU/RAM
with two-decimal precision in usage, and lowercases the add-on price
label.
>
> - **Formatting Utilities**:
> - `formatCurrency`: now enforces exactly 2 decimal places.
> - `formatNumber`: adds `maxFractionDigits` parameter (default 0) for
configurable precision.
> - **Usage Display**:
> - Shows `vcpu` and `ram` values with two decimal places in
`formatHoveredValues` and `formatTotalValues`.
> - **Billing UI**:
> - Lowercases add-on price label text in
`concurrent-sandboxes-addon-section.tsx`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
58b7f39. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Cursor Agent <[email protected]>1 parent 728a4f3 commit 1d5fbb7
File tree
3 files changed
+14
-8
lines changed- src
- features/dashboard
- billing
- usage
- lib/utils
3 files changed
+14
-8
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | | - | |
| 229 | + | |
225 | 230 | | |
226 | 231 | | |
227 | 232 | | |
| |||
421 | 426 | | |
422 | 427 | | |
423 | 428 | | |
| 429 | + | |
424 | 430 | | |
425 | 431 | | |
426 | 432 | | |
| |||
434 | 440 | | |
435 | 441 | | |
436 | 442 | | |
437 | | - | |
| 443 | + | |
438 | 444 | | |
439 | 445 | | |
440 | 446 | | |
0 commit comments