Skip to content

Commit d96c82e

Browse files
committed
feat: enhance bot detail UI, network settings redesign and i18n
1 parent 75ffd8a commit d96c82e

6 files changed

Lines changed: 1009 additions & 878 deletions

File tree

apps/web/src/i18n/locales/en.json

Lines changed: 58 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,8 @@
14281428
"searchModel": "Search models…",
14291429
"noModel": "No models available",
14301430
"saveSuccess": "Settings saved",
1431+
"saveOnly": "Save without Enabling",
1432+
"saveAndEnable": "Save and Enable",
14311433
"save": "Save Settings",
14321434
"dangerZone": "Danger Zone",
14331435
"deleteBotDescription": "Deleting this bot cannot be undone. Proceed with caution.",
@@ -1445,46 +1447,46 @@
14451447
"blacklistModeDescription": "Allow everyone by default, then block the entries on the blacklist.",
14461448
"blacklistModeHint": "Default is allow. New entries are added to the blacklist.",
14471449
"whitelistMode": "Whitelist Mode",
1448-
"whitelistModeDescription": "Block everyone by default, then allow only the entries on the whitelist.",
1450+
"whitelistModeDescription": "Block everyone except those you explicitly allow.",
14491451
"whitelistModeHint": "Default is deny. New entries are added to the whitelist.",
14501452
"blacklistTitle": "Blacklist",
1451-
"blacklistDescription": "Entries on this list are blocked.",
1453+
"blacklistDescription": "Anyone on this list is blocked.",
14521454
"whitelistTitle": "Whitelist",
1453-
"whitelistDescription": "Only entries on this list are allowed.",
1455+
"whitelistDescription": "Only people on this list get through.",
14541456
"addBlacklistEntry": "Add to Blacklist",
14551457
"addWhitelistEntry": "Add to Whitelist",
1456-
"blacklistEmpty": "Blacklist is empty",
1457-
"blacklistEmptyDescription": "No additional blocks. Messages not matched by other rules are allowed.",
1458-
"whitelistEmpty": "Whitelist is empty",
1459-
"whitelistEmptyDescription": "No allowed entries yet. Messages not matched by other rules are blocked.",
1458+
"blacklistEmpty": "Blacklist Is Empty",
1459+
"blacklistEmptyDescription": "No blocks active. Anyone not matched by other rules is allowed.",
1460+
"whitelistEmpty": "Whitelist Is Empty",
1461+
"whitelistEmptyDescription": "No allowed entries yet. Anyone not matched by other rules is blocked.",
14601462
"blacklistPreview": "Add {target} to the blacklist.",
14611463
"whitelistPreview": "Add {target} to the whitelist.",
1462-
"platformQuestion": "Which platform does this entry apply to?",
1463-
"userQuestion": "Which user does this entry apply to?",
1464-
"allPlatforms": "All platforms",
1465-
"allUsers": "All users",
1464+
"platformQuestion": "Which Platform Is This For?",
1465+
"userQuestion": "Which User Does This Apply To?",
1466+
"allPlatforms": "All Platforms",
1467+
"allUsers": "All Users",
14661468
"searchPlatform": "Search platforms",
14671469
"noPlatformCandidates": "No platforms available",
14681470
"platformTargetPreview": "all {platform} users",
14691471
"platformUserTargetPreview": "{user} on {platform}",
14701472
"userTargetPreview": "user {user}",
1471-
"previewScopeAny": "for all chats",
1472-
"previewScopePrivate": "only in private chats",
1473-
"previewScopeGroup": "only in groups",
1474-
"previewScopeThread": "only in threads",
1475-
"previewScopeSpecific": "only in the selected conversation",
1473+
"previewScopeAny": "In All Chats",
1474+
"previewScopePrivate": "Only In DMs",
1475+
"previewScopeGroup": "Only In Groups",
1476+
"previewScopeThread": "Only In Threads",
1477+
"previewScopeSpecific": "Only In The Selected Chat",
14761478
"effectAllow": "Allow",
14771479
"effectDeny": "Deny",
14781480
"rulesTitle": "Rules",
14791481
"addRule": "Add Rule",
14801482
"editRule": "Edit Rule",
1481-
"rulesEmpty": "No rules",
1482-
"rulesEmptyDescription": "Add a rule to control access beyond the default effect.",
1483+
"rulesEmpty": "No Rules",
1484+
"rulesEmptyDescription": "Add a rule to override the default behavior.",
14831485
"enabled": "Enabled",
1484-
"effect": "Effect",
1485-
"matchTarget": "Match Target",
1486-
"targetQuestion": "Who does this list entry apply to?",
1487-
"scopeQuestion": "Where should it take effect?",
1486+
"effect": "Action",
1487+
"matchTarget": "Applies To",
1488+
"targetQuestion": "Who Does This Apply To?",
1489+
"scopeQuestion": "Where Should It Work?",
14881490
"subjectAll": "All",
14891491
"subjectChannelType": "Platform",
14901492
"subjectChannelIdentity": "User",
@@ -1504,49 +1506,49 @@
15041506
"ruleDisabled": "Disabled",
15051507
"enableRule": "Enable",
15061508
"disableRule": "Disable",
1507-
"saveOnly": "Save without Enabling",
1509+
"saveOnly": "Save",
15081510
"saveAndEnable": "Save and Enable",
15091511
"saveFailed": "Failed to save",
1510-
"deleteSuccess": "Rule deleted",
1511-
"deleteFailed": "Failed to delete rule",
1512-
"anyConversationScope": "Any chat scope",
1512+
"deleteSuccess": "Deleted",
1513+
"deleteFailed": "Failed to delete",
1514+
"anyConversationScope": "Anywhere",
15131515
"chatScope": "Chat Scope",
1514-
"chatScopeDescription": "Choose which chat contexts this list entry applies to.",
1516+
"chatScopeDescription": "Choose where this rule applies.",
15151517
"chatScopeAny": "All chats",
1516-
"specificConversationTitle": "Limit to one specific chat",
1517-
"specificConversationDescription": "Usually unnecessary. Use this only when the entry should apply to one group, private chat, or thread.",
1518-
"sourceChannel": "Source Platform",
1519-
"anyChannel": "Any platform",
1520-
"conversationType": "Conversation Type",
1521-
"anyConversationType": "Any conversation type",
1522-
"privateConversationType": "Private chats only",
1523-
"groupConversationType": "Groups only",
1524-
"threadConversationType": "Threads only",
1525-
"allowPrivateConversation": "Allow private chats",
1526-
"allowGroupConversation": "Allow groups",
1527-
"allowThreadConversation": "Allow threads",
1528-
"denyPrivateConversation": "Block private chats",
1529-
"denyGroupConversation": "Block groups",
1530-
"denyThreadConversation": "Block threads",
1531-
"privateConversationGroup": "Private Chats",
1518+
"specificConversationTitle": "Limit to a Specific Chat",
1519+
"specificConversationDescription": "Most people don't need this. Use it only if you want to target a single group, DM, or thread.",
1520+
"sourceChannel": "Platform",
1521+
"anyChannel": "Any Platform",
1522+
"conversationType": "Type",
1523+
"anyConversationType": "Any Type",
1524+
"privateConversationType": "DMs Only",
1525+
"groupConversationType": "Groups Only",
1526+
"threadConversationType": "Threads Only",
1527+
"allowPrivateConversation": "Allow DMs",
1528+
"allowGroupConversation": "Allow Groups",
1529+
"allowThreadConversation": "Allow Threads",
1530+
"denyPrivateConversation": "Block DMs",
1531+
"denyGroupConversation": "Block Groups",
1532+
"denyThreadConversation": "Block Threads",
1533+
"privateConversationGroup": "DMs",
15321534
"groupConversationGroup": "Groups",
15331535
"threadConversationGroup": "Threads",
1534-
"unknownConversationGroup": "Other Conversations",
1535-
"conversationSource": "Conversation",
1536-
"existingConversation": "Existing Conversation",
1537-
"selectConversationSource": "Search or select a conversation",
1538-
"searchConversationSource": "Search conversations",
1539-
"noObservedConversations": "No matching conversations in history yet. Use manual IDs below, or ensure this bot has messages in those chats (including private).",
1540-
"manualConversationIds": "Can't find it? Enter IDs manually",
1541-
"manualConversationIdsHint": "Use this only when the target is missing from history. Copy the raw conversation ID and thread ID from the platform.",
1542-
"pickTargetForConversationSearch": "Choose a platform or user first, then pick from existing conversations.",
1543-
"pickIdentityForConversationSearch": "Choose a user above to search conversations observed for this bot.",
1544-
"pickChannelTypeForConversationSearch": "Choose a platform above to search conversations this bot has seen on that platform.",
1536+
"unknownConversationGroup": "Other",
1537+
"conversationSource": "Chat",
1538+
"existingConversation": "Known Chats",
1539+
"selectConversationSource": "Find a Conversation",
1540+
"searchConversationSource": "Search chats",
1541+
"noObservedConversations": "We haven't seen any conversations matching this yet. You can enter IDs manually below, or wait for the bot to show up in those chats.",
1542+
"manualConversationIds": "Enter IDs Manually",
1543+
"manualConversationIdsHint": "Only use this if you can't find the chat in history. You'll need to grab the IDs directly from the platform.",
1544+
"pickTargetForConversationSearch": "Choose a platform or user first to see their conversations.",
1545+
"pickIdentityForConversationSearch": "Pick a user to search their chat history.",
1546+
"pickChannelTypeForConversationSearch": "Pick a platform to search its chat history.",
15451547
"conversationId": "Conversation ID",
1546-
"conversationIdPlaceholder": "Enter conversation ID",
1548+
"conversationIdPlaceholder": "Enter ID",
15471549
"threadId": "Thread ID",
15481550
"threadIdPlaceholder": "Enter thread ID",
1549-
"clearSpecificConversation": "Clear Specific Conversation",
1551+
"clearSpecificConversation": "Clear Selection",
15501552
"lastObserved": "Last seen"
15511553
},
15521554
"channels": {

apps/web/src/i18n/locales/zh.json

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,8 @@
14241424
"searchModel": "搜索模型…",
14251425
"noModel": "暂无可选模型",
14261426
"saveSuccess": "设置已保存",
1427+
"saveOnly": "保存但不启用",
1428+
"saveAndEnable": "保存并启用",
14271429
"save": "保存设置",
14281430
"dangerZone": "危险操作",
14291431
"deleteBotDescription": "此操作不可逆。删除后 Bot 将无法恢复。",
@@ -1438,25 +1440,25 @@
14381440
"modeDescription": "选择默认放行还是默认拦截。名单里的规则会覆盖默认模式。",
14391441
"defaultEffectSaved": "访问模式已更新",
14401442
"blacklistMode": "黑名单模式",
1441-
"blacklistModeDescription": "默认允许所有人触发 Bot,仅拦截黑名单中的对象",
1442-
"blacklistModeHint": "当前默认允许;新增条目会加入黑名单",
1443+
"blacklistModeDescription": "只要没在名单里,谁都能用",
1444+
"blacklistModeHint": "默认为允许。新条目将加入黑名单",
14431445
"whitelistMode": "白名单模式",
1444-
"whitelistModeDescription": "默认拦截所有人触发 Bot,仅放行白名单中的对象",
1445-
"whitelistModeHint": "当前默认拒绝;新增条目会加入白名单",
1446+
"whitelistModeDescription": "只有名单上的人能通过",
1447+
"whitelistModeHint": "默认为拒绝。新条目将加入白名单",
14461448
"blacklistTitle": "黑名单",
1447-
"blacklistDescription": "名单中的对象会被拒绝",
1449+
"blacklistDescription": "这个名单里的人都会被拦住",
14481450
"whitelistTitle": "白名单",
1449-
"whitelistDescription": "只有名单中的对象会被允许",
1451+
"whitelistDescription": "只有这个名单里的人才会被允许",
14501452
"addBlacklistEntry": "添加黑名单条目",
14511453
"addWhitelistEntry": "添加白名单条目",
14521454
"blacklistEmpty": "黑名单为空",
1453-
"blacklistEmptyDescription": "当前没有额外的拦截规则。未命中其他规则的消息均将被放行",
1455+
"blacklistEmptyDescription": "目前没设任何拦截规则。没被选中的人都能正常通过",
14541456
"whitelistEmpty": "白名单为空",
1455-
"whitelistEmptyDescription": "当前没有放行规则。未命中其他规则的消息均将被拦截",
1456-
"blacklistPreview": " {target} 加入黑名单",
1457-
"whitelistPreview": " {target} 加入白名单",
1458-
"platformQuestion": "这条名单适用于哪个平台",
1459-
"userQuestion": "这条名单适用于哪个用户",
1457+
"whitelistEmptyDescription": "还没添加放行的人。没在这份名单里的都会被拦截",
1458+
"blacklistPreview": " {target} 加进黑名单",
1459+
"whitelistPreview": " {target} 加进白名单",
1460+
"platformQuestion": "这条规则在哪用",
1461+
"userQuestion": "这条规则针对谁",
14601462
"allPlatforms": "所有平台",
14611463
"allUsers": "所有用户",
14621464
"searchPlatform": "搜索平台",
@@ -1507,17 +1509,17 @@
15071509
"deleteFailed": "删除规则失败",
15081510
"anyConversationScope": "任何聊天范围",
15091511
"chatScope": "聊天范围",
1510-
"chatScopeDescription": "选择这条名单规则适用于哪些聊天场景",
1512+
"chatScopeDescription": "选一下这条规则在哪些场景生效",
15111513
"chatScopeAny": "所有聊天",
1512-
"specificConversationTitle": "只限制某个具体聊天",
1513-
"specificConversationDescription": "通常无需设置。仅当规则只需在特定群组、私聊或话题生效时使用",
1514-
"sourceChannel": "来源平台",
1514+
"specificConversationTitle": "只针对某个具体聊天",
1515+
"specificConversationDescription": "大多数情况下不需要。除非你只想针对某一个特定的群、私聊或话题",
1516+
"sourceChannel": "平台",
15151517
"anyChannel": "任意平台",
1516-
"conversationType": "会话类型",
1517-
"anyConversationType": "任意会话类型",
1518-
"privateConversationType": "仅私聊",
1519-
"groupConversationType": "仅群聊",
1520-
"threadConversationType": "仅话题",
1518+
"conversationType": "类型",
1519+
"anyConversationType": "任意类型",
1520+
"privateConversationType": "只管私聊",
1521+
"groupConversationType": "只管群聊",
1522+
"threadConversationType": "只管话题",
15211523
"allowPrivateConversation": "允许私聊",
15221524
"allowGroupConversation": "允许群聊",
15231525
"allowThreadConversation": "允许话题",
@@ -1527,22 +1529,22 @@
15271529
"privateConversationGroup": "私聊",
15281530
"groupConversationGroup": "群聊",
15291531
"threadConversationGroup": "话题",
1530-
"unknownConversationGroup": "其他会话",
1532+
"unknownConversationGroup": "其他",
15311533
"conversationSource": "会话",
1532-
"existingConversation": "已有会话",
1533-
"selectConversationSource": "搜索或选择会话",
1534-
"searchConversationSource": "搜索会话",
1535-
"noObservedConversations": "暂无匹配的历史会话。你可以手动输入 ID,或确认该 Bot 曾在该会话中发送过消息",
1536-
"manualConversationIds": "找不到会话?手动填写 ID",
1537-
"manualConversationIdsHint": "仅在列表中找不到目标时使用。请从对应的聊天平台复制原始的会话或话题 ID。",
1538-
"pickTargetForConversationSearch": "请先选择目标平台或用户,然后再搜索关联的会话",
1539-
"pickIdentityForConversationSearch": "请先选择用户,才能搜索其参与的历史会话",
1540-
"pickChannelTypeForConversationSearch": "请先选择平台,才能搜索该平台下的历史会话",
1534+
"existingConversation": "已知会话",
1535+
"selectConversationSource": "找个会话",
1536+
"searchConversationSource": "搜搜看",
1537+
"noObservedConversations": "还没在历史记录里找到匹配的聊天。你可以手动填下 ID,或者等 Bot 在那个频道里露个脸",
1538+
"manualConversationIds": "找不到?手动填 ID",
1539+
"manualConversationIdsHint": "只有找不到聊天记录时才用这个。你需要从聊天平台里手动复制会话或话题 ID。",
1540+
"pickTargetForConversationSearch": "先选下平台或用户,然后再搜相关的会话",
1541+
"pickIdentityForConversationSearch": "先选个用户,才能搜他的聊天历史",
1542+
"pickChannelTypeForConversationSearch": "先选个平台,才能搜这个平台上的聊天历史",
15411543
"conversationId": "会话 ID",
1542-
"conversationIdPlaceholder": "输入会话 ID",
1544+
"conversationIdPlaceholder": "输入 ID",
15431545
"threadId": "话题 ID",
15441546
"threadIdPlaceholder": "输入话题 ID",
1545-
"clearSpecificConversation": "清空指定会话",
1547+
"clearSpecificConversation": "清空选择",
15461548
"lastObserved": "最近出现"
15471549
},
15481550
"channels": {

0 commit comments

Comments
 (0)