@tmustier/pi-usage-extension 0.8.0 → 0.8.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/data.ts +4 -4
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.8.1] - 2026-07-17
4
+
5
+ ### Changed
6
+ - **Consistent units.** Every alarm in “Worth attention” now leads with dollars (the act-or-ignore number), with the period share in the dimmed parenthetical; “Where it went” keeps percentages (shares of the pie). Session concentration and upfront tax previously led with %.
7
+
3
8
  ## [0.8.0] - 2026-07-17
4
9
 
5
10
  ### Changed
package/data.ts CHANGED
@@ -1093,8 +1093,8 @@ function computeInsights(raw: PeriodRawData, trend: TrendInfo | null): PeriodIns
1093
1093
  if (topPct >= CONCENTRATION_ALARM_PERCENT) {
1094
1094
  insights.push({
1095
1095
  kind: "alarm",
1096
- stat: fmtPercent(topPct),
1097
- headline: `of this period's cost came from just ${TOP_SESSION_COUNT} sessions (of ${raw.sessionCosts.size})`,
1096
+ stat: fmtMoney(topWeight),
1097
+ headline: `came from just ${TOP_SESSION_COUNT} of your ${raw.sessionCosts.size} sessions (${fmtPercent(topPct)} of this period)`,
1098
1098
  advice: "A handful of sessions drove most of the spend. The graph view can show what they were doing.",
1099
1099
  });
1100
1100
  }
@@ -1104,8 +1104,8 @@ function computeInsights(raw: PeriodRawData, trend: TrendInfo | null): PeriodIns
1104
1104
  if (upfrontPct >= UPFRONT_ALARM_PERCENT) {
1105
1105
  insights.push({
1106
1106
  kind: "alarm",
1107
- stat: fmtPercent(upfrontPct),
1108
- headline: "of cost went on the opening message of new sessions",
1107
+ stat: fmtMoney(raw.upfrontCost),
1108
+ headline: `spent on the opening message of new sessions (${fmtPercent(upfrontPct)} of this period)`,
1109
1109
  advice: "A session's first message sends everything from scratch. Fewer, longer sessions cut this overhead.",
1110
1110
  });
1111
1111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmustier/pi-usage-extension",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Usage statistics dashboard for Pi sessions.",
5
5
  "license": "MIT",
6
6
  "author": "Thomas Mustier",