mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
fix(team): design-squad TEAM-DELETE review: muted blocker lines, 'was deleted' toast, only-owner line points at delete, 'Account & billing' link
This commit is contained in:
@@ -22,7 +22,7 @@ export function TeamDeleteBlockers({
|
||||
return (
|
||||
<ul className="space-y-1">
|
||||
{teamDeleteBlockerLines(blockers, t).map((line) => (
|
||||
<li key={line.code} className="text-xs text-destructive-text text-pretty">
|
||||
<li key={line.code} className="text-xs text-muted-foreground text-pretty">
|
||||
{line.text}{' '}
|
||||
<button
|
||||
type="button"
|
||||
|
||||
@@ -206,7 +206,7 @@ export function TeamPageView(props: TeamPageViewProps): React.JSX.Element {
|
||||
className="rounded-sm text-foreground underline underline-offset-2 hover:text-foreground/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
||||
onClick={inline.onOpenPlanBilling}
|
||||
>
|
||||
{t('auto.components.billing.title', 'Plan & billing')}
|
||||
{t('settings.accountBilling.title2', 'Account & billing')}
|
||||
</button>
|
||||
</p>
|
||||
) : entitlement ? (
|
||||
@@ -356,10 +356,15 @@ export function TeamPageView(props: TeamPageViewProps): React.JSX.Element {
|
||||
'auto.components.billing.team.leaveBody2',
|
||||
'You lose access to the team’s cloud workspaces and secrets. An owner or admin can invite you back.'
|
||||
)
|
||||
: t(
|
||||
'auto.components.billing.team.leaveLastOwner',
|
||||
'You’re the only owner. Make someone else an owner first.'
|
||||
)}
|
||||
: props.dangerZone
|
||||
? t(
|
||||
'auto.components.billing.team.leaveLastOwnerOrDelete',
|
||||
'You’re the only owner. Make someone else an owner first, or delete the team.'
|
||||
)
|
||||
: t(
|
||||
'auto.components.billing.team.leaveLastOwner',
|
||||
'You’re the only owner. Make someone else an owner first.'
|
||||
)}
|
||||
</p>
|
||||
</div>
|
||||
<SettingsDisabledControlTooltip
|
||||
|
||||
@@ -151,7 +151,7 @@ export function useTeamDelete({
|
||||
if (result.status === 'deleted') {
|
||||
close()
|
||||
toast.success(
|
||||
t('auto.components.billing.team.delete.deletedToast', '{{value0}} deleted', {
|
||||
t('auto.components.billing.team.delete.deletedToast2', '{{value0}} was deleted', {
|
||||
value0: teamName
|
||||
})
|
||||
)
|
||||
|
||||
@@ -21218,8 +21218,9 @@
|
||||
"rateLimited": "Too many attempts. Wait a minute, then try again.",
|
||||
"forbidden": "Only owners can delete the team.",
|
||||
"failed": "Couldn’t delete the team. Try again.",
|
||||
"deletedToast": "{{value0}} deleted"
|
||||
}
|
||||
"deletedToast2": "{{value0}} was deleted"
|
||||
},
|
||||
"leaveLastOwnerOrDelete": "You’re the only owner. Make someone else an owner first, or delete the team."
|
||||
},
|
||||
"manageBilling": "Manage billing",
|
||||
"comparePlans": "Compare plans",
|
||||
|
||||
Reference in New Issue
Block a user