mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 12:51:32 +03:00
562a880c7d
Implement https://github.com/vector-im/element-web/issues/18957 following requirements: * Create a new right panel view to list all the threads in a given room. * Change ThreadView previous phase to be ThreadPanel rather than RoomSummary * Implement local filters for My and All threads In addition: * Create a new TileShape for proper rendering requirements (hiding typing indicator) * Create new timelineRenderingType for proper rendering requirements
71 lines
1.4 KiB
Text
71 lines
1.4 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`ThreadPanel Header expect that All filter for ThreadPanelHeader properly renders Show: All threads 1`] = `
|
|
<div
|
|
className="mx_ThreadPanel__header"
|
|
>
|
|
<span>
|
|
Threads
|
|
</span>
|
|
<ContextMenuButton
|
|
inputRef={
|
|
Object {
|
|
"current": null,
|
|
}
|
|
}
|
|
isExpanded={false}
|
|
onClick={[Function]}
|
|
>
|
|
Show: All threads
|
|
</ContextMenuButton>
|
|
</div>
|
|
`;
|
|
|
|
exports[`ThreadPanel Header expect that My filter for ThreadPanelHeader properly renders Show: My threads 1`] = `
|
|
<div
|
|
className="mx_ThreadPanel__header"
|
|
>
|
|
<span>
|
|
Threads
|
|
</span>
|
|
<ContextMenuButton
|
|
inputRef={
|
|
Object {
|
|
"current": null,
|
|
}
|
|
}
|
|
isExpanded={false}
|
|
onClick={[Function]}
|
|
>
|
|
Show: My threads
|
|
</ContextMenuButton>
|
|
</div>
|
|
`;
|
|
|
|
exports[`ThreadPanel Header expect that ThreadPanelHeader has the correct option selected in the context menu 1`] = `
|
|
<AccessibleButton
|
|
aria-selected={true}
|
|
className="mx_ThreadPanel_Header_FilterOptionItem"
|
|
element="div"
|
|
onClick={[Function]}
|
|
role="button"
|
|
tabIndex={0}
|
|
>
|
|
<div
|
|
aria-selected={true}
|
|
className="mx_AccessibleButton mx_ThreadPanel_Header_FilterOptionItem"
|
|
onClick={[Function]}
|
|
onKeyDown={[Function]}
|
|
onKeyUp={[Function]}
|
|
role="button"
|
|
tabIndex={0}
|
|
>
|
|
<span>
|
|
All threads
|
|
</span>
|
|
<span>
|
|
Shows all threads from current room
|
|
</span>
|
|
</div>
|
|
</AccessibleButton>
|
|
`;
|