quotacap 0.0.50 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by scripts/build-embed.mjs — do not edit
|
|
2
|
-
export const VERSION = "0.0.
|
|
2
|
+
export const VERSION = "0.0.51";
|
|
@@ -194,11 +194,16 @@ export function rankingCopy(provider, recommendation) {
|
|
|
194
194
|
}
|
|
195
195
|
else {
|
|
196
196
|
const { avg, recent } = paceFigures(advisory);
|
|
197
|
+
// Both figures are null on a fresh window with a history baseline:
|
|
198
|
+
// avgPace needs 6h elapsed and recentRate needs a 24h span, while
|
|
199
|
+
// burnRate (non-null past the guard above) carries the forecast.
|
|
197
200
|
const figures = avg !== null && recent !== null && avg.toFixed(1) !== recent.toFixed(1)
|
|
198
201
|
? `${avg.toFixed(1)}%/day window average and ${recent.toFixed(1)}%/day over the last 24h`
|
|
199
202
|
: avg !== null
|
|
200
203
|
? `${avg.toFixed(1)}%/day window average`
|
|
201
|
-
:
|
|
204
|
+
: recent !== null
|
|
205
|
+
? `${recent.toFixed(1)}%/day over the last 24h`
|
|
206
|
+
: `${advisory.burnRate.toFixed(1)}%/day forecast pace`;
|
|
202
207
|
const ideal = `${advisory.idealRate.toFixed(1)}%/day`;
|
|
203
208
|
pace =
|
|
204
209
|
advisory.status === "at risk"
|