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:
blumia committed 2026-11-26 11:48:16 +08:00
1 parent 7b5bccf28f
commit 511c3b006b
43 files changed
+1620 -1791

No files matched your search

+4 -4
View File
@@ -31,7 +31,7 @@ class ModelPill extends StatelessWidget {
info.variants.contains(model!.variant)
? model!.variant
: null;
final name = model == null ? '模型' : app.modelName(model!);
final name = model == null ? 'Model' : app.modelName(model!);
final label = effort == null ? name : '$name · ${effortLabel(effort)}';
return _Pill(
icon: Icons.smart_toy_outlined,
@@ -90,7 +90,7 @@ class ModeChip extends StatelessWidget {
children: [
const Padding(
padding: EdgeInsets.fromLTRB(20, 4, 20, 8),
child: AppText('模式',
child: AppText('Mode',
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w700)),
),
for (final id in ids)
@@ -105,7 +105,7 @@ class ModeChip extends StatelessWidget {
fontWeight: id == current ? FontWeight.w700 : FontWeight.w400,
),
),
subtitle: AppText(id == 'plan' ? '先规划,不改动文件' : '直接构建',
subtitle: AppText(id == 'plan' ? 'Plan first without changing files' : 'Build directly',
style: const TextStyle(fontSize: 12)),
trailing: id == current
? Icon(Icons.check, size: 20, color: scheme.primary)
@@ -151,7 +151,7 @@ class _Pill extends StatelessWidget {
Icon(icon, size: 14, color: theme.hintColor),
const SizedBox(width: 4),
Flexible(
child: AppText(
child: Text(
label,
maxLines: 1,
overflow: TextOverflow.ellipsis,