chore: update member exceeded hint text (#6034)

* chore: update member exceeded hint text

* fix: disable ai writer widget on mobile
This commit is contained in:
Lucas.Xu 2024-08-22 11:14:01 +08:00 committed by GitHub
parent a78752d427
commit 190e3bedda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 3 deletions

View File

@ -134,7 +134,8 @@ class _InviteMemberPageState extends State<_InviteMemberPage> {
const VSpace(16), const VSpace(16),
if (exceededLimit) ...[ if (exceededLimit) ...[
FlowyText.regular( FlowyText.regular(
LocaleKeys.settings_appearance_members_inviteFailedMemberLimit.tr(), LocaleKeys.settings_appearance_members_inviteFailedMemberLimitMobile
.tr(),
fontSize: 14.0, fontSize: 14.0,
maxLines: 3, maxLines: 3,
color: Theme.of(context).colorScheme.error, color: Theme.of(context).colorScheme.error,
@ -205,7 +206,9 @@ class _InviteMemberPageState extends State<_InviteMemberPage> {
(f) { (f) {
Log.error('add workspace member failed: $f'); Log.error('add workspace member failed: $f');
final message = f.code == ErrorCode.WorkspaceMemberLimitExceeded final message = f.code == ErrorCode.WorkspaceMemberLimitExceeded
? LocaleKeys.settings_appearance_members_memberLimitExceeded.tr() ? LocaleKeys
.settings_appearance_members_inviteFailedMemberLimitMobile
.tr()
: LocaleKeys.settings_appearance_members_failedToAddMember.tr(); : LocaleKeys.settings_appearance_members_failedToAddMember.tr();
setState(() { setState(() {
exceededLimit = f.code == ErrorCode.WorkspaceMemberLimitExceeded; exceededLimit = f.code == ErrorCode.WorkspaceMemberLimitExceeded;
@ -229,7 +232,8 @@ class _InviteMemberPageState extends State<_InviteMemberPage> {
(f) { (f) {
Log.error('invite workspace member failed: $f'); Log.error('invite workspace member failed: $f');
final message = f.code == ErrorCode.WorkspaceMemberLimitExceeded final message = f.code == ErrorCode.WorkspaceMemberLimitExceeded
? LocaleKeys.settings_appearance_members_inviteFailedMemberLimit ? LocaleKeys
.settings_appearance_members_inviteFailedMemberLimitMobile
.tr() .tr()
: LocaleKeys.settings_appearance_members_failedToInviteMember : LocaleKeys.settings_appearance_members_failedToInviteMember
.tr(); .tr();

View File

@ -137,6 +137,10 @@ class _AutoCompletionBlockComponentState
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (PlatformExtension.isMobile) {
return const SizedBox.shrink();
}
return Card( return Card(
elevation: 5, elevation: 5,
color: Theme.of(context).colorScheme.surface, color: Theme.of(context).colorScheme.surface,

View File

@ -1109,6 +1109,7 @@
}, },
"inviteFailedDialogTitle": "Failed to send invite", "inviteFailedDialogTitle": "Failed to send invite",
"inviteFailedMemberLimit": "Member limit has been reached, please upgrade to invite more members.", "inviteFailedMemberLimit": "Member limit has been reached, please upgrade to invite more members.",
"inviteFailedMemberLimitMobile": "Your workspace has reached the member limit. Upgrade on Desktop to unlock more features.",
"memberLimitExceeded": "Member limit reached, to invite more members, please ", "memberLimitExceeded": "Member limit reached, to invite more members, please ",
"memberLimitExceededUpgrade": "upgrade", "memberLimitExceededUpgrade": "upgrade",
"memberLimitExceededPro": "Member limit reached, if you require more members contact ", "memberLimitExceededPro": "Member limit reached, if you require more members contact ",