fix(accounts): show email and add usage refresh button for OpenAI OAuth

- AccountsView: display email under account name by checking extra.email
  and credentials.email in addition to extra.email_address; OpenAI OAuth
  stores email under the 'email' key while Anthropic uses 'email_address'
- AccountUsageCell: add per-account refresh button to the OpenAI OAuth
  usage section, identical to the existing Anthropic OAuth pattern;
  reuses loadActiveUsage, activeQueryLoading, and the activeQuery i18n key
This commit is contained in:
chenjian committed 2026-05-19 15:43:13 +08:00
1 parent f5bd25bea0
commit 6db02f0069
2 files changed
+28 -4

No files matched your search

+3 -3
View File
@@ -214,11 +214,11 @@
<div class="flex flex-col">
<span class="font-medium text-gray-900 dark:text-white">{{ value }}</span>
<span
v-if="row.extra?.email_address"
v-if="row.extra?.email_address || row.extra?.email || row.credentials?.email"
class="text-xs text-gray-500 dark:text-gray-400 truncate max-w-[200px]"
:title="row.extra.email_address"
:title="String(row.extra?.email_address || row.extra?.email || row.credentials?.email)"
>
{{ row.extra.email_address }}
{{ row.extra?.email_address || row.extra?.email || row.credentials?.email }}
</span>
</div>
</template>