The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
Unify unread badge and archive X into single column on Mine tab
dotta49c7fb7fbd6b
diff --git a/ui/src/components/IssueRow.tsx b/ui/src/components/IssueRow.tsxindex 7f6eaada7a..d3bcfcffa7 100644--- a/ui/src/components/IssueRow.tsx+++ b/ui/src/components/IssueRow.tsx@@ -1,6 +1,7 @@import type { ReactNode } from "react";import type { Issue } from "@paperclipai/shared";import { Link } from "@/lib/router";+import { X } from "lucide-react";import { cn } from "../lib/utils";import { StatusIcon } from "./StatusIcon";@@ -17,6 +18,8 @@ interface IssueRowProps {trailingMeta?: ReactNode;unreadState?: UnreadState | null;onMarkRead?: () => void;+ onArchive?: () => void;+ archiveDisabled?: boolean;className?: string;}@@ -31,6 +34,8 @@ export function IssueRow({trailingMeta,unreadState = null,onMarkRead,+ onArchive,+ archiveDisabled,className,}: IssueRowProps) {const issuePathId = issue.identifier ?? issue.id;@@ -113,6 +118,26 @@ export function IssueRow({)}/></button>+ ) : onArchive ? (+ <button+ type="button"+ onClick={(event) => {+ event.preventDefault();+ event.stopPropagation();+ onArchive();+ }}+ onKeyDown={(event) => {+ if (event.key !== "Enter" && event.key !== " ") return;+ event.preventDefault();+ event.stopPropagation();+ onArchive();+ }}+ disabled={archiveDisabled}+ className="inline-flex h-4 w-4 items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover:opacity-100 disabled:pointer-events-none disabled:opacity-30"+ aria-label="Dismiss from inbox"+ >+ <X className="h-3.5 w-3.5" />+ </button>) : (<span className="inline-flex h-4 w-4" aria-hidden="true" />)}diff --git a/ui/src/pages/Inbox.tsx b/ui/src/pages/Inbox.tsxindex b9f820476c..5564e004d0 100644--- a/ui/src/pages/Inbox.tsx+++ b/ui/src/pages/Inbox.tsx@@ -94,35 +94,6 @@ function readIssueIdFromRun(run: HeartbeatRun): string | null {return null;}-function InboxArchiveButton({- onArchive,- disabled,-}: {- onArchive: () => void;- disabled: boolean;-}) {- return (- <button- type="button"- onClick={(event) => {- event.preventDefault();- event.stopPropagation();- onArchive();- }}- onKeyDown={(event) => {- if (event.key !== "Enter" && event.key !== " ") return;- event.preventDefault();- event.stopPropagation();- onArchive();- }}- disabled={disabled}- className="rounded-md p-1 text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground group-hover:opacity-100 disabled:pointer-events-none disabled:opacity-30"- aria-label="Archive from mine"- >- <X className="h-4 w-4" />- </button>- );-}function FailedRunInboxRow({run,@@ -957,8 +928,8 @@ export function Inbox() {issueLinkState={issueLinkState}className={isArchiving- ? "pointer-events-none -translate-x-3 opacity-0 transition-transform transition-opacity duration-200"- : "transition-transform transition-opacity duration-200"+ ? "pointer-events-none -translate-x-4 scale-[0.98] opacity-0 transition-all duration-200 ease-out"+ : "transition-all duration-200 ease-out"}desktopMetaLeading={(<>@@ -987,19 +958,15 @@ export function Inbox() {: `updated ${timeAgo(issue.updatedAt)}`}unreadState={- isMineTab- ? null- : isUnread ? "visible" : isFading ? "fading" : "hidden"+ isUnread ? "visible" : isFading ? "fading" : "hidden"}onMarkRead={() => markReadMutation.mutate(issue.id)}- desktopTrailing={- isMineTab ? (- <InboxArchiveButton- onArchive={() => archiveIssueMutation.mutate(issue.id)}- disabled={isArchiving || archiveIssueMutation.isPending}- />- ) : undefined+ onArchive={+ isMineTab+ ? () => archiveIssueMutation.mutate(issue.id)+ : undefined}+ archiveDisabled={isArchiving || archiveIssueMutation.isPending}trailingMeta={issue.lastExternalCommentAt? `commented ${timeAgo(issue.lastExternalCommentAt)}`