Skip to content

new_dm: Add UI for starting new DM conversations #1322

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
Binary file modified assets/icons/ZulipIcons.ttf
Binary file not shown.
3 changes: 3 additions & 0 deletions assets/icons/chevron_left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions assets/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,34 @@
"@composeBoxGenericContentHint": {
"description": "Hint text for content input when sending a message."
},
"newDmSheetBackButtonLabel": "Back",
"@newDmSheetBackButtonLabel": {
"description": "Label for the back button in the new DM sheet, allowing the user to return to the previous screen."
},
"newDmSheetNextButtonLabel": "Next",
"@newDmSheetNextButtonLabel": {
"description": "Label for the front button in the new DM sheet, if applicable, for navigation or action."
},
"newDmSheetScreenTitle": "New DM",
"@newDmSheetScreenTitle": {
"description": "Title displayed at the top of the new DM screen."
},
"newDmFabButtonLabel": "New DM",
"@newDmFabButtonLabel": {
"description": "Label for the floating action button (FAB) that opens the new DM sheet."
},
"newDmSheetSearchHintEmpty": "Add one or more users",
"@newDmSheetSearchHintEmpty": {
"description": "Hint text for the search bar when no users are selected"
},
"newDmSheetSearchHintSomeSelected": "Add another user…",
"@newDmSheetSearchHintSomeSelected": {
"description": "Hint text for the search bar when at least one user is selected"
},
"newDmSheetNoUsersFound": "No users found",
"@newDmSheetNoUsersFound": {
"description": "Message shown in the new DM sheet when no users match the search."
},
"composeBoxDmContentHint": "Message @{user}",
"@composeBoxDmContentHint": {
"description": "Hint text for content input when sending a message to one other person.",
Expand Down
42 changes: 42 additions & 0 deletions lib/generated/l10n/zulip_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,48 @@ abstract class ZulipLocalizations {
/// **'Type a message'**
String get composeBoxGenericContentHint;

/// Label for the back button in the new DM sheet, allowing the user to return to the previous screen.
///
/// In en, this message translates to:
/// **'Back'**
String get newDmSheetBackButtonLabel;

/// Label for the front button in the new DM sheet, if applicable, for navigation or action.
///
/// In en, this message translates to:
/// **'Next'**
String get newDmSheetNextButtonLabel;

/// Title displayed at the top of the new DM screen.
///
/// In en, this message translates to:
/// **'New DM'**
String get newDmSheetScreenTitle;

/// Label for the floating action button (FAB) that opens the new DM sheet.
///
/// In en, this message translates to:
/// **'New DM'**
String get newDmFabButtonLabel;

/// Hint text for the search bar when no users are selected
///
/// In en, this message translates to:
/// **'Add one or more users'**
String get newDmSheetSearchHintEmpty;

/// Hint text for the search bar when at least one user is selected
///
/// In en, this message translates to:
/// **'Add another user…'**
String get newDmSheetSearchHintSomeSelected;

/// Message shown in the new DM sheet when no users match the search.
///
/// In en, this message translates to:
/// **'No users found'**
String get newDmSheetNoUsersFound;

/// Hint text for content input when sending a message to one other person.
///
/// In en, this message translates to:
Expand Down
21 changes: 21 additions & 0 deletions lib/generated/l10n/zulip_localizations_ar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,27 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
@override
String get composeBoxGenericContentHint => 'Type a message';

@override
String get newDmSheetBackButtonLabel => 'Back';

@override
String get newDmSheetNextButtonLabel => 'Next';

@override
String get newDmSheetScreenTitle => 'New DM';

@override
String get newDmFabButtonLabel => 'New DM';

@override
String get newDmSheetSearchHintEmpty => 'Add one or more users';

@override
String get newDmSheetSearchHintSomeSelected => 'Add another user…';

@override
String get newDmSheetNoUsersFound => 'No users found';

@override
String composeBoxDmContentHint(String user) {
return 'Message @$user';
Expand Down
21 changes: 21 additions & 0 deletions lib/generated/l10n/zulip_localizations_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,27 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
@override
String get composeBoxGenericContentHint => 'Type a message';

@override
String get newDmSheetBackButtonLabel => 'Back';

@override
String get newDmSheetNextButtonLabel => 'Next';

@override
String get newDmSheetScreenTitle => 'New DM';

@override
String get newDmFabButtonLabel => 'New DM';

@override
String get newDmSheetSearchHintEmpty => 'Add one or more users';

@override
String get newDmSheetSearchHintSomeSelected => 'Add another user…';

@override
String get newDmSheetNoUsersFound => 'No users found';

@override
String composeBoxDmContentHint(String user) {
return 'Message @$user';
Expand Down
21 changes: 21 additions & 0 deletions lib/generated/l10n/zulip_localizations_ja.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,27 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
@override
String get composeBoxGenericContentHint => 'Type a message';

@override
String get newDmSheetBackButtonLabel => 'Back';

@override
String get newDmSheetNextButtonLabel => 'Next';

@override
String get newDmSheetScreenTitle => 'New DM';

@override
String get newDmFabButtonLabel => 'New DM';

@override
String get newDmSheetSearchHintEmpty => 'Add one or more users';

@override
String get newDmSheetSearchHintSomeSelected => 'Add another user…';

@override
String get newDmSheetNoUsersFound => 'No users found';

@override
String composeBoxDmContentHint(String user) {
return 'Message @$user';
Expand Down
21 changes: 21 additions & 0 deletions lib/generated/l10n/zulip_localizations_nb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,27 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
@override
String get composeBoxGenericContentHint => 'Type a message';

@override
String get newDmSheetBackButtonLabel => 'Back';

@override
String get newDmSheetNextButtonLabel => 'Next';

@override
String get newDmSheetScreenTitle => 'New DM';

@override
String get newDmFabButtonLabel => 'New DM';

@override
String get newDmSheetSearchHintEmpty => 'Add one or more users';

@override
String get newDmSheetSearchHintSomeSelected => 'Add another user…';

@override
String get newDmSheetNoUsersFound => 'No users found';

@override
String composeBoxDmContentHint(String user) {
return 'Message @$user';
Expand Down
21 changes: 21 additions & 0 deletions lib/generated/l10n/zulip_localizations_pl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,27 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
@override
String get composeBoxGenericContentHint => 'Wpisz wiadomość';

@override
String get newDmSheetBackButtonLabel => 'Back';

@override
String get newDmSheetNextButtonLabel => 'Next';

@override
String get newDmSheetScreenTitle => 'New DM';

@override
String get newDmFabButtonLabel => 'New DM';

@override
String get newDmSheetSearchHintEmpty => 'Add one or more users';

@override
String get newDmSheetSearchHintSomeSelected => 'Add another user…';

@override
String get newDmSheetNoUsersFound => 'No users found';

@override
String composeBoxDmContentHint(String user) {
return 'Napisz do @$user';
Expand Down
21 changes: 21 additions & 0 deletions lib/generated/l10n/zulip_localizations_ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,27 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
@override
String get composeBoxGenericContentHint => 'Ввести сообщение';

@override
String get newDmSheetBackButtonLabel => 'Back';

@override
String get newDmSheetNextButtonLabel => 'Next';

@override
String get newDmSheetScreenTitle => 'New DM';

@override
String get newDmFabButtonLabel => 'New DM';

@override
String get newDmSheetSearchHintEmpty => 'Add one or more users';

@override
String get newDmSheetSearchHintSomeSelected => 'Add another user…';

@override
String get newDmSheetNoUsersFound => 'No users found';

@override
String composeBoxDmContentHint(String user) {
return 'Сообщение для @$user';
Expand Down
21 changes: 21 additions & 0 deletions lib/generated/l10n/zulip_localizations_sk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,27 @@ class ZulipLocalizationsSk extends ZulipLocalizations {
@override
String get composeBoxGenericContentHint => 'Type a message';

@override
String get newDmSheetBackButtonLabel => 'Back';

@override
String get newDmSheetNextButtonLabel => 'Next';

@override
String get newDmSheetScreenTitle => 'New DM';

@override
String get newDmFabButtonLabel => 'New DM';

@override
String get newDmSheetSearchHintEmpty => 'Add one or more users';

@override
String get newDmSheetSearchHintSomeSelected => 'Add another user…';

@override
String get newDmSheetNoUsersFound => 'No users found';

@override
String composeBoxDmContentHint(String user) {
return 'Message @$user';
Expand Down
Loading