feat(l1): L1 workspace Phase 1 — role, seat enforcement, adhoc walker, audit #189

Merged
chihlasm merged 43 commits from feat/l1-workspace into main 2026-05-29 05:18:48 +00:00
Showing only changes of commit b5d8e82f64 - Show all commits

View File

@@ -237,8 +237,17 @@ export function AccountSettingsPage() {
const invitesData = await accountsApi.getInvites()
setInvites(invitesData)
} catch (err) {
toast.error('Failed to send invitation')
console.error(err)
const resp = (err as any)?.response
if (resp?.status === 402 && resp?.data?.detail?.code === 'seat_limit_exceeded') {
const d = resp.data.detail
const label = d.role === 'l1_tech' ? 'L1' : 'Engineer'
toast.warning(
`${label} seats full: ${d.current}/${d.limit}. Upgrade your plan to add more.`,
)
} else {
toast.error('Failed to send invitation')
console.error(err)
}
} finally {
setIsInviting(false)
}