refactor(web): unify message-direction arrows and rename Pinned section (#1623)

- Direction labels now both point right so the arrow reads clearly at
  badge size: incoming "client ← server" becomes "server → client"
  (from → to), in MessageDirectionBadge and MessageDirectionFilter
  (shared by the Protocol and Network views).
- The Protocol list's pinned section header now reads "Pinned Messages"
  (was "Pinned Requests"), matching the "Messages" panel title.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BrihGWcrM9JGRyu41nzZYw
This commit is contained in:
cliffhall 2026-07-09 19:45:52 -04:00
commit 9824055425

View file

@ -78,7 +78,7 @@ describe("ProtocolScreen", () => {
renderWithMantine(
<ProtocolScreen {...baseProps} onUiChange={onUiChange} />,
);
await user.click(screen.getByRole("button", { name: "client ← server" }));
await user.click(screen.getByRole("button", { name: "server → client" }));
expect(onUiChange).toHaveBeenCalledWith(
expect.objectContaining({
visibleDirections: { client: true, server: false },
@ -130,7 +130,7 @@ describe("ProtocolScreen", () => {
it("drops the filter sidebar when embedded, keeping the request list", () => {
renderWithMantine(<ProtocolScreen {...baseProps} embedded />);
expect(screen.getByText("Requests")).toBeInTheDocument();
expect(screen.getByText("Messages")).toBeInTheDocument();
// The sidebar (ProtocolControls, with its Search box) is not rendered.
expect(screen.queryByPlaceholderText("Search...")).toBeNull();
});