feat(member): pending_payment retains access, soften status copy
pending_payment now grants the same RSVP/peer-support capabilities as active,
and status banner/label copy is rewritten to be non-threatening ("Setting up
payment", "Paused", "Closed"). Aligns member-facing copy across the account
page with the capability model.
This commit is contained in:
parent
15329e3e84
commit
37a58cb0eb
3 changed files with 43 additions and 43 deletions
|
|
@ -12,16 +12,16 @@ export const MEMBER_STATUSES = {
|
|||
|
||||
export const MEMBER_STATUS_CONFIG = {
|
||||
pending_payment: {
|
||||
label: "Payment Pending",
|
||||
label: "Setting up payment",
|
||||
color: "orange",
|
||||
bgColor: "bg-orange-500/10",
|
||||
borderColor: "border-orange-500/30",
|
||||
textColor: "text-orange-300",
|
||||
icon: "heroicons:exclamation-triangle",
|
||||
severity: "warning",
|
||||
canRSVP: false,
|
||||
canRSVP: true,
|
||||
canAccessMembers: true,
|
||||
canPeerSupport: false,
|
||||
canPeerSupport: true,
|
||||
},
|
||||
active: {
|
||||
label: "Active Member",
|
||||
|
|
@ -126,24 +126,21 @@ export const useMemberStatus = () => {
|
|||
// Get banner message based on status
|
||||
const getBannerMessage = () => {
|
||||
if (isPendingPayment.value) {
|
||||
return "Your membership is pending payment. Please complete your payment to unlock full features.";
|
||||
return "Your payment setup isn't finished yet. Your membership and access aren't affected — finish whenever you're ready, or reach out if there's a snag.";
|
||||
}
|
||||
if (isSuspended.value) {
|
||||
return "Your membership has been suspended. Please contact support to reactivate your account.";
|
||||
return "Your account is paused while we work through a community issue. We'll be in touch.";
|
||||
}
|
||||
if (isCancelled.value) {
|
||||
return "Your membership has been cancelled. Would you like to reactivate?";
|
||||
return "Your account is closed. Reach out if you'd like to come back.";
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
// Get RSVP restriction message
|
||||
const getRSVPMessage = () => {
|
||||
if (isPendingPayment.value) {
|
||||
return "Complete your payment to register for events";
|
||||
}
|
||||
if (isSuspended.value || isCancelled.value) {
|
||||
return "Your membership status prevents RSVP. Please reactivate your account.";
|
||||
return "Your account isn't active right now. Reach out if you have questions.";
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue