Procházet zdrojové kódy

fix(web): align plan card borders and cover review identity

Yichen Jiang před 1 týdnem
rodič
revize
472ddfa7ae

+ 1 - 1
packages/client/ui-plan/src/client/PlanPreview.module.css

@@ -5,7 +5,7 @@
   width: 100%;
   padding: 16px 18px;
   margin: 12px 0;
-  border: 1px solid var(--dsw-alias-border-l1);
+  border: 0.5px solid var(--dsw-alias-border-l1);
   border-radius: 14px;
   background: transparent;
   color: var(--dsw-alias-label-secondary);

+ 11 - 0
packages/client/ui-user-questions/tests/plan-review-panel.client.spec.tsx

@@ -3,6 +3,7 @@ import type { GlobalStandardProps } from '@deepseek-ai/dsh-client-ui-slots'
 import { afterEach, describe, expect, it, vi } from 'vitest'
 import { cleanup, fireEvent, render, screen } from '@testing-library/react'
 import type { SessionId } from '@deepseek-ai/dsh-session/types'
+import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
 import {
   PendingQuestion, planReviewOf, type QuestionComposerProps, type QuestionWait,
 } from '../src/client/contract/slots.ts'
@@ -173,6 +174,16 @@ describe('planReviewOf', () => {
     })
   })
 
+  it('retains the logged invocation so the review can reopen its exact plan', () => {
+    const question = questions()[0]!
+    const callId = 'plan-call' as ToolCallId
+    const review = planReviewOf([{
+      ...question,
+      intent: { kind: 'plan-review', approve: 'Approve', callId },
+    }])
+    expect(review).toEqual({ ...planReviewOf([question]), callId })
+  })
+
   it('leaves the decline absent when the asker offered approve alone', () => {
     const [question] = questions()
     const review = planReviewOf([{ ...question as object, options: [{ label: 'Approve' }] } as never])