feat: post-PR-159 UI cleanup — sidebar IA + account redesign #160

Merged
chihlasm merged 4 commits from feat/account-redesign-cleanup into main 2026-05-06 23:14:16 +00:00
Showing only changes of commit 07a3f01184 - Show all commits

View File

@@ -406,7 +406,12 @@ export function AccountSettingsPage() {
current={usage.session_count_this_month}
max={limits.max_sessions_per_month}
/>
<UsageRow label="Seats" current={usage.user_count} max={limits.max_users} />
{(() => {
const seatCount = usage.user_count ?? (isAccountOwner ? members.length : null)
return seatCount !== null ? (
<UsageRow label="Seats" current={seatCount} max={limits.max_users} />
) : null
})()}
</div>
) : (
<p className="text-sm text-muted-foreground">Plan limits unavailable.</p>