From 009d9c7f7c9b4935418dc2ad379ae5045163d750 Mon Sep 17 00:00:00 2001 From: Roman Korvatskyi Date: Mon, 7 Sep 2026 17:05:11 +0200 Subject: [PATCH] revert(board): CU-86ajn8n1y remove activity/staleness indicator row from TicketCard Reverts #1696 (992c14bb) - the board-activity feature is being pulled from main and moved to separate branches, to ship for testing together with the reverted BE counterpart (BE revert #2097, BE reapply #2099). Conflict resolutions vs the Pragmatic DnD (#1828), strict ESLint (#1905) and touch-mode (#1961) rework: kept current imports minus the two activity-only icons and the BoardTicketActivityKind type, dropped the ACTIVITY_DEFAULT_LABEL const, both activity type blocks and the ActivityIndicators story. Co-Authored-By: Claude Fable 5 --- .../src/components/features/board/index.ts | 2 - .../components/features/board/ticket-card.tsx | 33 +-------------- .../src/components/features/board/types.ts | 20 --------- .../src/stories/TicketCard.stories.tsx | 41 +------------------ 4 files changed, 3 insertions(+), 93 deletions(-) diff --git a/openframe-frontend-core/src/components/features/board/index.ts b/openframe-frontend-core/src/components/features/board/index.ts index 6a85380a6..c3be134a7 100644 --- a/openframe-frontend-core/src/components/features/board/index.ts +++ b/openframe-frontend-core/src/components/features/board/index.ts @@ -21,8 +21,6 @@ export type { BoardColumnDef, BoardPriority, BoardTicket, - BoardTicketActivity, - BoardTicketActivityKind, BoardTicketAssignee, BoardTicketPendingApproval, } from './types'; diff --git a/openframe-frontend-core/src/components/features/board/ticket-card.tsx b/openframe-frontend-core/src/components/features/board/ticket-card.tsx index d0cf19fbc..3960e37fe 100644 --- a/openframe-frontend-core/src/components/features/board/ticket-card.tsx +++ b/openframe-frontend-core/src/components/features/board/ticket-card.tsx @@ -21,14 +21,7 @@ import { cn } from '../../../utils/cn'; import { formatTicketRelativeTime, formatTicketFullTimestamp } from '../../../utils/date-utils'; import { holdMoveDragEffect } from '../../../utils/drag-effect'; import { getReadableTextColor } from '../../../utils/ods-color-utils'; -import { - ClockIcon, - DotsLoaderIcon, - LaptopIcon, - Flag02Icon, - MessagesIcon, - UserCheckIcon, -} from '../../icons-v2-generated'; +import { LaptopIcon, Flag02Icon, MessagesIcon, UserCheckIcon } from '../../icons-v2-generated'; import { DeletedUserAvatar } from '../../ui/deleted-user-avatar'; import { SquareAvatar } from '../../ui/square-avatar'; import { Tag } from '../../ui/tag'; @@ -37,7 +30,7 @@ import { BoardTicketApproval } from './board-ticket-approval'; import { useBoardLift, useDropAim } from './drop-aim'; import { DROP_LINE_ATTRIBUTE } from './lane-geometry'; import { useIsLanding } from './pending-move'; -import type { BoardPriority, BoardTicket, BoardTicketActivityKind } from './types'; +import type { BoardPriority, BoardTicket } from './types'; import { TICKET_ID_ATTRIBUTE } from './use-lane-scroll-anchor'; const PRIORITY_COLOR_CLASS: Record = { @@ -57,13 +50,6 @@ export const DRAG_PREVIEW_OPACITY = 0.9; const MAX_VISIBLE_TAGS = 2; const MAX_VISIBLE_ASSIGNEES = 3; -const ACTIVITY_DEFAULT_LABEL: Record = { - 'ai-working': 'AI assistant is working', - 'user-typing': 'User typing', - 'waiting-external': 'Waiting for client response', - stale: 'No activity', -}; - /** Shared card shell (border / padding / bg). Same footprint for the draggable * board card and the static {@link TicketCardView}. */ const TICKET_CARD_SHELL = @@ -172,21 +158,6 @@ export function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprov Escalated by User )} - {ticket.activity && ( -
- {ticket.activity.kind === 'stale' ? ( - - ) : ( - - )} - {ticket.activity.label ?? ACTIVITY_DEFAULT_LABEL[ticket.activity.kind]} -
- )} {showNewMessage && ( { - const activities: { kind: BoardTicketActivityKind; label?: string }[] = [ - { kind: 'ai-working' }, - { kind: 'user-typing' }, - { kind: 'waiting-external' }, - { kind: 'stale', label: 'No activity for 2 hours' }, - ]; - return ( -
- {activities.map(activity => ( - - ))} -
- ); - }, -}; - /** * Pending CLIENT approval — collapsed grey "Pending client approval" row with a * loader glyph. Expand it to reach the shared approve/reject affordance.