diff options
| author | Adam Malczewski <[email protected]> | 2026-06-07 16:46:20 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-07 16:46:20 +0900 |
| commit | d855080485aac8a316b9c78ddfea25465cde6c7b (patch) | |
| tree | 5ecf6e9cc7589e047e5df373fffe308c68e6935a /src/features/chat/ui.test.ts | |
| parent | c3904d742013ed3a748da35294dec19e222b84d9 (diff) | |
| download | dispatch-web-d855080485aac8a316b9c78ddfea25465cde6c7b.tar.gz dispatch-web-d855080485aac8a316b9c78ddfea25465cde6c7b.zip | |
feat(chat): drop the faded opacity on in-flight messages
Remove the opacity-50 dimming applied to provisional (streaming) chunks
across user/assistant/tool/batch rendering; in-flight content now renders
at full opacity. Test updated to assert no dimming.
Diffstat (limited to 'src/features/chat/ui.test.ts')
| -rw-r--r-- | src/features/chat/ui.test.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/features/chat/ui.test.ts b/src/features/chat/ui.test.ts index 43822a7..c118115 100644 --- a/src/features/chat/ui.test.ts +++ b/src/features/chat/ui.test.ts @@ -133,7 +133,7 @@ describe("ChatView", () => { expect(screen.getByText("System context loaded")).toBeInTheDocument(); }); - it("marks provisional chunks", () => { + it("renders provisional (in-flight) chunks without any dimming", () => { const chunks: RenderedChunk[] = [ { seq: null, @@ -145,10 +145,9 @@ describe("ChatView", () => { render(ChatView, { props: { chunks } }); - // Assistant chunks are no longer in a bubble; the provisional marker now - // lives on the plain wrapper that directly contains the text. + // In-flight chunks render at full opacity (no faded "disabled" look). const wrapper = screen.getByText("Streaming...").closest("div"); - expect(wrapper).toHaveClass("opacity-50"); + expect(wrapper).not.toHaveClass("opacity-50"); }); it("renders empty transcript", () => { |
