feat(core): optimize team workspace member management (#9737)

close AF-2106 AF-2077 AF-2089

feat(core): handle need more seat status

feat(core): prevent invite members when team plan is canceled
This commit is contained in:
JimmFly
2025-02-07 10:08:00 +00:00
parent 85d916f1eb
commit d5a626d9c3
18 changed files with 562 additions and 154 deletions

View File

@@ -63,6 +63,7 @@
"Invite": "Invite",
"Invite Members": "Invite members",
"Invite Members Message": "Invited members will collaborate with you in current workspace",
"insufficient-team-seat": "Insufficient team seat",
"Joined Workspace": "Joined workspace",
"Leave": "Leave",
"Link": "Hyperlink (with selected text)",
@@ -965,9 +966,17 @@
"com.affine.payment.member.team.approve": "Approve",
"com.affine.payment.member.team.decline": "Decline",
"com.affine.payment.member.team.remove": "Remove member",
"com.affine.payment.member.team.retry-payment": "Retry payment",
"com.affine.payment.member.team.change.admin": "Change role to admin",
"com.affine.payment.member.team.change.collaborator": "Change role to collaborator",
"com.affine.payment.member.team.assign": "Assign as owner",
"com.affine.payment.member.team.retry-payment.title": "Insufficient Team Seats",
"com.affine.payment.member.team.retry-payment.owner.description": "The payment for adding new team members has failed. To add more seats, please update your payment method and process unpaid invoices.",
"com.affine.payment.member.team.retry-payment.admin.description": "The payment for adding new team members has failed. Please contact your workspace owner to update the payment method and process unpaid invoices.",
"com.affine.payment.member.team.retry-payment.update-payment": "Update Payment",
"com.affine.payment.member.team.disabled-subscription.owner.description": "Subscription has been disabled for your team workspace. To add more seats, you'll need to resume subscription first.",
"com.affine.payment.member.team.disabled-subscription.admin.description": "Your team workspace has subscription disabled, which prevents adding more seats. Please contact your workspace owner to enable subscription.",
"com.affine.payment.member.team.disabled-subscription.resume-subscription": "Resume Subscription",
"com.affine.payment.member.team.revoke.notify.title": "Invitation Revoked",
"com.affine.payment.member.team.revoke.notify.message": "You have canceled the invitation for {{name}}",
"com.affine.payment.member.team.approve.notify.title": "Request approved",
@@ -1011,6 +1020,8 @@
"com.affine.payment.recurring-monthly": "monthly",
"com.affine.payment.recurring-yearly": "annually",
"com.affine.payment.resume": "Resume",
"com.affine.payment.resume.success.title": "Subscription Resumed",
"com.affine.payment.resume.success.team.message": "Your team workspace subscription has been enabled successfully. Changes will take effect immediately.",
"com.affine.payment.resume-renewal": "Resume auto-renewal",
"com.affine.payment.see-all-plans": "See all plans",
"com.affine.payment.sign-up-free": "Sign up free",
@@ -1701,6 +1712,9 @@
"com.affine.settings.workspace.storage.unused-blobs.selected": "Selected",
"com.affine.settings.workspace.storage.unused-blobs.delete.title": "Delete blob files",
"com.affine.settings.workspace.storage.unused-blobs.delete.warning": "Are you sure you want to delete these blob files? This action cannot be undone. Make sure you no longer need them before proceeding.",
"com.affine.fail-to-join-workspace.title": "Join Failed",
"com.affine.fail-to-join-workspace.description-1": "Unable to join <1/> <2>{{workspaceName}}</2> due to insufficient seats available.",
"com.affine.fail-to-join-workspace.description-2": "Please contact your workspace owner to add more seats.",
"error.INTERNAL_SERVER_ERROR": "An internal error occurred.",
"error.TOO_MANY_REQUEST": "Too many requests.",
"error.NOT_FOUND": "Resource not found.",
@@ -1751,6 +1765,7 @@
"error.FAILED_TO_SAVE_UPDATES": "Failed to store doc updates.",
"error.FAILED_TO_UPSERT_SNAPSHOT": "Failed to store doc snapshot.",
"error.ACTION_FORBIDDEN_ON_NON_TEAM_WORKSPACE": "A Team workspace is required to perform this action.",
"error.PAGE_DEFAULT_ROLE_CAN_NOT_BE_OWNER": "Page default role can not be owner.",
"error.UNSUPPORTED_SUBSCRIPTION_PLAN": "Unsupported subscription plan: {{plan}}.",
"error.FAILED_TO_CHECKOUT": "Failed to create checkout session.",
"error.INVALID_CHECKOUT_PARAMETERS": "Invalid checkout parameters provided.",