merge(app): land rename-wording (run 163)
This commit is contained in:
@@ -39,7 +39,7 @@ const List<ChatCommand> chatCommands = <ChatCommand>[
|
|||||||
),
|
),
|
||||||
ChatCommand(
|
ChatCommand(
|
||||||
name: chatCommandRename,
|
name: chatCommandRename,
|
||||||
summary: 'Rename this session on this device',
|
summary: 'Rename this session',
|
||||||
usage: '/rename <title>',
|
usage: '/rename <title>',
|
||||||
takesArgument: true,
|
takesArgument: true,
|
||||||
),
|
),
|
||||||
@@ -150,7 +150,7 @@ String chatCommandArgumentReport(ChatCommand command) =>
|
|||||||
|
|
||||||
/// `/rename` without a title sends nothing and reports its usage.
|
/// `/rename` without a title sends nothing and reports its usage.
|
||||||
const String chatRenameUsageReport =
|
const String chatRenameUsageReport =
|
||||||
'Usage: /rename <title> — renames this session on this device.';
|
'Usage: /rename <title> — renames this session.';
|
||||||
|
|
||||||
/// `/new` needs the open session's directory; without one nothing is sent.
|
/// `/new` needs the open session's directory; without one nothing is sent.
|
||||||
const String chatNoDirectoryReport =
|
const String chatNoDirectoryReport =
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ void main() {
|
|||||||
find.text(
|
find.text(
|
||||||
'/new — Start a fresh session in this directory\n'
|
'/new — Start a fresh session in this directory\n'
|
||||||
'/close — Finish this session for every client, keeping its history\n'
|
'/close — Finish this session for every client, keeping its history\n'
|
||||||
'/rename <title> — Rename this session on this device\n'
|
'/rename <title> — Rename this session\n'
|
||||||
'/stop — Stop the turn that is running\n'
|
'/stop — Stop the turn that is running\n'
|
||||||
'/help — List every command',
|
'/help — List every command',
|
||||||
),
|
),
|
||||||
@@ -456,7 +456,7 @@ void main() {
|
|||||||
expect(palette(), findsOneWidget);
|
expect(palette(), findsOneWidget);
|
||||||
expect(row('rename'), findsOneWidget);
|
expect(row('rename'), findsOneWidget);
|
||||||
expect(find.text('/rename'), findsOneWidget);
|
expect(find.text('/rename'), findsOneWidget);
|
||||||
expect(find.text('Rename this session on this device'), findsOneWidget);
|
expect(find.text('Rename this session'), findsOneWidget);
|
||||||
|
|
||||||
await tester.sendKeyEvent(LogicalKeyboardKey.escape);
|
await tester.sendKeyEvent(LogicalKeyboardKey.escape);
|
||||||
await tester.pump();
|
await tester.pump();
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ void main() {
|
|||||||
expect(gateway.sent('chat_rename'), isEmpty);
|
expect(gateway.sent('chat_rename'), isEmpty);
|
||||||
expect(
|
expect(
|
||||||
find.text(
|
find.text(
|
||||||
'Usage: /rename <title> — renames this session on this device.',
|
'Usage: /rename <title> — renames this session.',
|
||||||
),
|
),
|
||||||
findsOneWidget,
|
findsOneWidget,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ void main() {
|
|||||||
expect(chatCommands.map((command) => command.summary), [
|
expect(chatCommands.map((command) => command.summary), [
|
||||||
'Start a fresh session in this directory',
|
'Start a fresh session in this directory',
|
||||||
'Finish this session for every client, keeping its history',
|
'Finish this session for every client, keeping its history',
|
||||||
'Rename this session on this device',
|
'Rename this session',
|
||||||
'Stop the turn that is running',
|
'Stop the turn that is running',
|
||||||
'List every command',
|
'List every command',
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user