Mount SoftphoneProvider above ToolDock so tool windows can read it

Fixkamo-internal
ส่งแล้ว
26 เมษายน 2569 เวลา 22:14 UTC
ผู้เขียน
kamo
ตั้งค่า
14c2e06

Opening the Softphone popup crashed the page with "This page couldn't load" because tool windows mount inside ToolDock, which lives in ToolProviders — a SIBLING of AuthenticatedToolWrapper. The SoftphoneProvider was nested inside AuthenticatedToolWrapper, so SoftphonePanel was rendered outside the context, and useSoftphone() threw "must be used inside <SoftphoneProvider>". Move SoftphoneProvider up into ToolProviders, wrapping both `children` (the page tree + AuthenticatedToolWrapper) and `<ToolDock />`. The session hook gracefully no-ops when the user isn't authenticated yet (API calls return 401 and the SDK init bails), so unconditional mounting is safe.

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์