Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(goal): drop the node panel tag row and render results as full Markdown (#21986)

Arvin Xuaaba7bbcde7f
diff --git a/src/features/AgentGoals/Experiments/Detail.tsx b/src/features/AgentGoals/Experiments/Detail.tsx
index 2819a3327ab..11b8444476c 100644
--- a/src/features/AgentGoals/Experiments/Detail.tsx
+++ b/src/features/AgentGoals/Experiments/Detail.tsx
@@ -1,5 +1,5 @@
import type { GoalGraphSnapshot } from '@lobechat/types';
-import { Accordion, Button, Flexbox, Markdown, Tag, Text } from '@lobehub/ui';
+import { Accordion, Button, Flexbox, Markdown, Text } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
@@ -33,16 +33,6 @@ export const ExperimentDetail = ({
return (
<Flexbox flex={1} style={{ minHeight: 0 }}>
<Flexbox gap={10} padding={16} style={{ flexShrink: 0 }}>
- <Flexbox horizontal gap={8} wrap={'wrap'}>
- <Tag>{t('goalExperiment.number', { number: view.seq })}</Tag>
- <Tag>
- {t(
- view.isVerifying
- ? 'goalProcess.tag.verifying'
- : `goalProcess.nodeStatus.${view.node.status}`,
- )}
- </Tag>
- </Flexbox>
<Text as={'h2'} fontSize={18} weight={600}>
{view.node.title}
</Text>
@@ -74,7 +64,7 @@ export const ExperimentDetail = ({
<Flexbox gap={6} key={finding.id}>
<Text weight={500}>{finding.title}</Text>
{finding.description && (
- <Markdown fontSize={13} style={{ flexShrink: 0 }} variant={'chat'}>
+ <Markdown headerMultiple={0.25} style={{ flexShrink: 0 }}>
{finding.description}
</Markdown>
)}
diff --git a/src/features/Portal/GoalNode/Body.tsx b/src/features/Portal/GoalNode/Body.tsx
index 28a945b9119..1e45d06ee1f 100644
--- a/src/features/Portal/GoalNode/Body.tsx
+++ b/src/features/Portal/GoalNode/Body.tsx
@@ -1,13 +1,4 @@
-import {
- Button,
- createStaticStyles,
- cssVar,
- Flexbox,
- Icon,
- Markdown,
- Tag,
- Text,
-} from '@lobehub/ui';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Markdown, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { SquareArrowOutUpRight } from 'lucide-react';
import { memo, type ReactNode, useMemo } from 'react';
@@ -195,18 +186,6 @@ const Body = memo(() => {
return (
<Flexbox flex={1} gap={16} padding={16} style={{ minHeight: 0, overflowY: 'auto' }}>
- {/* A gate's raw node status stays `proposed` while it releases waves;
- its verdict below says what state it is really in. */}
- {!batchGate && (
- <Flexbox horizontal align={'center'} gap={8}>
- <Tag size={'small'}>{t(`goalProcess.kind.${node.kind}` as const)}</Tag>
- <Tag size={'small'}>{t(`goalProcess.nodeStatus.${node.status}` as const)}</Tag>
- {nodeView.humanTouches.length > 0 && (
- <Tag size={'small'}>{t('goalProcess.node.humanTouched')}</Tag>
- )}
- </Flexbox>
- )}
-
{batchGate && (
<GateDetail
decide={decide}
@@ -225,7 +204,7 @@ const Body = memo(() => {
// is load-bearing: Markdown's root is `overflow: hidden`, so as a flex
// item its automatic minimum size collapses to 0 and a long handoff
// would be squeezed (and clipped) to fit instead of scrolling the panel.
- <Markdown fontSize={13} style={{ flexShrink: 0 }} variant={'chat'}>
+ <Markdown headerMultiple={0.25} style={{ flexShrink: 0 }}>
{node.description}
</Markdown>
) : (