diff --git a/frontend/src/views/accounts/components/AccountIdentityCell.vue b/frontend/src/views/accounts/components/AccountIdentityCell.vue
index f1706d3df..469d2b3c6 100644
--- a/frontend/src/views/accounts/components/AccountIdentityCell.vue
+++ b/frontend/src/views/accounts/components/AccountIdentityCell.vue
@@ -18,15 +18,11 @@ const props = withDefaults(
size?: 'md' | 'lg'
showPlan?: boolean
showNotes?: boolean
- metaPosition?: 'title' | 'secondary'
- metaSize?: 'xs' | 'sm'
}>(),
{
size: 'md',
showPlan: false,
showNotes: false,
- metaPosition: 'title',
- metaSize: 'sm',
},
)
@@ -68,10 +64,6 @@ const avatarSizeClass = computed(() =>
: 'size-9 text-z',
)
-const metaGapClass = computed(() => props.metaSize === 'xs'
- ? 'gap-1'
- : 'gap-1.5')
-
const avatarToneClass = computed(() => {
const identity = props.account.id || props.account.email || displayTitle.value
return stablePresetVisualToneClass(identity)
@@ -91,25 +83,10 @@ const avatarToneClass = computed(() => {
{{ displayTitle }}
-
-
-
-
-
-
[
-
+
{{ t('accounts.quotaForecast.usedThisCycle') }}
diff --git a/frontend/src/views/accounts/components/account-quota-forecast-modal/Skeleton.vue b/frontend/src/views/accounts/components/account-quota-forecast-modal/Skeleton.vue
index d8548fd0d..4e16a98d7 100644
--- a/frontend/src/views/accounts/components/account-quota-forecast-modal/Skeleton.vue
+++ b/frontend/src/views/accounts/components/account-quota-forecast-modal/Skeleton.vue
@@ -9,32 +9,30 @@ const { t } = useI18n({ useScope: 'global' })
{{ t('accounts.quotaForecast.loadingQuotaForecast') }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/frontend/src/views/accounts/components/account-quota-forecast-modal/index.vue b/frontend/src/views/accounts/components/account-quota-forecast-modal/index.vue
index a6920490f..8281c2d55 100644
--- a/frontend/src/views/accounts/components/account-quota-forecast-modal/index.vue
+++ b/frontend/src/views/accounts/components/account-quota-forecast-modal/index.vue
@@ -7,8 +7,9 @@ import { ChartNoAxesCombined, CircleAlert, RefreshCw } from '@lucide/vue'
import { useIntervalFn, useNow } from '@vueuse/core'
import { computed, ref, toRef, useId, watch } from 'vue'
import { useI18n } from 'vue-i18n'
+import AccountPlanBadge from '@/components/account-plan-badge/index.vue'
import ProviderIconGroup from '@/components/ProviderIconGroup.vue'
-import AccountIdentityCell from '../AccountIdentityCell.vue'
+import { accountIdentityLabel } from '../../utils/accountIdentity'
import ForecastCapacity from './ForecastCapacity.vue'
import ForecastSkeleton from './Skeleton.vue'
import { useAccountQuotaForecast } from './useAccountQuotaForecast'
@@ -18,6 +19,13 @@ const props = defineProps<{ account: Account }>()
const emit = defineEmits<{ accountUpdated: [account: Account] }>()
const { t } = useI18n({ useScope: 'global' })
+const accountLabel = computed(() => accountIdentityLabel(props.account))
+const accountTitle = computed(() => {
+ const email = props.account.email?.trim()
+ return email && email !== accountLabel.value
+ ? `${accountLabel.value}\n${email}`
+ : accountLabel.value
+})
const open = defineModel
({ default: false })
const period = ref('weekly')
@@ -82,28 +90,21 @@ function handleExplanationKeydown(event: KeyboardEvent) {
:title="t('accounts.quotaForecast.quotaForecast')"
:description="t('accounts.quotaForecast.periodHelp')"
width="36rem"
- type="info"
>
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
{{ accountLabel }}
+
+
+