mirror of
https://github.com/vector-im/element-web.git
synced 2024-12-01 15:11:11 +08:00
5ff965106a
* Use Compound tooltips on MessageTimestamp to improve UX of date time discovery Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Show io.element.late_event in MessageTimestamp when known Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshot Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Avoid needing new Compound changes Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Move groupers into their own directory Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Refactor date separator code to be more generic Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Render timeline separator for late event groups Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix date used in copy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshot Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Move groupers into their own directory Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update copy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update copy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshot Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * i18n Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add comments Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add comments Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
145 lines
3.5 KiB
Plaintext
145 lines
3.5 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`MessagePanel should handle large numbers of hidden events quickly 1`] = `
|
|
<DocumentFragment>
|
|
<div
|
|
class="mx_AutoHideScrollbar mx_ScrollPanel cls"
|
|
tabindex="-1"
|
|
>
|
|
<div
|
|
class="mx_RoomView_messageListWrapper"
|
|
>
|
|
<ol
|
|
aria-live="polite"
|
|
class="mx_RoomView_MessageList"
|
|
style="height: 400px;"
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`MessagePanel should handle lots of membership events quickly 1`] = `
|
|
<DocumentFragment>
|
|
<div
|
|
class="mx_AutoHideScrollbar mx_ScrollPanel cls"
|
|
tabindex="-1"
|
|
>
|
|
<div
|
|
class="mx_RoomView_messageListWrapper"
|
|
>
|
|
<ol
|
|
aria-live="polite"
|
|
class="mx_RoomView_MessageList"
|
|
style="height: 400px;"
|
|
>
|
|
<li
|
|
data-scroll-tokens="__scroll_tokens__"
|
|
data-testid="__testid__"
|
|
>
|
|
<div
|
|
aria-label="Thu, Jan 1, 1970"
|
|
class="mx_TimelineSeparator"
|
|
role="separator"
|
|
>
|
|
<hr
|
|
role="none"
|
|
/>
|
|
<div
|
|
class="mx_DateSeparator_dateContent"
|
|
>
|
|
<h2
|
|
aria-hidden="true"
|
|
class="mx_DateSeparator_dateHeading"
|
|
>
|
|
Thu, Jan 1, 1970
|
|
</h2>
|
|
</div>
|
|
<hr
|
|
role="none"
|
|
/>
|
|
</div>
|
|
</li>
|
|
<div
|
|
class="mx_EventTileBubble mx_HistoryTile"
|
|
>
|
|
<div
|
|
class="mx_EventTileBubble_title"
|
|
>
|
|
You can't see earlier messages
|
|
</div>
|
|
</div>
|
|
<li
|
|
class="mx_GenericEventListSummary"
|
|
data-expanded="false"
|
|
data-layout="group"
|
|
data-scroll-tokens="__scroll_tokens__"
|
|
data-testid="__testid__"
|
|
>
|
|
<div
|
|
aria-expanded="false"
|
|
class="mx_AccessibleButton mx_GenericEventListSummary_toggle mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
Expand
|
|
</div>
|
|
<div
|
|
class="mx_EventTile_line"
|
|
>
|
|
<div
|
|
class="mx_EventTile_info"
|
|
>
|
|
<span
|
|
class="mx_GenericEventListSummary_avatars"
|
|
>
|
|
<span
|
|
class="_avatar_1o69u_17 mx_BaseAvatar _avatar-imageless_1o69u_60"
|
|
data-color="7"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 14px;"
|
|
title="@user:id"
|
|
>
|
|
u
|
|
</span>
|
|
</span>
|
|
<span
|
|
class="mx_TextualEvent mx_GenericEventListSummary_summary"
|
|
>
|
|
<span>
|
|
@user:id made no changes 100 times
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
);
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`MessagePanel should handle lots of room creation events quickly 1`] = `
|
|
<DocumentFragment>
|
|
<div
|
|
class="mx_AutoHideScrollbar mx_ScrollPanel cls"
|
|
tabindex="-1"
|
|
>
|
|
<div
|
|
class="mx_RoomView_messageListWrapper"
|
|
>
|
|
<ol
|
|
aria-live="polite"
|
|
class="mx_RoomView_MessageList"
|
|
style="height: 400px;"
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
</DocumentFragment>
|
|
`;
|