feat: write the UI in English, select only conversation content
- source strings are English again; Chinese comes from lib/l10n/zh.dart through tr()/trArgs() and AppText, and a language without a table (Spanish, ...) reads English instead of Chinese - server and user data (titles, messages, file names, notes, task names) is drawn with plain Text, so it is never looked up in the table - SelectionArea moved from the whole message list to the messages, the answer text, an opened tool call's details and the turn footer; status lines and folded tool rows no longer start a selection - a message the transcript does not know (its start event was lost while the stream was down) fetches the tail once, so a turn continued from another client comes in with its prompt - bump to 0.5.3
This commit is contained in:
1 parent
7b5bccf28f
commit
511c3b006b
43 files changed
+1620
-1791
No files matched your search
@@ -6,14 +6,14 @@ import '../state.dart';
|
||||
import '../l10n.dart';
|
||||
|
||||
const _slashLabels = {
|
||||
'compact': '压缩',
|
||||
'init': '初始化',
|
||||
'review': '审查',
|
||||
'goal': '目标',
|
||||
'new-extension': '新建扩展',
|
||||
'permission': '权限',
|
||||
'plan': '计划',
|
||||
'feedback': '反馈',
|
||||
'compact': 'Compact',
|
||||
'init': 'Init',
|
||||
'review': 'Review',
|
||||
'goal': 'Goal',
|
||||
'new-extension': 'New extension',
|
||||
'permission': 'Permission',
|
||||
'plan': 'Plans',
|
||||
'feedback': 'Feedback',
|
||||
};
|
||||
|
||||
String? slashLabel(SlashItem item) =>
|
||||
@@ -84,11 +84,11 @@ class SlashPalette extends StatelessWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
AppText(title,
|
||||
Text(title,
|
||||
style:
|
||||
TextStyle(fontSize: 14, color: scheme.onSurface)),
|
||||
if (subtitle.isNotEmpty)
|
||||
AppText(subtitle,
|
||||
Text(subtitle,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
@@ -119,7 +119,7 @@ class SlashPalette extends StatelessWidget {
|
||||
child: CircularProgressIndicator(strokeWidth: 2)),
|
||||
),
|
||||
)
|
||||
: row(Icons.search_off, '没有可用的指令', '这个目录还没有注册指令或技能'))
|
||||
: row(Icons.search_off, 'No commands available', 'This directory has no commands or skills yet'))
|
||||
: ListView.builder(
|
||||
shrinkWrap: true,
|
||||
padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 6),
|
||||
@@ -176,7 +176,7 @@ class SlashPalette extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
if (item.description.isNotEmpty)
|
||||
AppText(item.description,
|
||||
Text(item.description,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
|
||||
Reference in new issue
Block a user