Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TF-2890 Remove calendar event reply description text #2891

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,6 @@ extension CalendarEventExtension on CalendarEvent {
}
}

String getSubTitleEventAction(BuildContext context) {
switch(method) {
case EventMethod.refresh:
return AppLocalizations.of(context).subMessageEventActionBannerUpdated;
case EventMethod.cancel:
return AppLocalizations.of(context).subMessageEventActionBannerCanceled;
default:
return '';
}
}

String getUserNameEventAction({
required BuildContext context,
required ImagePaths imagePaths,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ class CalendarEventActionBannerStyles {
static const double viewHorizontalMargin = 16;
static const double viewVerticalMargin = 12;
static const double titleTextSize = 16;
static const double subTileTextSize = 13;
static const double iconSize = 20;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_svg/flutter_svg.dart';
Expand Down Expand Up @@ -73,15 +72,6 @@ class CalendarEventActionBannerWidget extends StatelessWidget {
]
)
),
if (calendarEvent.getSubTitleEventAction(context).isNotEmpty)
Text(
calendarEvent.getSubTitleEventAction(context),
style: const TextStyle(
color: AppColor.colorSubTitleEventActionText,
fontSize: CalendarEventActionBannerStyles.subTileTextSize,
dab246 marked this conversation as resolved.
Show resolved Hide resolved
fontWeight: FontWeight.w400
),
)
]
))
]
Expand Down
12 changes: 0 additions & 12 deletions lib/l10n/intl_ar.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2743,12 +2743,6 @@
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerCanceled": "\"لقد ألغينا الحدث بسبب سوء الأحوال الجوية.\"",
"@subMessageEventActionBannerCanceled": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"messagesHaveBeenResent": "تم إعادة إرسال الرسائل",
"@messagesHaveBeenResent": {
"type": "text",
Expand Down Expand Up @@ -2919,12 +2913,6 @@
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerUpdated": "\"تم تحديث الوقت ليناسب الجميع بشكل أفضل\"",
"@subMessageEventActionBannerUpdated": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"folderCreatedTitle": "تم إنشاء المجلد الخاص بك للتو",
"@folderCreatedTitle": {
"type": "text",
Expand Down
12 changes: 0 additions & 12 deletions lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2923,18 +2923,6 @@
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerUpdated": "\"The time has been updated to better suit all of you\"",
"@subMessageEventActionBannerUpdated": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerCanceled": "\"We are canceling the event due to bad weather.\"",
"@subMessageEventActionBannerCanceled": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"anAttendee": "An attendee",
"@anAttendee": {
"type": "text",
Expand Down
12 changes: 0 additions & 12 deletions lib/l10n/intl_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2906,12 +2906,6 @@
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerCanceled": "\"Nous annulons l'événement en raison du mauvais temps.\"",
"@subMessageEventActionBannerCanceled": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"deleteAllSpamEmails": "Supprimer tous les indésirables",
"@deleteAllSpamEmails": {
"type": "text",
Expand Down Expand Up @@ -3024,12 +3018,6 @@
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerUpdated": "\"L'heure a été mise à jour pour mieux convenir à chacun d'entre vous\"",
"@subMessageEventActionBannerUpdated": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"folderCreatedTitle": "Votre dossier vient d'être créé",
"@folderCreatedTitle": {
"type": "text",
Expand Down
14 changes: 1 addition & 13 deletions lib/l10n/intl_messages.arb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@@last_modified": "2024-05-16T11:36:53.008027",
"@@last_modified": "2024-05-23T11:23:33.056385",
"initializing_data": "Initializing data...",
"@initializing_data": {
"type": "text",
Expand Down Expand Up @@ -2930,18 +2930,6 @@
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerUpdated": "\"The time has been updated to better suit all of you\"",
"@subMessageEventActionBannerUpdated": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerCanceled": "\"We are canceling the event due to bad weather.\"",
"@subMessageEventActionBannerCanceled": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
dab246 marked this conversation as resolved.
Show resolved Hide resolved
"anAttendee": "An attendee",
"@anAttendee": {
"type": "text",
Expand Down
12 changes: 0 additions & 12 deletions lib/l10n/intl_ru.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2912,12 +2912,6 @@
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerCanceled": "«Мероприятие отменено из-за плохой погоды.»",
"@subMessageEventActionBannerCanceled": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"deleteAllSpamEmails": "Удалить все письма из спама",
"@deleteAllSpamEmails": {
"type": "text",
Expand Down Expand Up @@ -3030,12 +3024,6 @@
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerUpdated": "«Время изменено, теперь оно лучше подходит всем»",
"@subMessageEventActionBannerUpdated": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"folderCreatedTitle": "Ваша папка создана",
"@folderCreatedTitle": {
"type": "text",
Expand Down
12 changes: 0 additions & 12 deletions lib/l10n/intl_vi.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2798,12 +2798,6 @@
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerCanceled": "\"Chúng tôi đang hủy bỏ sự kiện do thời tiết xấu.\"",
"@subMessageEventActionBannerCanceled": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"deleteAllSpamEmails": "Xóa tất cả tin nhắn rác",
"@deleteAllSpamEmails": {
"type": "text",
Expand Down Expand Up @@ -2976,12 +2970,6 @@
"placeholders_order": [],
"placeholders": {}
},
"subMessageEventActionBannerUpdated": "\"Thời gian đã được cập nhật để phù hợp hơn với tất cả các bạn\"",
"@subMessageEventActionBannerUpdated": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"folderCreatedTitle": "Thư mục của bạn vừa được tạo",
"@folderCreatedTitle": {
"type": "text",
Expand Down
12 changes: 0 additions & 12 deletions lib/main/localizations/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3028,18 +3028,6 @@ class AppLocalizations {
name: 'messageEventActionBannerOrganizerCanceled');
}

String get subMessageEventActionBannerUpdated {
return Intl.message(
'"The time has been updated to better suit all of you"',
name: 'subMessageEventActionBannerUpdated');
}

String get subMessageEventActionBannerCanceled {
return Intl.message(
'"We are canceling the event due to bad weather."',
name: 'subMessageEventActionBannerCanceled');
}

String get anAttendee {
return Intl.message(
'An attendee',
Expand Down
Loading