JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
refactor: 对话页顶栏只保留任务面板入口,去掉导出长图和清单图标
jiangchenglin9721eca2e990
diff --git a/jiuwenswarm/channels/web/frontend/src/components/ChatPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/ChatPanel/index.tsxindex ea4fc164ee..a90fc8ef37 100644--- a/jiuwenswarm/channels/web/frontend/src/components/ChatPanel/index.tsx+++ b/jiuwenswarm/channels/web/frontend/src/components/ChatPanel/index.tsx@@ -6,7 +6,7 @@import React, { useRef, useEffect, useLayoutEffect, useCallback, useMemo, useState } from 'react';import { createPortal } from 'react-dom';-import { ArrowRight, CheckCircle2, ClipboardList, Copy, Info, LoaderCircle, Share2, Sparkles, X } from 'lucide-react';+import { ArrowRight, CheckCircle2, ClipboardList, Copy, Info, Share2, Sparkles, X } from 'lucide-react';import type { TFunction } from 'i18next';import { useTranslation } from 'react-i18next';import { useChatStore, useHarnessStore, useSessionStore, useTodoStore } from '../../stores';@@ -15,7 +15,6 @@ import type { HumanShareCommand } from '../../stores/sessionStore';import { MessageList } from './MessageList';import { ContextCompressionLines } from './MessageItem';import { InputArea, type InputAreaHandle } from './InputArea';-import chatIcon from '../../assets/chat.svg';import expandIcon from '../../assets/expand.svg';import lineUpIcon from '../../assets/lineUp.svg';import loadSendIcon from '../../assets/load-send.svg';@@ -426,20 +425,6 @@ function WelcomeHeading() {);}-function getShareExportTitle(- t: TFunction,- isExportingShare: boolean,- canExportShare: boolean-): string {- if (isExportingShare) {- return t('share.exporting');- }- if (!canExportShare) {- return t('share.exportUnavailable');- }- return t('share.export');-}-function getHumanShareStatusLabel(command: HumanShareCommand, t: TFunction): string {if (command.status === 'joined') return t('humanShare.status.joined');if (command.status === 'left') return t('humanShare.status.left');@@ -677,9 +662,6 @@ export function ChatPanel({onSwitchMode,isProcessing,onUserAnswer,- onExportShare,- isExportingShare = false,- canExportShare = false,sessionTitle,sessionProjectName,sessionProject = null,@@ -757,8 +739,6 @@ export function ChatPanel({t('chat.welcomeSuggestions.skills'),];const shouldShowChatHeader = hasConversation;- const shareExportTitle = getShareExportTitle(t, isExportingShare, canExportShare);- const shouldShowShareExport = Boolean(onExportShare);const shouldShowHumanShare = mode === 'team' && teamHumanShareCommands.length > 0;const [humanShareOpen, setHumanShareOpen] = React.useState(false);const {@@ -1155,29 +1135,6 @@ export function ChatPanel({)}</div><div className="chat-panel-header__actions">- {shouldShowShareExport && (- <button- type="button"- className={`icon-btn share-export-btn ${isExportingShare ? 'share-export-btn--loading' : ''}`}- data-testid="share-export"- title={shareExportTitle}- aria-label={shareExportTitle}- aria-busy={isExportingShare}- disabled={!canExportShare || isExportingShare}- onClick={() => {- void onExportShare?.();- }}- >- {isExportingShare ? (- <>- <LoaderCircle className="share-export-btn__spinner" size={14} strokeWidth={2} />- <span className="share-export-btn__label">{t('share.generating')}</span>- </>- ) : (- <Share2 size={14} strokeWidth={2} />- )}- </button>- )}{shouldShowHumanShare && (<buttontype="button"@@ -1188,17 +1145,10 @@ export function ChatPanel({<Sparkles size={16} strokeWidth={2} /></button>)}- <button- type="button"- className={`chat-header-icon-btn ${!teamAreaExpanded ? 'chat-header-icon-btn--active' : ''}`}- onClick={() => onToggleTeamArea?.(false)}- >- <img src={chatIcon} alt="" className="chat-header-icon-btn__icon" />- </button><buttontype="button"className={`chat-header-icon-btn ${teamAreaExpanded ? 'chat-header-icon-btn--active' : ''}`}- onClick={() => onToggleTeamArea?.(true)}+ onClick={() => onToggleTeamArea?.(!teamAreaExpanded)}><img src={expandIcon} alt="" className="chat-header-icon-btn__icon" /></button>