Files
paseo/packages/app/src/usage/copy.ts
T
Mohamed Boudra ff9b09b210 feat(usage): open the pill popover from cache and refresh on demand
Opening the popover no longer forces a vendor fetch; it shows the cached
report. A Refresh control force-refreshes only this report
(usage.list_reports with its single ID and forceRefresh), shows
Refreshing... while it runs, keeps the previous report visible, and says
"Unable to refresh usage" if the request fails.
2026-09-27 12:41:45 +02:00

19 lines
622 B
TypeScript

// User-facing copy for the usage surfaces, kept in one file so localization is a
// single-file change.
export const usageCopy = {
title: "Usage",
planUsage: "Plan usage",
refresh: "Refresh",
refreshing: "Refreshing...",
refreshFailed: "Unable to refresh usage",
updated: "Updated",
loading: "Loading usage...",
empty: "No usage data",
noHosts: "No connected hosts",
errorTitle: "Unable to load usage",
hostUnavailable: "Connect to this host to see usage",
hostUpgradeRequired: "Update the host to see usage",
clientUnavailable: "Host connection is not ready",
retry: "Try again",
} as const;