feat: 章节软删除、对话左滑删除,移除已读状态

- 章节:详情页增加删除按钮,软删除(is_active=False),AI 不再修改但保留供参考
- 章节:get_chapter 增加 is_active 校验,已删除章节返回 404
- 章节:AI 生成时参考同类别已删除章节摘要
- 对话:左滑显示删除,调用 hard delete API,删除前二次确认
- 对话:根布局包裹 GestureHandlerRootView 以支持 Swipeable
- 对话:移除已读/未读状态展示及相关 i18n
This commit is contained in:
Kevin
2026-03-19 10:44:35 +08:00
parent 1aa3d8593c
commit 9a1d31c71f
12 changed files with 223 additions and 80 deletions

View File

@@ -1,6 +1,10 @@
{
"confirmDeleteConversation": "Are you sure you want to delete this conversation? It cannot be recovered.",
"createError": "Unable to create conversation. Please check your network and try again.",
"confirm": "OK",
"cancel": "Cancel",
"delete": "Delete",
"deleteConversation": "Delete Conversation",
"addMore": "More",
"agentName": "Life Echo",
"cancelRecording": "Cancel recording",
@@ -13,7 +17,6 @@
"inputPlaceholder": "Type a message...",
"inputPlaceholderVoice": "Type here or hold the mic to speak...",
"me": "Me",
"read": "Read",
"recentChats": "Recent Chats",
"recordingPermissionDenied": "Microphone permission is required to record",
"send": "Send",
@@ -22,7 +25,6 @@
"switchToVoice": "Switch to voice input",
"tapToEndRecording": "Tap to end",
"tapToStartRecording": "Tap to start recording",
"unread": "Unread",
"viewAll": "View All",
"voiceMessagePreview": "Voice message"
}

View File

@@ -2,6 +2,10 @@
"chapterLabel": "Chapter {{index}}",
"chapterReading": {
"back": "Back",
"cancel": "Cancel",
"confirmDeleteMessage": "Are you sure you want to delete this chapter? You will no longer be able to view it, but the content will be kept for future reference.",
"deleteChapter": "Delete Chapter",
"deleteChapterAction": "Delete",
"backgroundColor": "Background",
"bgPureWhite": "White",
"bgSepia": "Sepia",

View File

@@ -1,6 +1,10 @@
{
"confirmDeleteConversation": "确定要删除此对话吗?删除后无法恢复。",
"createError": "无法创建对话,请检查网络连接或稍后重试",
"confirm": "知道了",
"cancel": "取消",
"delete": "删除",
"deleteConversation": "删除对话",
"addMore": "更多功能",
"agentName": "岁月知己",
"cancelRecording": "取消录音发送",
@@ -13,7 +17,6 @@
"inputPlaceholder": "输入消息...",
"inputPlaceholderVoice": "点击这里输入,或者按住左边说话...",
"me": "我",
"read": "已读",
"recentChats": "最近对话",
"recordingPermissionDenied": "需要麦克风权限才能录音",
"send": "发送",
@@ -22,7 +25,6 @@
"switchToVoice": "切换到语音输入",
"tapToEndRecording": "点击结束",
"tapToStartRecording": "点击开始录音",
"unread": "未读",
"viewAll": "查看全部",
"voiceMessagePreview": "语音消息"
}

View File

@@ -2,6 +2,10 @@
"chapterLabel": "第 {{index}} 章",
"chapterReading": {
"back": "返回",
"cancel": "取消",
"confirmDeleteMessage": "确定要删除本章节吗?删除后您将无法再查看,但内容会保留供后续参考。",
"deleteChapter": "删除章节",
"deleteChapterAction": "删除",
"backgroundColor": "背景色",
"bgPureWhite": "白色",
"bgSepia": "护眼",