fix(agy): drop the Antigravity-only note on the usage page

No other app shows a pricing note above the usage tables, although
Codex, Gemini and the rest also estimate session-log amounts from API
prices. Remove the note, its locale key and the test that pinned it.
This commit is contained in:
Jason committed 2026-10-21 17:04:27 +08:00
1 parent 276eff8dce
commit e91689f2da
6 files changed
+4 -43

No files matched your search

-6
View File
@@ -758,12 +758,6 @@ export function UsageDashboard({
controls="usage-tabpanel"
trailing={tabTrailing}
/>
{appType === "agy" && (
<p className="px-6 py-3 text-sm text-fg-2" role="note">
{t("usage.agyUsageHint")}
</p>
)}
<div
role="tabpanel"
id="usage-tabpanel"
+1 -2
View File
@@ -2548,8 +2548,7 @@
"cacheWrite": "Cache write"
},
"prevMonth": "Previous month",
"nextMonth": "Next month",
"agyUsageHint": "Antigravity shows the raw tokens from its session logs, priced at the matching Gemini API rates. Official subscriptions are billed by plan, so these amounts are for reference only. Older entries without a model are recorded as unknown and not priced."
"nextMonth": "Next month"
},
"usageScript": {
"title": "Configure Usage Query",
+1 -2
View File
@@ -2548,8 +2548,7 @@
"cacheWrite": "キャッシュ書き込み"
},
"prevMonth": "前月",
"nextMonth": "翌月",
"agyUsageHint": "Antigravity はセッションログの生のトークン数を表示し、金額は対応する Gemini API の価格で見積もります。公式サブスクリプションはプランで課金されるため、金額は参考値です。モデルが記録されていない過去の項目は unknown として扱い、金額は計上しません。"
"nextMonth": "翌月"
},
"usageScript": {
"title": "利用状況を設定",
+1 -2
View File
@@ -2549,8 +2549,7 @@
"cacheWrite": "快取寫入"
},
"prevMonth": "上個月",
"nextMonth": "下個月",
"agyUsageHint": "Antigravity 顯示工作階段日誌裡的原始 Token,金額按對應的 Gemini API 價格估算;官方訂閱按方案計費,這裡的金額僅供參考。缺少模型的歷史記錄記為 unknown,不計金額。"
"nextMonth": "下個月"
},
"usageScript": {
"title": "設定用量查詢",
+1 -2
View File
@@ -2548,8 +2548,7 @@
"cacheWrite": "缓存写入"
},
"prevMonth": "上个月",
"nextMonth": "下个月",
"agyUsageHint": "Antigravity 显示会话日志里的原始 Token,金额按对应的 Gemini API 价格估算;官方订阅按套餐计费,这里的金额只作参考。缺失的历史模型记为 unknown,不计金额。"
"nextMonth": "下个月"
},
"usageScript": {
"title": "配置用量查询",
-29
View File
@@ -1,38 +1,9 @@
import { createInstance } from "i18next";
import { describe, expect, it } from "vitest";
import en from "@/i18n/locales/en.json";
import ja from "@/i18n/locales/ja.json";
import zh from "@/i18n/locales/zh.json";
import zhTW from "@/i18n/locales/zh-TW.json";
describe("Antigravity usage limitations", () => {
it.each(["en", "ja", "zh", "zh-TW"])(
"resolves the dashboard hint from real %s resources",
async (lng) => {
const i18n = createInstance();
await i18n.init({
lng,
fallbackLng: "en",
resources: {
en: { translation: en },
ja: { translation: ja },
zh: { translation: zh },
"zh-TW": { translation: zhTW },
},
});
const text = i18n.t("usage.agyUsageHint");
const expected = { en, ja, zh, "zh-TW": zhTW }[
lng as "en" | "ja" | "zh" | "zh-TW"
];
expect(text).toBe(expected.usage.agyUsageHint);
expect(text).toContain("unknown");
// 金额按 Gemini API 价格估算,不再是写死的 0
expect(text).toContain("Gemini API");
expect(text).not.toBe("usage.agyUsageHint");
},
);
});
describe("Antigravity locale parity", () => {
const locales = { en, ja, zh, "zh-TW": zhTW } as Record<string, unknown>;
const collect = (node: unknown, path: string, out: string[]) => {