Skip to content

Commit f9c2d91

Browse files
committed
home: Add placeholder text for empty Inbox, Channels, and Direct messages
The Figma has some graphics on all of these, but we'll leave that for later: see issue #1551. Fixes: #385 Fixes: #386
1 parent 834834b commit f9c2d91

20 files changed

+225
-64
lines changed

assets/l10n/app_en.arb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,10 @@
781781
"@inboxPageTitle": {
782782
"description": "Title for the page with unreads."
783783
},
784+
"inboxEmptyPlaceholder": "There are no unread messages in your inbox.",
785+
"@inboxEmptyPlaceholder": {
786+
"description": "Centered text on the 'Inbox' page saying that there is no content to show."
787+
},
784788
"recentDmConversationsPageTitle": "Direct messages",
785789
"@recentDmConversationsPageTitle": {
786790
"description": "Title for the page with a list of DM conversations."
@@ -789,6 +793,10 @@
789793
"@recentDmConversationsSectionHeader": {
790794
"description": "Heading for direct messages section on the 'Inbox' message view."
791795
},
796+
"recentDmConversationsEmptyPlaceholder": "You have no direct messages yet! Why not start the conversation?",
797+
"@recentDmConversationsEmptyPlaceholder": {
798+
"description": "Centered text on the 'Direct messages' page saying that there is no content to show."
799+
},
792800
"combinedFeedPageTitle": "Combined feed",
793801
"@combinedFeedPageTitle": {
794802
"description": "Page title for the 'Combined feed' message view."
@@ -805,6 +813,10 @@
805813
"@channelsPageTitle": {
806814
"description": "Title for the page with a list of subscribed channels."
807815
},
816+
"channelsEmptyPlaceholder": "You are not subscribed to any channels yet.",
817+
"@channelsEmptyPlaceholder": {
818+
"description": "Centered text on the 'Channels' page saying that there is no content to show."
819+
},
808820
"mainMenuMyProfile": "My profile",
809821
"@mainMenuMyProfile": {
810822
"description": "Label for main-menu button leading to the user's own profile."
@@ -833,10 +845,6 @@
833845
"@unpinnedSubscriptionsLabel": {
834846
"description": "Label for the list of unpinned subscribed channels."
835847
},
836-
"subscriptionListNoChannels": "No channels found",
837-
"@subscriptionListNoChannels": {
838-
"description": "Text to display on subscribed-channels page when there are no subscribed channels."
839-
},
840848
"notifSelfUser": "You",
841849
"@notifSelfUser": {
842850
"description": "Display name for the user themself, to show after replying in an Android notification"

lib/generated/l10n/zulip_localizations.dart

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,12 @@ abstract class ZulipLocalizations {
11811181
/// **'Inbox'**
11821182
String get inboxPageTitle;
11831183

1184+
/// Centered text on the 'Inbox' page saying that there is no content to show.
1185+
///
1186+
/// In en, this message translates to:
1187+
/// **'There are no unread messages in your inbox.'**
1188+
String get inboxEmptyPlaceholder;
1189+
11841190
/// Title for the page with a list of DM conversations.
11851191
///
11861192
/// In en, this message translates to:
@@ -1193,6 +1199,12 @@ abstract class ZulipLocalizations {
11931199
/// **'Direct messages'**
11941200
String get recentDmConversationsSectionHeader;
11951201

1202+
/// Centered text on the 'Direct messages' page saying that there is no content to show.
1203+
///
1204+
/// In en, this message translates to:
1205+
/// **'You have no direct messages yet! Why not start the conversation?'**
1206+
String get recentDmConversationsEmptyPlaceholder;
1207+
11961208
/// Page title for the 'Combined feed' message view.
11971209
///
11981210
/// In en, this message translates to:
@@ -1217,6 +1229,12 @@ abstract class ZulipLocalizations {
12171229
/// **'Channels'**
12181230
String get channelsPageTitle;
12191231

1232+
/// Centered text on the 'Channels' page saying that there is no content to show.
1233+
///
1234+
/// In en, this message translates to:
1235+
/// **'You are not subscribed to any channels yet.'**
1236+
String get channelsEmptyPlaceholder;
1237+
12201238
/// Label for main-menu button leading to the user's own profile.
12211239
///
12221240
/// In en, this message translates to:
@@ -1253,12 +1271,6 @@ abstract class ZulipLocalizations {
12531271
/// **'Unpinned'**
12541272
String get unpinnedSubscriptionsLabel;
12551273

1256-
/// Text to display on subscribed-channels page when there are no subscribed channels.
1257-
///
1258-
/// In en, this message translates to:
1259-
/// **'No channels found'**
1260-
String get subscriptionListNoChannels;
1261-
12621274
/// Display name for the user themself, to show after replying in an Android notification
12631275
///
12641276
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,20 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
639639
@override
640640
String get inboxPageTitle => 'Inbox';
641641

642+
@override
643+
String get inboxEmptyPlaceholder =>
644+
'There are no unread messages in your inbox.';
645+
642646
@override
643647
String get recentDmConversationsPageTitle => 'Direct messages';
644648

645649
@override
646650
String get recentDmConversationsSectionHeader => 'Direct messages';
647651

652+
@override
653+
String get recentDmConversationsEmptyPlaceholder =>
654+
'You have no direct messages yet! Why not start the conversation?';
655+
648656
@override
649657
String get combinedFeedPageTitle => 'Combined feed';
650658

@@ -657,6 +665,10 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
657665
@override
658666
String get channelsPageTitle => 'Channels';
659667

668+
@override
669+
String get channelsEmptyPlaceholder =>
670+
'You are not subscribed to any channels yet.';
671+
660672
@override
661673
String get mainMenuMyProfile => 'My profile';
662674

@@ -683,9 +695,6 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
683695
@override
684696
String get unpinnedSubscriptionsLabel => 'Unpinned';
685697

686-
@override
687-
String get subscriptionListNoChannels => 'No channels found';
688-
689698
@override
690699
String get notifSelfUser => 'You';
691700

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,20 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
639639
@override
640640
String get inboxPageTitle => 'Inbox';
641641

642+
@override
643+
String get inboxEmptyPlaceholder =>
644+
'There are no unread messages in your inbox.';
645+
642646
@override
643647
String get recentDmConversationsPageTitle => 'Direct messages';
644648

645649
@override
646650
String get recentDmConversationsSectionHeader => 'Direct messages';
647651

652+
@override
653+
String get recentDmConversationsEmptyPlaceholder =>
654+
'You have no direct messages yet! Why not start the conversation?';
655+
648656
@override
649657
String get combinedFeedPageTitle => 'Combined feed';
650658

@@ -657,6 +665,10 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
657665
@override
658666
String get channelsPageTitle => 'Channels';
659667

668+
@override
669+
String get channelsEmptyPlaceholder =>
670+
'You are not subscribed to any channels yet.';
671+
660672
@override
661673
String get mainMenuMyProfile => 'My profile';
662674

@@ -683,9 +695,6 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
683695
@override
684696
String get unpinnedSubscriptionsLabel => 'Unpinned';
685697

686-
@override
687-
String get subscriptionListNoChannels => 'No channels found';
688-
689698
@override
690699
String get notifSelfUser => 'You';
691700

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,20 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
639639
@override
640640
String get inboxPageTitle => 'Inbox';
641641

642+
@override
643+
String get inboxEmptyPlaceholder =>
644+
'There are no unread messages in your inbox.';
645+
642646
@override
643647
String get recentDmConversationsPageTitle => 'Direct messages';
644648

645649
@override
646650
String get recentDmConversationsSectionHeader => 'Direct messages';
647651

652+
@override
653+
String get recentDmConversationsEmptyPlaceholder =>
654+
'You have no direct messages yet! Why not start the conversation?';
655+
648656
@override
649657
String get combinedFeedPageTitle => 'Combined feed';
650658

@@ -657,6 +665,10 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
657665
@override
658666
String get channelsPageTitle => 'Channels';
659667

668+
@override
669+
String get channelsEmptyPlaceholder =>
670+
'You are not subscribed to any channels yet.';
671+
660672
@override
661673
String get mainMenuMyProfile => 'My profile';
662674

@@ -683,9 +695,6 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
683695
@override
684696
String get unpinnedSubscriptionsLabel => 'Unpinned';
685697

686-
@override
687-
String get subscriptionListNoChannels => 'No channels found';
688-
689698
@override
690699
String get notifSelfUser => 'You';
691700

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,20 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
639639
@override
640640
String get inboxPageTitle => 'Inbox';
641641

642+
@override
643+
String get inboxEmptyPlaceholder =>
644+
'There are no unread messages in your inbox.';
645+
642646
@override
643647
String get recentDmConversationsPageTitle => 'Direct messages';
644648

645649
@override
646650
String get recentDmConversationsSectionHeader => 'Direct messages';
647651

652+
@override
653+
String get recentDmConversationsEmptyPlaceholder =>
654+
'You have no direct messages yet! Why not start the conversation?';
655+
648656
@override
649657
String get combinedFeedPageTitle => 'Combined feed';
650658

@@ -657,6 +665,10 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
657665
@override
658666
String get channelsPageTitle => 'Channels';
659667

668+
@override
669+
String get channelsEmptyPlaceholder =>
670+
'You are not subscribed to any channels yet.';
671+
660672
@override
661673
String get mainMenuMyProfile => 'My profile';
662674

@@ -683,9 +695,6 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
683695
@override
684696
String get unpinnedSubscriptionsLabel => 'Unpinned';
685697

686-
@override
687-
String get subscriptionListNoChannels => 'No channels found';
688-
689698
@override
690699
String get notifSelfUser => 'You';
691700

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,20 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
639639
@override
640640
String get inboxPageTitle => 'Inbox';
641641

642+
@override
643+
String get inboxEmptyPlaceholder =>
644+
'There are no unread messages in your inbox.';
645+
642646
@override
643647
String get recentDmConversationsPageTitle => 'Direct messages';
644648

645649
@override
646650
String get recentDmConversationsSectionHeader => 'Direct messages';
647651

652+
@override
653+
String get recentDmConversationsEmptyPlaceholder =>
654+
'You have no direct messages yet! Why not start the conversation?';
655+
648656
@override
649657
String get combinedFeedPageTitle => 'Combined feed';
650658

@@ -657,6 +665,10 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
657665
@override
658666
String get channelsPageTitle => 'Channels';
659667

668+
@override
669+
String get channelsEmptyPlaceholder =>
670+
'You are not subscribed to any channels yet.';
671+
660672
@override
661673
String get mainMenuMyProfile => 'My profile';
662674

@@ -683,9 +695,6 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
683695
@override
684696
String get unpinnedSubscriptionsLabel => 'Unpinned';
685697

686-
@override
687-
String get subscriptionListNoChannels => 'No channels found';
688-
689698
@override
690699
String get notifSelfUser => 'You';
691700

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,12 +648,20 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
648648
@override
649649
String get inboxPageTitle => 'Odebrane';
650650

651+
@override
652+
String get inboxEmptyPlaceholder =>
653+
'There are no unread messages in your inbox.';
654+
651655
@override
652656
String get recentDmConversationsPageTitle => 'Wiadomości bezpośrednie';
653657

654658
@override
655659
String get recentDmConversationsSectionHeader => 'Wiadomości bezpośrednie';
656660

661+
@override
662+
String get recentDmConversationsEmptyPlaceholder =>
663+
'You have no direct messages yet! Why not start the conversation?';
664+
657665
@override
658666
String get combinedFeedPageTitle => 'Mieszany widok';
659667

@@ -666,6 +674,10 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
666674
@override
667675
String get channelsPageTitle => 'Kanały';
668676

677+
@override
678+
String get channelsEmptyPlaceholder =>
679+
'You are not subscribed to any channels yet.';
680+
669681
@override
670682
String get mainMenuMyProfile => 'Mój profil';
671683

@@ -692,9 +704,6 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
692704
@override
693705
String get unpinnedSubscriptionsLabel => 'Odpięte';
694706

695-
@override
696-
String get subscriptionListNoChannels => 'Nie odnaleziono kanałów';
697-
698707
@override
699708
String get notifSelfUser => 'Ty';
700709

lib/generated/l10n/zulip_localizations_ru.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,12 +652,20 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
652652
@override
653653
String get inboxPageTitle => 'Входящие';
654654

655+
@override
656+
String get inboxEmptyPlaceholder =>
657+
'There are no unread messages in your inbox.';
658+
655659
@override
656660
String get recentDmConversationsPageTitle => 'Личные сообщения';
657661

658662
@override
659663
String get recentDmConversationsSectionHeader => 'Личные сообщения';
660664

665+
@override
666+
String get recentDmConversationsEmptyPlaceholder =>
667+
'You have no direct messages yet! Why not start the conversation?';
668+
661669
@override
662670
String get combinedFeedPageTitle => 'Объединенная лента';
663671

@@ -670,6 +678,10 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
670678
@override
671679
String get channelsPageTitle => 'Каналы';
672680

681+
@override
682+
String get channelsEmptyPlaceholder =>
683+
'You are not subscribed to any channels yet.';
684+
673685
@override
674686
String get mainMenuMyProfile => 'Мой профиль';
675687

@@ -696,9 +708,6 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
696708
@override
697709
String get unpinnedSubscriptionsLabel => 'Откреплены';
698710

699-
@override
700-
String get subscriptionListNoChannels => 'Каналы не найдены';
701-
702711
@override
703712
String get notifSelfUser => 'Вы';
704713

0 commit comments

Comments
 (0)