From 779cd2e03094e8f163dbcb8b807e2bcd1107e2b2 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Thu, 16 Jul 2026 19:06:56 -0700 Subject: [PATCH] FN-8175: preserve mobile session switcher title layout contract Preserve the ChatView mobile session switcher styling contract for pinned session titles. - Assert full-width inline-flex title layout and indicator alignment - Retain wrapping and line-height coverage for long mobile session names Files changed: packages/dashboard/app/components/__tests__/ChatView.core-contracts.test.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) Fusion-Task-Id: FN-8175 Fusion-Task-Lineage: cbb349c8-f53d-4a88-ab44-32b1b0f2cb2e Co-authored-by: Fusion (runfusion.ai) --- .../__tests__/ChatView.core-contracts.test.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/dashboard/app/components/__tests__/ChatView.core-contracts.test.tsx b/packages/dashboard/app/components/__tests__/ChatView.core-contracts.test.tsx index 607ecef246..ecd0ad8bc8 100644 --- a/packages/dashboard/app/components/__tests__/ChatView.core-contracts.test.tsx +++ b/packages/dashboard/app/components/__tests__/ChatView.core-contracts.test.tsx @@ -653,7 +653,15 @@ describe("ChatView CSS — mobile thread switcher", () => { expect(optionMatch?.[1]).toContain("min-height: calc(var(--space-lg) * 2.25)"); expect(optionMatch?.[1]).toContain("align-items: flex-start"); expect(optionMatch?.[1]).toContain("line-height: normal"); - expect(optionTitleMatch?.[1]).toContain("display: block"); + /* + * FNXC:ChatMobileSessionSwitcher 2026-07-16-18:54: + * FN-8054 intentionally uses inline flex to keep a pinned session's Pin indicator beside its title. + * Retain the width and wrapping contracts from FN-4061 so long titles remain readable. + */ + expect(optionTitleMatch?.[1]).toContain("width: 100%"); + expect(optionTitleMatch?.[1]).toContain("display: inline-flex"); + expect(optionTitleMatch?.[1]).toContain("align-items: center"); + expect(optionTitleMatch?.[1]).toContain("gap: var(--space-xs)"); expect(optionTitleMatch?.[1]).toContain("line-height: normal"); expect(optionTitleMatch?.[1]).toContain("white-space: normal"); expect(optionTitleMatch?.[1]).toContain("overflow-wrap: anywhere");