mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-17 20:09:05 +02:00
Fix recovery sibling key and exercise per-card width constraints
This commit is contained in:
1 parent
b8dadb23e7
commit
e225a8e47d
2 files changed
+9
-5
No files matched your search
@@ -7631,7 +7631,7 @@ export function TaskDetailSurface({ conversation, tasksTab }: { tasksTab?: TaskS
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
{resolvedDetailTab === "chat" && (
|
{resolvedDetailTab === "chat" && (
|
||||||
<WorkspaceExportRecovery key={issue.activeRecoveryAction?.id ?? issue.id} issueId={issue.id}
|
<WorkspaceExportRecovery key={`workspace-export:${issue.activeRecoveryAction?.id ?? issue.id}`} issueId={issue.id}
|
||||||
className={shellSectionClass}
|
className={shellSectionClass}
|
||||||
action={issue.activeRecoveryAction ?? null} canManage={canManageBoardRuntime} onQueued={invalidateIssueDetail} />
|
action={issue.activeRecoveryAction ?? null} canManage={canManageBoardRuntime} onQueued={invalidateIssueDetail} />
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import { ExecutionBlockerNotice } from "@/components/ExecutionBlockerNotice";
|
|||||||
import { EmailMessageCard } from "@/components/EmailMessageCard";
|
import { EmailMessageCard } from "@/components/EmailMessageCard";
|
||||||
import { queryKeys } from "@/lib/queryKeys";
|
import { queryKeys } from "@/lib/queryKeys";
|
||||||
|
|
||||||
|
const shellSectionClass = "mx-auto w-full max-w-(--tc-shell-max-w)";
|
||||||
|
|
||||||
function TaskContextNotices() {
|
function TaskContextNotices() {
|
||||||
const [client] = useState(() => {
|
const [client] = useState(() => {
|
||||||
const cache = new QueryClient({ defaultOptions: { queries: { staleTime: Infinity, retry: false } } });
|
const cache = new QueryClient({ defaultOptions: { queries: { staleTime: Infinity, retry: false } } });
|
||||||
@@ -21,12 +23,13 @@ function TaskContextNotices() {
|
|||||||
return (
|
return (
|
||||||
<QueryClientProvider client={client}>
|
<QueryClientProvider client={client}>
|
||||||
<main className="min-h-screen bg-background p-6 text-foreground">
|
<main className="min-h-screen bg-background p-6 text-foreground">
|
||||||
<div className="mx-auto w-full max-w-(--tc-shell-max-w) space-y-3">
|
<div className="w-full space-y-3">
|
||||||
<h1 className="text-xl font-semibold">Chat connection and recovery</h1>
|
<h1 className={`${shellSectionClass} text-xl font-semibold`}>Chat connection and recovery</h1>
|
||||||
<ExternallyConnectedTaskBanner className="mt-3" companyId="demo" issueId="context-notices" />
|
<ExternallyConnectedTaskBanner className={`${shellSectionClass} mt-3`} companyId="demo" issueId="context-notices" />
|
||||||
<ExecutionBlockerNotice companyId="demo" issueId="context-notices" onRetried={() => {}}
|
<ExecutionBlockerNotice className={shellSectionClass} companyId="demo" issueId="context-notices" onRetried={() => {}}
|
||||||
blocker={{ recoveryActionId: "demo-recovery", runId: null, agentId: null, cause: "action_outcome_unknown",
|
blocker={{ recoveryActionId: "demo-recovery", runId: null, agentId: null, cause: "action_outcome_unknown",
|
||||||
nextAction: "Inspect the run before continuing. Recorded work is preserved." }} />
|
nextAction: "Inspect the run before continuing. Recorded work is preserved." }} />
|
||||||
|
<div className={shellSectionClass}>
|
||||||
<EmailMessageCard contextNotice issueId="context-notices" message={{
|
<EmailMessageCard contextNotice issueId="context-notices" message={{
|
||||||
id: "email-demo", providerMessageId: "email-demo", direction: "inbound",
|
id: "email-demo", providerMessageId: "email-demo", direction: "inbound",
|
||||||
from: "operator@example.com", to: ["agent@example.com"], subject: "Card styling",
|
from: "operator@example.com", to: ["agent@example.com"], subject: "Card styling",
|
||||||
@@ -34,6 +37,7 @@ function TaskContextNotices() {
|
|||||||
fullText: "Please keep the connection and recovery cards consistent.",
|
fullText: "Please keep the connection and recovery cards consistent.",
|
||||||
commentId: null, attachmentIds: [], timestamp: "2026-10-09T12:00:00Z", automatic: false,
|
commentId: null, attachmentIds: [], timestamp: "2026-10-09T12:00:00Z", automatic: false,
|
||||||
}} />
|
}} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</QueryClientProvider>
|
</QueryClientProvider>
|
||||||
|
|||||||
Reference in new issue
Block a user