From 07a3f01184bb484382967161441f78d91607750a Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Tue, 5 May 2026 01:02:44 -0400 Subject: [PATCH] =?UTF-8?q?fix(qa):=20ISSUE-001=20=E2=80=94=20fall=20back?= =?UTF-8?q?=20to=20members.length=20when=20usage.user=5Fcount=20is=20missi?= =?UTF-8?q?ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /subscription endpoint returns usage as {tree_count, session_count_this_month} without user_count, so the Seats UsageRow rendered as " / ∞" (blank current value). The TS type declared user_count: number, hiding this API/type drift; the old card-stack design hid it visually because each stat had its own border. The new flat layout surfaced the gap. Owners get a fallback to members.length (already fetched). Non-owners can't fetch members and don't need seat-count info, so the row hides entirely for them. Verified live: owner now sees Seats 2 / ∞. Co-Authored-By: Claude Opus 4.7 --- frontend/src/pages/AccountSettingsPage.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/AccountSettingsPage.tsx b/frontend/src/pages/AccountSettingsPage.tsx index b04c502e..439b5bd3 100644 --- a/frontend/src/pages/AccountSettingsPage.tsx +++ b/frontend/src/pages/AccountSettingsPage.tsx @@ -406,7 +406,12 @@ export function AccountSettingsPage() { current={usage.session_count_this_month} max={limits.max_sessions_per_month} /> - + {(() => { + const seatCount = usage.user_count ?? (isAccountOwner ? members.length : null) + return seatCount !== null ? ( + + ) : null + })()} ) : (

Plan limits unavailable.