diff --git a/assets/i18n/zh-CN.json b/assets/i18n/zh-CN.json index 48bf8ba1..9fc2a65b 100644 --- a/assets/i18n/zh-CN.json +++ b/assets/i18n/zh-CN.json @@ -251,10 +251,10 @@ "translatorBadgeName": "翻译者", "translatorBadgeDescription": "协助将 Solar Network 翻译成不同语言", "wallet": "钱包", - "walletCurrencyPoints": "溯源点数", + "walletCurrencyPoints": "源能点", "walletCurrencyShortPoints": "NSP", - "walletCurrencyGolds": "太阳币", - "walletCurrencyShortGolds": "NSD", + "walletCurrencyGolds": "星辰碎片", + "walletCurrencyShortGolds": "SHD", "retry": "重试", "creatorHubUnselectedHint": "选择/创建一个发布者以开始使用。", "relationships": "关系", diff --git a/lib/screens/thought/think.dart b/lib/screens/thought/think.dart index 0b04b745..fbad2e41 100644 --- a/lib/screens/thought/think.dart +++ b/lib/screens/thought/think.dart @@ -54,6 +54,17 @@ class ThoughtScreen extends HookConsumerWidget { ? ref.watch(thoughtSequenceProvider(selectedSequenceId.value!)) : const AsyncValue>.data([]); + // Extract sequence ID from loaded thoughts for the chat interface + final sequenceIdFromThoughts = thoughts.maybeWhen( + data: (thoughts) { + if (thoughts.isNotEmpty && thoughts.first.sequenceId.isNotEmpty) { + return thoughts.first.sequenceId; + } + return null; + }, + orElse: () => null, + ); + // Get initial thoughts and topic from provider final initialThoughts = thoughts.valueOrNull; final initialTopic = @@ -111,6 +122,7 @@ class ThoughtScreen extends HookConsumerWidget { data: (thoughtList) => ThoughtChatInterface( initialThoughts: thoughtList, + initialSequenceId: sequenceIdFromThoughts, initialTopic: initialTopic, isDisabled: !status, ), diff --git a/lib/screens/wallet.dart b/lib/screens/wallet.dart index 40c9f7c7..76f5de2a 100644 --- a/lib/screens/wallet.dart +++ b/lib/screens/wallet.dart @@ -1863,6 +1863,6 @@ class WalletScreen extends HookConsumerWidget { } const Map kCurrencyIconData = { - 'points': Symbols.toll, - 'golds': Symbols.attach_money, + 'points': Symbols.bolt, + 'golds': Symbols.diamond, }; diff --git a/lib/widgets/thought/thought_shared.dart b/lib/widgets/thought/thought_shared.dart index 302725fa..3de2d942 100644 --- a/lib/widgets/thought/thought_shared.dart +++ b/lib/widgets/thought/thought_shared.dart @@ -386,6 +386,7 @@ ThoughtChatState useThoughtChat( class ThoughtChatInterface extends HookConsumerWidget { final List? initialThoughts; + final String? initialSequenceId; final String? initialTopic; final List> attachedMessages; final List attachedPosts; @@ -394,6 +395,7 @@ class ThoughtChatInterface extends HookConsumerWidget { const ThoughtChatInterface({ super.key, this.initialThoughts, + this.initialSequenceId, this.initialTopic, this.attachedMessages = const [], this.attachedPosts = const [], @@ -407,6 +409,7 @@ class ThoughtChatInterface extends HookConsumerWidget { final chatState = useThoughtChat( ref, + initialSequenceId: initialSequenceId, initialThoughts: initialThoughts, initialTopic: initialTopic, attachedMessages: attachedMessages,