🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style(acceptance): group the discussion by round as a borderless activity feed (#20686)
Innei521d8923e769
diff --git a/locales/en-US/verify.json b/locales/en-US/verify.jsonindex 82abddf631f..961cace798c 100644--- a/locales/en-US/verify.json+++ b/locales/en-US/verify.json@@ -88,9 +88,15 @@"acceptance.comments.approvedAtRound": "Approved (round {{round}})","acceptance.comments.approvedBy": "{{name}} approved this delivery","acceptance.comments.approvedByAtRound": "{{name}} approved round {{round}}",+ "acceptance.comments.aside.approvals": "Approved by",+ "acceptance.comments.aside.decide": "Review checks to decide",+ "acceptance.comments.aside.label": "Acceptance details",+ "acceptance.comments.aside.round": "Round",+ "acceptance.comments.aside.status": "Status","acceptance.comments.author.agent": "Agent","acceptance.comments.author.deactivated": "Deactivated","acceptance.comments.author.former": "Former member",+ "acceptance.comments.beforeDelivery": "Before delivery","acceptance.comments.checkRejected": "sent back · round {{round}}","acceptance.comments.checkRejectedRegions": "{{count}} marked region(s)","acceptance.comments.collapseThread": "Collapse",@@ -132,6 +138,7 @@"acceptance.comments.roundContext": "Round {{round}}","acceptance.comments.roundLanded": "Round {{round}} submitted for review","acceptance.comments.roundRejected": "Round {{round}} delivery sent back",+ "acceptance.comments.sectionMessages": "{{count}} message(s)","acceptance.comments.send": "Send","acceptance.comments.signIn": "Sign in","acceptance.comments.signInDescription": "Sign in to comment, reply, and mark up screenshots.",diff --git a/locales/zh-CN/verify.json b/locales/zh-CN/verify.jsonindex 583a49aaa93..0509e01a996 100644--- a/locales/zh-CN/verify.json+++ b/locales/zh-CN/verify.json@@ -88,9 +88,15 @@"acceptance.comments.approvedAtRound": "已接受(第 {{round}} 轮)","acceptance.comments.approvedBy": "{{name}} 表达了接受","acceptance.comments.approvedByAtRound": "{{name}} 接受了第 {{round}} 轮",+ "acceptance.comments.aside.approvals": "已批准",+ "acceptance.comments.aside.decide": "去检查项中决定",+ "acceptance.comments.aside.label": "验收详情",+ "acceptance.comments.aside.round": "轮次",+ "acceptance.comments.aside.status": "状态","acceptance.comments.author.agent": "智能体","acceptance.comments.author.deactivated": "已注销","acceptance.comments.author.former": "已离开",+ "acceptance.comments.beforeDelivery": "交付之前","acceptance.comments.checkRejected": "被打回 · 第 {{round}} 轮","acceptance.comments.checkRejectedRegions": "圈注了 {{count}} 处","acceptance.comments.collapseThread": "收起",@@ -132,6 +138,7 @@"acceptance.comments.roundContext": "第 {{round}} 轮","acceptance.comments.roundLanded": "第 {{round}} 轮已提交验收","acceptance.comments.roundRejected": "第 {{round}} 轮交付被打回",+ "acceptance.comments.sectionMessages": "{{count}} 条消息","acceptance.comments.send": "发送","acceptance.comments.signIn": "登录","acceptance.comments.signInDescription": "登录后就能在这里评论、回复、在截图上圈出问题。",diff --git a/packages/locales/src/default/verify.ts b/packages/locales/src/default/verify.tsindex defb39b18b3..d32c973f8e7 100644--- a/packages/locales/src/default/verify.ts+++ b/packages/locales/src/default/verify.ts@@ -266,6 +266,13 @@ export default {'acceptance.comments.empty': 'No discussion yet.','acceptance.comments.readOnly': 'You can read the discussion; sign in to take part.','acceptance.comments.region': 'Region',+ 'acceptance.comments.beforeDelivery': 'Before delivery',+ 'acceptance.comments.sectionMessages': '{{count}} message(s)',+ 'acceptance.comments.aside.label': 'Acceptance details',+ 'acceptance.comments.aside.status': 'Status',+ 'acceptance.comments.aside.round': 'Round',+ 'acceptance.comments.aside.approvals': 'Approved by',+ 'acceptance.comments.aside.decide': 'Review checks to decide','acceptance.comments.roundContext': 'Round {{round}}','acceptance.comments.commentEvidence': 'Comment on a region','acceptance.comments.regionModalTitle': 'Mark the area you mean',diff --git a/src/features/Acceptance/Viewer/AcceptanceOverview.tsx b/src/features/Acceptance/Viewer/AcceptanceOverview.tsxindex fcb51fcb197..8b3b65d3aef 100644--- a/src/features/Acceptance/Viewer/AcceptanceOverview.tsx+++ b/src/features/Acceptance/Viewer/AcceptanceOverview.tsx@@ -130,7 +130,7 @@ export const AcceptanceOverview = ({reviewer's "fine by me" — or a reviewer would lose the affordanceentirely. */}{tab === 'discussion' ? (- <AcceptanceDiscussion />+ <AcceptanceDiscussion onOpenChecks={() => setTab('checks')} />) : tab === 'flow' ? (<><AcceptanceFlow />diff --git a/src/features/Acceptance/Viewer/Comments/AcceptanceDiscussion.tsx b/src/features/Acceptance/Viewer/Comments/AcceptanceDiscussion.tsxindex e248010ec14..2b7c1fcdd64 100644--- a/src/features/Acceptance/Viewer/Comments/AcceptanceDiscussion.tsx+++ b/src/features/Acceptance/Viewer/Comments/AcceptanceDiscussion.tsx@@ -1,34 +1,37 @@'use client';-import type { AcceptanceCommentItem, AcceptanceCommentThread } from '@lobechat/types';-import { Flexbox, Icon } from '@lobehub/ui';+import type { AcceptanceCommentThread } from '@lobechat/types';+import { Flexbox } from '@lobehub/ui';import { Button, Text } from '@lobehub/ui/base-ui';-import { createStaticStyles, cssVar, cx } from 'antd-style';-import { BadgeCheck, GitCommitHorizontal, MessageSquare, Undo2 } from 'lucide-react';+import { createStaticStyles, cssVar } from 'antd-style';+import { BadgeCheck, Undo2 } from 'lucide-react';import { nanoid } from 'nanoid';-import { memo, useCallback, useMemo } from 'react';+import { memo, useCallback, useMemo, useState } from 'react';import { useTranslation } from 'react-i18next';-import { Link } from 'react-router';import { useUserStore } from '@/store/user';import { authSelectors, userProfileSelectors } from '@/store/user/selectors';import { buildAuthReturnUrl, currentReturnPath } from '@/utils/authReturnUrl';-import { checkDisplayTitle } from '../../utils';import { useAcceptanceScope } from '../AcceptanceScope';-import { collectEvidenceById } from '../Checks/CheckHistory';-import type { AcceptanceCheck } from '../Checks/types';-import { acceptanceCheckPath } from '../routes';import { useAcceptanceBundle } from '../useAcceptanceBundle';-import { commentAnchorId, useCommentAnchor } from './anchor';-import CommentCard, { commentAuthorName, CommentAvatar } from './CommentCard';+import { useCommentAnchor } from './anchor';+import { commentAuthorName } from './CommentCard';import CommentComposer from './CommentComposer';-import CommentThread from './CommentThread';+import DiscussionAside from './DiscussionAside';+import {+ CheckReference,+ entryStyles,+ TimelineMessage,+ TimelineRegion,+ TimelineRound,+} from './DiscussionEntries';+import { type DiscussionSection, groupDiscussionByRound } from './discussionRounds';import type { DiscussionEntry } from './discussionTimeline';import { buildDiscussionTimeline } from './discussionTimeline';import { useAcceptanceComments } from './hooks';-import { styles, TIMELINE_NODE } from './styles';-import ThreadEvidence from './ThreadEvidence';+import RoundSection from './RoundSection';+import { styles } from './styles';import TimelineEvent from './TimelineEvent';/** Enough room to start writing without the box dominating the column. */@@ -63,40 +66,28 @@ const SignInPrompt = memo(() => {SignInPrompt.displayName = 'AcceptanceDiscussionSignInPrompt';const local = createStaticStyles(({ css }) => ({+ composer: css`+ margin-block: 12px 4px;+ `,empty: css`padding-block: 16px;font-size: 13px;color: ${cssVar.colorTextTertiary};`,- checkLink: css`- font-weight: 500;- color: ${cssVar.colorText};-- &:hover {- color: ${cssVar.colorText};- text-decoration: underline;- }- `,- quote: css`- padding-block: 8px;- padding-inline: 12px;- border-inline-start: 2px solid ${cssVar.colorBorder};-- font-size: 13px;- line-height: 1.65;- color: ${cssVar.colorText};- overflow-wrap: anywhere;- white-space: pre-wrap;+ feed: css`+ flex: 999 1 480px;+ min-width: 0;`,- regionBody: css`- padding-block: 4px 12px;- padding-inline: 14px;+ round: css`+ & + & {+ margin-block-start: 28px;+ }`,- regionHeader: css`- padding-block: 10px 6px;- padding-inline: 14px;- font-size: 13px;- color: ${cssVar.colorTextSecondary};+ layout: css`+ display: flex;+ flex-wrap: wrap;+ gap: 32px;+ align-items: flex-start;`,signInPrompt: css`padding-block: 16px;@@ -108,203 +99,25 @@ const local = createStaticStyles(({ css }) => ({`,}));-/**- * A round. With a note it IS the agent's turn: one entry whose header says- * "<agent> submitted round N for review" and whose body is what they wrote. The landing- * and the author are the same sentence, so neither an event row above the note- * nor a second author line is needed. Without a note it stays the plain event.- */-const TimelineRound = memo<{- anchored?: boolean;- at: Date;- onReact: (id: string, emoji: string, on: boolean) => Promise<void>;- proposal?: AcceptanceCommentItem;- reactable: boolean;- roundIndex: number;-}>(({ anchored, at, onReact, proposal, reactable, roundIndex }) => {- const { t } = useTranslation('verify');- if (!proposal)- return (- <TimelineEvent- at={at}- icon={GitCommitHorizontal}- text={t('acceptance.comments.roundLanded', { round: roundIndex })}- />- );- return (- <Flexbox- horizontal- align={'flex-start'}- className={styles.timelineEntry}- gap={12}- id={commentAnchorId(proposal.id)}- >- <span className={styles.timelineNode}>- <CommentAvatar comment={proposal} size={TIMELINE_NODE} />- </span>- <Flexbox className={cx(styles.box, anchored && styles.boxAnchored)}>- <CommentCard- anchored- comment={proposal}- reactable={reactable}- nameOverride={t('acceptance.comments.roundCompletedBy', {- name: commentAuthorName(proposal.author),- round: roundIndex,- })}- onReact={onReact}- />- </Flexbox>- </Flexbox>- );-});--TimelineRound.displayName = 'AcceptanceTimelineRound';--/** One chat message: the author's face on the rail, the remark beside it. */-const TimelineMessage = memo<{- anchored: boolean;- comment: AcceptanceCommentItem;- onDelete: (id: string) => Promise<void>;- onReact: (id: string, emoji: string, on: boolean) => Promise<void>;- reactable: boolean;- /** Written by whoever is reading — GitHub paints their own turns blue. */- self: boolean;-}>(({ anchored, comment, onDelete, onReact, reactable, self }) => (- <Flexbox- horizontal- align={'flex-start'}- className={styles.timelineEntry}- gap={12}- id={commentAnchorId(comment.id)}- >- <span className={styles.timelineNode}>- <CommentAvatar comment={comment} size={TIMELINE_NODE} />- </span>- <Flexbox className={cx(styles.box, self && styles.boxSelf, anchored && styles.boxAnchored)}>- <CommentCard- anchored- comment={comment}- reactable={reactable}- onDelete={onDelete}- onReact={onReact}- />- </Flexbox>- </Flexbox>-));--TimelineMessage.displayName = 'AcceptanceTimelineMessage';--/**- * "C2 · title", the way the checklist names a check. A link out of the page- * route opens that check's own view; an embedded viewer has no route of its own,- * so there it is just the name.- */-const CheckReference = memo<{ check?: AcceptanceCheck }>(({ check }) => {- const { t } = useTranslation('verify');- const { acceptanceId, embedded } = useAcceptanceScope();- if (!check) return null;- const label = `C${check.seq} · ${checkDisplayTitle(check.title, t('acceptance.checks.holisticTitle'))}`;- if (embedded) return <span className={local.checkLink}>{label}</span>;- return (- <Link className={local.checkLink} to={acceptanceCheckPath(acceptanceId, check.id)}>- {label}- </Link>- );-});--CheckReference.displayName = 'AcceptanceDiscussionCheckReference';+const entryCommentIds = (entry: DiscussionEntry): string[] => {+ if (entry.kind === 'message') return [entry.comment.id];+ if (entry.kind === 'region')+ return [entry.thread.root.id, ...entry.thread.replies.map((reply) => reply.id)];+ if (entry.kind === 'round' && entry.proposal) return [entry.proposal.id];+ return [];+};-/**- * A note circled on a screenshot, as a pull request shows a review comment in- * its Conversation: which check it is about, the picture it points at, and the- * thread itself — still answerable and closable from here.- */-const TimelineRegion = memo<{- anchored: boolean;- canComment: boolean;- canResolve: boolean;- check?: AcceptanceCheck;- onDelete: (id: string) => Promise<void>;- onReply: (rootId: string, content: string, attachments: { fileId: string }[]) => Promise<void>;- onResolve: (rootId: string, resolved: boolean) => Promise<void>;- thread: AcceptanceCommentThread;-}>(({ anchored, canComment, canResolve, check, onDelete, onReply, onResolve, thread }) => {- const { t } = useTranslation('verify');- const { root } = thread;- const evidence =- check && root.evidenceId ? collectEvidenceById(check).get(root.evidenceId) : undefined;- const stale = Boolean(- check && root.evidenceId && !check.evidence.some((item) => item.id === root.evidenceId),- );-- return (- <Flexbox- horizontal- align={'flex-start'}- className={styles.timelineEntry}- gap={12}- id={commentAnchorId(root.id)}- >- <span className={styles.timelineNode}>- <CommentAvatar comment={root} size={TIMELINE_NODE} />- </span>- <Flexbox className={cx(styles.box, anchored && styles.boxAnchored)}>- <Flexbox horizontal align={'center'} className={local.regionHeader} gap={6} wrap={'wrap'}>- <Icon icon={MessageSquare} size={13} />- <span>- {check- ? t('acceptance.comments.regionOn', { name: commentAuthorName(root.author) })- : commentAuthorName(root.author)}- </span>- <CheckReference check={check} />- </Flexbox>- <Flexbox- horizontal- align={'flex-start'}- className={local.regionBody}- gap={16}- wrap={'wrap'}- >- {evidence && (- <ThreadEvidence- comment={root}- evidence={evidence}- stale={stale}- roundIndex={- check?.timeline.find((entry) =>- entry.evidence.some((item) => item.id === root.evidenceId),- )?.roundIndex- }- />- )}- <Flexbox flex={1} style={{ minWidth: 220 }}>- <CommentThread- canComment={canComment}- canResolve={canResolve}- thread={thread}- onDelete={onDelete}- onReply={onReply}- onResolve={onResolve}- />- </Flexbox>- </Flexbox>- </Flexbox>- </Flexbox>- );-});--TimelineRegion.displayName = 'AcceptanceTimelineRegion';+const sectionKey = (section: DiscussionSection) => String(section.roundIndex ?? 'before');/**- * The delivery's chat: one message per turn, strung on a rail with the rounds- * that landed and the approvals people gave, and the composer at the end.+ * The delivery's activity, one section per round: what landed, what people+ * said about it, and how it was decided. The newest round reads first and+ * open; older rounds fold to their header line.*- * Only chat lives here. A note circled on a screenshot reads next to that spot- * and nowhere else, so it stays on the check that owns the evidence — which is- * also why nothing here offers "reply" or "resolve": those belong to a note- * about a place, not to a remark in a conversation.+ * Deciding stays on the checklist, where the evidence is — the aside only+ * points there.*/-const AcceptanceDiscussion = memo(() => {+const AcceptanceDiscussion = memo<{ onOpenChecks?: () => void }>(({ onOpenChecks }) => {const { t } = useTranslation('verify');const { acceptanceId, embedded } = useAcceptanceScope();const viewerId = useUserStore(userProfileSelectors.userId);@@ -322,6 +135,7 @@ const AcceptanceDiscussion = memo(() => {setResolved,threads,} = useAcceptanceComments(acceptanceId);+ const [toggled, setToggled] = useState<Record<string, boolean>>({});const currentRunId = data?.rounds.at(-1)?.run.id;const anchoredId = useCommentAnchor(items, embedded);@@ -347,6 +161,12 @@ const AcceptanceDiscussion = memo(() => {}),[data?.checks, data?.rounds, items, threads],);+ const sections = useMemo(() => groupDiscussionByRound(timeline), [timeline]);+ const anchoredSection = anchoredId+ ? sections.find((section) =>+ section.entries.some((entry) => entryCommentIds(entry).includes(anchoredId)),+ )+ : undefined;// Same rule as on the check row: whoever raised a note may close it, and// the delivery's reviewers may close anyone's.@@ -414,7 +234,7 @@ const AcceptanceDiscussion = memo(() => {</>}>- {entry.comment && <div className={local.quote}>{entry.comment}</div>}+ {entry.comment && <div className={entryStyles.quote}>{entry.comment}</div>}</TimelineEvent>);}@@ -426,7 +246,7 @@ const AcceptanceDiscussion = memo(() => {key={`round-reject-${entry.roundIndex}`}text={t('acceptance.comments.roundRejected', { round: entry.roundIndex })}>- {entry.comment && <div className={local.quote}>{entry.comment}</div>}+ {entry.comment && <div className={entryStyles.quote}>{entry.comment}</div>}</TimelineEvent>);if (entry.kind === 'approval') {@@ -440,8 +260,7 @@ const AcceptanceDiscussion = memo(() => {round: entry.approval.contextRoundIndex,});// The reviewer's optional one-line summary. Written into the same row and- // read nowhere else, so it belongs on the line that announces it — a- // field nobody can read back is worse than no field.+ // read nowhere else, so it belongs on the line that announces it.const said = entry.approval.content.trim();return (<TimelineEvent@@ -458,51 +277,82 @@ const AcceptanceDiscussion = memo(() => {comment={entry.comment}key={entry.comment.id}reactable={canComment}- self={Boolean(viewerId) && entry.comment.authorUserId === viewerId}onDelete={remove}onReact={react}/>);};- return (- <Flexbox>- {timeline.length === 0 && (- <span className={local.empty}>{t('acceptance.comments.empty')}</span>- )}- <Flexbox className={styles.timeline}>{timeline.map((entry) => renderEntry(entry))}</Flexbox>-- {/* Last, like GitHub's Conversation: you read the thread, then answer it. */}- {canComment ? (- <Flexbox className={styles.nodelessEntry}>- <Flexbox className={styles.composerBlock}>- <CommentComposer- minHeight={COMPOSER_MIN_HEIGHT}- placeholder={t('acceptance.comments.placeholder')}- onSubmit={(content, attachments) =>- create({- attachments,- clientId: nanoid(),- content,- contextRunId: currentRunId,- })- }- />- </Flexbox>- </Flexbox>- ) : error ? (- // A read that failed says nothing about permission.- <Text fontSize={13} type={'secondary'}>- {t('acceptance.comments.loadFailed')}- </Text>- ) : isLoading ? null : isSignedIn ? ( // Neither line below is true yet while the answer is in flight.- <Text fontSize={13} type={'secondary'}>- {t('acceptance.comments.readOnly')}- </Text>- ) : (- <SignInPrompt />- )}+ const reply = canComment ? (+ <Flexbox className={local.composer}>+ <Flexbox className={styles.composerBlock}>+ <CommentComposer+ borderless+ minHeight={COMPOSER_MIN_HEIGHT}+ placeholder={t('acceptance.comments.placeholder')}+ onSubmit={(content, attachments) =>+ create({+ attachments,+ clientId: nanoid(),+ content,+ contextRunId: currentRunId,+ })+ }+ />+ </Flexbox></Flexbox>+ ) : error ? (+ // A read that failed says nothing about permission.+ <Text fontSize={13} type={'secondary'}>+ {t('acceptance.comments.loadFailed')}+ </Text>+ ) : isLoading ? null : isSignedIn ? ( // Neither line below is true yet while the answer is in flight.+ <Text fontSize={13} type={'secondary'}>+ {t('acceptance.comments.readOnly')}+ </Text>+ ) : (+ <SignInPrompt />+ );++ const ungrouped = sections.length <= 1 && (sections[0]?.roundIndex ?? null) === null;++ return (+ <div className={local.layout}>+ <Flexbox className={local.feed}>+ {timeline.length === 0 && (+ <span className={local.empty}>{t('acceptance.comments.empty')}</span>+ )}+ {ungrouped ? (+ <>+ {sections[0]?.entries.map((entry) => renderEntry(entry))}+ {reply}+ </>+ ) : (+ sections.map((section, index) => {+ const key = sectionKey(section);+ const open = toggled[key] ?? (index === 0 || section === anchoredSection);+ return (+ <div className={local.round} key={key}>+ <RoundSection+ open={open}+ section={section}+ onToggle={() => setToggled((state) => ({ ...state, [key]: !open }))}+ >+ {section.entries.map((entry) => renderEntry(entry))}+ </RoundSection>+ {index === 0 && reply}+ </div>+ );+ })+ )}+ </Flexbox>+ <DiscussionAside+ items={items}+ latestRound={data?.rounds.at(-1)?.run.roundIndex ?? undefined}+ status={data?.acceptance.status}+ onOpenChecks={onOpenChecks}+ />+ </div>);});diff --git a/src/features/Acceptance/Viewer/Comments/CommentCard.tsx b/src/features/Acceptance/Viewer/Comments/CommentCard.tsxindex f444fbeb19a..b790969aa56 100644--- a/src/features/Acceptance/Viewer/Comments/CommentCard.tsx+++ b/src/features/Acceptance/Viewer/Comments/CommentCard.tsx@@ -24,7 +24,7 @@ import { userProfileSelectors } from '@/store/user/selectors';import { commentAnchorUrl } from './anchor';import CommentContent from './CommentContent';import CommentReactions from './CommentReactions';-import { styles } from './styles';+import { styles, TIMELINE_NODE } from './styles';export const commentAuthorName = (author: AcceptanceCommentItem['author']) =>author.fullName || author.username || '—';@@ -66,8 +66,9 @@ interface CommentCardProps {/*** `boxed` is the discussion message: a header strip over the body.* `plain` is the floating note: the same content with no frame of its own.+ * `feed` is the discussion feed: an author line, the words indented under it.*/- variant?: 'boxed' | 'plain';+ variant?: 'boxed' | 'feed' | 'plain';}/** One remark: who, when, what — and the author's own actions behind a menu. */@@ -155,6 +156,7 @@ const CommentCard = memo<CommentCardProps>(wrap={'wrap'}>{variant === 'plain' && <CommentAvatar comment={comment} size={18} />}+ {variant === 'feed' && <CommentAvatar comment={comment} size={TIMELINE_NODE} />}<TextclassName={nameOverride ? styles.headline : styles.authorName}fontSize={13}@@ -210,7 +212,15 @@ const CommentCard = memo<CommentCardProps>(</div>)}</Flexbox>- <div className={variant === 'boxed' ? styles.body : styles.panelBody}>+ <div+ className={+ variant === 'boxed'+ ? styles.body+ : variant === 'feed'+ ? styles.feedBody+ : styles.panelBody+ }+ ><CommentContent comment={comment} />{onReact && (<CommentReactionsdiff --git a/src/features/Acceptance/Viewer/Comments/CommentComposer.tsx b/src/features/Acceptance/Viewer/Comments/CommentComposer.tsxindex c729ac5deac..194aff3a7ae 100644--- a/src/features/Acceptance/Viewer/Comments/CommentComposer.tsx+++ b/src/features/Acceptance/Viewer/Comments/CommentComposer.tsx@@ -31,6 +31,8 @@ const MAX_COMMENT_ATTACHMENTS = 4;interface CommentComposerProps {autoFocus?: boolean;+ /** The surrounding block draws the frame, so the field must not draw a second one. */+ borderless?: boolean;/** One-line reply box instead of the two-line root box. */compact?: boolean;/**@@ -54,7 +56,7 @@ interface CommentComposerProps {* sends.*/const CommentComposer = memo<CommentComposerProps>(- ({ autoFocus, compact, minHeight, onCancel, onSubmit, placeholder, submitLabel }) => {+ ({ autoFocus, borderless, compact, minHeight, onCancel, onSubmit, placeholder, submitLabel }) => {const { t } = useTranslation('verify');const [value, setValue] = useState('');const [sending, setSending] = useState(false);@@ -96,7 +98,9 @@ const CommentComposer = memo<CommentComposerProps>(autoFocus={autoFocus}autoSize={{ maxRows: 20, minRows: compact ? 1 : 2 }}placeholder={placeholder}+ style={borderless ? { paddingInline: 0 } : undefined}value={value}+ variant={borderless ? 'borderless' : undefined}onChange={(event) => setValue(event.target.value)}onPaste={handlePaste}onKeyDown={(event) => {diff --git a/src/features/Acceptance/Viewer/Comments/DiscussionAside.tsx b/src/features/Acceptance/Viewer/Comments/DiscussionAside.tsxnew file mode 100644index 00000000000..7f34cb41858--- /dev/null+++ b/src/features/Acceptance/Viewer/Comments/DiscussionAside.tsx@@ -0,0 +1,133 @@+'use client';++import type { AcceptanceCommentItem } from '@lobechat/types';+import { Flexbox } from '@lobehub/ui';+import { Button, Tooltip } from '@lobehub/ui/base-ui';+import { createStaticStyles, cssVar } from 'antd-style';+import { memo, useMemo } from 'react';+import { useTranslation } from 'react-i18next';++import AcceptanceStatusPill from '../Header/AcceptanceStatusPill';+import { commentAuthorName, CommentAvatar } from './CommentCard';++const MAX_FACES = 8;++const styles = createStaticStyles(({ css }) => ({+ aside: css`+ position: sticky;+ inset-block-start: 20px;++ display: flex;+ flex: 1 1 220px;+ flex-direction: column;+ gap: 16px;++ max-width: 264px;++ font-size: 13px;++ @media (width <= 767px) {+ position: static;+ order: -1;+ max-width: none;+ }+ `,+ list: css`+ display: grid;+ grid-template-columns: max-content minmax(0, 1fr);+ gap: 12px 16px;+ align-items: center;++ margin: 0;+ `,+ term: css`+ color: ${cssVar.colorTextTertiary};+ `,+ value: css`+ overflow: hidden;++ min-width: 0;+ margin: 0;++ color: ${cssVar.colorText};+ text-overflow: ellipsis;+ white-space: nowrap;+ `,+}));++interface DiscussionAsideProps {+ items: AcceptanceCommentItem[];+ latestRound?: number;+ onOpenChecks?: () => void;+ status?: string;+}++const DiscussionAside = memo<DiscussionAsideProps>(+ ({ items, latestRound, onOpenChecks, status }) => {+ const { t } = useTranslation('verify');++ const { approvers, faces } = useMemo(() => {+ const byAuthor = new Map<string, AcceptanceCommentItem>();+ for (const item of items) {+ if (item.deletedAt || item.kind === 'reaction') continue;+ const key = item.authorUserId ?? item.author.id ?? commentAuthorName(item.author);+ if (!byAuthor.has(key)) byAuthor.set(key, item);+ }+ return {+ approvers: items+ .filter((item) => item.kind === 'approval' && !item.deletedAt)+ .map((item) => commentAuthorName(item.author)),+ faces: [...byAuthor.values()],+ };+ }, [items]);++ return (+ <aside aria-label={t('acceptance.comments.aside.label')} className={styles.aside}>+ {status && (+ <div aria-label={t('acceptance.comments.aside.status')}>+ <AcceptanceStatusPill status={status} />+ </div>+ )}+ <dl className={styles.list}>+ {latestRound !== undefined && (+ <>+ <dt className={styles.term}>{t('acceptance.comments.aside.round')}</dt>+ <dd className={styles.value}>{latestRound}</dd>+ </>+ )}+ {faces.length > 0 && (+ <>+ <dt className={styles.term}>{t('acceptance.comments.participants')}</dt>+ <dd className={styles.value}>+ <Flexbox horizontal gap={4} wrap={'wrap'}>+ {faces.slice(0, MAX_FACES).map((comment) => (+ <Tooltip key={comment.id} title={commentAuthorName(comment.author)}>+ <span>+ <CommentAvatar comment={comment} size={20} />+ </span>+ </Tooltip>+ ))}+ </Flexbox>+ </dd>+ </>+ )}+ {approvers.length > 0 && (+ <>+ <dt className={styles.term}>{t('acceptance.comments.aside.approvals')}</dt>+ <dd className={styles.value}>{approvers.join(', ')}</dd>+ </>+ )}+ </dl>+ {onOpenChecks && status === 'delivered' && (+ <Button block onClick={onOpenChecks}>+ {t('acceptance.comments.aside.decide')}+ </Button>+ )}+ </aside>+ );+ },+);++DiscussionAside.displayName = 'AcceptanceDiscussionAside';++export default DiscussionAside;diff --git a/src/features/Acceptance/Viewer/Comments/DiscussionEntries.tsx b/src/features/Acceptance/Viewer/Comments/DiscussionEntries.tsxnew file mode 100644index 00000000000..a512a8af33a--- /dev/null+++ b/src/features/Acceptance/Viewer/Comments/DiscussionEntries.tsx@@ -0,0 +1,220 @@+'use client';++import type { AcceptanceCommentItem, AcceptanceCommentThread } from '@lobechat/types';+import { Flexbox, Icon } from '@lobehub/ui';+import { createStaticStyles, cssVar, cx } from 'antd-style';+import { GitCommitHorizontal, MessageSquare } from 'lucide-react';+import { memo } from 'react';+import { useTranslation } from 'react-i18next';+import { Link } from 'react-router';++import { checkDisplayTitle } from '../../utils';+import { useAcceptanceScope } from '../AcceptanceScope';+import { collectEvidenceById } from '../Checks/CheckHistory';+import type { AcceptanceCheck } from '../Checks/types';+import { acceptanceCheckPath } from '../routes';+import { commentAnchorId } from './anchor';+import CommentCard, { commentAuthorName, CommentAvatar } from './CommentCard';+import CommentThread from './CommentThread';+import { NODE_GUTTER, styles, TIMELINE_NODE } from './styles';+import ThreadEvidence from './ThreadEvidence';+import TimelineEvent from './TimelineEvent';++export const entryStyles = createStaticStyles(({ css }) => ({+ checkLink: css`+ font-weight: 500;+ color: ${cssVar.colorText};++ &:hover {+ color: ${cssVar.colorText};+ text-decoration: underline;+ }+ `,+ quote: css`+ padding-block: 6px;+ padding-inline: 12px;+ border-inline-start: 2px solid ${cssVar.colorBorder};++ font-size: 13px;+ line-height: 1.65;+ color: ${cssVar.colorText};+ overflow-wrap: anywhere;+ white-space: pre-wrap;+ `,+ regionBody: css`+ padding-block-start: 8px;+ padding-inline-start: ${TIMELINE_NODE + NODE_GUTTER}px;+ `,+ regionHeader: css`+ font-size: 13px;+ color: ${cssVar.colorTextSecondary};+ `,+}));++/**+ * A round. With a note it IS the agent's turn: one entry whose header says+ * "<agent> submitted round N for review" and whose body is what they wrote.+ * Without a note it stays the plain event.+ */+export const TimelineRound = memo<{+ anchored?: boolean;+ at: Date;+ onReact: (id: string, emoji: string, on: boolean) => Promise<void>;+ proposal?: AcceptanceCommentItem;+ reactable: boolean;+ roundIndex: number;+}>(({ anchored, at, onReact, proposal, reactable, roundIndex }) => {+ const { t } = useTranslation('verify');+ if (!proposal)+ return (+ <TimelineEvent+ at={at}+ icon={GitCommitHorizontal}+ text={t('acceptance.comments.roundLanded', { round: roundIndex })}+ />+ );+ return (+ <div+ className={cx(styles.timelineEntry, anchored && styles.entryAnchored)}+ id={commentAnchorId(proposal.id)}+ >+ <CommentCard+ anchored+ comment={proposal}+ reactable={reactable}+ variant={'feed'}+ nameOverride={t('acceptance.comments.roundCompletedBy', {+ name: commentAuthorName(proposal.author),+ round: roundIndex,+ })}+ onReact={onReact}+ />+ </div>+ );+});++TimelineRound.displayName = 'AcceptanceTimelineRound';++export const TimelineMessage = memo<{+ anchored: boolean;+ comment: AcceptanceCommentItem;+ onDelete: (id: string) => Promise<void>;+ onReact: (id: string, emoji: string, on: boolean) => Promise<void>;+ reactable: boolean;+}>(({ anchored, comment, onDelete, onReact, reactable }) => (+ <div+ className={cx(styles.timelineEntry, anchored && styles.entryAnchored)}+ id={commentAnchorId(comment.id)}+ >+ <CommentCard+ anchored+ comment={comment}+ reactable={reactable}+ variant={'feed'}+ onDelete={onDelete}+ onReact={onReact}+ />+ </div>+));++TimelineMessage.displayName = 'AcceptanceTimelineMessage';++/**+ * "C2 · title", the way the checklist names a check. A link out of the page+ * route opens that check's own view; an embedded viewer has no route of its own,+ * so there it is just the name.+ */+export const CheckReference = memo<{ check?: AcceptanceCheck }>(({ check }) => {+ const { t } = useTranslation('verify');+ const { acceptanceId, embedded } = useAcceptanceScope();+ if (!check) return null;+ const label = `C${check.seq} · ${checkDisplayTitle(check.title, t('acceptance.checks.holisticTitle'))}`;+ if (embedded) return <span className={entryStyles.checkLink}>{label}</span>;+ return (+ <Link className={entryStyles.checkLink} to={acceptanceCheckPath(acceptanceId, check.id)}>+ {label}+ </Link>+ );+});++CheckReference.displayName = 'AcceptanceDiscussionCheckReference';++/**+ * A note circled on a screenshot, as a pull request shows a review comment in+ * its Conversation: which check it is about, the picture it points at, and the+ * thread itself — still answerable and closable from here.+ */+export const TimelineRegion = memo<{+ anchored: boolean;+ canComment: boolean;+ canResolve: boolean;+ check?: AcceptanceCheck;+ onDelete: (id: string) => Promise<void>;+ onReply: (rootId: string, content: string, attachments: { fileId: string }[]) => Promise<void>;+ onResolve: (rootId: string, resolved: boolean) => Promise<void>;+ thread: AcceptanceCommentThread;+}>(({ anchored, canComment, canResolve, check, onDelete, onReply, onResolve, thread }) => {+ const { t } = useTranslation('verify');+ const { root } = thread;+ const evidence =+ check && root.evidenceId ? collectEvidenceById(check).get(root.evidenceId) : undefined;+ const stale = Boolean(+ check && root.evidenceId && !check.evidence.some((item) => item.id === root.evidenceId),+ );++ return (+ <div+ className={cx(styles.timelineEntry, anchored && styles.entryAnchored)}+ id={commentAnchorId(root.id)}+ >+ <Flexbox+ horizontal+ align={'center'}+ className={entryStyles.regionHeader}+ gap={NODE_GUTTER}+ wrap={'wrap'}+ >+ <CommentAvatar comment={root} size={TIMELINE_NODE} />+ <Icon icon={MessageSquare} size={13} />+ <span>+ {check+ ? t('acceptance.comments.regionOn', { name: commentAuthorName(root.author) })+ : commentAuthorName(root.author)}+ </span>+ <CheckReference check={check} />+ </Flexbox>+ <Flexbox+ horizontal+ align={'flex-start'}+ className={entryStyles.regionBody}+ gap={16}+ wrap={'wrap'}+ >+ {evidence && (+ <ThreadEvidence+ comment={root}+ evidence={evidence}+ stale={stale}+ roundIndex={+ check?.timeline.find((entry) =>+ entry.evidence.some((item) => item.id === root.evidenceId),+ )?.roundIndex+ }+ />+ )}+ <Flexbox flex={1} style={{ minWidth: 220 }}>+ <CommentThread+ canComment={canComment}+ canResolve={canResolve}+ thread={thread}+ onDelete={onDelete}+ onReply={onReply}+ onResolve={onResolve}+ />+ </Flexbox>+ </Flexbox>+ </div>+ );+});++TimelineRegion.displayName = 'AcceptanceTimelineRegion';diff --git a/src/features/Acceptance/Viewer/Comments/RoundSection.tsx b/src/features/Acceptance/Viewer/Comments/RoundSection.tsxnew file mode 100644index 00000000000..12fb04ed5db--- /dev/null+++ b/src/features/Acceptance/Viewer/Comments/RoundSection.tsx@@ -0,0 +1,118 @@+'use client';++import { Icon } from '@lobehub/ui';+import { createStaticStyles, cssVar, cx } from 'antd-style';+import { ChevronRight } from 'lucide-react';+import { memo, type ReactNode } from 'react';+import { useTranslation } from 'react-i18next';++import { useActivityTime } from '@/hooks/useActivityTime';++import type { DiscussionSection } from './discussionRounds';++const styles = createStaticStyles(({ css }) => ({+ chevron: css`+ flex: none;+ color: ${cssVar.colorTextQuaternary};+ transition: transform ${cssVar.motionDurationFast};+ `,+ chevronOpen: css`+ transform: rotate(90deg);+ `,+ header: css`+ cursor: pointer;++ display: flex;+ gap: 10px;+ align-items: center;++ width: 100%;+ min-height: 32px;+ padding: 0;+ border: none;++ font: inherit;+ color: ${cssVar.colorText};+ text-align: start;++ background: none;++ &:hover .round-section-rule {+ background: ${cssVar.colorBorder};+ }+ `,+ label: css`+ flex: none;+ font-size: 12px;+ font-weight: 600;+ `,+ meta: css`+ flex: none;+ font-size: 12px;+ color: ${cssVar.colorTextTertiary};+ `,+ rule: css`+ flex: 1;+ height: 1px;+ background: ${cssVar.colorBorderSecondary};+ transition: background ${cssVar.motionDurationFast};+ `,+ sentBack: css`+ flex: none;+ font-size: 12px;+ color: ${cssVar.colorWarningText};+ `,+}));++const SectionTime = ({ at }: { at: Date }) => {+ const time = useActivityTime(at);+ return <span title={time.title}>{time.text}</span>;+};++interface RoundSectionProps {+ children: ReactNode;+ onToggle: () => void;+ open: boolean;+ section: DiscussionSection;+}++const RoundSection = memo<RoundSectionProps>(({ children, onToggle, open, section }) => {+ const { t } = useTranslation('verify');+ const label =+ section.roundIndex === null+ ? t('acceptance.comments.beforeDelivery')+ : t('acceptance.comments.roundContext', { round: section.roundIndex });++ return (+ <section aria-label={label}>+ <button aria-expanded={open} className={styles.header} type={'button'} onClick={onToggle}>+ <Icon+ className={cx(styles.chevron, open && styles.chevronOpen)}+ icon={ChevronRight}+ size={14}+ />+ <span className={styles.label}>{label}</span>+ {section.sentBack && (+ <span className={styles.sentBack}>+ {t('acceptance.workspace.groups.status.rejected')}+ </span>+ )}+ <span className={cx(styles.rule, 'round-section-rule')} />+ <span className={styles.meta}>+ {t('acceptance.comments.sectionMessages', { count: section.messageCount })}+ {section.landedAt && (+ <>+ {' · '}+ <SectionTime at={section.landedAt} />+ </>+ )}+ </span>+ </button>+ {open && children}+ </section>+ );+});++RoundSection.displayName = 'AcceptanceRoundSection';++export default RoundSection;diff --git a/src/features/Acceptance/Viewer/Comments/TimelineEvent.tsx b/src/features/Acceptance/Viewer/Comments/TimelineEvent.tsxindex ff3fc3d370f..0e111463502 100644--- a/src/features/Acceptance/Viewer/Comments/TimelineEvent.tsx+++ b/src/features/Acceptance/Viewer/Comments/TimelineEvent.tsx@@ -4,7 +4,7 @@ import type { ReactNode } from 'react';import { useActivityTime } from '@/hooks/useActivityTime';-import { styles } from './styles';+import { NODE_GUTTER, styles } from './styles';/** A persisted event, shared by the interactive discussion and read-only report. */const TimelineEvent = ({@@ -21,10 +21,10 @@ const TimelineEvent = ({}) => {const time = useActivityTime(at);return (- <Flexbox horizontal align={'flex-start'} className={styles.timelineEntry} gap={12}>+ <Flexbox horizontal align={'flex-start'} className={styles.timelineEntry} gap={NODE_GUTTER}><span className={styles.timelineNode}><span className={styles.eventDot}>- <Icon icon={icon} size={12} />+ <Icon icon={icon} size={14} /></span></span><Flexbox flex={1} gap={6} style={{ minWidth: 0 }}>diff --git a/src/features/Acceptance/Viewer/Comments/discussionRounds.test.ts b/src/features/Acceptance/Viewer/Comments/discussionRounds.test.tsnew file mode 100644index 00000000000..8a270c516fb--- /dev/null+++ b/src/features/Acceptance/Viewer/Comments/discussionRounds.test.ts@@ -0,0 +1,74 @@+import type { AcceptanceCommentItem } from '@lobechat/types';+import { describe, expect, it } from 'vitest';++import { groupDiscussionByRound } from './discussionRounds';+import type { DiscussionEntry } from './discussionTimeline';++const at = (minute: number) => new Date(Date.UTC(2026, 9, 10, 8, minute));+const message = (minute: number, id = `m${minute}`): DiscussionEntry => ({+ at: at(minute),+ comment: { createdAt: at(minute).toISOString(), deletedAt: null, id } as AcceptanceCommentItem,+ kind: 'message',+});+const round = (minute: number, roundIndex: number): DiscussionEntry => ({+ at: at(minute),+ kind: 'round',+ roundIndex,+});++describe('groupDiscussionByRound', () => {+ it('cuts the stream at each landing, newest round first, pre-delivery last', () => {+ const sections = groupDiscussionByRound([+ message(1),+ round(2, 1),+ message(3),+ { at: at(4), comment: 'fix the heading', kind: 'roundReject', roundIndex: 1 },+ round(5, 2),+ message(6),+ ]);++ expect(sections.map((section) => section.roundIndex)).toEqual([2, 1, null]);+ expect(sections[0].entries.map((entry) => entry.kind)).toEqual(['round', 'message']);+ expect(sections[1].entries.map((entry) => entry.kind)).toEqual([+ 'round',+ 'message',+ 'roundReject',+ ]);+ expect(sections[2].entries).toHaveLength(1);+ });++ it('marks a round that was sent back and dates it from its landing', () => {+ const [latest, sentBack] = groupDiscussionByRound([+ round(2, 1),+ { at: at(4), kind: 'roundReject', roundIndex: 1 },+ round(5, 2),+ ]);++ expect(sentBack.sentBack).toBe(true);+ expect(sentBack.landedAt).toEqual(at(2));+ expect(latest.sentBack).toBe(false);+ });++ it('counts what people said, not the events between', () => {+ const [section] = groupDiscussionByRound([+ round(2, 1),+ message(3),+ message(4, 'gone'),+ { at: at(5), kind: 'roundReject', roundIndex: 1 },+ ]);++ expect(section.messageCount).toBe(2);+ });++ it('keeps a delivery with no rounds yet as one undated section', () => {+ const sections = groupDiscussionByRound([message(1), message(2)]);++ expect(sections).toHaveLength(1);+ expect(sections[0].roundIndex).toBeNull();+ expect(sections[0].landedAt).toBeUndefined();+ });++ it('returns nothing for an empty discussion', () => {+ expect(groupDiscussionByRound([])).toEqual([]);+ });+});diff --git a/src/features/Acceptance/Viewer/Comments/discussionRounds.ts b/src/features/Acceptance/Viewer/Comments/discussionRounds.tsnew file mode 100644index 00000000000..94b142b43b7--- /dev/null+++ b/src/features/Acceptance/Viewer/Comments/discussionRounds.ts@@ -0,0 +1,55 @@+import type { DiscussionEntry } from './discussionTimeline';++export interface DiscussionSection {+ entries: DiscussionEntry[];+ landedAt?: Date;+ messageCount: number;+ roundIndex: number | null;+ sentBack: boolean;+}++const saysSomething = (entry: DiscussionEntry) => {+ switch (entry.kind) {+ case 'message': {+ return !entry.comment.deletedAt;+ }+ case 'region': {+ return !entry.thread.root.deletedAt;+ }+ case 'round': {+ return Boolean(entry.proposal?.content.trim());+ }+ case 'roundReject':+ case 'checkReject': {+ return Boolean(entry.comment);+ }+ default: {+ return false;+ }+ }+};++// Comments carry no round of their own, so a round owns everything said+// between its landing and the next one.+export const groupDiscussionByRound = (entries: DiscussionEntry[]): DiscussionSection[] => {+ const sections: DiscussionSection[] = [];+ let current: DiscussionSection | undefined;++ for (const entry of entries) {+ if (entry.kind === 'round' || !current) {+ current = {+ entries: [],+ landedAt: entry.kind === 'round' ? entry.at : undefined,+ messageCount: 0,+ roundIndex: entry.kind === 'round' ? entry.roundIndex : null,+ sentBack: false,+ };+ sections.push(current);+ }+ current.entries.push(entry);+ if (saysSomething(entry)) current.messageCount += 1;+ if (entry.kind === 'roundReject') current.sentBack = true;+ }++ return sections.reverse();+};diff --git a/src/features/Acceptance/Viewer/Comments/styles.ts b/src/features/Acceptance/Viewer/Comments/styles.tsindex b3ba31947ea..c0eb809ce8f 100644--- a/src/features/Acceptance/Viewer/Comments/styles.ts+++ b/src/features/Acceptance/Viewer/Comments/styles.ts@@ -3,20 +3,18 @@ import { createStaticStyles, cssVar } from 'antd-style';/*** Two comment surfaces, deliberately different.*- * The discussion follows GitHub's Conversation: a rail down the left, the- * author's avatar beside it, and the remark in a bordered box. Header names who- * spoke and when; body carries the words. No colour anywhere — an author's- * colour belongs on the marks they drew, not around their face.+ * The discussion is an activity feed, Linear-style: no rail and no boxes. A+ * remark is an author line with its words indented under the avatar; an event+ * is one grey line. Rounds, not frames, give the feed its structure. No colour+ * anywhere — an author's colour belongs on the marks they drew.** A region note is a Figma-style pin: no frame at all, just an elevated surface* floating beside the screenshot.*/-export const TIMELINE_NODE = 32;-const NODE_GUTTER = 12;+export const TIMELINE_NODE = 20;+export const NODE_GUTTER = 8;const EVENT_DOT = 20;-/** Space between submitted records. The composer sits outside the timeline. */-const ENTRY_GAP = 16;-const RAIL = TIMELINE_NODE / 2;+const ENTRY_GAP = 10;/*** The accent, diluted well past the reference. A blue box line reads much@@ -89,28 +87,29 @@ export const styles = createStaticStyles(({ css }) => ({`,/** The composer, wrapped so it reads as one block rather than a loose field. */composerBlock: css`- padding: 12px;+ padding-block: 8px;+ padding-inline: 12px;border: 1px solid ${cssVar.colorBorderSecondary};- border-radius: ${cssVar.borderRadius};+ border-radius: ${cssVar.borderRadiusLG};+background: ${cssVar.colorBgContainer};++ transition: border-color ${cssVar.motionDurationFast};++ &:focus-within {+ border-color: ${cssVar.colorBorder};+ }`,deleted: css`font-style: italic;color: ${cssVar.colorTextTertiary};`,- /** A round landing or an approval: a dot on the rail and one line of text. */event: css`padding-block: 2px;font-size: 13px;color: ${cssVar.colorTextSecondary};`,- /**- * Opaque on purpose: a translucent fill let the rail show straight through- * the dot, which read as a smudge rather than as a node on the line.- */eventDot: css`- position: relative;-display: inline-flex;flex: none;align-items: center;@@ -118,12 +117,22 @@ export const styles = createStaticStyles(({ css }) => ({width: ${EVENT_DOT}px;height: ${EVENT_DOT}px;- border: 1px solid ${cssVar.colorBorderSecondary};- border-radius: 50%;color: ${cssVar.colorTextTertiary};+ `,+ entryAnchored: css`+ border-radius: ${cssVar.borderRadius};+ background: ${cssVar.colorInfoBg};+ box-shadow: 0 0 0 6px ${cssVar.colorInfoBg};+ `,+ feedBody: css`+ padding-block-start: 4px;+ padding-inline-start: ${TIMELINE_NODE + NODE_GUTTER}px;- background: ${cssVar.colorBgElevated};+ font-size: 14px;+ line-height: 1.65;+ overflow-wrap: anywhere;+ white-space: pre-wrap;`,meta: css`flex: none;@@ -222,52 +231,18 @@ export const styles = createStaticStyles(({ css }) => ({opacity: 1;}`,- /** Entries with no node of their own still line up with the boxes above. */nodelessEntry: css`padding-inline-start: ${TIMELINE_NODE + NODE_GUTTER}px;`,- /**- * Only the historical stream connects nodes. Read-only cards and the composer- * can reuse entry styles without accidentally extending the rail.- */- timeline: css`- > *::before {- content: '';-- position: absolute;- inset-block: 0;- inset-inline-start: ${RAIL - 1}px;-- width: 2px;-- background: ${cssVar.colorBorderSecondary};- }-- > :first-child::before {- inset-block-start: ${TIMELINE_NODE / 2}px;- }-- > :last-child::before {- inset-block-end: auto;- height: ${TIMELINE_NODE / 2}px;- }-- > :only-child::before {- content: none;- }- `,timelineEntry: css`position: relative;- padding-block-end: ${ENTRY_GAP}px;+ padding-block: ${ENTRY_GAP}px;&:hover [data-comment-actions] {opacity: 1;}`,- /** Avatars and event dots share one centre line, with an opaque node above it. */timelineNode: css`- position: relative;-display: flex;flex: none;align-items: center;@@ -275,10 +250,7 @@ export const styles = createStaticStyles(({ css }) => ({width: ${TIMELINE_NODE}px;height: ${TIMELINE_NODE}px;- border-radius: 50%;line-height: 0;-- background: ${cssVar.colorBgContainer};`,}));diff --git a/src/features/Acceptance/Viewer/Evidence/attachments.tsx b/src/features/Acceptance/Viewer/Evidence/attachments.tsxindex 94cdd8459b2..d025730ffa7 100644--- a/src/features/Acceptance/Viewer/Evidence/attachments.tsx+++ b/src/features/Acceptance/Viewer/Evidence/attachments.tsx@@ -251,6 +251,7 @@ export const AttachmentUploadButton = memo<AttachmentUploadButtonProps>(({ disabonFiles={onFiles}><Button+ outdentdisabled={disabled}icon={<Icon icon={ImagePlus} />}style={{ alignSelf: 'flex-start', minHeight: md ? undefined : 44 }}