Skip to content

Commit c3f249b

Browse files
authored
Merge pull request #26 from DeepFundAI/ls-dev
feat: remove read-only mode warning in history panel
2 parents be382cb + d0a95ab commit c3f249b

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

src/components/history/HistoryPanel.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,6 @@ export const HistoryPanel: React.FC<HistoryPanelProps> = ({
181181
onSelectItem={handleSelectItem}
182182
onDeleteTask={handleDeleteTask}
183183
/>
184-
185-
{/* Information message */}
186-
{!isTaskDetailMode && (
187-
<div className="text-center text-sm p-4 rounded-lg" style={{ backgroundColor: 'rgba(255, 149, 0, 0.1)' }}>
188-
<div className="font-medium mb-1" style={{ color: '#FF9500' }}>
189-
📋 {t('readonly_mode_title')}
190-
</div>
191-
<div className="opacity-80">
192-
{t('readonly_mode_description')}
193-
</div>
194-
</div>
195-
)}
196184
</div>
197185
</Drawer>
198186
);

src/locales/en-US/history.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@
3131
"delete_task": "Delete task",
3232
"executions_count": "{{count}} executions",
3333
"messages_count": "{{count}} messages",
34-
"readonly_mode_title": "History Session is Read-Only Mode",
35-
"readonly_mode_message": "Selecting history will enter view mode and you cannot continue the conversation temporarily...",
3634
"confirm_delete_scheduled_executions": "Are you sure you want to delete all {{count}} execution history records for this scheduled task? This action cannot be undone.",
3735
"confirm_delete_task": "Are you sure you want to delete this history task? This action cannot be undone.",
3836
"confirm_clear_execution_history": "Are you sure you want to clear all execution history for this task? This action cannot be undone.",
3937
"confirm": "Confirm",
4038
"cancel": "Cancel",
4139
"id_short": "ID",
4240
"created": "Created",
43-
"updated": "Updated",
44-
"readonly_mode_description": "Selecting history will enter view mode and you cannot continue the conversation temporarily. To continue similar tasks, click the DeepFundAI icon to create a new session."
41+
"updated": "Updated"
4542
}

src/locales/zh-CN/history.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@
3131
"delete_task": "删除任务",
3232
"executions_count": "{{count}} 次执行",
3333
"messages_count": "{{count}} 条消息",
34-
"readonly_mode_title": "历史会话为只读模式",
35-
"readonly_mode_message": "选择历史记录将进入查看模式,暂时无法继续对话...",
3634
"confirm_delete_scheduled_executions": "确定要删除此定时任务的所有 {{count}} 条执行历史记录吗?此操作无法撤销。",
3735
"confirm_delete_task": "确定要删除这条历史任务吗?此操作无法撤销。",
3836
"confirm_clear_execution_history": "确定要清空此任务的所有执行历史吗?此操作无法撤销。",
3937
"confirm": "确认",
4038
"cancel": "取消",
4139
"id_short": "ID",
4240
"created": "创建",
43-
"updated": "更新",
44-
"readonly_mode_description": "选择历史记录将进入查看模式,暂时无法继续对话。要继续类似任务,请点击 DeepFundAI 图标创建新会话。"
41+
"updated": "更新"
4542
}

0 commit comments

Comments
 (0)