feat: tell the plan picker when a seat's plan is on the way out

The billing view now names each seat's status; the console passes it
through to the picker so a cancel-pending plan can be kept, plus the
two strings that flow renders.
This commit is contained in:
Juan Castro
2026-09-16 15:55:52 -04:00
parent 1b6334c02c
commit 0b85203edb
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -353,6 +353,7 @@ const loadPlan = async (teamUid) => {
status: 'ready',
offerings: Array.isArray(cat.offerings) ? cat.offerings : [],
seatTiers: entry?.seatTiers ?? {},
seatStatuses: entry?.seatStatuses ?? {},
tierQuantities: entry?.tierQuantities ?? {},
subStatus: entry?.status ?? null,
};
@@ -370,6 +371,7 @@ const changeSeatPlan = ($el_window, username, uuid) => {
seatUuid: uuid,
username,
currentTier: state.plan.seatTiers?.[uuid] ?? null,
currentStatus: state.plan.seatStatuses?.[uuid] ?? null,
onDone: () => refresh($el_window),
},
}));
+2
View File
@@ -567,6 +567,8 @@ const en = {
teams_upgrade_to: 'Upgrade to %%',
teams_switch_to: 'Switch to %%',
teams_switch_to_free: 'Switch to Free',
teams_keep_plan: 'Keep %%',
teams_plan_ending: 'Ends with the current period',
teams_cancel_keeps_until: 'Done. The plan stays active until the end of the period it was paid for, then the account moves to Free.',
teams_audit_range: '{{from}}{{to}} of {{total}}',
previous: 'Previous',