Skip to content

Commit 9c97a55

Browse files
committed
all_channels: Implement "All channels" page
Fixes #188. See Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=7723-6411&m=dev Notable features not included here: - Colorizing unsubscribed channels, #1848 - "New channel", #1572 - The ability to view archived channels
1 parent 7c3710f commit 9c97a55

23 files changed

+688
-5
lines changed

assets/l10n/app_en.arb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,18 @@
7272
"@chooseAccountButtonAddAnAccount": {
7373
"description": "Label for ChooseAccountPage button to add an account"
7474
},
75+
"navButtonAllChannels": "All channels",
76+
"@navButtonAllChannels": {
77+
"description": "Title for a nav button that opens the 'All channels' page."
78+
},
79+
"allChannelsPageTitle": "All channels",
80+
"@allChannelsPageTitle": {
81+
"description": "Title for the 'All channels' page."
82+
},
83+
"allChannelsEmptyPlaceholder": "There are no channels you can view in this organization.",
84+
"@allChannelsEmptyPlaceholder": {
85+
"description": "Centered text on the 'All channels' page saying that there is no content to show."
86+
},
7587
"profileButtonSendDirectMessage": "Send direct message",
7688
"@profileButtonSendDirectMessage": {
7789
"description": "Label for button in profile screen to navigate to DMs with the shown user."
@@ -1078,6 +1090,13 @@
10781090
"@channelsEmptyPlaceholder": {
10791091
"description": "Centered text on the 'Channels' page saying that there is no content to show."
10801092
},
1093+
"channelsEmptyPlaceholderWithAllChannelsLink": "You’re not subscribed to any channels yet. Try going to <z-link>{allChannelsPageTitle}</z-link> and joining some of them.",
1094+
"@channelsEmptyPlaceholderWithAllChannelsLink": {
1095+
"description": "Centered text on the 'Channels' page saying that there is no content to show, with a link to 'All channels'.",
1096+
"placeholders": {
1097+
"allChannelsPageTitle": {"type": "String", "example": "All channels"}
1098+
}
1099+
},
10811100
"sharePageTitle": "Share",
10821101
"@sharePageTitle": {
10831102
"description": "Title for the page about sharing content received from other apps."

lib/generated/l10n/zulip_localizations.dart

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,24 @@ abstract class ZulipLocalizations {
239239
/// **'Add an account'**
240240
String get chooseAccountButtonAddAnAccount;
241241

242+
/// Title for a nav button that opens the 'All channels' page.
243+
///
244+
/// In en, this message translates to:
245+
/// **'All channels'**
246+
String get navButtonAllChannels;
247+
248+
/// Title for the 'All channels' page.
249+
///
250+
/// In en, this message translates to:
251+
/// **'All channels'**
252+
String get allChannelsPageTitle;
253+
254+
/// Centered text on the 'All channels' page saying that there is no content to show.
255+
///
256+
/// In en, this message translates to:
257+
/// **'There are no channels you can view in this organization.'**
258+
String get allChannelsEmptyPlaceholder;
259+
242260
/// Label for button in profile screen to navigate to DMs with the shown user.
243261
///
244262
/// In en, this message translates to:
@@ -1591,6 +1609,14 @@ abstract class ZulipLocalizations {
15911609
/// **'You’re not subscribed to any channels yet.'**
15921610
String get channelsEmptyPlaceholder;
15931611

1612+
/// Centered text on the 'Channels' page saying that there is no content to show, with a link to 'All channels'.
1613+
///
1614+
/// In en, this message translates to:
1615+
/// **'You’re not subscribed to any channels yet. Try going to <z-link>{allChannelsPageTitle}</z-link> and joining some of them.'**
1616+
String channelsEmptyPlaceholderWithAllChannelsLink(
1617+
String allChannelsPageTitle,
1618+
);
1619+
15941620
/// Title for the page about sharing content received from other apps.
15951621
///
15961622
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
6767
@override
6868
String get chooseAccountButtonAddAnAccount => 'Add an account';
6969

70+
@override
71+
String get navButtonAllChannels => 'All channels';
72+
73+
@override
74+
String get allChannelsPageTitle => 'All channels';
75+
76+
@override
77+
String get allChannelsEmptyPlaceholder =>
78+
'There are no channels you can view in this organization.';
79+
7080
@override
7181
String get profileButtonSendDirectMessage => 'Send direct message';
7282

@@ -900,6 +910,13 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
900910
String get channelsEmptyPlaceholder =>
901911
'You’re not subscribed to any channels yet.';
902912

913+
@override
914+
String channelsEmptyPlaceholderWithAllChannelsLink(
915+
String allChannelsPageTitle,
916+
) {
917+
return 'You’re not subscribed to any channels yet. Try going to <z-link>$allChannelsPageTitle</z-link> and joining some of them.';
918+
}
919+
903920
@override
904921
String get sharePageTitle => 'Share';
905922

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
6767
@override
6868
String get chooseAccountButtonAddAnAccount => 'Account hinzufügen';
6969

70+
@override
71+
String get navButtonAllChannels => 'All channels';
72+
73+
@override
74+
String get allChannelsPageTitle => 'All channels';
75+
76+
@override
77+
String get allChannelsEmptyPlaceholder =>
78+
'There are no channels you can view in this organization.';
79+
7080
@override
7181
String get profileButtonSendDirectMessage => 'Direktnachricht senden';
7282

@@ -923,6 +933,13 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
923933
@override
924934
String get channelsEmptyPlaceholder => 'Du hast noch keine Kanäle abonniert.';
925935

936+
@override
937+
String channelsEmptyPlaceholderWithAllChannelsLink(
938+
String allChannelsPageTitle,
939+
) {
940+
return 'You’re not subscribed to any channels yet. Try going to <z-link>$allChannelsPageTitle</z-link> and joining some of them.';
941+
}
942+
926943
@override
927944
String get sharePageTitle => 'Teilen';
928945

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
6767
@override
6868
String get chooseAccountButtonAddAnAccount => 'Add an account';
6969

70+
@override
71+
String get navButtonAllChannels => 'All channels';
72+
73+
@override
74+
String get allChannelsPageTitle => 'All channels';
75+
76+
@override
77+
String get allChannelsEmptyPlaceholder =>
78+
'There are no channels you can view in this organization.';
79+
7080
@override
7181
String get profileButtonSendDirectMessage => 'Send direct message';
7282

@@ -900,6 +910,13 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
900910
String get channelsEmptyPlaceholder =>
901911
'You’re not subscribed to any channels yet.';
902912

913+
@override
914+
String channelsEmptyPlaceholderWithAllChannelsLink(
915+
String allChannelsPageTitle,
916+
) {
917+
return 'You’re not subscribed to any channels yet. Try going to <z-link>$allChannelsPageTitle</z-link> and joining some of them.';
918+
}
919+
903920
@override
904921
String get sharePageTitle => 'Share';
905922

lib/generated/l10n/zulip_localizations_fr.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ class ZulipLocalizationsFr extends ZulipLocalizations {
6868
@override
6969
String get chooseAccountButtonAddAnAccount => 'Ajouter un compte';
7070

71+
@override
72+
String get navButtonAllChannels => 'All channels';
73+
74+
@override
75+
String get allChannelsPageTitle => 'All channels';
76+
77+
@override
78+
String get allChannelsEmptyPlaceholder =>
79+
'There are no channels you can view in this organization.';
80+
7181
@override
7282
String get profileButtonSendDirectMessage => 'Envoyer un message direct';
7383

@@ -914,6 +924,13 @@ class ZulipLocalizationsFr extends ZulipLocalizations {
914924
String get channelsEmptyPlaceholder =>
915925
'You’re not subscribed to any channels yet.';
916926

927+
@override
928+
String channelsEmptyPlaceholderWithAllChannelsLink(
929+
String allChannelsPageTitle,
930+
) {
931+
return 'You’re not subscribed to any channels yet. Try going to <z-link>$allChannelsPageTitle</z-link> and joining some of them.';
932+
}
933+
917934
@override
918935
String get sharePageTitle => 'Share';
919936

lib/generated/l10n/zulip_localizations_it.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
6767
@override
6868
String get chooseAccountButtonAddAnAccount => 'Aggiungi un account';
6969

70+
@override
71+
String get navButtonAllChannels => 'All channels';
72+
73+
@override
74+
String get allChannelsPageTitle => 'All channels';
75+
76+
@override
77+
String get allChannelsEmptyPlaceholder =>
78+
'There are no channels you can view in this organization.';
79+
7080
@override
7181
String get profileButtonSendDirectMessage => 'Invia un messaggio diretto';
7282

@@ -915,6 +925,13 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
915925
String get channelsEmptyPlaceholder =>
916926
'Non sei ancora iscritto ad alcun canale.';
917927

928+
@override
929+
String channelsEmptyPlaceholderWithAllChannelsLink(
930+
String allChannelsPageTitle,
931+
) {
932+
return 'You’re not subscribed to any channels yet. Try going to <z-link>$allChannelsPageTitle</z-link> and joining some of them.';
933+
}
934+
918935
@override
919936
String get sharePageTitle => 'Share';
920937

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
6666
@override
6767
String get chooseAccountButtonAddAnAccount => '新しいアカウントを追加';
6868

69+
@override
70+
String get navButtonAllChannels => 'All channels';
71+
72+
@override
73+
String get allChannelsPageTitle => 'All channels';
74+
75+
@override
76+
String get allChannelsEmptyPlaceholder =>
77+
'There are no channels you can view in this organization.';
78+
6979
@override
7080
String get profileButtonSendDirectMessage => 'ダイレクトメッセージを送信';
7181

@@ -879,6 +889,13 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
879889
@override
880890
String get channelsEmptyPlaceholder => 'まだ参加しているチャンネルはありません。';
881891

892+
@override
893+
String channelsEmptyPlaceholderWithAllChannelsLink(
894+
String allChannelsPageTitle,
895+
) {
896+
return 'You’re not subscribed to any channels yet. Try going to <z-link>$allChannelsPageTitle</z-link> and joining some of them.';
897+
}
898+
882899
@override
883900
String get sharePageTitle => '共有';
884901

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
6767
@override
6868
String get chooseAccountButtonAddAnAccount => 'Add an account';
6969

70+
@override
71+
String get navButtonAllChannels => 'All channels';
72+
73+
@override
74+
String get allChannelsPageTitle => 'All channels';
75+
76+
@override
77+
String get allChannelsEmptyPlaceholder =>
78+
'There are no channels you can view in this organization.';
79+
7080
@override
7181
String get profileButtonSendDirectMessage => 'Send direct message';
7282

@@ -900,6 +910,13 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
900910
String get channelsEmptyPlaceholder =>
901911
'You’re not subscribed to any channels yet.';
902912

913+
@override
914+
String channelsEmptyPlaceholderWithAllChannelsLink(
915+
String allChannelsPageTitle,
916+
) {
917+
return 'You’re not subscribed to any channels yet. Try going to <z-link>$allChannelsPageTitle</z-link> and joining some of them.';
918+
}
919+
903920
@override
904921
String get sharePageTitle => 'Share';
905922

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
6767
@override
6868
String get chooseAccountButtonAddAnAccount => 'Dodaj konto';
6969

70+
@override
71+
String get navButtonAllChannels => 'All channels';
72+
73+
@override
74+
String get allChannelsPageTitle => 'All channels';
75+
76+
@override
77+
String get allChannelsEmptyPlaceholder =>
78+
'There are no channels you can view in this organization.';
79+
7080
@override
7181
String get profileButtonSendDirectMessage => 'Wyślij wiadomość bezpośrednią';
7282

@@ -914,6 +924,13 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
914924
@override
915925
String get channelsEmptyPlaceholder => 'Nie śledzisz żadnego z kanałów.';
916926

927+
@override
928+
String channelsEmptyPlaceholderWithAllChannelsLink(
929+
String allChannelsPageTitle,
930+
) {
931+
return 'You’re not subscribed to any channels yet. Try going to <z-link>$allChannelsPageTitle</z-link> and joining some of them.';
932+
}
933+
917934
@override
918935
String get sharePageTitle => 'Udostępnij';
919936

0 commit comments

Comments
 (0)