Rename OpenRouter Stats to OpenRouter Spend
Use a clearer title and a description that explains the granularity options shown in the settings form.
This commit is contained in:
6 files changed
+9
-9
No files matched your search
@@ -47,7 +47,7 @@ export default class OpenRouterUsageComponent extends Component {
|
||||
type="button"
|
||||
data-test-openrouter-usage
|
||||
{{on "click" this.openSettings}}
|
||||
aria-label="Edit OpenRouter Stats settings"
|
||||
aria-label="Edit OpenRouter Spend settings"
|
||||
class="cursor-pointer rounded-lg text-white text-shadow-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/70"
|
||||
>
|
||||
<div class="flex items-center gap-1.5">
|
||||
|
||||
@@ -41,7 +41,7 @@ export default class SettingsIntegrationsOpenRouterForm extends Component {
|
||||
}
|
||||
|
||||
get title() {
|
||||
return this.isEdit ? 'Edit OpenRouter Stats' : 'Add OpenRouter Stats';
|
||||
return this.isEdit ? 'Edit OpenRouter Spend' : 'Add OpenRouter Spend';
|
||||
}
|
||||
|
||||
get submitLabel() {
|
||||
|
||||
@@ -126,8 +126,8 @@ export const INTEGRATIONS = [
|
||||
},
|
||||
{
|
||||
id: 'openrouter',
|
||||
label: 'OpenRouter Stats',
|
||||
description: 'OpenRouter spend',
|
||||
label: 'OpenRouter Spend',
|
||||
description: 'Daily, weekly, or monthly',
|
||||
colorClass: 'bg-indigo-600',
|
||||
iconUrl: '/img/icons/openrouter.svg',
|
||||
// The glyph fills its square viewBox, so it needs to be inset rather than
|
||||
|
||||
@@ -182,7 +182,7 @@ const ADAPTERS = {
|
||||
{
|
||||
id: 'openrouter',
|
||||
type: 'openrouter',
|
||||
label: 'OpenRouter Stats',
|
||||
label: 'OpenRouter Spend',
|
||||
status: 'active',
|
||||
apiKey: this.openrouter.apiKey,
|
||||
keyIds: this.openrouter.keyIds,
|
||||
|
||||
@@ -54,7 +54,7 @@ module(
|
||||
const noop = () => {};
|
||||
await render(<template><OpenRouterForm @close={{noop}} /></template>);
|
||||
|
||||
assert.dom().containsText('Add OpenRouter Stats');
|
||||
assert.dom().containsText('Add OpenRouter Spend');
|
||||
assert.dom('#openrouter-key').exists();
|
||||
assert.dom('#openrouter-interval').exists();
|
||||
assert.dom('#openrouter-granularity').exists();
|
||||
@@ -213,7 +213,7 @@ module(
|
||||
</template>
|
||||
);
|
||||
|
||||
assert.dom().containsText('Edit OpenRouter Stats');
|
||||
assert.dom().containsText('Edit OpenRouter Spend');
|
||||
assert.dom('#openrouter-interval').containsText('Every 10 minutes');
|
||||
assert.dom('#openrouter-granularity').containsText('Today');
|
||||
|
||||
|
||||
@@ -253,8 +253,8 @@ module('Unit | Service | integrations', function (hooks) {
|
||||
assert.strictEqual(openrouterEntry.instances[0].granularity, 'today');
|
||||
|
||||
const row = service.rows.find((entry) => entry.type === 'openrouter');
|
||||
assert.strictEqual(row.label, 'OpenRouter Stats');
|
||||
assert.strictEqual(row.byline, 'OpenRouter spend');
|
||||
assert.strictEqual(row.label, 'OpenRouter Spend');
|
||||
assert.strictEqual(row.byline, 'Daily, weekly, or monthly');
|
||||
assert.true(row.iconInset);
|
||||
|
||||
await service.remove({ type: 'openrouter', id: 'openrouter' });
|
||||
|
||||
Reference in new issue
Block a user